| Server IP : 194.30.32.123 / Your IP : 216.73.216.89 Web Server : Apache System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64 User : ftpbegirale ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /expert/htwebs/www.begirale.com/public/wp-content/themes/magazine-pro/lib/ |
Upload File : |
<?php
/**
* Magazine Pro.
*
* This file adds the default theme settings to the Magazine Pro Theme.
*
* @package Magazine
* @author StudioPress
* @license GPL-2.0+
* @link http://my.studiopress.com/themes/magazine/
*/
add_filter( 'genesis_theme_settings_defaults', 'magazine_theme_defaults' );
/**
* Updates theme settings on reset.
*
* @since 3.1.0
*/
function magazine_theme_defaults( $defaults ) {
$defaults['blog_cat_num'] = 5;
$defaults['content_archive'] = 'full';
$defaults['content_archive_limit'] = 380;
$defaults['content_archive_thumbnail'] = 1;
$defaults['image_alignment'] = 'alignleft';
$defaults['image_size'] = 'thumbnail';
$defaults['posts_nav'] = 'prev-next';
$defaults['site_layout'] = 'content-sidebar';
return $defaults;
}
add_action( 'after_switch_theme', 'magazine_theme_setting_defaults' );
/**
* Updates theme settings on activation.
*
* @since 3.1.0
*/
function magazine_theme_setting_defaults() {
if( function_exists( 'genesis_update_settings' ) ) {
genesis_update_settings( array(
'blog_cat_num' => 5,
'content_archive' => 'full',
'content_archive_limit' => 380,
'content_archive_thumbnail' => 1,
'image_alignment' => 'alignleft',
'image_size' => 'thumbnail',
'posts_nav' => 'prev-next',
'site_layout' => 'content-sidebar',
) );
if ( function_exists( 'GenesisResponsiveSliderInit' ) ) {
genesis_update_settings( array(
'location_horizontal' => 'left',
'location_vertical' => 'bottom',
'posts_num' => '3',
'slideshow_excerpt_content_limit' => '100',
'slideshow_excerpt_content' => 'full',
'slideshow_excerpt_show' => 0,
'slideshow_excerpt_width' => '100',
'slideshow_height' => '420',
'slideshow_hide_mobile' => 1,
'slideshow_more_text' => __( 'Continue Reading', 'magazine-pro' ),
'slideshow_title_show' => 1,
'slideshow_width' => '750',
), GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD );
}
}
update_option( 'posts_per_page', 5 );
}
add_filter( 'genesis_responsive_slider_settings_defaults', 'magazine_responsive_slider_defaults' );
/**
* Updates Genesis Responsive Slider settings on activation.
*
* @since 3.1.0
*/
function magazine_responsive_slider_defaults( $defaults ) {
$args = array(
'location_horizontal' => 'left',
'location_vertical' => 'bottom',
'posts_num' => '3',
'slideshow_excerpt_content_limit' => '100',
'slideshow_excerpt_content' => 'full',
'slideshow_excerpt_show' => 0,
'slideshow_excerpt_width' => '100',
'slideshow_height' => '420',
'slideshow_hide_mobile' => 1,
'slideshow_more_text' => __( 'Continue Reading', 'magazine-pro' ),
'slideshow_title_show' => 1,
'slideshow_width' => '750',
);
$args = wp_parse_args( $args, $defaults );
return $args;
}
add_filter( 'simple_social_default_styles', 'magazine_social_default_styles' );
/**
* Updates Simple Social Icon settings on activation.
*
* @since 3.1.0
*/
function magazine_social_default_styles( $defaults ) {
$args = array(
'alignment' => 'aligncenter',
'background_color' => '#eeeeee',
'background_color_hover' => '#222222',
'border_radius' => 0,
'icon_color' => '#222222',
'icon_color_hover' => '#ffffff',
'size' => 56,
);
$args = wp_parse_args( $args, $defaults );
return $args;
}