| Server IP : 47.82.179.145 / Your IP : 216.73.217.129 Web Server : nginx/1.26.3 System : Linux iZt4n9czhka2zvqfajdlr2Z 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64 User : www ( 1001) PHP Version : 8.3.30 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,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,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/scuipturepactory.com/wp-content/themes/blossom-fashion/inc/customizer/ |
Upload File : |
<?php
/**
* Blossom Fashion Theme Info
*
* @package Blossom_Fashion
*/
function blossom_fashion_customizer_theme_info( $wp_customize ) {
$wp_customize->add_section( 'theme_info', array(
'title' => __( 'Demo & Documentation' , 'blossom-fashion' ),
'priority' => 6,
) );
/** Important Links */
$wp_customize->add_setting( 'theme_info_theme',
array(
'default' => '',
'sanitize_callback' => 'wp_kses_post',
)
);
$theme_info = '<p>';
$theme_info .= sprintf( __( 'Demo Link: %1$sClick here.%2$s', 'blossom-fashion' ), '<a href="' . esc_url( 'https://blossomthemes.com/theme-demo/?theme=blossom-fashion' ) . '" target="_blank">', '</a>' );
$theme_info .= '</p><p>';
$theme_info .= sprintf( __( 'Documentation Link: %1$sClick here.%2$s', 'blossom-fashion' ), '<a href="' . esc_url( 'https://docs.blossomthemes.com/docs/blossom-fashion/' ) . '" target="_blank">', '</a>' );
$theme_info .= '</p>';
$wp_customize->add_control( new Blossom_Fashion_Note_Control( $wp_customize,
'theme_info_theme',
array(
'section' => 'theme_info',
'description' => $theme_info
)
)
);
}
add_action( 'customize_register', 'blossom_fashion_customizer_theme_info' );
if( class_exists( 'WP_Customize_Section' ) ) :
/**
* Adding Go to Pro Section in Customizer
* https://github.com/justintadlock/trt-customizer-pro
*/
class Blossom_Fashion_Customize_Section_Pro extends WP_Customize_Section {
/**
* The type of customize section being rendered.
*
* @since 1.0.0
* @access public
* @var string
*/
public $type = 'blossom-fashion-pro-section';
/**
* Custom button text to output.
*
* @since 1.0.0
* @access public
* @var string
*/
public $pro_text = '';
/**
* Custom pro button URL.
*
* @since 1.0.0
* @access public
* @var string
*/
public $pro_url = '';
/**
* Add custom parameters to pass to the JS via JSON.
*
* @since 1.0.0
* @access public
* @return void
*/
public function json() {
$json = parent::json();
$json['pro_text'] = $this->pro_text;
$json['pro_url'] = esc_url( $this->pro_url );
return $json;
}
/**
* Outputs the Underscore.js template.
*
* @since 1.0.0
* @access public
* @return void
*/
protected function render_template() { ?>
<li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }} cannot-expand">
<h3 class="accordion-section-title">
{{ data.title }}
<# if ( data.pro_text && data.pro_url ) { #>
<a href="{{ data.pro_url }}" class="button button-secondary alignright" target="_blank">{{ data.pro_text }}</a>
<# } #>
</h3>
</li>
<?php }
}
endif;
add_action( 'customize_register', 'blossom_fashion_page_sections_pro' );
function blossom_fashion_page_sections_pro( $manager ) {
// Register custom section types.
$manager->register_section_type( 'Blossom_Fashion_Customize_Section_Pro' );
// Register sections.
$manager->add_section(
new Blossom_Fashion_Customize_Section_Pro(
$manager,
'blossom_fashion_page_view_pro',
array(
'title' => esc_html__( 'Pro Available', 'blossom-fashion' ),
'priority' => 5,
'pro_text' => esc_html__( 'VIEW PRO THEME', 'blossom-fashion' ),
'pro_url' => esc_url( 'https://blossomthemes.com/wordpress-themes/blossom-fashion-pro/?utm_source=free_theme&utm_medium=customizer&utm_campaign=pro_theme_upgrade' ),
)
)
);
}