Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../wp-conte.../plugins/themify-.../themify
File: themify-hooks.php
<?php
[0] Fix | Delete
/***************************************************************************
[1] Fix | Delete
*
[2] Fix | Delete
* ----------------------------------------------------------------------
[3] Fix | Delete
* DO NOT EDIT THIS FILE
[4] Fix | Delete
* ----------------------------------------------------------------------
[5] Fix | Delete
*
[6] Fix | Delete
* Copyright (C) Themify
[7] Fix | Delete
*
[8] Fix | Delete
* ----------------------------------------------------------------------
[9] Fix | Delete
*
[10] Fix | Delete
*
[11] Fix | Delete
* Layout Hooks:
[12] Fix | Delete
*
[13] Fix | Delete
* themify_body_start
[14] Fix | Delete
*
[15] Fix | Delete
* themify_header_before
[16] Fix | Delete
* themify_header_start
[17] Fix | Delete
* themify_header_end
[18] Fix | Delete
* themify_header_after
[19] Fix | Delete
*
[20] Fix | Delete
* themify_layout_before
[21] Fix | Delete
*
[22] Fix | Delete
* themify_content_before
[23] Fix | Delete
* themify_content_start
[24] Fix | Delete
*
[25] Fix | Delete
* themify_post_before
[26] Fix | Delete
* themify_post_start
[27] Fix | Delete
* themify_post_end
[28] Fix | Delete
* themify_post_after
[29] Fix | Delete
*
[30] Fix | Delete
* themify_comment_before
[31] Fix | Delete
* themify_comment_start
[32] Fix | Delete
* themify_comment_end
[33] Fix | Delete
* themify_comment_after
[34] Fix | Delete
*
[35] Fix | Delete
* themify_content_end
[36] Fix | Delete
* themify_content_after
[37] Fix | Delete
*
[38] Fix | Delete
* themify_sidebar_before
[39] Fix | Delete
* themify_sidebar_start
[40] Fix | Delete
* themify_sidebar_end
[41] Fix | Delete
* themify_sidebar_after
[42] Fix | Delete
*
[43] Fix | Delete
* themify_layout_after
[44] Fix | Delete
*
[45] Fix | Delete
* themify_footer_before
[46] Fix | Delete
* themify_footer_start
[47] Fix | Delete
* themify_footer_end
[48] Fix | Delete
* themify_footer_after
[49] Fix | Delete
*
[50] Fix | Delete
* themify_body_end
[51] Fix | Delete
*
[52] Fix | Delete
* Theme Feature Hooks:
[53] Fix | Delete
*
[54] Fix | Delete
* welcome_before
[55] Fix | Delete
* welcome_start
[56] Fix | Delete
* welcome_end
[57] Fix | Delete
* welcome_after
[58] Fix | Delete
*
[59] Fix | Delete
* slider_before
[60] Fix | Delete
* slider_start
[61] Fix | Delete
* slider_end
[62] Fix | Delete
* slider_after
[63] Fix | Delete
*
[64] Fix | Delete
* footer_slider_before
[65] Fix | Delete
* footer_slider_start
[66] Fix | Delete
* footer_slider_end
[67] Fix | Delete
* footer_slider_after
[68] Fix | Delete
*
[69] Fix | Delete
* themify_product_slider_add_to_cart_before
[70] Fix | Delete
* themify_product_slider_add_to_cart_after
[71] Fix | Delete
*
[72] Fix | Delete
*
[73] Fix | Delete
*
[74] Fix | Delete
*
[75] Fix | Delete
*
[76] Fix | Delete
***************************************************************************/
[77] Fix | Delete
[78] Fix | Delete
defined( 'ABSPATH' ) || exit;
[79] Fix | Delete
[80] Fix | Delete
/**
[81] Fix | Delete
* Layout Hooks
[82] Fix | Delete
*/
[83] Fix | Delete
[84] Fix | Delete
function themify_body_start() {
[85] Fix | Delete
do_action( 'themify_body_start' );
[86] Fix | Delete
[87] Fix | Delete
/* WP 5.2+ */
[88] Fix | Delete
if ( function_exists( 'wp_body_open' ) ) {
[89] Fix | Delete
wp_body_open();
[90] Fix | Delete
}
[91] Fix | Delete
}
[92] Fix | Delete
[93] Fix | Delete
function themify_header_before() { do_action( 'themify_header_before' );}
[94] Fix | Delete
function themify_header_start() { do_action( 'themify_header_start' );}
[95] Fix | Delete
function themify_header_end() { do_action( 'themify_header_end' );}
[96] Fix | Delete
function themify_header_after(){ do_action( 'themify_header_after' );}
[97] Fix | Delete
[98] Fix | Delete
function themify_layout_before() { do_action( 'themify_layout_before' );}
[99] Fix | Delete
[100] Fix | Delete
function themify_content_before (){ do_action( 'themify_content_before' );}
[101] Fix | Delete
function themify_content_start(){ do_action( 'themify_content_start' );}
[102] Fix | Delete
[103] Fix | Delete
function themify_post_before() {
[104] Fix | Delete
$posfix = ! empty( $GLOBALS['themify']->post_module_hook ) ? '_module' : '';
[105] Fix | Delete
do_action( 'themify_post_before' . $posfix );
[106] Fix | Delete
}
[107] Fix | Delete
function themify_post_start() {
[108] Fix | Delete
$posfix = ! empty( $GLOBALS['themify']->post_module_hook ) ? '_module' : '';
[109] Fix | Delete
do_action( 'themify_post_start' . $posfix );
[110] Fix | Delete
}
[111] Fix | Delete
function themify_before_post_image() {
[112] Fix | Delete
$posfix = ! empty( $GLOBALS['themify']->post_module_hook ) ? '_module' : '';
[113] Fix | Delete
do_action( 'themify_before_post_image' . $posfix );
[114] Fix | Delete
}
[115] Fix | Delete
function themify_after_post_image() {
[116] Fix | Delete
$posfix = ! empty( $GLOBALS['themify']->post_module_hook ) ? '_module' : '';
[117] Fix | Delete
do_action( 'themify_after_post_image' . $posfix );
[118] Fix | Delete
}
[119] Fix | Delete
function themify_before_post_title() {
[120] Fix | Delete
$posfix = ! empty( $GLOBALS['themify']->post_module_hook ) ? '_module' : '';
[121] Fix | Delete
do_action( 'themify_before_post_title' . $posfix );
[122] Fix | Delete
}
[123] Fix | Delete
function themify_after_post_title() {
[124] Fix | Delete
$posfix = ! empty( $GLOBALS['themify']->post_module_hook ) ? '_module' : '';
[125] Fix | Delete
do_action( 'themify_after_post_title' . $posfix );
[126] Fix | Delete
}
[127] Fix | Delete
function themify_before_post_content(){
[128] Fix | Delete
$posfix = ! empty( $GLOBALS['themify']->post_module_hook ) ? '_module' : '';
[129] Fix | Delete
do_action( 'themify_before_post_content' . $posfix );
[130] Fix | Delete
}
[131] Fix | Delete
function themify_after_post_content() {
[132] Fix | Delete
$posfix = ! empty( $GLOBALS['themify']->post_module_hook ) ? '_module' : '';
[133] Fix | Delete
do_action( 'themify_after_post_content' . $posfix );
[134] Fix | Delete
}
[135] Fix | Delete
function themify_post_end() {
[136] Fix | Delete
$posfix = ! empty( $GLOBALS['themify']->post_module_hook ) ? '_module' : '';
[137] Fix | Delete
do_action( 'themify_post_end' . $posfix );
[138] Fix | Delete
}
[139] Fix | Delete
function themify_post_after() {
[140] Fix | Delete
$posfix = ! empty( $GLOBALS['themify']->post_module_hook ) ? '_module' : '';
[141] Fix | Delete
do_action( 'themify_post_after' . $posfix );
[142] Fix | Delete
}
[143] Fix | Delete
[144] Fix | Delete
function themify_comment_before() { do_action( 'themify_comment_before' );}
[145] Fix | Delete
function themify_comment_start() { do_action( 'themify_comment_start' );}
[146] Fix | Delete
function themify_comment_end() { do_action( 'themify_comment_end' );}
[147] Fix | Delete
function themify_comment_after() { do_action( 'themify_comment_after' );}
[148] Fix | Delete
[149] Fix | Delete
function themify_content_end() { do_action( 'themify_content_end' );}
[150] Fix | Delete
function themify_content_after() { do_action( 'themify_content_after' );}
[151] Fix | Delete
[152] Fix | Delete
function themify_sidebar_before(){ do_action( 'themify_sidebar_before' );}
[153] Fix | Delete
function themify_sidebar_start (){ do_action( 'themify_sidebar_start' );}
[154] Fix | Delete
function themify_sidebar_end(){ do_action( 'themify_sidebar_end' );}
[155] Fix | Delete
function themify_sidebar_after(){ do_action( 'themify_sidebar_after' );}
[156] Fix | Delete
[157] Fix | Delete
function themify_layout_after() { do_action( 'themify_layout_after' );}
[158] Fix | Delete
[159] Fix | Delete
function themify_footer_before() { do_action( 'themify_footer_before' );}
[160] Fix | Delete
function themify_footer_start() { do_action( 'themify_footer_start' );}
[161] Fix | Delete
function themify_footer_end() { do_action( 'themify_footer_end' );}
[162] Fix | Delete
function themify_footer_after() { do_action( 'themify_footer_after' );}
[163] Fix | Delete
[164] Fix | Delete
function themify_body_end() { do_action( 'themify_body_end' );}
[165] Fix | Delete
[166] Fix | Delete
[167] Fix | Delete
/**
[168] Fix | Delete
* Theme Features Hooks
[169] Fix | Delete
*/
[170] Fix | Delete
[171] Fix | Delete
function themify_welcome_before(){ do_action( 'themify_welcome_before' );}
[172] Fix | Delete
function themify_welcome_start(){ do_action( 'themify_welcome_start' );}
[173] Fix | Delete
function themify_welcome_end(){ do_action( 'themify_welcome_end' );}
[174] Fix | Delete
function themify_welcome_after(){ do_action( 'themify_welcome_after' );}
[175] Fix | Delete
[176] Fix | Delete
function themify_slider_before(){ do_action( 'themify_slider_before' );}
[177] Fix | Delete
function themify_slider_start(){ do_action( 'themify_slider_start' );}
[178] Fix | Delete
function themify_slider_end(){ do_action( 'themify_slider_end' );}
[179] Fix | Delete
function themify_slider_after(){ do_action( 'themify_slider_after' );}
[180] Fix | Delete
[181] Fix | Delete
function themify_footer_slider_before(){do_action( 'themify_footer_slider_before' );}
[182] Fix | Delete
function themify_footer_slider_start(){ do_action( 'themify_footer_slider_start' );}
[183] Fix | Delete
function themify_footer_slider_end(){ do_action( 'themify_footer_slider_end' );}
[184] Fix | Delete
function themify_footer_slider_after(){ do_action( 'themify_footer_slider_after' );}
[185] Fix | Delete
[186] Fix | Delete
function themify_sidebar_alt_before(){ do_action( 'themify_sidebar_alt_before' );}
[187] Fix | Delete
function themify_sidebar_alt_start(){ do_action( 'themify_sidebar_alt_start' );}
[188] Fix | Delete
function themify_sidebar_alt_end(){ do_action( 'themify_sidebar_alt_end' );}
[189] Fix | Delete
function themify_sidebar_alt_after(){ do_action( 'themify_sidebar_alt_after' );}
[190] Fix | Delete
[191] Fix | Delete
function themify_product_slider_add_to_cart_before(){ do_action('themify_product_slider_add_to_cart_before'); }
[192] Fix | Delete
function themify_product_slider_add_to_cart_after(){ do_action('themify_product_slider_add_to_cart_after'); }
[193] Fix | Delete
function themify_product_slider_image_start(){ do_action('themify_product_slider_image_start'); }
[194] Fix | Delete
function themify_product_slider_image_end(){ do_action('themify_product_slider_image_end'); }
[195] Fix | Delete
function themify_product_slider_title_start(){ do_action('themify_product_slider_title_start'); }
[196] Fix | Delete
function themify_product_slider_title_end(){ do_action('themify_product_slider_title_end'); }
[197] Fix | Delete
function themify_product_slider_price_start(){ do_action('themify_product_slider_price_start'); }
[198] Fix | Delete
function themify_product_slider_price_end(){ do_action('themify_product_slider_price_end'); }
[199] Fix | Delete
[200] Fix | Delete
function themify_product_cart_image_start(){ do_action('themify_product_cart_image_start'); }
[201] Fix | Delete
function themify_product_cart_image_end(){ do_action('themify_product_cart_image_end'); }
[202] Fix | Delete
[203] Fix | Delete
function themify_shopdock_before(){ do_action('themify_shopdock_before'); }
[204] Fix | Delete
function themify_shopdock_start(){ do_action('themify_shopdock_start'); }
[205] Fix | Delete
function themify_shopdock_end(){ do_action('themify_shopdock_end'); }
[206] Fix | Delete
function themify_shopdock_after(){ do_action('themify_shopdock_after'); }
[207] Fix | Delete
[208] Fix | Delete
function themify_sorting_before(){ do_action('themify_sorting_before'); }
[209] Fix | Delete
function themify_sorting_after(){ do_action('themify_sorting_after'); }
[210] Fix | Delete
function themify_related_products_start(){ do_action('themify_related_products_start'); }
[211] Fix | Delete
function themify_related_products_end(){ do_action('themify_related_products_end'); }
[212] Fix | Delete
[213] Fix | Delete
function themify_breadcrumb_before(){ do_action('themify_breadcrumb_before'); }
[214] Fix | Delete
function themify_breadcrumb_after(){ do_action('themify_breadcrumb_after'); }
[215] Fix | Delete
[216] Fix | Delete
function themify_mobile_menu_start() { do_action( 'themify_mobile_menu_start' ); }
[217] Fix | Delete
function themify_mobile_menu_end() { do_action( 'themify_mobile_menu_end' ); }
[218] Fix | Delete
function themify_search_fields() { do_action( 'themify_search_fields' ); }
[219] Fix | Delete
[220] Fix | Delete
[221] Fix | Delete
/**
[222] Fix | Delete
* Substitute hooks for WooCommerce
[223] Fix | Delete
*
[224] Fix | Delete
* Add support for various WC-related hooks added by the framework
[225] Fix | Delete
*/
[226] Fix | Delete
if ( themify_is_woocommerce_active() ) {
[227] Fix | Delete
add_filter( 'woocommerce_product_get_image', 'themify_product_image_hooks' );
[228] Fix | Delete
add_action( 'woocommerce_before_single_product_summary', 'themify_product_single_image_start_hook', 1 );
[229] Fix | Delete
add_action( 'woocommerce_before_single_product_summary', 'themify_product_single_image_end_hook', 99 );
[230] Fix | Delete
add_filter( 'woocommerce_get_price_html', 'themify_product_price_hooks' );
[231] Fix | Delete
add_action( 'woocommerce_checkout_billing', 'themify_checkout_start_hook', 1 );
[232] Fix | Delete
add_action( 'woocommerce_checkout_billing', 'themify_checkout_end_hook', 100 );
[233] Fix | Delete
add_action( 'themify_sidebar_before', 'themify_ecommerce_sidebar_before_hook' );
[234] Fix | Delete
add_action( 'themify_sidebar_after', 'themify_ecommerce_sidebar_after_hook' );
[235] Fix | Delete
add_action( 'woocommerce_shop_loop_item_title', 'themify_before_product_title_hook', 1 );
[236] Fix | Delete
add_action( 'woocommerce_shop_loop_item_title', 'themify_after_product_title_hook', 100 );
[237] Fix | Delete
add_action( 'woocommerce_before_template_part', 'themify_product_title_start_hook' );
[238] Fix | Delete
add_action( 'woocommerce_after_template_part', 'themify_product_title_end_hook' );
[239] Fix | Delete
}
[240] Fix | Delete
[241] Fix | Delete
function themify_product_title_start_hook( $template_name ) {
[242] Fix | Delete
if ( $template_name === 'single-product/title.php' ) {
[243] Fix | Delete
do_action( 'themify_product_title_start' );
[244] Fix | Delete
} else if ( $template_name === 'single-product/tabs/tabs.php' ) {
[245] Fix | Delete
do_action( 'themify_before_product_tabs' );
[246] Fix | Delete
}
[247] Fix | Delete
}
[248] Fix | Delete
function themify_product_title_end_hook( $template_name ) {
[249] Fix | Delete
if ( $template_name === 'single-product/title.php' ) {
[250] Fix | Delete
do_action( 'themify_product_title_end' );
[251] Fix | Delete
} else if ( $template_name === 'single-product/tabs/tabs.php' ) {
[252] Fix | Delete
do_action( 'themify_after_product_tabs' );
[253] Fix | Delete
}
[254] Fix | Delete
}
[255] Fix | Delete
function themify_before_product_title_hook() {
[256] Fix | Delete
if ( ! is_singular( 'product' ) ) {
[257] Fix | Delete
do_action( 'themify_product_title_start' );
[258] Fix | Delete
}
[259] Fix | Delete
}
[260] Fix | Delete
function themify_after_product_title_hook() {
[261] Fix | Delete
if ( ! is_singular( 'product' ) ) {
[262] Fix | Delete
do_action( 'themify_product_title_end' );
[263] Fix | Delete
}
[264] Fix | Delete
}
[265] Fix | Delete
[266] Fix | Delete
function themify_product_image_hooks( $image ) {
[267] Fix | Delete
ob_start();
[268] Fix | Delete
do_action( 'themify_product_image_start' );
[269] Fix | Delete
echo $image;
[270] Fix | Delete
do_action( 'themify_product_image_end' );
[271] Fix | Delete
return ob_get_clean();
[272] Fix | Delete
}
[273] Fix | Delete
[274] Fix | Delete
function themify_product_price_hooks( $price ) {
[275] Fix | Delete
ob_start();
[276] Fix | Delete
do_action( 'themify_product_price_start' );
[277] Fix | Delete
echo $price;
[278] Fix | Delete
do_action( 'themify_product_price_end' );
[279] Fix | Delete
return ob_get_clean();
[280] Fix | Delete
}
[281] Fix | Delete
[282] Fix | Delete
function themify_product_single_image_start_hook() {
[283] Fix | Delete
do_action( 'themify_product_image_start' );
[284] Fix | Delete
}
[285] Fix | Delete
[286] Fix | Delete
function themify_product_single_image_end_hook() {
[287] Fix | Delete
do_action( 'themify_product_image_end' );
[288] Fix | Delete
}
[289] Fix | Delete
[290] Fix | Delete
function themify_checkout_start_hook() {
[291] Fix | Delete
do_action( 'themify_checkout_start' );
[292] Fix | Delete
}
[293] Fix | Delete
[294] Fix | Delete
function themify_checkout_end_hook() {
[295] Fix | Delete
do_action( 'themify_checkout_end' );
[296] Fix | Delete
}
[297] Fix | Delete
[298] Fix | Delete
function themify_ecommerce_sidebar_before_hook() {
[299] Fix | Delete
if ( is_woocommerce() ) {
[300] Fix | Delete
do_action( 'themify_ecommerce_sidebar_before' );
[301] Fix | Delete
}
[302] Fix | Delete
}
[303] Fix | Delete
[304] Fix | Delete
function themify_ecommerce_sidebar_after_hook() {
[305] Fix | Delete
if ( is_woocommerce() ) {
[306] Fix | Delete
do_action( 'themify_ecommerce_sidebar_after' );
[307] Fix | Delete
}
[308] Fix | Delete
}
[309] Fix | Delete
[310] Fix | Delete
/**
[311] Fix | Delete
* Deprecated hook functions
[312] Fix | Delete
*
[313] Fix | Delete
* These are managed by the Substitute hooks defined above, so the
[314] Fix | Delete
* function hooks are "silenced" (nullified) to prevent double call
[315] Fix | Delete
* of the same hook, should the theme include them.
[316] Fix | Delete
*
[317] Fix | Delete
* @deprecated since 3.5.9
[318] Fix | Delete
*/
[319] Fix | Delete
function themify_product_image_start() {}
[320] Fix | Delete
function themify_product_image_end() {}
[321] Fix | Delete
function themify_product_title_start() {}
[322] Fix | Delete
function themify_product_title_end() {}
[323] Fix | Delete
function themify_product_price_start() {}
[324] Fix | Delete
function themify_product_price_end() {}
[325] Fix | Delete
function themify_product_single_price_before() {}
[326] Fix | Delete
function themify_product_single_price_end() {}
[327] Fix | Delete
function themify_product_single_image_before() {}
[328] Fix | Delete
function themify_product_single_image_end() {}
[329] Fix | Delete
function themify_product_single_title_before() {}
[330] Fix | Delete
function themify_product_single_title_end() {}
[331] Fix | Delete
function themify_checkout_start() {}
[332] Fix | Delete
function themify_checkout_end() {}
[333] Fix | Delete
function themify_ecommerce_sidebar_before() {}
[334] Fix | Delete
function themify_ecommerce_sidebar_after() {}
[335] Fix | Delete
[336] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function