/includes/responsive-hooks.php

  1. <?php 
  2. /** 
  3. * Theme Action Hooks 
  4. * 
  5. * Theme Action Hooks that extend THA 
  6. * 
  7. * @package responsive_mobile 
  8. * @license license.txt 
  9. * @copyright 2014 CyberChimps Inc 
  10. * @since 0.0.1 
  11. * 
  12. * Please do not edit this file. This file is part of the responsive_mobile Framework and all modifications 
  13. * should be made in a child theme. 
  14. */ 
  15.  
  16. // If this file is called directly, abort. 
  17. if ( ! defined( 'WPINC' ) ) { 
  18. die; 
  19.  
  20. /** 
  21. * Just after opening <html> tag 
  22. * 
  23. * @see header.php 
  24. */ 
  25. function responsive_mobile_html_before() { 
  26. do_action( 'responsive_mobile_html_before' ); 
  27. tha_html_before(); 
  28.  
  29. /** 
  30. * Just after opening <body> tag 
  31. * 
  32. * @see header.php 
  33. */ 
  34. function responsive_mobile_body_top() { 
  35. do_action( 'responsive_mobile_body_top' ); 
  36. tha_body_top(); 
  37.  
  38. /** 
  39. * Just after closing </body> 
  40. * 
  41. * @see footer.php 
  42. */ 
  43. function responsive_mobile_body_bottom() { 
  44. do_action( 'responsive_mobile_container' ); 
  45. do_action( 'responsive_mobile_body_bottom' ); 
  46. tha_body_bottom(); 
  47.  
  48. /** 
  49. * Just after opening <div id="container"> tag 
  50. * 
  51. * @see header.php 
  52. */ 
  53. function responsive_mobile_container_top() { 
  54. do_action( 'responsive_mobile_container_top' ); 
  55.  
  56. /** 
  57. * Just after closing </div><!-- end of #container --> 
  58. * 
  59. * @see footer.php 
  60. */ 
  61. function responsive_mobile_container_bottom() { 
  62. do_action( 'responsive_mobile_container_end' ); 
  63. do_action( 'responsive_mobile_container_bottom' ); 
  64. tha_footer_before(); 
  65.  
  66. /** 
  67. * Just after opening <head> 
  68. * 
  69. * @see header.php 
  70. */ 
  71. function responsive_mobile_head_top() { 
  72. do_action( 'responsive_mobile_head_top' ); 
  73. tha_head_bottom(); 
  74.  
  75. /** 
  76. * Just after closing </head> 
  77. * 
  78. * @see header.php 
  79. */ 
  80. function responsive_mobile_head_bottom() { 
  81. do_action( 'responsive_mobile_head_bottom' ); 
  82. tha_head_bottom(); 
  83.  
  84. /** 
  85. * Just after opening <div id="container"> 
  86. * 
  87. * @see header.php 
  88. */ 
  89. function responsive_mobile_header_before() { 
  90. do_action( 'responsive_mobile_header_before' ); 
  91. tha_header_before(); 
  92.  
  93. /** 
  94. * Just after opening <div id="header"> 
  95. * 
  96. * @see header.php 
  97. */ 
  98. function responsive_mobile_header_top() { 
  99. do_action( 'responsive_mobile_header_top' ); 
  100. tha_header_top(); 
  101.  
  102. /** 
  103. * Creates a hook for the first header content just after <div id="site-branding"> 
  104. */ 
  105. function responsive_mobile_header_one() { 
  106. do_action( 'responsive_mobile_header_one' ); 
  107.  
  108. /** 
  109. * Creates a hook for the second header content just after 
  110. */ 
  111. function responsive_mobile_header_two() { 
  112. do_action( 'responsive_mobile_header_two' ); 
  113.  
  114. /** 
  115. * Just after closing </div><!-- end of #header --> 
  116. * 
  117. * @see header.php 
  118. */ 
  119. function responsive_mobile_header_bottom() { 
  120. do_action( 'responsive_mobile_header_bottom' ); 
  121. tha_header_bottom(); 
  122.  
  123. /** 
  124. * Just after closing </div><!-- end of #header --> 
  125. * 
  126. * @see header.php 
  127. */ 
  128. function responsive_mobile_header_end() { 
  129. do_action( 'responsive_mobile_header_end' ); 
  130. tha_header_after(); 
  131.  
  132. /** 
  133. * Just before opening <div id="wrapper"> 
  134. * 
  135. * @see header.php 
  136. */ 
  137. function responsive_mobile_wrapper() { 
  138. do_action( 'responsive_mobile_wrapper' ); 
  139. tha_content_before(); 
  140.  
  141. /** 
  142. * Just after opening <div id="wrapper"> 
  143. * 
  144. * @see header.php 
  145. */ 
  146. function responsive_mobile_wrapper_top() { 
  147. do_action( 'responsive_mobile_wrapper_top' ); 
  148. tha_content_top(); 
  149.  
  150. /** 
  151. * Just after opening <div id="wrapper"> 
  152. * 
  153. * @see header.php 
  154. */ 
  155. function responsive_mobile_in_wrapper() { 
  156. do_action( 'responsive_mobile_in_wrapper' ); 
  157.  
  158. /** 
  159. * Just before closing </div><!-- end of #wrapper --> 
  160. * 
  161. * @see header.php 
  162. */ 
  163. function responsive_mobile_wrapper_bottom() { 
  164. do_action( 'responsive_mobile_wrapper_bottom' ); 
  165. tha_content_bottom(); 
  166.  
  167. /** 
  168. * Just after closing </div><!-- end of #wrapper --> 
  169. * 
  170. * @see header.php 
  171. */ 
  172. function responsive_mobile_wrapper_end() { 
  173. do_action( 'responsive_mobile_wrapper_end' ); 
  174. tha_content_after(); 
  175.  
  176. /** Just before <div id="post"> 
  177. * 
  178. * @see index.php 
  179. */ 
  180. function responsive_mobile_entry_before() { 
  181. do_action( 'responsive_mobile_entry_before' ); 
  182. tha_entry_before(); 
  183.  
  184. /** Just after <div id="post"> 
  185. * 
  186. * @see index.php 
  187. */ 
  188. function responsive_mobile_entry_top() { 
  189. do_action( 'responsive_mobile_entry_top' ); 
  190. tha_entry_top(); 
  191.  
  192. /** Just before </div> <!-- end of div#post --> 
  193. * 
  194. * @see index.php 
  195. */ 
  196. function responsive_mobile_entry_bottom() { 
  197. do_action( 'responsive_mobile_entry_bottom' ); 
  198. tha_entry_bottom(); 
  199.  
  200. /** Just after </div> <!-- end of div#post --> 
  201. * 
  202. * @see index.php 
  203. */ 
  204. function responsive_mobile_entry_after() { 
  205. do_action( 'responsive_mobile_entry_after' ); 
  206. tha_entry_after(); 
  207.  
  208. /** Just before comments_template() 
  209. * 
  210. * @see index.php 
  211. */ 
  212. function responsive_mobile_comments_before() { 
  213. do_action( 'responsive_mobile_comments_before' ); 
  214. tha_comments_before(); 
  215.  
  216. /** Just after comments_template() 
  217. * 
  218. * @see index.php 
  219. */ 
  220. function responsive_mobile_comments_after() { 
  221. do_action( 'responsive_mobile_comments_after' ); 
  222. tha_comments_after(); 
  223.  
  224. /** 
  225. * Just before opening <div id="widgets"> 
  226. * 
  227. * @see sidebar.php 
  228. */ 
  229. function responsive_mobile_widgets_before() { 
  230. do_action( 'responsive_mobile_widgets_before' ); 
  231. tha_sidebars_before(); 
  232.  
  233. /** 
  234. * Just after opening <div id="widgets"> 
  235. * 
  236. * @see sidebar.php 
  237. */ 
  238. function responsive_mobile_widgets() { 
  239. do_action( 'responsive_mobile_widgets' ); 
  240. tha_sidebar_top(); 
  241.  
  242. /** 
  243. * Just before closing </div><!-- end of #widgets --> 
  244. * 
  245. * @see sidebar.php 
  246. */ 
  247. function responsive_mobile_widgets_end() { 
  248. do_action( 'responsive_mobile_widgets_end' ); 
  249. tha_sidebar_bottom(); 
  250.  
  251. /** 
  252. * Just after closing </div><!-- end of #widgets --> 
  253. * 
  254. * @see sidebar.php 
  255. */ 
  256. function responsive_mobile_widgets_after() { 
  257. do_action( 'responsive_mobile_widgets_after' ); 
  258. tha_sidebars_after(); 
  259.  
  260. /** 
  261. * Just after opening <div id="footer"> 
  262. * 
  263. * @see footer.php 
  264. */ 
  265. function responsive_mobile_footer_top() { 
  266. do_action( 'responsive_mobile_footer_top' ); 
  267. tha_footer_top(); 
  268.  
  269. /** 
  270. * Just before closing </div><!-- end of #footer --> 
  271. * 
  272. * @see footer.php 
  273. */ 
  274. function responsive_mobile_footer_bottom() { 
  275. do_action( 'responsive_mobile_footer_bottom' ); 
  276. tha_footer_bottom(); 
  277.  
  278. /** 
  279. * Just after closing </div><!-- end of #footer --> 
  280. * 
  281. * @see footer.php 
  282. */ 
  283. function responsive_mobile_footer_after() { 
  284. do_action( 'responsive_mobile_footer_after' ); 
  285. tha_footer_after(); 
  286.  
  287. /** 
  288. * Theme Options 
  289. * 
  290. * @see theme-options.php 
  291. */ 
  292. function responsive_mobile_theme_options() { 
  293. do_action( 'responsive_mobile_theme_options' ); 
.