diff --git a/admin/class-aesop-core-admin.php b/admin/class-aesop-core-admin.php index aa64a1af..b44eb3d0 100755 --- a/admin/class-aesop-core-admin.php +++ b/admin/class-aesop-core-admin.php @@ -193,13 +193,9 @@ public function generator_popup() {
- + + ' + security: }; jQuery.post(ajaxurl, data, function(response) { diff --git a/admin/includes/components/component-map.php b/admin/includes/components/component-map.php index 28ed764f..13f561dd 100644 --- a/admin/includes/components/component-map.php +++ b/admin/includes/components/component-map.php @@ -140,14 +140,11 @@ public function render_map_box( $post ) { echo '
'; $ase_map_locations = get_post_meta( $post->ID, 'ase_map_component_locations' ); - $ase_map_start_point = get_post_meta( $post->ID, 'ase_map_component_start_point', true ); - $get_map_zoom = get_post_meta( $post->ID, 'ase_map_component_zoom', true ); + $ase_map_start_point = get_post_meta( $post->ID, 'ase_map_component_start_point', true ); + $get_map_zoom = get_post_meta( $post->ID, 'ase_map_component_zoom', true ); - $ase_map_start_point = empty ( $ase_map_start_point ) ? array( 29.76, -95.38 ) : array( $ase_map_start_point['lat'], $ase_map_start_point['lng'] ); - $ase_map_zoom = empty ( $get_map_zoom ) ? 12 : $get_map_zoom; - - $ase_map_start_point = json_encode( $ase_map_start_point ); - $ase_map_locations = json_encode( $ase_map_locations ); + $ase_map_start_point = empty ( $ase_map_start_point ) ? array( 29.76, -95.38 ) : array( $ase_map_start_point['lat'], $ase_map_start_point['lng'] ); + $ase_map_zoom = empty ( $get_map_zoom ) ? 12 : $get_map_zoom; $tiles = aesop_map_tile_provider( $post->ID ); @@ -157,7 +154,7 @@ public function render_map_box( $post ) { jQuery(document).ready(function(){ - var start_point = ; + var start_point = ; var start_zoom = ; var map = L.map('aesop-map',{ @@ -175,12 +172,12 @@ public function render_map_box( $post ) { setMapCenter(lat,lng); }); - L.tileLayer('', { + L.tileLayer('', { maxZoom: 20 }).addTo(map); - var ase_map_locations = + var ase_map_locations = ase_map_locations.forEach(function(location) { @@ -411,7 +408,7 @@ public function upgrade_map_notice() { $out .= '

'; - echo $out; + echo wp_kses( $out ); } } @@ -490,7 +487,7 @@ public function upgrade_marker_meta() { $old_start_point = get_post_meta( $id, 'aesop_map_start', true ); if ( ! empty ( $old_start_point ) ) { - echo $old_start_point; + echo esc_html( $old_start_point ); $old_start_point = explode( ',', $old_start_point ); if ( count( $old_start_point ) == 2 ) { $translated = array(); @@ -534,7 +531,7 @@ public function upgrade_click_handle() { var data = { action: 'upgrade_marker_meta', - security: '' + security: }; jQuery.post(ajaxurl, data, function(response) { @@ -566,7 +563,7 @@ public function upgrade_mapboxid_notice() { $out .= '

'; - echo $out; + echo wp_kses( $out ); } } @@ -593,7 +590,7 @@ public function upgrade_mapbox_click_handle() { var data = { action: 'upgrade_mapbox', - security: '' + security: }; $.post(ajaxurl, data, function(response) { diff --git a/public/includes/components/component-cbox.php b/public/includes/components/component-cbox.php index 43a6fd56..aa76ada3 100644 --- a/public/includes/components/component-cbox.php +++ b/public/includes/components/component-cbox.php @@ -82,7 +82,7 @@ function aesop_content_shortcode( $atts, $content = null ) { do_action( 'aesop_cbox_before' ); // action ?> -
class="aesop-component aesop-content-component " style="" > +
class="aesop-component aesop-content-component " style="" > @@ -120,17 +120,17 @@ function scrollParallax(){ echo do_action( 'aesop_cbox_inside_top' ); // action ?> -
> +
> -
+
-
> +
> diff --git a/public/includes/components/component-character.php b/public/includes/components/component-character.php index 67021175..eb82e26f 100644 --- a/public/includes/components/component-character.php +++ b/public/includes/components/component-character.php @@ -47,7 +47,7 @@ function aesop_character_shortcode( $atts, $content = null ) {
-
> +
> diff --git a/public/includes/components/component-collections.php b/public/includes/components/component-collections.php index 73fe912c..885d6b31 100644 --- a/public/includes/components/component-collections.php +++ b/public/includes/components/component-collections.php @@ -44,7 +44,7 @@ function aesop_collection_shortcode( $atts ) {

-
+
+ ?>
-

name;?>

-
category_description;?>
+

name ); ?>

+
category_description ); ?>
@@ -121,7 +121,7 @@ function aesop_collection_shortcode( $atts ) {

Written by

-
+
diff --git a/public/includes/components/component-gallery.php b/public/includes/components/component-gallery.php index e9a70180..6eec933c 100644 --- a/public/includes/components/component-gallery.php +++ b/public/includes/components/component-gallery.php @@ -182,10 +182,10 @@ public function aesop_grid_gallery( $gallery_id, $image_ids, $width ) { foreach ( $image_ids as $image_id ): - $getimage = wp_get_attachment_image( $image_id, 'aesop-grid-image', false, array( 'class' => 'aesop-grid-image' ) ); - $getimagesrc = wp_get_attachment_image_src( $image_id, 'full' ); - $img_title = get_post( $image_id )->post_title; - $caption = get_post( $image_id )->post_excerpt; + $getimage = wp_get_attachment_image( $image_id, 'aesop-grid-image', false, array( 'class' => 'aesop-grid-image' ) ); + $getimagesrc = wp_get_attachment_image_src( $image_id, 'full' ); + $img_title = get_post( $image_id )->post_title; + $caption = get_post( $image_id )->post_excerpt; ?> @@ -194,7 +194,7 @@ public function aesop_grid_gallery( $gallery_id, $image_ids, $width ) { - + @@ -242,7 +242,7 @@ public function aesop_stacked_gallery( $image_ids, $unique ) { $caption = get_post( $image_id )->post_excerpt; ?> -
+
@@ -269,18 +269,18 @@ public function aesop_sequence_gallery( $image_ids ) { foreach ( $image_ids as $image_id ): $img = wp_get_attachment_image_src( $image_id, $size, false, '' ); - $alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true ); - $caption = get_post( $image_id )->post_excerpt; + $alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true ); + $caption = get_post( $image_id )->post_excerpt; - $lazy = class_exists( 'AesopLazyLoader' ) && ! is_user_logged_in() ? sprintf( 'src="%s" data-src="%s" class="aesop-sequence-img aesop-lazy-img"', $lazy_holder, esc_url( $img[0] ) ) : sprintf( 'src="%s" class="aesop-sequence-img" ', esc_url( $img[0] ) ); + $lazy = class_exists( 'AesopLazyLoader' ) && ! is_user_logged_in() ? sprintf( 'src="%s" data-src="%s" class="aesop-sequence-img aesop-lazy-img"', $lazy_holder, esc_url( $img[0] ) ) : sprintf( 'src="%s" class="aesop-sequence-img" ', esc_url( $img[0] ) ); ?>
- alt=""> + alt=""> -
+
@@ -358,7 +358,7 @@ public function aesop_photoset_gallery( $gallery_id, $image_ids, $width ) { $lb_link = $lightbox ? sprintf( 'data-highres="%s"', esc_url( $full[0] ) ) : null; - ?> data-caption="" title="" alt=""> data-caption="" title="" alt=""> -
class="aesop-article-chapter-wrap default-cover aesop-component " > +
class="aesop-article-chapter-wrap default-cover aesop-component " > -
> +
>

diff --git a/public/includes/components/component-image.php b/public/includes/components/component-image.php index 1da6983f..60067de5 100644 --- a/public/includes/components/component-image.php +++ b/public/includes/components/component-image.php @@ -51,21 +51,21 @@ function aesop_image_shortcode( $atts ) {
-
> +
> - +

- alt=""> + alt="">
- alt=""> + alt=""> -
class="aesop-component aesop-map-component " > +
class="aesop-component aesop-map-component " > , - center: [] + center: [] }); - L.tileLayer('', { + L.tileLayer('', { maxZoom: 20 }).addTo(map); @@ -150,19 +150,19 @@ public function aesop_map_loader() { foreach ( $markers as $marker ): $lat = $marker['lat']; - $long = $marker['lng']; - $text = $marker['title'] ? $marker['title'] : null; + $long = $marker['lng']; + $text = $marker['title'] ? $marker['title'] : null; - $loc = sprintf( '%s,%s', esc_attr( $lat ), esc_attr( $long ) ); + $loc = sprintf( '%s,%s', esc_attr( $lat ), esc_attr( $long ) ); // if market content is set run a popup if ( $text ) { ?> - L.marker([]).addTo(map).bindPopup('').openPopup(); + L.marker([]).addTo(map).bindPopup('').openPopup(); - L.marker([]).addTo(map); + L.marker([]).addTo(map); " href=""> - <?php echo esc_attr( $auto_alt );?> + <?php echo esc_attr( $auto_alt );?>
diff --git a/public/includes/components/component-quote.php b/public/includes/components/component-quote.php index 75eeacd3..63c076ae 100644 --- a/public/includes/components/component-quote.php +++ b/public/includes/components/component-quote.php @@ -82,7 +82,7 @@ function aesop_quote_shortcode( $atts ) { do_action( 'aesop_quote_before' ); // action ?> -
class="aesop-component aesop-quote-component " > +
class="aesop-component aesop-quote-component " > diff --git a/public/includes/components/component-video.php b/public/includes/components/component-video.php index d69efb99..742a96d1 100644 --- a/public/includes/components/component-video.php +++ b/public/includes/components/component-video.php @@ -86,7 +86,7 @@ function aesop_video_shortcode( $atts ) { -
> +
>
-