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.../httpdocs/wp-conte.../plugins/themify-.../themify/includes
File: conditions.php
<?php
[0] Fix | Delete
[1] Fix | Delete
$post_types = apply_filters( 'themify_hooks_visibility_post_types', get_post_types( array( 'public' => true ) ) );
[2] Fix | Delete
unset( $post_types['page'], $post_types['attachment'] );
[3] Fix | Delete
$post_types = array_map( 'get_post_type_object', $post_types );
[4] Fix | Delete
[5] Fix | Delete
$taxonomies = apply_filters( 'themify_hooks_visibility_taxonomies', get_taxonomies( array( 'public' => true ) ) );
[6] Fix | Delete
$taxonomies = array_map( 'get_taxonomy', $taxonomies );
[7] Fix | Delete
?>
[8] Fix | Delete
[9] Fix | Delete
<div id="themify_lightbox_visibility" class="themify_lightbox_visibility themify-admin-lightbox tf_clearfix" style="display: none;">
[10] Fix | Delete
<h3 class="themify_lightbox_title"><?php _e( 'Condition', 'themify' ) ?></h3>
[11] Fix | Delete
<div class="close_lightbox tf_close"></div>
[12] Fix | Delete
<div class="lightbox_container">
[13] Fix | Delete
<form id="visibility-tabs" class="ui-tabs">
[14] Fix | Delete
<ul class="tf_clearfix">
[15] Fix | Delete
<li><a href="#visibility-tab-general"><?php _e( 'General', 'themify' ) ?></a></li>
[16] Fix | Delete
<li><a href="#visibility-tab-pages" class="themify_hc_load_ajax" data-type="post_type:page"><?php _e( 'Pages', 'themify' ) ?></a></li>
[17] Fix | Delete
<li><a href="#visibility-tab-categories-singles" class="themify_hc_load_ajax"><?php _e( 'Has Term', 'themify' ) ?></a></li>
[18] Fix | Delete
<li><a href="#visibility-tab-categories" class="themify_hc_load_ajax" data-type="tax:category"><?php _e( 'Categories', 'themify' ) ?></a></li>
[19] Fix | Delete
<li><a href="#visibility-tab-post-types" class="themify_hc_load_ajax"><?php _e( 'Post Types', 'themify' ) ?></a></li>
[20] Fix | Delete
<li><a href="#visibility-tab-taxonomies" class="themify_hc_load_ajax"><?php _e( 'Taxonomies', 'themify' ) ?></a></li>
[21] Fix | Delete
<?php if ( themify_is_woocommerce_active() ) : ?><li><a href="#visibility-tab-wc"><?php _e( 'WooCommerce', 'themify' ) ?></a></li><?php endif; ?>
[22] Fix | Delete
<li><a href="#visibility-tab-userroles"><?php _e( 'User Roles', 'themify' ) ?></a></li>
[23] Fix | Delete
</ul>
[24] Fix | Delete
[25] Fix | Delete
<div id="visibility-tab-general" class="themify-visibility-options tf_clearfix">
[26] Fix | Delete
<label><input type="checkbox" name="general[home]" /><span data-tooltip="<?php echo get_home_url() ?>"><?php _e( 'Home page', 'themify' ) ?></span></label>
[27] Fix | Delete
<label><input type="checkbox" name="general[404]" /><?php _e( '404 page', 'themify' ) ?></label>
[28] Fix | Delete
<label><input type="checkbox" name="general[page]" /><?php _e( 'Page views', 'themify' ) ?></label>
[29] Fix | Delete
<label><input type="checkbox" name="general[single]" /><?php _e( 'Single post views', 'themify' ) ?></label>
[30] Fix | Delete
<label><input type="checkbox" name="general[search]" /><?php _e( 'Search pages', 'themify' ) ?></label>
[31] Fix | Delete
<label><input type="checkbox" name="general[category]" /><?php _e( 'Category archive', 'themify' ) ?></label>
[32] Fix | Delete
<label><input type="checkbox" name="general[tag]" /><?php _e( 'Tag archive', 'themify' ) ?></label>
[33] Fix | Delete
<label><input type="checkbox" name="general[author]" /><?php _e( 'Author pages', 'themify' ) ?></label>
[34] Fix | Delete
<label><input type="checkbox" name="general[date]" /><?php _e( 'Date archive pages', 'themify' ) ?></label>
[35] Fix | Delete
<label><input type="checkbox" name="general[year]" /><?php _e( 'Year based archive', 'themify' ) ?></label>
[36] Fix | Delete
<label><input type="checkbox" name="general[month]" /><?php _e( 'Month based archive', 'themify' ) ?></label>
[37] Fix | Delete
<label><input type="checkbox" name="general[day]" /><?php _e( 'Day based archive', 'themify' ) ?></label>
[38] Fix | Delete
<label><input type="checkbox" name="general[logged]" /><?php _e( 'User logged in', 'themify' ) ?></label>
[39] Fix | Delete
[40] Fix | Delete
<?php
[41] Fix | Delete
/* General views for CPT */
[42] Fix | Delete
foreach( get_post_types( array( 'public' => true, 'exclude_from_search' => false, '_builtin' => false ) ) as $key => $post_type ) :
[43] Fix | Delete
$post_type = get_post_type_object( $key );
[44] Fix | Delete
?>
[45] Fix | Delete
<label><input type="checkbox" name="general[<?php echo $key ?>]" /><?php printf( __( 'Single %s View', 'themify' ), $post_type->labels->singular_name ) ?></label>
[46] Fix | Delete
<label><input type="checkbox" name="post_type_archive[<?php echo $key ?>]" /><?php printf( __( '%s Archive View', 'themify' ), $post_type->labels->singular_name ) ?></label>
[47] Fix | Delete
<?php endforeach; ?>
[48] Fix | Delete
[49] Fix | Delete
<?php
[50] Fix | Delete
/* Custom taxonomies archive view */
[51] Fix | Delete
foreach( get_taxonomies( array( 'public' => true, '_builtin' => false ) ) as $key => $tax ) :
[52] Fix | Delete
$tax = get_taxonomy( $key );
[53] Fix | Delete
?>
[54] Fix | Delete
<label><input type="checkbox" name="general[<?php echo $key ?>]" /><?php printf( __( '%s Archive View', 'themify' ), $tax->label ) ?></label>
[55] Fix | Delete
<?php endforeach; ?>
[56] Fix | Delete
[57] Fix | Delete
</div><!-- #visibility-tab-general -->
[58] Fix | Delete
[59] Fix | Delete
<div id="visibility-tab-pages" class="themify-visibility-options themify-visibility-type-options tf_clearfix">
[60] Fix | Delete
<div class="themify-visibility-items-inner">
[61] Fix | Delete
</div>
[62] Fix | Delete
</div><!-- #visibility-tab-pages -->
[63] Fix | Delete
[64] Fix | Delete
<div id="visibility-tab-categories-singles" class="themify-visibility-options tf_clearfix">
[65] Fix | Delete
<div id="themify-visibility-category-single-inner-tabs" class="themify-visibility-inner-tabs">
[66] Fix | Delete
<ul class="inline-tabs tf_clearfix">
[67] Fix | Delete
<?php foreach( $taxonomies as $key => $tax ) : ?>
[68] Fix | Delete
<li><a href="#visibility-tab-in_tax-<?php echo $key ?>" data-type="in_tax:<?php echo $key ?>"><?php echo $tax->label ?></a></li>
[69] Fix | Delete
<?php endforeach; ?>
[70] Fix | Delete
</ul>
[71] Fix | Delete
<div class="themify-visibility-type-options tf_clearfix">
[72] Fix | Delete
<?php foreach( $taxonomies as $key => $tax ) : ?>
[73] Fix | Delete
<div id="visibility-tab-in_tax-<?php echo $key ?>" class="themify-visibility-inner-tab">
[74] Fix | Delete
<div class="themify-visibility-items-inner"></div>
[75] Fix | Delete
</div>
[76] Fix | Delete
<?php endforeach; ?>
[77] Fix | Delete
</div>
[78] Fix | Delete
</div>
[79] Fix | Delete
</div><!-- #visibility-tab-categories-singles -->
[80] Fix | Delete
[81] Fix | Delete
<div id="visibility-tab-categories" class="themify-visibility-options themify-visibility-type-options tf_clearfix">
[82] Fix | Delete
<div class="themify-visibility-items-inner">
[83] Fix | Delete
</div>
[84] Fix | Delete
</div><!-- #visibility-tab-categories -->
[85] Fix | Delete
[86] Fix | Delete
<div id="visibility-tab-post-types" class="themify-visibility-options tf_clearfix">
[87] Fix | Delete
<div id="themify-visibility-post-types-inner-tabs" class="themify-visibility-inner-tabs">
[88] Fix | Delete
<ul class="inline-tabs tf_clearfix">
[89] Fix | Delete
<?php foreach( $post_types as $key => $post_type ) : ?>
[90] Fix | Delete
<li><a href="#visibility-tab-<?php echo $key ?>" data-type="post_type:<?php echo $key ?>"><?php echo $post_type->label ?></a></li>
[91] Fix | Delete
<?php endforeach; ?>
[92] Fix | Delete
</ul>
[93] Fix | Delete
<div class="themify-visibility-type-options tf_clearfix">
[94] Fix | Delete
<?php foreach( $post_types as $key => $post_type ) : ?>
[95] Fix | Delete
<div id="visibility-tab-<?php echo $key ?>" class="themify-visibility-inner-tab">
[96] Fix | Delete
<div class="themify-visibility-items-inner"></div>
[97] Fix | Delete
</div>
[98] Fix | Delete
<?php endforeach; ?>
[99] Fix | Delete
</div>
[100] Fix | Delete
</div>
[101] Fix | Delete
</div><!-- #visibility-tab-post-types -->
[102] Fix | Delete
[103] Fix | Delete
<?php
[104] Fix | Delete
unset( $taxonomies['category'] );
[105] Fix | Delete
?>
[106] Fix | Delete
<div id="visibility-tab-taxonomies" class="themify-visibility-options tf_clearfix">
[107] Fix | Delete
<div id="themify-visibility-taxonomies-inner-tabs" class="themify-visibility-inner-tabs">
[108] Fix | Delete
<ul class="inline-tabs tf_clearfix">
[109] Fix | Delete
<?php foreach( $taxonomies as $key => $tax ) : ?>
[110] Fix | Delete
<li><a href="#visibility-tab-<?php echo $key ?>" data-type="tax:<?php echo $key ?>"><?php echo $tax->label ?></a></li>
[111] Fix | Delete
<?php endforeach; ?>
[112] Fix | Delete
</ul>
[113] Fix | Delete
<div class="themify-visibility-type-options tf_clearfix">
[114] Fix | Delete
<?php foreach( $taxonomies as $key => $tax ) : ?>
[115] Fix | Delete
<div id="visibility-tab-<?php echo $key ?>" class="themify-visibility-inner-tab">
[116] Fix | Delete
<div class="themify-visibility-items-inner"></div>
[117] Fix | Delete
</div>
[118] Fix | Delete
<?php endforeach; ?>
[119] Fix | Delete
</div>
[120] Fix | Delete
</div>
[121] Fix | Delete
</div><!-- #visibility-tab-taxonomies -->
[122] Fix | Delete
[123] Fix | Delete
<?php if ( themify_is_woocommerce_active() ) : ?>
[124] Fix | Delete
<div id="visibility-tab-wc" class="themify-visibility-options tf_clearfix">
[125] Fix | Delete
<label><input type="checkbox" name="wc[orders]" /><?php _e( 'Orders', 'themify' ) ?></label>
[126] Fix | Delete
<label><input type="checkbox" name="wc[view-order]" /><?php _e( 'View Order', 'themify' ) ?></label>
[127] Fix | Delete
<label><input type="checkbox" name="wc[downloads]" /><?php _e( 'Downloads', 'themify' ) ?></label>
[128] Fix | Delete
<label><input type="checkbox" name="wc[edit-account]" /><?php _e( 'Edit Account', 'themify' ) ?></label>
[129] Fix | Delete
<label><input type="checkbox" name="wc[edit-address]" /><?php _e( 'Edit Address', 'themify' ) ?></label>
[130] Fix | Delete
<label><input type="checkbox" name="wc[lost-password]" /><?php _e( 'Lost Password', 'themify' ) ?></label>
[131] Fix | Delete
<label><input type="checkbox" name="wc[order-pay]" /><?php _e( 'Pay', 'themify' ) ?></label>
[132] Fix | Delete
<label><input type="checkbox" name="wc[order-received]" /><?php _e( 'Order Received', 'themify' ) ?></label>
[133] Fix | Delete
<label><input type="checkbox" name="wc[payment-methods]" /><?php _e( 'Payment Methods', 'themify' ) ?></label>
[134] Fix | Delete
</div><!-- #visibility-tab-wc -->
[135] Fix | Delete
<?php endif; ?>
[136] Fix | Delete
[137] Fix | Delete
<div id="visibility-tab-userroles" class="themify-visibility-options tf_clearfix">
[138] Fix | Delete
<?php foreach( $GLOBALS['wp_roles']->roles as $key => $role ) : ?>
[139] Fix | Delete
<label><input type="checkbox" name="roles[<?php echo $key ?>]" /><?php echo $role['name'] ?></label>
[140] Fix | Delete
<?php endforeach; ?>
[141] Fix | Delete
</div><!-- #visibility-tab-userroles -->
[142] Fix | Delete
[143] Fix | Delete
</form>
[144] Fix | Delete
</div>
[145] Fix | Delete
<a href="#" class="uncheck-all"><?php _e( 'Uncheck All', 'themify' ) ?></a>
[146] Fix | Delete
<a href="#" class="button button-primary visibility-save alignright"><?php _e( 'Save', 'themify' ) ?></a>
[147] Fix | Delete
</div>
[148] Fix | Delete
<div id="themify_lightbox_overlay"></div>
[149] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function