????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.191 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.eu/wp-content/themes/Avada/includes/metaboxes/tabs/ |
Upload File : |
<?php
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
$post_type = get_post_type();
$sidebar_post_types = array(
'page' => array(
'global' => 'pages_global_sidebar',
'sidebar' => 'pages_sidebar',
'position' => 'default_sidebar_pos',
),
'post' => array(
'global' => 'posts_global_sidebar',
'sidebar' => 'posts_sidebar',
'position' => 'blog_sidebar_position',
),
'avada_portfolio' => array(
'global' => 'portfolio_global_sidebar',
'sidebar' => 'portfolio_sidebar',
'position' => 'portfolio_sidebar_position',
),
'product' => array(
'global' => 'woo_global_sidebar',
'sidebar' => 'woo_sidebar',
'position' => 'woo_sidebar_position',
),
'tribe_events' => array(
'global' => 'ec_global_sidebar',
'sidebar' => 'ec_sidebar',
'position' => 'ec_sidebar_pos',
),
'forum' => array(
'global' => 'bbpress_global_sidebar',
'sidebar' => 'ppbress_sidebar',
'position' => 'bbpress_sidebar_position',
),
'topic' => array(
'global' => 'bbpress_global_sidebar',
'sidebar' => 'ppbress_sidebar',
'position' => 'bbpress_sidebar_position',
),
'reply' => array(
'global' => 'bbpress_global_sidebar',
'sidebar' => 'ppbress_sidebar',
'position' => 'bbpress_sidebar_position',
),
);
$post_type_options = '';
if ( isset( $sidebar_post_types[ $post_type ] ) ) {
$post_type_options = $sidebar_post_types[ $post_type ];
}
sidebar_generator::edit_form( $post_type_options );
$this->radio_buttonset(
'sidebar_position',
esc_attr__( 'Sidebar 1 Position', 'Avada' ),
array(
'default' => esc_attr__( 'Default', 'Avada' ),
'right' => esc_attr__( 'Right', 'Avada' ),
'left' => esc_attr__( 'Left', 'Avada' ),
),
esc_html__( 'Select the sidebar 1 position. If sidebar 2 is selected, it will display on the opposite side.', 'Avada' ) . ( ( ! empty( $post_type_options ) ) ? Avada()->settings->get_default_description( $post_type_options['position'], '', 'select' ) : '' )
);
$this->color(
'sidebar_bg_color',
esc_attr__( 'Sidebar Background Color', 'Avada' ),
esc_html__( 'Controls the background color of the sidebar. Hex code, ex: #000', 'Avada' ) . ( ( 'tribe_events' === $post_type ) ? Avada()->settings->get_default_description( 'ec_sidebar_bg_color' ) : Avada()->settings->get_default_description( 'sidebar_bg_color' ) ),
true,
array(),
( ( 'tribe_events' === $post_type ) ? Avada()->settings->get( 'ec_sidebar_bg_color' ) : Avada()->settings->get( 'sidebar_bg_color' ) )
);
/* Omit closing PHP tag to avoid "Headers already sent" issues. */