Changeset 1591181
- Timestamp:
- 02/07/2017 04:39:15 PM (9 years ago)
- Location:
- scale-lite-tools/trunk/inc
- Files:
-
- 2 edited
-
sl-google-maps/render-cpt.php (modified) (1 diff)
-
sl-html-block/cpt.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
scale-lite-tools/trunk/inc/sl-google-maps/render-cpt.php
r1589302 r1591181 93 93 94 94 function scale_lite_google_maps_shortcode($atts = array(), $content = null, $tag = ''){ 95 // normalize attribute keys, lowercase 96 $sl_attrs = array_change_key_case((array)$atts, CASE_LOWER); 97 if(!array_key_exists("post-id",$sl_attrs) || $sl_attrs['post-id'] == null) { 98 return; 99 } 100 95 101 // output buffer start 96 102 ob_start(); 97 98 // normalize attribute keys, lowercase99 $sl_attrs = array_change_key_case((array)$atts, CASE_LOWER);100 if ($sl_attrs['post-id'] == null) {101 return ;102 }103 103 104 104 $args = array( -
scale-lite-tools/trunk/inc/sl-html-block/cpt.php
r1589302 r1591181 100 100 */ 101 101 function scale_lite_html_block_shortcode($atts = array(), $content = null, $tag = ''){ 102 // output buffer start103 ob_start();104 102 // normalize attribute keys, lowercase 105 103 $sl_attrs = array_change_key_case((array)$atts, CASE_LOWER); 104 if(!array_key_exists("post-id",$sl_attrs) || $sl_attrs['post-id'] == null) { 105 return; 106 } 106 107 if(!array_key_exists("class",$sl_attrs)) { 107 108 $sl_attrs['class']=''; 108 109 } 109 if ($sl_attrs['post-id'] == null) { 110 return ;111 }110 111 // output buffer start 112 ob_start(); 112 113 113 114 $args = array(
Note: See TracChangeset
for help on using the changeset viewer.