get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
// $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
// View PRO Version
$wp_customize->add_section( 'aqua_portfolio_style_view_pro', array(
'title' => '' . esc_html__( 'Upgrage to Pro', 'aqua-portfolio' ),
'priority' => 2,
'description' => sprintf(
//unintrosive upsell message
__( '
Upgrade to PRO Today!
Get the pro add-on plugin today:
-
Portfolio Plugin
Have a dedicated portfolio post types with an image library, category filtering and styled portfolio page.
-
Galleries & Albums
Upload galleries/Albums in your portfolios with a single click
-
Video Support
Upload videos from youtube or vimeo
-
One On One Email Support
Get one on one email support from our experienced support stuff, we can also help you modify the theme to your liking
%s
', 'aqua-portfolio' ),
sprintf( '%2$s', esc_url( aqua_portfolio_get_pro_link() ), esc_html__( 'Upgrade To PRO', 'aqua-portfolio' ) )
),
) );
$wp_customize->add_setting( 'aqua_portfoliopro_desc', array(
'default' => '',
'sanitize_callback' => 'aqua_portfoliosanitize_checkbox',
) );
$wp_customize->add_control( 'aqua_portfoliopro_desc', array(
'section' => 'aqua_portfolio_style_view_pro',
'type' => 'hidden',
) );
}
add_action( 'customize_register', 'aqua_portfolio_customize_register' );
/**
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
*/
function aqua_portfolio_customize_preview_js() {
wp_enqueue_script( 'aqua_portfolio_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true );
}
add_action( 'customize_preview_init', 'aqua_portfolio_customize_preview_js' );
/**
* Admin CSS
*/
function aqua_portfolio_customizer_assets() {
wp_enqueue_style( 'aqua_portfolio_customizer_style', get_template_directory_uri() . '/css/admin.css', null, '1.0.0', false );
}
add_action( 'customize_controls_enqueue_scripts', 'aqua_portfolio_customizer_assets' );
/**
* Generate a link to the Noah Lite info page.
*/
function aqua_portfolio_get_pro_link() {
return 'https://aperturewp.com/downloads/aqua-portfolio/';
}