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', '*Login to see link );
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', '*Login to see link );
wp_enqueue_style( 'jquery-ui-timepicker', '*Login to see link );
wp_enqueue_script( 'jquery-ui-timepicker', '*Login to see link 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.