????
| Current Path : /home2/morganrand/public_html/sub/wp-content/themes/writee/inc/functions/ |
| Current File : /home2/morganrand/public_html/sub/wp-content/themes/writee/inc/functions/customizer.php |
<?php
/**
* Options for WordPress Theme Customizer.
*/
if ( ! function_exists ( 'writee_theme_customize_register' ) ) {
function writee_theme_customize_register( $wp_customize ) {
$writee_theme = wp_get_theme();
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->add_section( 'theme_detail', array(
'title' => __( 'About Theme', 'writee' ),
'priority' => 9
) );
$wp_customize->add_setting( 'upgrade_text', array(
'default' => '',
'sanitize_callback' => '__return_false'
) );
$wp_customize->add_control( new Writee_Customize_Static_Text_Control( $wp_customize, 'upgrade_text', array(
'section' => 'theme_detail',
'label' => __( 'Upgrade to PRO', 'writee' ),
'description' => array('')
) ) );
$wp_customize->add_section( 'theme_review_detail', array(
'title' => __( 'Add Your Review', 'writee' ),
'priority' => 180
) );
$wp_customize->add_setting( 'add_review_text', array(
'default' => '',
'sanitize_callback' => '__return_false'
) );
$wp_customize->add_control( new Writee_Customize_Static_Text_Review_Control( $wp_customize, 'add_review_text', array(
'section' => 'theme_review_detail',
'label' => __( 'Add Your Review', 'writee' ),
'description' => array('')
) ) );
/* Main option Settings Panel */
$wp_customize->add_panel('wrt_main_options', array(
'capability' => 'edit_theme_options',
'theme_supports' => '',
'title' => __('Writee Options', 'writee'),
'description' => __('Panel to update writee theme options', 'writee'), // Include html tags such as <p>.
'priority' => 10 // Mixed with top-level-section hierarchy.
));
$wp_customize->add_section('wrt_layout_options', array(
'title' => __('Layout Options', 'writee'),
'priority' => 30,
'panel' => 'wrt_main_options'
));
/* Layout Options */
$wp_customize->add_setting('wrt_layout_settings', array(
'default' => 'un-boxed',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_layout_position'
));
$wp_customize->add_control('wrt_layout_settings', array(
'label' => __('Website Boxed/ Unboxed Options', 'writee'),
'section' => 'wrt_layout_options',
'type' => 'select',
'description' => __('Choose between different layout options to be used as default', 'writee'),
'choices' => array(
'un-boxed' => __('Unboxed Layout', 'writee'),
'boxed' => __('Boxed Layout', 'writee')
)
));
/* Blog Layout Options */
$wp_customize->add_setting('wrt_blog_layout_option', array(
'default' => 'standard',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_blog_layout_position'
));
$wp_customize->add_control('wrt_blog_layout_option', array(
'label' => __( 'Blog Layout Options', 'writee' ),
'section' => 'wrt_layout_options',
'type' => 'radio',
'description' => __( 'Choose between different layout options to be used as default. Note: Standard Layout is only working with Parent theme.', 'writee' ),
'choices' => array(
'standard' => __('Standard Layout', 'writee'),
'grid' => __('Grid Layout', 'writee'),
),
));
/* Website Sidebar Options */
$wp_customize->add_setting('wrt_sidebar_position', array(
'default' => '2cr',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_sidebar_position'
));
$wp_customize->add_control('wrt_sidebar_position', array(
'label' => __('Website Sidebar Options', 'writee'),
'section' => 'wrt_layout_options',
'type' => 'select',
'description' => __('Choose between different layout options to be used as default', 'writee'),
'choices' => array(
'1c' => __('No Sidebar', 'writee'),
'2cl' => __('Left Sidebar', 'writee'),
'2cr' => __('Right Sidebar', 'writee')
)
));
/* Blog Excerpt */
$wp_customize->add_setting('wrt_blog_post_excerpt', array(
'default' => 'enable',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_radio'
));
$wp_customize->add_control('wrt_blog_post_excerpt', array(
'label' => __( 'Blog Excerpt', 'writee' ),
'section' => 'wrt_layout_options',
'type' => 'radio',
'description' => __( 'Turn ON to show auto Excerpt and OFF to show full posts.', 'writee' ),
'choices' => array(
'enable' => __('ON', 'writee'),
'disable' => __('OFF', 'writee'),
)
));
/* Slider Settings */
$wp_customize->add_section('wrt_slider_options', array(
'title' => __('Slider Options', 'writee'),
'priority' => 31,
'panel' => 'wrt_main_options'
));
$wp_customize->add_setting('wrt_slider_enable', array(
'default' => 'enable',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_radio'
));
$wp_customize->add_control('wrt_slider_enable', array(
'label' => __( 'Display Slider', 'writee' ),
'section' => 'wrt_slider_options',
'type' => 'radio',
'description' => '',
'choices' => array(
'enable' => __('ON', 'writee'),
'disable' => __('OFF', 'writee'),
)
));
$wp_customize->add_setting('wrt_slider_display_type', array(
'default' => 'fluid',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_slider_style'
));
$wp_customize->add_control('wrt_slider_display_type', array(
'label' => __( 'Slider Display Style', 'writee' ),
'section' => 'wrt_slider_options',
'type' => 'select',
'description' => '',
'choices' => array(
'fluid' => __('Full Width Layout', 'writee'),
'non-fluid' => __('Boxed Layout', 'writee')
)
));
$wp_customize->add_setting('wrt_slider_content', array(
'default' => 'latest',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_slider_content'
));
$wp_customize->add_control('wrt_slider_content', array(
'label' => __( 'Slider Display Content', 'writee' ),
'section' => 'wrt_slider_options',
'type' => 'select',
'description' => '',
'choices' => array(
'latest' => __('Latest added posts', 'writee'),
'category' => __('Specific category', 'writee')
)
));
$wp_customize->add_setting('wrt_slider_post_cats', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_strip_slashes'
));
$wp_customize->add_control('wrt_slider_post_cats', array(
'label' => __( 'Slider Post Categories', 'writee' ),
'section' => 'wrt_slider_options',
'type' => 'text',
'description' => __( 'Add post categories id comma separated (This option valid only for SPECIFIC CATEGORY view selection).', 'writee' ),
));
$wp_customize->add_setting('wrt_slider_posts', array(
'default' => '5',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_number'
));
$wp_customize->add_control('wrt_slider_posts', array(
'label' => __( 'Number of slides', 'writee' ),
'section' => 'wrt_slider_options',
'type' => 'number',
'description' => __( 'Choose the number of slides you want to display', 'writee' ),
'input_attrs' => array(
'min' => 1,
'max' => 12,
'step' => 1,
),
));
$wp_customize->add_setting('wrt_slider_content_meta', array(
'default' => 'enable',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_radio'
));
$wp_customize->add_control('wrt_slider_content_meta', array(
'label' => __( 'Slider Content Meta', 'writee' ),
'section' => 'wrt_slider_options',
'type' => 'radio',
'description' => __( 'Choose slider content meta display or not.', 'writee' ),
'choices' => array(
'enable' => __('ON', 'writee'),
'disable' => __('OFF', 'writee'),
)
));
$wp_customize->add_setting('wrt_slider_duration', array(
'default' => '5000',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_number'
));
$wp_customize->add_control('wrt_slider_duration', array(
'label' => __( 'Slide Duration', 'writee' ),
'section' => 'wrt_slider_options',
'type' => 'number',
'description' => __( 'Choose the number of slides you want to display', 'writee' ),
'input_attrs' => array(
'min' => 3000,
'max' => 20000,
'step' => 500,
),
));
/* color section setting */
$wp_customize->add_section('wrt_color_settinges', array(
'title' => __('Theme Colors Section', 'writee'),
'description' => __('Theme primary color','writee'),
'panel' => 'wrt_main_options',
'priority' => 32,
));
$wp_customize->add_setting('wrt_primary_color', array(
'default' => '#bf9e3b',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_hexcolor'
));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'wrt_primary_color', array(
'label' => __('Primary Color', 'writee'),
'section' => 'wrt_color_settinges',
)));
/* Typography settings */
$wp_customize->add_section('wrt_typography_options', array(
'title' => __( 'Typography', 'writee' ),
'priority' => 33,
'panel' => 'wrt_main_options'
));
$wp_customize->add_setting('wrt_font_url', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('wrt_font_url', array(
'label' => __('Google Font URL', 'writee'),
'section' => 'wrt_typography_options',
'type' => 'text',
'description' => sprintf('%1$s <a href="%2$s" target="_blank">%3$s</a> %4$s',
__( 'Insert', 'writee' ),
esc_url('https://www.google.com/fonts'),
__('Google Font URL' , 'writee'),
__('for embed fonts.' ,'writee')
),
));
$wp_customize->add_setting('wrt_font_family', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_strip_slashes'
));
$wp_customize->add_control('wrt_font_family', array(
'label' => __('Font Family', 'writee'),
'section' => 'wrt_typography_options',
'type' => 'text',
'description' => __( 'Insert Font Family.', 'writee' ),
));
$wp_customize->add_setting('wrt_font_size', array(
'default' => '14',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_number'
));
$wp_customize->add_control('wrt_font_size', array(
'label' => __('Font Size', 'writee'),
'section' => 'wrt_typography_options',
'type' => 'number',
'description' => __( 'Select Font Size.', 'writee' ),
'input_attrs' => array(
'min' => 10,
'max' => 40,
'step' => 1,
),
));
$wp_customize->add_setting('wrt_line_height', array(
'default' => '1.2',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_number'
));
$wp_customize->add_control('wrt_line_height', array(
'label' => __('Line Height', 'writee'),
'section' => 'wrt_typography_options',
'type' => 'number',
'description' => __( 'Slect Line Height.', 'writee' ),
'input_attrs' => array(
'min' => '0',
'max' => '4',
'step' => '0.1',
),
));
$wp_customize->add_setting('wrt_letter_space', array(
'default' => '0',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_number'
));
$wp_customize->add_control('wrt_letter_space', array(
'label' => __('Letter Space', 'writee'),
'section' => 'wrt_typography_options',
'type' => 'number',
'description' => __( 'Select Letter Space.', 'writee' ),
'input_attrs' => array(
'min' => '-20',
'max' => '4',
'step' => '1',
),
));
/* social media buttons */
$wp_customize->add_section('wrt_social_options', array(
'title' => __( 'Social Media Icons', 'writee' ),
'priority' => 34,
'panel' => 'wrt_main_options'
));
$wp_customize->add_setting('wrt_social_button_style', array(
'default' => 'default-colors',
'transport' => 'refresh',
'sanitize_callback' => 'writee_sanitize_social_style'
));
$wp_customize->add_control('wrt_social_button_style', array(
'label' => __('Social Button Style', 'writee'),
'section' => 'wrt_social_options',
'type' => 'select',
'choices' => array(
'default-colors' => __('Default Color', 'writee'),
'theme-colors' => __('Theme Color', 'writee'),
'original-colors' => __('Icon Original Color', 'writee')
),
));
$wp_customize->add_setting('wrt_facebook', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('wrt_facebook', array(
'label' => __('Facebook', 'writee'),
'section' => 'wrt_social_options',
'type' => 'text'
));
$wp_customize->add_setting('wrt_twitter', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('wrt_twitter', array(
'label' => __('Twitter', 'writee'),
'section' => 'wrt_social_options',
'type' => 'text'
));
$wp_customize->add_setting('wrt_instagram', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('wrt_instagram', array(
'label' => __('Instagram', 'writee'),
'section' => 'wrt_social_options',
'type' => 'text'
));
$wp_customize->add_setting('wrt_googleplus', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('wrt_googleplus', array(
'label' => __('Google+', 'writee'),
'section' => 'wrt_social_options',
'type' => 'text'
));
$wp_customize->add_setting('wrt_linkedin', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('wrt_linkedin', array(
'label' => __('LinkedIn', 'writee'),
'section' => 'wrt_social_options',
'type' => 'text',
));
$wp_customize->add_setting('wrt_youtube', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('wrt_youtube', array(
'label' => __('YouTube', 'writee'),
'section' => 'wrt_social_options',
'type' => 'text',
));
$wp_customize->add_setting('wrt_pinterest', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('wrt_pinterest', array(
'label' => __('Pinterest', 'writee'),
'section' => 'wrt_social_options',
'type' => 'text',
));
$wp_customize->add_setting('wrt_dribble', array(
'default' => '',
'transport' => 'refresh',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('wrt_dribble', array(
'label' => __('Dribbble', 'writee'),
'section' => 'wrt_social_options',
'type' => 'text',
));
/* footer section */
$wp_customize->add_section('wrt_footer_content', array(
'title' => __('Footer Section', 'writee'),
'description' => __('Footer section content settings','writee'),
'priority' => 121,
));
$wp_customize->add_setting( 'wrt_copyright', array(
'default' => '',
'transport' => 'refresh', // or refresh
'sanitize_callback' => 'writee_sanitize_strip_slashes'
) );
$wp_customize->add_control( 'wrt_copyright', array(
'label' => __( 'Copyright Text', 'writee'),
'type' => 'textarea',
'section' => 'wrt_footer_content',
) );
}
add_action( 'customize_register', 'writee_theme_customize_register' );
}
/**
* Adds sanitization callback function: Strip Slashes
* @package writee
*/
function writee_sanitize_strip_slashes($input) {
return wp_kses_stripslashes($input);
}
/**
* Adds sanitization callback function: colors
* @package writee
*/
function writee_sanitize_hexcolor($color) {
if ($unhashed = sanitize_hex_color_no_hash($color))
return '#' . $unhashed;
return $color;
}
/**
* Adds sanitization callback function: Number
* @package writee
*/
function writee_sanitize_number($input) {
if ( isset( $input ) && is_numeric( $input ) ) {
return $input;
}
}
/**
* Adds sanitization callback function: Number float
* @package writee
*/
/**
* Adds sanitization callback function: Sidebar Layout
* @package writee
*/
function writee_sanitize_sidebar_position( $input ) {
$site_layout = array(
'1c' => __('No Sidebar', 'writee'),
'2cl' => __('Left Sidebar', 'writee'),
'2cr' => __('Right Sidebar', 'writee')
);
if ( array_key_exists( $input, $site_layout ) ) {
return $input;
} else {
return '';
}
}
function writee_sanitize_layout_position( $input ) {
$layout_option = array(
'un-boxed' => __('Unboxed Layout', 'writee'),
'boxed' => __('Boxed Layout', 'writee')
);
if ( array_key_exists( $input, $layout_option ) ) {
return $input;
} else {
return '';
}
}
function writee_sanitize_blog_layout_position( $input ) {
$blog_layout = array(
'standard' => __('Standard Layout', 'writee'),
'grid' => __('Grid Layout', 'writee'),
);
if ( array_key_exists( $input, $blog_layout ) ) {
return $input;
} else {
return '';
}
}
function writee_sanitize_social_style( $input ) {
$social_btn_style = array(
'default-colors' => __('Default Color', 'writee'),
'theme-colors' => __('Theme Color', 'writee'),
'original-colors' => __('Icon Original Color', 'writee')
);
if ( array_key_exists( $input, $social_btn_style ) ) {
return $input;
} else {
return '';
}
}
function writee_sanitize_slider_style( $input ) {
$slider_style = array(
'fluid' => __('Full width Layout', 'writee'),
'non-fluid' => __('Boxed Layout', 'writee')
);
if ( array_key_exists( $input, $slider_style ) ) {
return $input;
} else {
return '';
}
}
function writee_sanitize_slider_content( $input ) {
$slider_content = array(
'latest' => __('Latest added posts', 'writee'),
'category' => __('Specific category', 'writee')
);
if ( array_key_exists( $input, $slider_content ) ) {
return $input;
} else {
return '';
}
}
function writee_sanitize_radio( $input ) {
$radio_options = array(
'enable' => __('ON', 'writee'),
'disable' => __('OFF', 'writee')
);
if ( array_key_exists( $input, $radio_options ) ) {
return $input;
} else {
return '';
}
}
/**
* Add CSS for custom controls
*/
if ( ! function_exists ( 'writee_customizer_custom_control_css' ) ) {
function writee_customizer_custom_control_css() {
?>
<style>
#accordion-section-theme_detail .accordion-section-title{
background-color:#ff4060;
color:#ffffff;
}
#accordion-section-theme_review_detail .accordion-section-title{
background-color:#ffd400;
color:#222222;
}
#accordion-section-theme_detail .accordion-section-title:after{
color:#ffffff;
}
div.button.icon-picker {
font-size: 24px;
height: 45px;
width: 45px;
margin: 0;
padding: 0;
line-height: 45px;
text-align: center;
}
#customize-control-blogname span.customize-control-title, #customize-control-blogdescription span.customize-control-title, #customize-control-site_icon span.customize-control-title,
#customize-control-background_color span.customize-control-title{
padding: 13px 0px 0px 0px;
font-weight: bold;
display: block;
}
#customize-control-blogname label, #customize-control-blogdescription label, #customize-control-site_icon label, #customize-control-background_color label{
padding: 0px 0px 10px;
display: block;
}
#social-share .fb-like{ margin-bottom:20px;}
.customize-control-static-text a.button{width:100%;}
ul.feature-list {
list-style:disc;
margin:5px;
padding:0 0 0 10px;
}
ul.feature-list li{
list-style:disc;
}
</style>
<?php
}
add_action( 'customize_controls_print_styles', 'writee_customizer_custom_control_css' );
}
if ( ! class_exists( 'Writee_Customize_Static_Text_Control' ) ){
if ( ! class_exists( 'WP_Customize_Control' ) )
return NULL;
class Writee_Customize_Static_Text_Control extends WP_Customize_Control {
/**
* Control type.
*
* @access public
* @var string
*/
public $type = 'static-text';
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
}
protected function render_content() {
if ( ! empty( $this->label ) ) :
?><span class="WRT-customize-control-title"><?php echo esc_html( $this->label ); ?></span><?php
endif;
if ( ! empty( $this->description ) ) :
?><div class="WRT-description WRT-customize-control-description"><?php
if( is_array( $this->description ) ) {
echo '<p>' . implode( '</p><p>', $this->description ) . '</p>';
} else {
echo $this->description;
}
?>
<h2><?php esc_html_e('Writee Pro', 'writee') ?></h2>
<p style="text-align:left;">
<a href="<?php echo esc_url('http://www.scissorthemes.com/theme/writee-pro/?ref=wordpress'); ?>" target="_blank"><?php esc_html_e( 'Upgrade To Writee Pro', 'writee' ); ?></a>
</p>
<p>
<?php esc_html_e('Upgrade to Writee Pro to unlock the awesome features and support. Check out the Writee Pro Demos to see the additional features and options available in PRO and what you can achieve using the Writee Pro for you Blog.', 'writee' ); ?>
</p>
<h3><?php esc_html_e('Pro Features:', 'writee') ?></h3>
<ul class="feature-list">
<li><?php esc_html_e('Slider options: Custom and Post slider', 'writee')?></li>
<li><?php esc_html_e('10+ slider styles', 'writee')?></li>
<li><?php esc_html_e('Custom Widget Areas(Top, Mid and Bottom)', 'writee')?></li>
<li><?php esc_html_e('4+ header options', 'writee')?></li>
<li><?php esc_html_e('7+ Blog layout Supported', 'writee')?></li>
<li><?php esc_html_e('Post format supported', 'writee')?></li>
<li><?php esc_html_e('Turn ON/OFF any features which not required', 'writee')?></li>
<li><?php esc_html_e('Built-in Related Posts', 'writee')?></li>
<li><?php esc_html_e('9 Custom Widgets', 'writee')?></li>
<li><?php esc_html_e('Built-in Shortcode& Formats', 'writee')?> </li>
<li><?php esc_html_e('12+ Translation .mo files Included(for frontend translations)', 'writee')?></li>
<li><?php esc_html_e('Many more...', 'writee')?></li>
</ul>
<h2><?php esc_html_e('About Writee', 'writee')?></h2>
<p><?php esc_html_e('See what you can built using Writee Demo', 'writee')?> </p>
<p>
<a href="<?php echo esc_url('https://www.scissorthemes.com/theme/writee'); ?>" target="_blank"><?php esc_html_e( 'Writee', 'writee' ); ?></a>
</p>
<h3><?php esc_html_e('Documentation', 'writee')?></h3>
<p><?php esc_html_e('Read documentation to learn more about theme.', 'writee')?> </p>
<p>
<a href="<?php echo esc_url('https://www.scissorthemes.com/doc/writee'); ?>" target="_blank"><?php esc_html_e( 'Writee Documentation', 'writee' ); ?></a>
</p>
<h3><?php esc_html_e('Demo Data', 'writee')?></h3>
<p><?php esc_html_e('You can import the content by using this demo datato make you site look alike the Demo.', 'writee')?> </p>
<p>
<a href="<?php echo esc_url('http://www.scissorthemes.com/wp-content/uploads/2016/12/WriteeDemoData.zip'); ?>" target="_blank"><?php esc_html_e( 'Writee Sample Data', 'writee' ); ?></a>
</p>
<h3><?php esc_html_e('Support', 'writee')?></h3>
<p><?php esc_html_e('For support, Kindly contact us and we would be happy to assist!', 'writee')?> </p>
<p>
<a href="<?php echo esc_url('https://www.scissorthemes.com/support'); ?>" target="_blank"><?php esc_html_e( 'Writee Support', 'writee' ); ?></a>
</p>
<h3><?php esc_html_e( 'Rate This Theme', 'writee' ); ?></h3>
<p><?php esc_html_e('If you like Writee Kindly Rate this Theme', 'writee')?> </p>
<p>
<a href="<?php echo esc_url('https://wordpress.org/support/theme/writee/reviews/#new-post'); ?>" target="_blank"><?php esc_html_e( 'Add Your Review', 'writee' ); ?></a>
</p>
</div>
<?php
endif;
}
}
}
if ( ! class_exists( 'Writee_Customize_Static_Text_Review_Control' ) ){
if ( ! class_exists( 'WP_Customize_Control' ) )
return NULL;
class Writee_Customize_Static_Text_Review_Control extends WP_Customize_Control {
/**
* Control type.
*
* @access public
* @var string
*/
public $type = 'static-text';
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
}
protected function render_content() {
if ( ! empty( $this->label ) ) :
?><span class="WRT-customize-control-title"><?php echo esc_html( $this->label ); ?></span><?php
endif;
if ( ! empty( $this->description ) ) :
?><div class="WRT-description WRT-customize-control-description"><?php
if( is_array( $this->description ) ) {
echo '<p>' . implode( '</p><p>', $this->description ) . '</p>';
} else {
echo $this->description;
}
?>
<h2><?php esc_html_e('Add Your Review', 'writee') ?></h2>
<p style="text-align:left;">
Your review on WordPress will be highly appreciated, as it encourages us to keep updating and supporting the product.
</p>
<p>
<a href="<?php echo esc_url('https://wordpress.org/support/theme/writee/reviews/#new-post'); ?>" target="_blank"><?php esc_html_e( 'Add Your Review', 'writee' ); ?></a>
</p>
<h3><?php esc_html_e('Support', 'writee')?></h3>
<p><?php esc_html_e('To share your feedback and for any support query you can reach us at', 'writee')?> </p>
<p>
<a href="<?php echo esc_url('https://www.scissorthemes.com/support'); ?>" target="_blank"><?php esc_html_e( 'Writee Support', 'writee' ); ?></a>
</p>
</div>
<?php
endif;
}
}
}
?>