gs_option' ) && gillion_framework() != 'redux' ) :
if ( 'off' !== _x( 'on', 'Google fonts: on or off', 'gillion' ) ) :
$enqueue_fonts = array(); $o = '';
$google_fonts = function_exists('fw_get_google_fonts') ? fw_get_google_fonts() : '';
global $wp_customize;
$customizer_option = fw_get_db_customizer_option('styling_body');
if (isset($wp_customize) && $wp_customize->is_preview() && ! is_admin() && isset($customizer_option) ) {
$typography1 = fw_get_db_customizer_option('styling_body');
$typography2 = fw_get_db_customizer_option('styling_headings');
$typography5 = fw_get_db_customizer_option('categories_font');
$typography6 = fw_get_db_customizer_option('additional_font');
} else {
$typography1 = fw_get_db_settings_option('styling_body');
$typography2 = fw_get_db_settings_option('styling_headings');
$typography5 = fw_get_db_settings_option('categories_font');
$typography6 = fw_get_db_settings_option('additional_font');
}
if( isset( $typography1['family'] ) && isset($google_fonts[$typography1['family']]) ) :
$enqueue_fonts[$typography1['family']] = $google_fonts[$typography1['family']];
endif;
if( isset( $typography2['family'] ) && isset($google_fonts[$typography2['family']]) ) :
$enqueue_fonts[$typography2['family']] = $google_fonts[$typography2['family']];
endif;
if( isset( $typography5['family'] ) && isset($google_fonts[$typography5['family']]) ) :
$enqueue_fonts[$typography5['family']] = $google_fonts[$typography5['family']];
endif;
if( isset( $typography6['family'] ) && isset($google_fonts[$typography6['family']] ) ) :
$enqueue_fonts[$typography6['family']] = $google_fonts[$typography6['family']];
endif;
if( count( $enqueue_fonts) ) :
$font_families = array();
foreach ( $enqueue_fonts as $font => $styles ) :
$font_families[] = str_replace( ' ', '+', esc_attr($font) ) . ':' . implode( ',', $styles['variants'] );
endforeach;
$subset = gillion_option( 'google_fonts_subset', 'gillion' );
if( count( $subset ) < 1 ) :
$subset = array( 'latin' );
endif;
if( count($font_families) > 0 ) {
$fonts_args = array(
'family' => implode( '%7C', $font_families ),
'subset' => implode( ',', array_keys($subset) ),
);
/* If Unyson plugin is enabled, include Google Fonts from Theme Settings */
$fonts_url1 = esc_url( add_query_arg( $fonts_args, 'https://fonts.googleapis.com/css' ) );
wp_enqueue_style( 'gillion-fonts', $fonts_url1, array(), null );
}
endif;
endif;
else :
/* If Unyson plugin is disabled, include Google Fonts: "Open Sans" and "Montserrat" (this is Gillion theme main font and is used by default in style.css) */
wp_enqueue_style( 'gillion-default-fonts', 'https://fonts.googleapis.com/css?family=Montserrat:300,400,400i,700|Open+Sans:300,400,400i,700' );
endif;
/**
* Set Javascript variables
*/
$gillion_notice = false;
if( gillion_framework_active() && gillion_option( 'notice_status', true ) == true && gillion_option( 'notice_close', 'enable' ) != 'disable' ) :
$gillion_notice = esc_js( gillion_option( 'notice_close', 'enable' ) );
endif;
$page_loader = 0;
if( gillion_option('page_loader', 'off') != 'off' ) :
if( gillion_option('page_loader') == 'on2' ) :
if (strpos(wp_get_referer(), esc_url( home_url('/') ) ) !== false) :
$page_loader = 0;
else :
$page_loader = 1;
endif;
else :
$page_loader = 1;
endif;
endif;
if( !gillion_framework_active() ) :
$social_share = '{"twitter":true,"facebook":true,"googleplus":true,"pinterest":true}';
elseif( is_array( gillion_option( 'social_share' ) ) && count( gillion_option( 'social_share' ) ) ) :
$social_share = array();
foreach( gillion_option( 'social_share' ) as $icon => $key ) :
if( $key == true ) :
$social_share[$icon] = $key;
endif;
endforeach;
else :
$social_share = '';
endif;
$scripts_array = array(
'siteurl' => esc_url( home_url( '/' ) ),
'loggedin' => ( get_current_user_id() > 0 ) ? true : false,
'page_loader' => $page_loader,
'notice' => $gillion_notice,
'header_animation_dropdown_delay' => ( esc_js( gillion_option('header_animation_dropdown_delay' , 1) ) * 1000 ),
'header_animation_dropdown' => esc_js( gillion_option('header_animation_dropdown' , 'easeOutQuint') ),
'header_animation_dropdown_speed' => ( esc_js( gillion_option('header_animation_dropdown_speed' , 0.3) ) * 1000 ),
'lightbox_opacity' => ( ( gillion_option('lightbox_opacity') > 0 ) ? esc_js( gillion_option('lightbox_opacity') ) / 100 : '0.88' ),
'lightbox_transition' => ( ( gillion_option('lightbox_transition') > 0 ) ? esc_js( gillion_option('lightbox_transition') ) : 'elastic' ),
'page_numbers_prev' => esc_html__( 'Previous', 'gillion' ),
'page_numbers_next' => esc_html__( 'Next', 'gillion' ),
'rtl_support' => ( ( gillion_option('rtl') ) ? true : false ),
'footer_parallax' => ( ( gillion_option( 'footer_parallax', 'off' ) == 'on' ) ? true : false ),
'social_share' => json_encode( $social_share ),
'text_show_all' => esc_html__( 'Show All', 'gillion' ),
'single_post_slider_parallax' => ( gillion_option('single_post_slider_parallax', 'on' ) == 'on' ) ? 1 : 0,
);
wp_localize_script( 'gillion-scripts', 'gillion', $scripts_array );
wp_enqueue_script( 'gillion-scripts' );
بایگانیها اطلاعات بااهمیت گروه الف و ب - اکوفاین | مدیریتی ، مالی ، اقتصادی
برچسب: اطلاعات بااهمیت گروه الف و ب
Home > اطلاعات بااهمیت گروه الف و ب