themeeewee_shortcode_addthis_function

The Eewee responsive design themeeewee shortcode addthis function function.

Description

themeeewee_shortcode_addthis_function( $atts, (constant) $content = null ); 

Parameters (2)

0. $atts
The atts.
1. $content — Optional. (constant) => null
The content.

Usage

  1. if ( !function_exists( 'themeeewee_shortcode_addthis_function' ) ) { 
  2. require_once '/includes/shortcodes/addthis/addthis.php'; 
  3.  
  4. // The atts. 
  5. $atts = null; 
  6.  
  7. // The content. 
  8. $content = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = themeeewee_shortcode_addthis_function($atts, $content); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/shortcodes/addthis/addthis.php  
  1. function themeeewee_shortcode_addthis_function($atts, $content = null) { 
  2.  
  3. extract(shortcode_atts(array( 
  4. 'type' => '',  
  5. 'position' => 'here',  
  6. 'pubid' => '' 
  7. ), $atts)); 
  8.  
  9. switch( $type ) { 
  10. case "horiz1" : 
  11. $d = ' 
  12. <div class="addthis_toolbox addthis_default_style "> 
  13. <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> 
  14. <a class="addthis_button_tweet"></a> 
  15. <a class="addthis_button_pinterest_pinit"></a> 
  16. <a class="addthis_counter addthis_pill_style"></a> 
  17. </div> 
  18. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> 
  19. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid='.idAddthis.'"></script> 
  20. '; 
  21. break; 
  22.  
  23. case "horiz2" : 
  24. $d = ' 
  25. <div class="addthis_toolbox addthis_default_style addthis_32x32_style"> 
  26. <a class="addthis_button_preferred_1"></a> 
  27. <a class="addthis_button_preferred_2"></a> 
  28. <a class="addthis_button_preferred_3"></a> 
  29. <a class="addthis_button_preferred_4"></a> 
  30. <a class="addthis_button_compact"></a> 
  31. <a class="addthis_counter addthis_bubble_style"></a> 
  32. </div> 
  33. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> 
  34. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid='.idAddthis.'"></script> 
  35. '; 
  36. break; 
  37.  
  38. case "horiz3" : 
  39. $d = ' 
  40. <div class="addthis_toolbox addthis_default_style "> 
  41. <a class="addthis_button_preferred_1"></a> 
  42. <a class="addthis_button_preferred_2"></a> 
  43. <a class="addthis_button_preferred_3"></a> 
  44. <a class="addthis_button_preferred_4"></a> 
  45. <a class="addthis_button_compact"></a> 
  46. <a class="addthis_counter addthis_bubble_style"></a> 
  47. </div> 
  48. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> 
  49. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid='.idAddthis.'"></script> 
  50. '; 
  51. break; 
  52.  
  53. case "vert1" : 
  54. $d = ' 
  55. <div class="addthis_toolbox addthis_floating_style addthis_counter_style" style="left:50px;top:50px;"> 
  56. <a class="addthis_button_facebook_like" fb:like:layout="box_count"></a> 
  57. <a class="addthis_button_tweet" tw:count="vertical"></a> 
  58. <a class="addthis_button_google_plusone" g:plusone:size="tall"></a> 
  59. <a class="addthis_counter"></a> 
  60. </div> 
  61. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> 
  62. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid='.idAddthis.'"></script> 
  63. '; 
  64. break; 
  65.  
  66. case "vert2" : 
  67. $d = ' 
  68. <div class="addthis_toolbox addthis_floating_style addthis_32x32_style" style="left:50px;top:50px;"> 
  69. <a class="addthis_button_preferred_1"></a> 
  70. <a class="addthis_button_preferred_2"></a> 
  71. <a class="addthis_button_preferred_3"></a> 
  72. <a class="addthis_button_preferred_4"></a> 
  73. <a class="addthis_button_compact"></a> 
  74. </div> 
  75. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> 
  76. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid='.idAddthis.'"></script> 
  77. '; 
  78. break; 
  79.  
  80. case "vert3" : 
  81. $d = ' 
  82. <div class="addthis_toolbox addthis_floating_style addthis_16x16_style" style="left:50px;top:50px;"> 
  83. <a class="addthis_button_preferred_1"></a> 
  84. <a class="addthis_button_preferred_2"></a> 
  85. <a class="addthis_button_preferred_3"></a> 
  86. <a class="addthis_button_preferred_4"></a> 
  87. <a class="addthis_button_compact"></a> 
  88. </div> 
  89. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> 
  90. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid='.idAddthis.'"></script> 
  91. '; 
  92. break; 
  93.  
  94. case "horizf1" : 
  95. $d = ' 
  96. <p>Follow Us</p> 
  97. <div class="addthis_toolbox addthis_32x32_style addthis_default_style"> 
  98. <a class="addthis_button_facebook_follow" addthis:userid="YOUR-PROFILE"></a> 
  99. <a class="addthis_button_twitter_follow" addthis:userid="YOUR-USERNAME"></a> 
  100. <a class="addthis_button_linkedin_follow" addthis:userid="xxx"></a> 
  101. <a class="addthis_button_google_follow" addthis:userid="xxx"></a> 
  102. <a class="addthis_button_youtube_follow" addthis:userid="xxx"></a> 
  103. <a class="addthis_button_flickr_follow" addthis:userid="xxx"></a> 
  104. <a class="addthis_button_vimeo_follow" addthis:userid="xxx"></a> 
  105. <a class="addthis_button_pinterest_follow" addthis:userid="xxx"></a> 
  106. <a class="addthis_button_instagram_follow" addthis:userid="xxx"></a> 
  107. <a class="addthis_button_foursquare_follow" addthis:userid="xxx"></a> 
  108. <a class="addthis_button_tumblr_follow" addthis:userid="xxx"></a> 
  109. <a class="addthis_button_rss_follow" addthis:url="http://xxx"></a> 
  110. </div> 
  111. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=dumontetmichael"></script> 
  112. '; 
  113. break; 
  114.  
  115. case "horizf2" : 
  116. $d = ' 
  117. <p>Follow Us</p> 
  118. <div class="addthis_toolbox addthis_default_style"> 
  119. <a class="addthis_button_facebook_follow" addthis:userid="YOUR-PROFILE"></a> 
  120. <a class="addthis_button_twitter_follow" addthis:userid="YOUR-USERNAME"></a> 
  121. <a class="addthis_button_linkedin_follow" addthis:userid="xxx"></a> 
  122. <a class="addthis_button_google_follow" addthis:userid="xxx"></a> 
  123. <a class="addthis_button_youtube_follow" addthis:userid="xxx"></a> 
  124. <a class="addthis_button_flickr_follow" addthis:userid="xxx"></a> 
  125. <a class="addthis_button_vimeo_follow" addthis:userid="xxx"></a> 
  126. <a class="addthis_button_pinterest_follow" addthis:userid="xxx"></a> 
  127. <a class="addthis_button_instagram_follow" addthis:userid="xxx"></a> 
  128. <a class="addthis_button_foursquare_follow" addthis:userid="xxx"></a> 
  129. <a class="addthis_button_tumblr_follow" addthis:userid="xxx"></a> 
  130. <a class="addthis_button_rss_follow" addthis:url="http://xxx"></a> 
  131. </div> 
  132. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=dumontetmichael"></script> 
  133. '; 
  134. break; 
  135.  
  136. case "vertf1" : 
  137. $d = ' 
  138. <p>Follow Us</p> 
  139. <div class="addthis_toolbox addthis_32x32_style addthis_vertical_style"> 
  140. <a class="addthis_button_facebook_follow" addthis:userid="YOUR-PROFILE"></a> 
  141. <a class="addthis_button_twitter_follow" addthis:userid="YOUR-USERNAME"></a> 
  142. <a class="addthis_button_linkedin_follow" addthis:userid="xxx"></a> 
  143. <a class="addthis_button_google_follow" addthis:userid="xxx"></a> 
  144. <a class="addthis_button_youtube_follow" addthis:userid="xxx"></a> 
  145. <a class="addthis_button_flickr_follow" addthis:userid="xxx"></a> 
  146. <a class="addthis_button_vimeo_follow" addthis:userid="xxx"></a> 
  147. <a class="addthis_button_pinterest_follow" addthis:userid="xxx"></a> 
  148. <a class="addthis_button_instagram_follow" addthis:userid="xxx"></a> 
  149. <a class="addthis_button_foursquare_follow" addthis:userid="xxx"></a> 
  150. <a class="addthis_button_tumblr_follow" addthis:userid="xxx"></a> 
  151. <a class="addthis_button_rss_follow" addthis:url="http://xxx"></a> 
  152. </div> 
  153. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=dumontetmichael"></script> 
  154. '; 
  155. break; 
  156.  
  157. case "vertf2" : 
  158. $d = ' 
  159. <p>Follow Us</p> 
  160. <div class="addthis_toolbox addthis_vertical_style"> 
  161. <a class="addthis_button_facebook_follow" addthis:userid="YOUR-PROFILE"></a> 
  162. <a class="addthis_button_twitter_follow" addthis:userid="YOUR-USERNAME"></a> 
  163. <a class="addthis_button_linkedin_follow" addthis:userid="xxx"></a> 
  164. <a class="addthis_button_google_follow" addthis:userid="xxx"></a> 
  165. <a class="addthis_button_youtube_follow" addthis:userid="xxx"></a> 
  166. <a class="addthis_button_flickr_follow" addthis:userid="xxx"></a> 
  167. <a class="addthis_button_vimeo_follow" addthis:userid="xxx"></a> 
  168. <a class="addthis_button_pinterest_follow" addthis:userid="xxx"></a> 
  169. <a class="addthis_button_instagram_follow" addthis:userid="xxx"></a> 
  170. <a class="addthis_button_foursquare_follow" addthis:userid="xxx"></a> 
  171. <a class="addthis_button_tumblr_follow" addthis:userid="xxx"></a> 
  172. <a class="addthis_button_rss_follow" addthis:url="http://xxx"></a> 
  173. </div> 
  174. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=dumontetmichael"></script> 
  175. '; 
  176. break; 
  177.  
  178. // all 
  179. default :  
  180. $d = ' 
  181. <a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=300&pubid=dumontetmichael"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a> 
  182. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> 
  183. <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid='.idAddthis.'"></script> 
  184. '; 
  185.  
  186. if( $position == "header" ) { 
  187. if( !function_exists(themeeewee_shortcode_addthis_header) ) { 
  188. function themeeewee_shortcode_addthis_header() { 
  189. return "<div class='shortcode_addthis'>xxx".$d."</div>"; 
  190. add_action('wp_head', 'themeeewee_shortcode_addthis_header'); 
  191. }elseif( $position == "footer" ) { 
  192.  
  193. }elseif( $position == "top_post" ) { 
  194.  
  195. }elseif( $position == "bottom_post" ) { 
  196.  
  197. }else{ 
  198. return "<div class='shortcode_addthis'>".$d."</div>";