Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Mixed Content Issues

Home / Forums / Virtue Theme / Mixed Content Issues

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
November 2, 2017 at 9:26 am

Hello Team Kadence,

In this file /wp-content/themes/virtue_premium/lib/taxonomy-meta-class.php, there a few instances of http being hardcoded. Can this be updated to use protocol instead? Such as

$protocol = ( $atts['https'] === 'true' ) ? 'https' : 'http';

which was used in /wp-content/themes/virtue_premium/lib/kad_shortcodes/shortcodes.php

The code in /taxonomy-meta-class.php is:

// Check field date
function check_field_date() {
if ( !$this->has_field( 'date' ) )
return;

wp_enqueue_style( 'jquery-ui', ' );
wp_enqueue_script( 'jquery-ui-datepicker' );

// CSS
$this->css .= '#ui-datepicker-div {display: none}';

// JS
$dates = array();
foreach ( $this->_fields as $field ) {
if ( 'date' == $field['type'] ) {
$dates[$field['id']] = $field['format'];
}
}
foreach ( $dates as $id => $format ) {
$this->js .= "$('#$id').datepicker({
dateFormat: '$format',
showButtonPanel: true
});";
}
}

// Check field time
function check_field_time() {
if ( !$this->has_field( 'time' ) )
return;

wp_enqueue_style( 'jquery-ui', ' );
wp_enqueue_style( 'jquery-ui-timepicker', ' );
wp_enqueue_script( 'jquery-ui-timepicker', ' array( 'jquery-ui-datepicker', 'jquery-ui-slider' ) );

// CSS
$this->css .= '#ui-datepicker-div {display: none}';

// JS
$times = array();
foreach ( $this->_fields as $field ) {
if ( 'time' == $field['type'] ) {
$times[$field['id']] = $field['format'];
}
}
foreach ( $times as $id => $format ) {
$this->js .= "$('#$id').timepicker({showSecond: true, timeFormat: '$format'})";
}
}

Thank you.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.