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-...
File: theme-options.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Main Themify class
[2] Fix | Delete
*/
[3] Fix | Delete
if ( ! class_exists( 'Themify' ) ) {
[4] Fix | Delete
class Themify {
[5] Fix | Delete
/** Default sidebar layout
[6] Fix | Delete
* @var string */
[7] Fix | Delete
public $layout;
[8] Fix | Delete
/** Default posts layout
[9] Fix | Delete
* @var string */
[10] Fix | Delete
public $post_layout;
[11] Fix | Delete
public $post_layout_type='';
[12] Fix | Delete
public $hide_title;
[13] Fix | Delete
public $hide_meta;
[14] Fix | Delete
public $hide_meta_author;
[15] Fix | Delete
public $hide_meta_category;
[16] Fix | Delete
public $hide_meta_comment;
[17] Fix | Delete
public $hide_meta_tag;
[18] Fix | Delete
public $hide_date;
[19] Fix | Delete
public $hide_image;
[20] Fix | Delete
public $media_position;
[21] Fix | Delete
[22] Fix | Delete
public $unlink_title;
[23] Fix | Delete
public $unlink_image;
[24] Fix | Delete
[25] Fix | Delete
public $display_content = '';
[26] Fix | Delete
public $auto_featured_image;
[27] Fix | Delete
[28] Fix | Delete
public $width = '';
[29] Fix | Delete
public $height = '';
[30] Fix | Delete
[31] Fix | Delete
public $avatar_size = 96;
[32] Fix | Delete
public $page_navigation;
[33] Fix | Delete
public $posts_per_page;
[34] Fix | Delete
[35] Fix | Delete
public $image_align = '';
[36] Fix | Delete
public $image_setting = '';
[37] Fix | Delete
[38] Fix | Delete
public $query_category = '';
[39] Fix | Delete
public $query_post_type = '';
[40] Fix | Delete
public $query_taxonomy = '';
[41] Fix | Delete
public $paged = '';
[42] Fix | Delete
public $query_all_post_types;
[43] Fix | Delete
[44] Fix | Delete
/////////////////////////////////////////////
[45] Fix | Delete
// Set Default Image Sizes
[46] Fix | Delete
/////////////////////////////////////////////
[47] Fix | Delete
[48] Fix | Delete
// Default Index Layout
[49] Fix | Delete
static $content_width = 978;
[50] Fix | Delete
static $sidebar1_content_width = 670;
[51] Fix | Delete
[52] Fix | Delete
// Default Single Post Layout
[53] Fix | Delete
static $single_content_width = 978;
[54] Fix | Delete
static $single_sidebar1_content_width = 670;
[55] Fix | Delete
[56] Fix | Delete
// Default Single Image Size
[57] Fix | Delete
static $single_image_width = 978;
[58] Fix | Delete
static $single_image_height = 400;
[59] Fix | Delete
[60] Fix | Delete
// Grid4
[61] Fix | Delete
static $grid4_width = 222;
[62] Fix | Delete
static $grid4_height = 140;
[63] Fix | Delete
[64] Fix | Delete
// Grid3
[65] Fix | Delete
static $grid3_width = 306;
[66] Fix | Delete
static $grid3_height = 180;
[67] Fix | Delete
[68] Fix | Delete
// Grid2
[69] Fix | Delete
static $grid2_width = 474;
[70] Fix | Delete
static $grid2_height = 250;
[71] Fix | Delete
[72] Fix | Delete
// List Large
[73] Fix | Delete
static $list_large_image_width = 680;
[74] Fix | Delete
static $list_large_image_height = 390;
[75] Fix | Delete
[76] Fix | Delete
// List Thumb
[77] Fix | Delete
static $list_thumb_image_width = 230;
[78] Fix | Delete
static $list_thumb_image_height = 200;
[79] Fix | Delete
[80] Fix | Delete
// List Grid2 Thumb
[81] Fix | Delete
static $grid2_thumb_width = 120;
[82] Fix | Delete
static $grid2_thumb_height = 100;
[83] Fix | Delete
[84] Fix | Delete
// List Post
[85] Fix | Delete
static $list_post_width = 978;
[86] Fix | Delete
static $list_post_height = 400;
[87] Fix | Delete
[88] Fix | Delete
// Sorting Parameters
[89] Fix | Delete
public $order = 'DESC';
[90] Fix | Delete
public $orderby = 'date';
[91] Fix | Delete
public $order_meta_key = false;
[92] Fix | Delete
public $more_text='';
[93] Fix | Delete
public $more_link='';
[94] Fix | Delete
public $themify_post_title_tag='';
[95] Fix | Delete
public $image_size='';
[96] Fix | Delete
public $post_filter='';
[97] Fix | Delete
public $excerpt_length;
[98] Fix | Delete
public $post_module_hook = null;
[99] Fix | Delete
public $post_module_tax = null;
[100] Fix | Delete
public $lightboxed_permalink = false;
[101] Fix | Delete
[102] Fix | Delete
function __construct() {
[103] Fix | Delete
}
[104] Fix | Delete
[105] Fix | Delete
function template_redirect() {
[106] Fix | Delete
}
[107] Fix | Delete
[108] Fix | Delete
/**
[109] Fix | Delete
* Returns post category IDs concatenated in a string
[110] Fix | Delete
* @param number Post ID
[111] Fix | Delete
* @return string Category IDs
[112] Fix | Delete
*/
[113] Fix | Delete
public function get_categories_as_classes($post_id){
[114] Fix | Delete
$categories = wp_get_post_categories($post_id);
[115] Fix | Delete
$class = '';
[116] Fix | Delete
foreach($categories as $cat)
[117] Fix | Delete
$class .= ' cat-'.$cat;
[118] Fix | Delete
return $class;
[119] Fix | Delete
}
[120] Fix | Delete
[121] Fix | Delete
/**
[122] Fix | Delete
* Returns category description
[123] Fix | Delete
* @return string
[124] Fix | Delete
*/
[125] Fix | Delete
function get_category_description(){
[126] Fix | Delete
$category_description = category_description();
[127] Fix | Delete
if ( !empty( $category_description ) ){
[128] Fix | Delete
return '<div class="category-description">' . $category_description . '</div>';
[129] Fix | Delete
}
[130] Fix | Delete
}
[131] Fix | Delete
}
[132] Fix | Delete
}
[133] Fix | Delete
[134] Fix | Delete
/**
[135] Fix | Delete
* Initializes Themify class
[136] Fix | Delete
*/
[137] Fix | Delete
function themify_builder_global_options(){
[138] Fix | Delete
/**
[139] Fix | Delete
* Themify initialization class
[140] Fix | Delete
*/
[141] Fix | Delete
global $themify;
[142] Fix | Delete
if ( class_exists( 'Themify' ) ) {
[143] Fix | Delete
$themify = new Themify();
[144] Fix | Delete
}
[145] Fix | Delete
}
[146] Fix | Delete
add_action( 'init','themify_builder_global_options' );
[147] Fix | Delete
[148] Fix | Delete
[149] Fix | Delete
if ( ! function_exists( 'themify_builder_plugin_data_filters' ) ) {
[150] Fix | Delete
add_filter( 'themify_get_data', 'themify_builder_plugin_data_filters' );
[151] Fix | Delete
function themify_builder_plugin_data_filters( $data ) {
[152] Fix | Delete
if ('' != themify_builder_get( 'image_setting-img_settings_use' ) ) {
[153] Fix | Delete
$data['setting-img_settings_use'] = true;
[154] Fix | Delete
}
[155] Fix | Delete
if ( ($size= themify_builder_get('image_setting-global_feature_size'))!='' ) {
[156] Fix | Delete
$data['setting-global_feature_size'] = $size;
[157] Fix | Delete
}
[158] Fix | Delete
return $data;
[159] Fix | Delete
}
[160] Fix | Delete
}
[161] Fix | Delete
[162] Fix | Delete
function themify_enable_full_google_fonts() {
[163] Fix | Delete
$settings = get_option( 'themify_builder_setting' );
[164] Fix | Delete
return isset( $settings['builder_google_fonts'] ) && 'full' === $settings['builder_google_fonts'];
[165] Fix | Delete
}
[166] Fix | Delete
add_filter( 'themify_google_fonts_full_list', 'themify_enable_full_google_fonts' );
[167] Fix | Delete
[168] Fix | Delete
function themify_builder_init_google_fonts() {
[169] Fix | Delete
$settings = get_option( 'themify_builder_setting' );
[170] Fix | Delete
if ( ! defined( 'THEMIFY_GOOGLE_FONTS' ) && isset( $settings['builder_google_fonts'] ) && 'disabled' === $settings['builder_google_fonts'] ) {
[171] Fix | Delete
define( 'THEMIFY_GOOGLE_FONTS', false );
[172] Fix | Delete
}
[173] Fix | Delete
}
[174] Fix | Delete
add_action( 'init', 'themify_builder_init_google_fonts' );
[175] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function