Changeset 1612158
- Timestamp:
- 03/10/2017 08:23:43 PM (9 years ago)
- Location:
- thrivehive/trunk
- Files:
-
- 4 edited
-
controllers/snippets.php (modified) (1 diff)
-
lib/snippet_display.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
thrivehive.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
thrivehive/trunk/controllers/snippets.php
r1580543 r1612158 167 167 break; 168 168 case "th_youtube": 169 $html = th_display_youtube($atts );169 $html = th_display_youtube($atts, false); 170 170 break; 171 171 case "th_pdf": -
thrivehive/trunk/lib/snippet_display.php
r1580634 r1612158 172 172 } 173 173 174 function th_display_youtube($atts){ 175 wp_print_scripts('thrivehive-youtube'); 176 wp_print_scripts('thrivehive-youtube-iframes'); 177 wp_print_scripts('youtube-api'); 174 function th_display_youtube($atts, $printScripts=true){ 175 if ($printScripts) { 176 wp_print_scripts('thrivehive-youtube'); 177 wp_print_scripts('thrivehive-youtube-iframes'); 178 wp_print_scripts('youtube-api'); 179 } 178 180 179 181 if(isset($atts['id'])){ -
thrivehive/trunk/readme.txt
r1580543 r1612158 35 35 36 36 == Changelog == 37 * V 1.129 Modifying Youtube shortcode to selectively load scripts depending on website editor version 37 38 * V 1.128 Extracting shortcode rendering logic and adding an endpoint to utilize it 38 39 * V 1.127 Adding set meta value capability for posts -
thrivehive/trunk/thrivehive.php
r1580650 r1612158 5 5 *Plugin URI: http://thrivehive.com 6 6 *Description: A plugin to include ThriveHive's tracking code 7 *Version: 1.12 8.27 *Version: 1.129 8 8 *Author: ThriveHive 9 9 *Author URI: http://thrivehive.com … … 30 30 thrivehive_create_forms_db($update); 31 31 thrivehive_create_snippets_db($update); 32 32 33 33 }} 34 34 … … 592 592 function suppress_title( $title, $id = null ) { 593 593 594 $meta = get_post_meta($id, "th_show_title", true); 594 $meta = get_post_meta($id, "th_show_title", true); 595 595 if($meta == "hide"){ 596 return ""; 596 return ""; 597 597 } 598 598 else{ … … 1476 1476 1477 1477 if(filter_var($use_fontawesome, FILTER_VALIDATE_BOOLEAN)){ 1478 $this->render_fontawesome_icons($facebook, $twitter, $linkedin, $yelp, $googleplus, 1478 $this->render_fontawesome_icons($facebook, $twitter, $linkedin, $yelp, $googleplus, 1479 1479 $instagram,$youtube, $houzz, $angieslist, $pinterest, 1480 1480 $foursquare, $tripadvisor); … … 1582 1582 } 1583 1583 1584 public function render_fontawesome_icons($facebook, $twitter, $linkedin, $yelp, $googleplus, 1584 public function render_fontawesome_icons($facebook, $twitter, $linkedin, $yelp, $googleplus, 1585 1585 $instagram,$youtube, $houzz, $angieslist, $pinterest, 1586 1586 $foursquare, $tripadvisor){ … … 1604 1604 } 1605 1605 } 1606 if($yelp){ 1606 if($yelp){ 1607 1607 if (strpos($yelp, 'http') === 0) { 1608 1608 echo "<a target='_blank' href='$yelp' style='margin-left: 10px' title='Yelp'><i class='fa th-social-icon fa-yelp'></i></a>";
Note: See TracChangeset
for help on using the changeset viewer.