رفتن به مطلب

فایل های css این سایت از کجا بارگذاری میشن؟


thinkdiff

پست های پیشنهاد شده

با سلام

این سایت http://www.pezeshkashna.com/

اگر view source کنید می بینید که یک سری css و js به سایت در head اتچ شده .اما این فایل های در کد ها اتج نشه و انگار از یک جای دیگه خونده میشن.

این کد های Head این قالب هست .من می خوام بعضی ازین لینک ها رو تغییر بدم یا خذف کنم اما معلوم نیست از کجا ؟


<html <?php language_attributes(); ?>>
<head class="animated">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head();

global $page, $post, $paged;

?>

ممنون

لینک به ارسال

این هم کد های function :


<?php
/*-----------------------------------------------------------------------------------*/
/* Directory
/*-----------------------------------------------------------------------------------*/
if ( get_stylesheet_directory() == get_template_directory() ) {
define('OF_FILEPATH', get_template_directory());
define('OF_DIRECTORY', get_template_directory_uri());
} else {
define('OF_FILEPATH', get_stylesheet_directory());
define('OF_DIRECTORY', get_stylesheet_directory_uri());
}
define('MADZA_FILEPATH', get_template_directory());
define('MADZA_DIRECTORY', get_template_directory_uri());
function image_alt_tag($content)
{global $post;preg_match_all('/<img (.*?)\/>/', $content, $images);
if(!is_null($images)) {foreach($images[1] as $index => $value)
{if(!preg_match('/alt=/', $value)){
$new_img = str_replace('<img', '<img alt="'.get_the_title().'"', $images[0][$index]);
$content = str_replace($images[0][$index], $new_img, $content);}}}
return $content;
}
add_filter('the_content', 'image_alt_tag', 99999);

/*-----------------------------------------------------------------------------------*/
/* Page Builder
/*-----------------------------------------------------------------------------------*/
if (!class_exists('WPBakeryVisualComposerAbstract')) {
$dir = dirname(__FILE__) . '/wpbakery/';
$composer_settings = Array(
'APP_ROOT' => $dir . '/js_composer',
'WP_ROOT' => dirname( dirname( dirname( dirname($dir ) ) ) ). '/',
'APP_DIR' => basename( $dir ) . '/js_composer/',
'CONFIG' => $dir . '/js_composer/config/',
'ASSETS_DIR' => 'assets/',
'COMPOSER' => $dir . '/js_composer/composer/',
'COMPOSER_LIB' => $dir . '/js_composer/composer/lib/',
'SHORTCODES_LIB' => $dir . '/js_composer/composer/lib/shortcodes/',
'USER_DIR_NAME' => 'vc_templates', /* Path relative to your current theme, where VC should look for new shortcode templates */

//for which content types Visual Composer should be enabled by default
'default_post_types' => Array('page')
);
require_once locate_template('/wpbakery/js_composer/js_composer.php');
$wpVC_setup->init($composer_settings);
}
/**
* Optional: set 'ot_show_pages' filter to false.
* This will hide the settings & documentation pages.
*/
add_filter( 'ot_show_pages', '__return_false' );
/**
* Optional: set 'ot_show_new_layout' filter to false.
* This will hide the "New Layout" section on the Theme Options page.
*/
add_filter( 'ot_show_new_layout', '__return_false' );
/**
* Required: set 'ot_theme_mode' filter to true.
*/
add_filter( 'ot_theme_mode', '__return_true' );
/**
* Required: include OptionTree.
*/
include_once( 'option-tree/ot-loader.php' );
include_once( 'option-tree/theme-options.php' );
/*-----------------------------------------------------------------------------------*/
/* Function
/*-----------------------------------------------------------------------------------*/
include_once ('functions/class-widget.php');
include_once ('functions/class-metabox.php');
include_once ('functions/functions-widget.php');
include_once ('functions/functions-footer.php');
include_once ('functions/functions-homepage.php');
include_once ('functions/functions-slider.php');
include_once ('functions/functions-hooks.php');
include_once ('functions/functions-comment.php');
include_once ('functions/functions-shortcodes.php');
include_once ('functions/functions-general.php');
include_once ('functions/plugins/glass-slider/glass-slider.php');
#require_once (OF_FILEPATH . '/functions/plugins/bread/functions-other.php');
include_once ('functions/plugins/aq_resizer.php');
#require_once (OF_FILEPATH . '/functions/plugins/easy-wordpress-donations/easy-wordpress-donation.php');
/*-----------------------------------------------------------------------------------*/
/* Madza Theme Setup
/*-----------------------------------------------------------------------------------*/
function madza_theme_setup() {
add_editor_style();

add_theme_support( 'post-formats', array('image', 'video', 'link', 'quote', 'gallery' ) );
add_theme_support( 'automatic-feed-links' );

load_theme_textdomain( 'madza_translate', get_template_directory() . '/languages' );
$locale = get_locale();
$locale_file = get_template_directory() . "/languages/$locale.php";
if ( is_readable( $locale_file ) )
require_once( $locale_file );
set_post_thumbnail_size( 999, 999, true );

register_nav_menus( array(
'primary' => __( 'Header Navigation', 'madza_translate' ),
) );

register_nav_menus( array(
'select_menu' => __( 'Responsive Header Navigation', 'madza_translate' ),
) );

register_nav_menus( array(
'footer_menu' => __( 'Footer Navigation', 'madza_translate' ),
) );

}
add_action( 'after_setup_theme', 'madza_theme_setup' );

/*-----------------------------------------------------------------------------------*/
/* Default Options
/*-----------------------------------------------------------------------------------*/
if ( ! isset( $content_width ) ) $content_width = 610;
function madzathemes_page_menu_args( $args ) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'madzathemes_page_menu_args' );
function new_excerpt_length( $length ) {

if(ot_get_option("blog_content_lenght")!="") { $lenghts = ot_get_option("blog_content_lenght"); } else { $lenghts = "100"; }
return $lenghts;

}
add_filter( 'excerpt_length', 'new_excerpt_length' );
function get_required_page($page = ''){
global $wpdb;

$result = wp_cache_get($page . '-guid', __FUNCTION__);

if($result === false)
{
$result = $wpdb->get_var("SELECT p.guid
FROM $wpdb->posts p
WHERE p.post_status = 'publish'
AND p.post_title = '{$page}' ");

if ($result)
{
wp_cache_add($page . '-guid', $result, __FUNCTION__);
}
}
return $result;
}
if (function_exists('add_theme_support')) {
add_theme_support( 'post-thumbnails' );
}

/*-----------------------------------------------------------------------------------*/
/* Theme Options
/*-----------------------------------------------------------------------------------*/
function my_custom_login_logo() {
if(ot_get_option("login_logo")!="") {
echo '<style type="text/css">
h1 a { '.ot_get_option("login_logo").' !important; }
</style>';
}
}
add_action('login_head', 'my_custom_login_logo');
function madza_sidebar_function() {
global $post;
$args = array(
'post_type'=> 'mt_sidebar',
'order' => 'ASC',
'posts_per_page' => 999,
'orderby' => 'date',
'order' => 'DSC',
);

query_posts($args); while ( have_posts() ) : the_post();

register_sidebar(array(
'name' => __(get_the_title()),
'id' => 'sidebar-id-'.$post->ID.'',
'description' => __( 'Widget area created from Sidebar custom post type.' , 'madza_translate'),
'before_widget' => '<div class="menu_categories">',
'after_widget' => '<div class="clear"></div></div>',
'before_title' => '<h4 class="widget_h"><span>',
'after_title' => '</span></h4>',
));

endwhile; wp_reset_query();
}
add_action('madza_sidebar_function', 'madza_sidebar_function');
madza_sidebar_function();

add_action('admin_init','optionscheck_change_santiziation', 100);

function optionscheck_change_santiziation() {
remove_filter( 'of_sanitize_textarea', 'of_sanitize_textarea' );
add_filter( 'of_sanitize_textarea', 'custom_sanitize_textarea' );
}


function custom_sanitize_textarea($input) {
global $allowedposttags;
$custom_allowedtags["embed"] = array(
"src" => array(),
"type" => array(),
"allowfullscreen" => array(),
"allowscriptaccess" => array(),
"height" => array(),
"width" => array()
);
$custom_allowedtags["script"] = array();

$custom_allowedtags = array_merge($custom_allowedtags, $allowedposttags);
$output = wp_kses( $input, $custom_allowedtags);
return $output;
}


add_action( 'tgmpa_register', 'madza_register_required_plugins' );
function madza_register_required_plugins() {
$plugins = array(
array(
'name' => 'Contact Form 7', // The plugin name
'slug' => 'contact-form-7', // The plugin slug (typically the folder name)
'required' => true, // If false, the plugin is only 'recommended' instead of required
),
);
$config = array(
'strings' => array(

)
);
tgmpa( $plugins, $config );
}

if ( ! function_exists( 'mt_paging_nav' ) ) :
/**
* Displays navigation to next/previous set of posts when applicable.
*
* @since Twenty Thirteen 1.0
*
* @return void
*/
function mt_paging_nav() {
global $wp_query;
// Don't print empty markup if there's only one page.
if ( $wp_query->max_num_pages < 2 )
return;
?>
<nav class="navigation paging-navigation" role="navigation">

<div class="nav-links">
<?php if ( get_next_posts_link() ) : ?>
<div class="nav-previous pagination-link"><?php next_posts_link( __( '<span class="meta-nav">← Older posts</span> ', 'madza_themes' ) ); ?></div>
<?php endif; ?>
<?php if ( get_previous_posts_link() ) : ?>
<div class="nav-next pagination-link"><?php previous_posts_link( __( '<span class="meta-nav">Newer posts →</span>', 'madza_themes' ) ); ?></div>
<?php endif; ?>
<div class="clear"></div>
</div><!-- .nav-links -->
</nav><!-- .navigation -->
<?php
}
endif;

function themename_customize_register($wp_customize){

$wp_customize->add_section('themename_header', array(
'title' => 'Header',
'priority' => 124,
));
class Example_Customize_Textarea_Control extends WP_Customize_Control {
public $type = 'textarea';

public function render_content() {
?>
<label>
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
<textarea rows="5" style="width:100%;" <?php $this->link(); ?>><?php echo esc_textarea( $this->value() ); ?></textarea>
</label>
<?php
}
}

// ==================================================
// =============================
// = ==== General Options
// =============================

$wp_customize->add_section('themename_general_mt', array(
'title' => 'General Options',
'priority' => 121,
));


// =============================
// = Favicon =
// =============================
$wp_customize->add_setting('themename_theme_options[mt_favicon]', array(
'capability' => 'edit_theme_options',
'type' => 'option',

));

$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'mt_favicon', array(
'label' => __('Upload Favicon (16px x 16px Png/Gif image)', 'themename'),
'section' => 'themename_general_mt',
'settings' => 'themename_theme_options[mt_favicon]',
)));
// =============================
// = Responsive =
// =============================
$wp_customize->add_setting('themename_theme_options[mt_responsive]', array(
'default' => 'responsive_yes',
'capability' => 'edit_theme_options',
'type' => 'option',

));
$wp_customize->add_control( 'mt_responsive', array(
'settings' => 'themename_theme_options[mt_responsive]',
'label' => 'Layouts',
'section' => 'themename_general_mt',
'type' => 'select',
'choices' => array(
'responsive_yes' => 'Responsive',
'responsive_no' => 'Fixed',
),
));


// =============================
// = Breadcrumb
// =============================
$wp_customize->add_setting('themename_theme_options[mt_breadcrumb]', array(
'capability' => 'edit_theme_options',
'default' => "1",
'type' => 'option',
));

$wp_customize->add_control('mt_breadcrumb', array(
'settings' => 'themename_theme_options[mt_breadcrumb]',
'label' => 'Display Breadcrumb',
'section' => 'themename_general_mt',
'type' => 'select',
'choices' => array(
'1' => 'On',
'2' => 'Off',
),
));


// =============================
// = Custom Css
// =============================
$wp_customize->add_setting('themename_theme_options[mt_css]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control( new Example_Customize_Textarea_Control( $wp_customize, 'mt_css', array(
'label' => 'Custom CSS',
'section' => 'themename_general_mt',
'settings' => 'themename_theme_options[mt_css]',
)));



// ==================================================
// =============================
// = ==== Logo Options
// =============================

$wp_customize->add_section('themename_logo', array(
'title' => 'Logo',
'priority' => 123,
));


// =============================
// = Logo =
// =============================
$wp_customize->add_setting('themename_theme_options[mt_logo]', array(
'capability' => 'edit_theme_options',
'type' => 'option',
'default' => get_template_directory_uri().'/images/medicaldoctor_logo.gif',

));

$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'mt_logo', array(
'label' => __('Upload Logo', 'themename'),
'section' => 'themename_logo',
'settings' => 'themename_theme_options[mt_logo]',
)));

// =============================
// = Logo Responsive =
// =============================
$wp_customize->add_setting('themename_theme_options[mt_logo_r]', array(
'capability' => 'edit_theme_options',
'type' => 'option',
'default' => get_template_directory_uri().'/images/medicaldoctor_logo.gif',

));

$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'mt_logo_r', array(
'label' => __('Upload Responsive Logo', 'themename'),
'section' => 'themename_logo',
'settings' => 'themename_theme_options[mt_logo_r]',
)));

// =============================
// = Logo Widht
// =============================
$wp_customize->add_setting('themename_theme_options[mt_logo_w]', array(
'default' => '230',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control('mt_logo_w', array(
'label' => 'Logo Width (px)',
'section' => 'themename_logo',
'settings' => 'themename_theme_options[mt_logo_w]',
));

// =============================
// = Logo Height
// =============================
$wp_customize->add_setting('themename_theme_options[mt_logo_h]', array(
'default' => '50',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control('mt_logo_h', array(
'label' => 'Logo Height (px)',
'section' => 'themename_logo',
'settings' => 'themename_theme_options[mt_logo_h]',
));

// =============================
// = Logo margin Top
// =============================
$wp_customize->add_setting('themename_theme_options[mt_logo_t]', array(
'default' => '15',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control('mt_logo_t', array(
'label' => 'Logo Margin Top (px)',
'section' => 'themename_logo',
'settings' => 'themename_theme_options[mt_logo_t]',
));





// ==================================================
// =============================
// = ==== Header Options
// =============================



// =============================
// = Header Style =
// =============================
$wp_customize->add_setting('themename_theme_options[mt_header_s]', array(
'default' => 'style_1',
'capability' => 'edit_theme_options',
'type' => 'option',

));
$wp_customize->add_control( 'mt_header_s', array(
'settings' => 'themename_theme_options[mt_header_s]',
'label' => 'Header Style',
'section' => 'themename_header',
'type' => 'select',
'choices' => array(
'style_1' => 'Style 1',
'style_2' => 'Style 2',
'style_3' => 'Style 3',
'style_4' => 'Style 4',
),
));

// =============================
// = Header Height
// =============================
$wp_customize->add_setting('themename_theme_options[mt_header_h]', array(
'default' => '80',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control('mt_header_h', array(
'label' => 'Header Height (px)',
'section' => 'themename_header',
'settings' => 'themename_theme_options[mt_header_h]',
));

// =============================
// = Header Right margin Top
// =============================
$wp_customize->add_setting('themename_theme_options[mt_header_t]', array(
'default' => '20',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control('mt_header_t', array(
'label' => 'Header Right area Margin Top (px)',
'section' => 'themename_header',
'settings' => 'themename_theme_options[mt_header_t]',
));

// =============================
// = Header Button name
// =============================
$wp_customize->add_setting('themename_theme_options[mt_header_bn]', array(
'default' => 'Make an Appointment',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control('mt_header_bn', array(
'label' => 'Button Name',
'section' => 'themename_header',
'settings' => 'themename_theme_options[mt_header_bn]',
));


// =============================
// = Header Button url
// =============================
$wp_customize->add_setting('themename_theme_options[mt_header_bu]', array(
'default' => "http://www.themeforest.net",
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control('mt_header_bu', array(
'label' => 'Button URL',
'section' => 'themename_header',
'settings' => 'themename_theme_options[mt_header_bu]',
));



// =============================
// = Phone area
// =============================
$wp_customize->add_setting('themename_theme_options[mt_header_phone]', array(
'default' => '<i class="icon-phone"></i> Call Us: <strong>+371 2 200 055 99</strong>',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control( new Example_Customize_Textarea_Control( $wp_customize, 'mt_header_phone', array(
'label' => 'Phone area',
'section' => 'themename_header',
'settings' => 'themename_theme_options[mt_header_phone]',
)));



// =============================
// = Menu right area
// =============================
$wp_customize->add_setting('themename_theme_options[mt_header_ep]', array(
'default' => "1",
'capability' => 'edit_theme_options',
'type' => 'option',
));

$wp_customize->add_control('mt_header_ep', array(
'settings' => 'themename_theme_options[mt_header_ep]',
'label' => 'Display Menu Right area',
'section' => 'themename_header',
'type' => 'checkbox',
));




// =============================
// = Header email
// =============================
$wp_customize->add_setting('themename_theme_options[mt_header_email]', array(
'default' => '<i class="icon-envelope"></i> your@domain.com',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control( new Example_Customize_Textarea_Control( $wp_customize, 'mt_header_email', array(
'label' => 'E-mail area',
'section' => 'themename_header',
'settings' => 'themename_theme_options[mt_header_email]',
)));




$wp_customize->add_section('themename_color_scheme', array(
'title' => __('Style Options', 'themename'),
'priority' => 125,
));



// =============================
// = Color Picker =
// =============================
$wp_customize->add_setting('default_color', array(
'default' => '#7DB6D3',
'sanitize_callback' => 'sanitize_hex_color',
'capability' => 'edit_theme_options',
'type' => 'option',

));

$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'default_color', array(
'label' => __('Default Color', 'themename'),
'section' => 'themename_color_scheme',
'settings' => 'default_color',
)));






// =============================
// = Radio Input =
// =============================
$wp_customize->add_setting('layout_style', array(
'default' => 'full',
'capability' => 'edit_theme_options',
'type' => 'option',
));

$wp_customize->add_control('themename_layout_style', array(
'label' => __('Layout Style', 'themename'),
'section' => 'themename_color_scheme',
'settings' => 'layout_style',
'type' => 'radio',
'choices' => array(
'full' => 'Full Width',
'box' => 'Boxed',
),
));






// =============================
// = Color Picker =
// =============================
$wp_customize->add_setting('bg_default_color', array(
'default' => '#ffffff',
'sanitize_callback' => 'sanitize_hex_color',
'capability' => 'edit_theme_options',
'type' => 'option',

));

$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'bg_default_color', array(
'label' => __('Background Color', 'themename'),
'section' => 'themename_color_scheme',
'settings' => 'bg_default_color',
)));



// =============================
// = Image Upload =
// =============================
$wp_customize->add_setting('themename_theme_options[image_upload_test]', array(
'capability' => 'edit_theme_options',
'type' => 'option',

));

$wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'image_upload_test', array(
'label' => __('Upload Background Image', 'themename'),
'section' => 'themename_color_scheme',
'settings' => 'themename_theme_options[image_upload_test]',
)));




// =============================
// = Background Repeat =
// =============================
$wp_customize->add_setting('themename_theme_options[background_repeat]', array(
'default' => 'none',
'capability' => 'edit_theme_options',
'type' => 'option',

));
$wp_customize->add_control( 'example_select_box', array(
'settings' => 'themename_theme_options[background_repeat]',
'label' => 'Background Repeat:',
'section' => 'themename_color_scheme',
'type' => 'select',
'choices' => array(
'none' => 'Select',
'full' => 'Full',
'no-repeat' => 'No Repeat',
'repeat' => 'Repeat',
'repeat-x' => 'Repeat Horizontally',
'repeat-y' => 'Repeat Vertically',
'inherit' => 'Inherit',
),
));

// =============================
// = Background Attachment =
// =============================
$wp_customize->add_setting('themename_theme_options[background_attachment]', array(
'default' => 'none',
'capability' => 'edit_theme_options',
'type' => 'option',

));
$wp_customize->add_control( 'example_select_box2', array(
'settings' => 'themename_theme_options[background_attachment]',
'label' => 'Background Attachment:',
'section' => 'themename_color_scheme',
'type' => 'select',
'choices' => array(
'none' => 'Select',
'fixed' => 'Fixed',
'scroll' => 'Scroll',
'inherit' => 'Inherit',
),
));

// =============================
// = Background Position =
// =============================
$wp_customize->add_setting('themename_theme_options[background_position]', array(
'default' => 'none',
'capability' => 'edit_theme_options',
'type' => 'option',

));
$wp_customize->add_control( 'example_select_box3', array(
'settings' => 'themename_theme_options[background_position]',
'label' => 'Background Position:',
'section' => 'themename_color_scheme',
'type' => 'select',
'choices' => array(
'none' => 'Select',
'left top' => 'Left Top',
'left center' => 'Left Center',
'left bottom' => 'Left Bottom',
'center top' => 'Center Top',
'center center' => 'Center Center',
'center bottom' => 'Center Bottom',
'right top' => 'Right Top',
'right center' => 'Right Center',
'right bottom' => 'Right Bottom',
),
));


// ==================================================
// =============================
// = ==== Fonts
// =============================

$wp_customize->add_section('themename_fonts', array(
'title' => __('Fonts', 'themename'),
'priority' => 130,
));


// =============================
// = Google Font name
// =============================
$wp_customize->add_setting('themename_theme_options[font_name]', array(
'default' => 'Open+Sans:300,400,600,700',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control('mt_google_font_name', array(
'label' => 'Google Font Name',
'section' => 'themename_fonts',
'settings' => 'themename_theme_options[font_name]',
));


// =============================
// = Google Font name
// =============================
$wp_customize->add_setting('themename_theme_options[font_css]', array(
'default' => "font-family: 'Open Sans', sans-serif;",
'capability' => 'edit_theme_options',
'type' => 'option',

));

$wp_customize->add_control('mt_google_font_css', array(
'label' => 'Google Font CSS',
'section' => 'themename_fonts',
'settings' => 'themename_theme_options[font_css]',
));



// ==================================================
// =============================
// = ==== Footer
// =============================

$wp_customize->add_section('themename_footer', array(
'title' => 'Footer',
'priority' => 131,
));

// =============================
// = Footer Top
// =============================
$wp_customize->add_setting('themename_theme_options[footer_top]', array(
'default' => "1",
'capability' => 'edit_theme_options',
'type' => 'option',
));

$wp_customize->add_control('mt_footer_top', array(
'settings' => 'themename_theme_options[footer_top]',
'label' => 'Display Top Footer',
'section' => 'themename_footer',
'type' => 'checkbox',
));


// =============================
// = Footer Bottom
// =============================
$wp_customize->add_setting('themename_theme_options[footer_bottom]', array(
'capability' => 'edit_theme_options',
'default' => "1",
'type' => 'option',
));

$wp_customize->add_control('mt_footer_bottom', array(
'settings' => 'themename_theme_options[footer_bottom]',
'label' => 'Display Bottom Footer',
'section' => 'themename_footer',
'type' => 'checkbox',
));


// =============================
// = Footer Top Columns =
// =============================
$wp_customize->add_setting('themename_theme_options[footer_columns]', array(
'default' => '2_4',
'capability' => 'edit_theme_options',
'type' => 'option',

));
$wp_customize->add_control( 'mt_footer_columns', array(
'settings' => 'themename_theme_options[footer_columns]',
'label' => 'Footer Columns:',
'section' => 'themename_footer',
'type' => 'select',
'choices' => array(
'1_1' => '1/1',
'1_2' => '1/2',
'1_3' => '1/3',
'1_4' => '1/4',
'2_4' => '2/4',
'4_2' => '4/2',
),
));


// =============================
// = Copyright
// =============================
$wp_customize->add_setting('themename_theme_options[copyright_text]', array(
'default' => 'Copyright 2013. Powered by WordPress Theme. By M.Bitenieks',
'capability' => 'edit_theme_options',
'type' => 'option',


));

$wp_customize->add_control( new Example_Customize_Textarea_Control( $wp_customize, 'mt_copyright_text', array(
'label' => 'Copyright Text',
'section' => 'themename_footer',
'settings' => 'themename_theme_options[copyright_text]',
)));



// ==================================================
// =============================
// = ==== Social Icons
// =============================

$wp_customize->add_section('themename_icons', array(
'title' => __('Social Icons', 'themename'),
'priority' => 140,
));


// =============================
// = Google Font name
// =============================
$wp_customize->add_setting('themename_theme_options[mt_icon_facebook]', array(
'default' => '#',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_facebook', array(
'label' => 'Facebook icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_facebook]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_twitter]', array(
'default' => '#',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_twitter', array(
'label' => 'Twitter icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_twitter]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_vimeo]', array(
'default' => '#',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_vimeo', array(
'label' => 'Vimeo icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_vimeo]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_youtube]', array(
'default' => '#',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_youtube', array(
'label' => 'Youtube icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_youtube]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_linkedin]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_linkedin', array(
'label' => 'LinkedIn icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_linkedin]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_gplus]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_gplus', array(
'label' => 'Google Plus icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_gplus]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_dribble]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_dribble', array(
'label' => 'Dribble icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_dribble]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_skype]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_skype', array(
'label' => 'Skype icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_skype]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_delicious]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_delicious', array(
'label' => 'Delicious icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_delicious]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_amazon]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_amazon', array(
'label' => 'Amazon icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_amazon]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_yahoo]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_yahoo', array(
'label' => 'Yahoo icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_yahoo]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_pinterest]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_pinterest', array(
'label' => 'Pinterest icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_pinterest]',
));

$wp_customize->add_setting('themename_theme_options[mt_icon_rss]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_icon_rss', array(
'label' => 'Rss icon link',
'section' => 'themename_icons',
'settings' => 'themename_theme_options[mt_icon_rss]',
));



// ==================================================
// =============================
// = ==== Rewrite CPT
// =============================

$wp_customize->add_section('themename_rewrite', array(
'title' => __('Rewrite CPT', 'themename'),
'priority' => 141,
));


// =============================
// = CPT doctor
// =============================
$wp_customize->add_setting('themename_theme_options[mt_rewrite_doctor]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_rewrite_doctor', array(
'label' => 'Rewrite Doctor CPT slug',
'section' => 'themename_rewrite',
'settings' => 'themename_theme_options[mt_rewrite_doctor]',
));

// =============================
// = CPT Services
// =============================
$wp_customize->add_setting('themename_theme_options[mt_rewrite_services]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_rewrite_services', array(
'label' => 'Rewrite Services CPT slug',
'section' => 'themename_rewrite',
'settings' => 'themename_theme_options[mt_rewrite_services]',
));
// =============================
// = CPT Portfolio
// =============================
$wp_customize->add_setting('themename_theme_options[mt_rewrite_portfolio]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_rewrite_portfolio', array(
'label' => 'Rewrite Portfolio CPT slug',
'section' => 'themename_rewrite',
'settings' => 'themename_theme_options[mt_rewrite_portfolio]',
));


// =============================
// = CPT Causes
// =============================
$wp_customize->add_setting('themename_theme_options[mt_rewrite_causes]', array(
'default' => '',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control('mt_rewrite_causes', array(
'label' => 'Rewrite Causes CPT slug',
'section' => 'themename_rewrite',
'settings' => 'themename_theme_options[mt_rewrite_causes]',
));



}

add_action('customize_register', 'themename_customize_register');
function devpress_login_form_shortcode() {
if ( is_user_logged_in() )
return '';

return wp_login_form( array( 'echo' => false ) );
}

function devpress_add_shortcodes() {
add_shortcode( 'devpress-login-form', 'devpress_login_form_shortcode' );
}

add_action( 'init', 'devpress_add_shortcodes' );

function custom_login() {
echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('template_directory') . '/custom-login.css" />';
}
add_action('login_head', 'custom_login');

function _remove_script_version( $src ){
$parts = explode( '?ver', $src );
return $parts[0];
}
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
?>

لینک به ارسال

فایل style.css رو هم نگاه کنین ببینین فایلی با @ ایمپورت شده یا نه؟ ممکنه از فایل php دیگه‌ای هم فراخوانی شده باشه. پوسته در اختیارتونه در نتیجه میتونین با یه سرچ ساده پیداش کنین.

لینک به ارسال

نخیر چیزی ایمپورتنت نشده.

فایل های زیادی درش هست و من باید تک تک php ها رو باز کنم و داخلش سرچ کنم؟حدود 185 تا فایل php داره.

راه دیگه ای نست؟

سایت رو به صورت پروژه به دریم ویور وصل کن بعد کل پروژه رو سرچ کن راحت فایل هایی که میخوای به دست میاری

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...