PageRenderTime 22ms CodeModel.GetById 21ms app.highlight 0ms RepoModel.GetById 0ms app.codeStats 0ms

/Web/wp-content/themes/responsive/includes/hooks.php

https://bitbucket.org/jimjenkins5/blog
PHP | 142 lines | 48 code | 18 blank | 76 comment | 1 complexity | a9287b3a79055a40182e58b71b51740f MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1<?php
  2
  3// Exit if accessed directly
  4if ( !defined('ABSPATH')) exit;
  5
  6/**
  7 * Theme's Action Hooks
  8 *
  9 *
 10 * @file           hooks.php
 11 * @package        WordPress 
 12 * @subpackage     responsive 
 13 * @author         Emil Uzelac 
 14 * @copyright      2003 - 2011 ThemeID
 15 * @license        license.txt
 16 * @version        Release: 1.0
 17 * @filesource     wp-content/themes/responsive/includes/hooks.php
 18 * @link           http://codex.wordpress.org/Plugin_API/Hooks
 19 * @since          available since Release 1.1
 20 */
 21?>
 22<?php
 23
 24/**
 25 * Just after opening <body> tag
 26 *
 27 * @see header.php
 28 */
 29function responsive_container() {
 30    do_action('responsive_container');
 31}
 32
 33/**
 34 * Just after closing </div><!-- end of #container -->
 35 *
 36 * @see footer.php
 37 */
 38function responsive_container_end() {
 39    do_action('responsive_container_end');
 40}
 41
 42/**
 43 * Just after opening <div id="container">
 44 *
 45 * @see header.php
 46 */
 47function responsive_header() {
 48    do_action('responsive_header');
 49}
 50
 51/**
 52 * Just after opening <div id="header">
 53 *
 54 * @see header.php
 55 */
 56function responsive_in_header() {
 57    do_action('responsive_in_header');
 58}
 59
 60/**
 61 * Just after closing </div><!-- end of #header -->
 62 *
 63 * @see header.php
 64 */
 65function responsive_header_end() {
 66    do_action('responsive_header_end');
 67}
 68
 69/**
 70 * Just before opening <div id="wrapper">
 71 *
 72 * @see header.php
 73 */
 74function responsive_wrapper() {
 75    do_action('responsive_wrapper');
 76}
 77
 78/**
 79 * Just after opening <div id="wrapper">
 80 *
 81 * @see header.php
 82 */
 83function responsive_in_wrapper() {
 84    do_action('responsive_in_wrapper');
 85}
 86
 87/**
 88 * Just after closing </div><!-- end of #wrapper -->
 89 *
 90 * @see header.php
 91 */
 92function responsive_wrapper_end() {
 93    do_action('responsive_wrapper_end');
 94}
 95
 96/**
 97 * Just before opening <div id="widgets">
 98 *
 99 * @see sidebar.php
100 */
101function responsive_widgets() {
102    do_action('responsive_widgets');
103}
104
105/**
106 * Just after closing </div><!-- end of #widgets -->
107 *
108 * @see sidebar.php
109 */
110function responsive_widgets_end() {
111    do_action('responsive_widgets_end');
112}
113
114/**
115 * Theme Options
116 *
117 * @see theme-options.php
118 */
119function responsive_theme_options() {
120    do_action('responsive_theme_options');
121}
122
123/**
124 * WooCommerce
125 *
126 * Unhook/Hook the WooCommerce Wrappers
127 */
128remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
129remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
130
131add_action('woocommerce_before_main_content', 'responsive_woocommerce_wrapper', 10);
132add_action('woocommerce_after_main_content', 'responsive_woocommerce_wrapper_end', 10);
133 
134function responsive_woocommerce_wrapper() {
135  echo '<div id="content-woocommerce" class="grid col-620">';
136}
137 
138function responsive_woocommerce_wrapper_end() {
139  echo '</div><!-- end of #content-woocommerce -->';
140}
141
142?>