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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/themify-.../themify
File: themify-admin.php
[3000] Fix | Delete
[3001] Fix | Delete
/**
[3002] Fix | Delete
* Returns a collection of options: yes, no and default which means the theme settings will be used.
[3003] Fix | Delete
*
[3004] Fix | Delete
* @since 2.1.3
[3005] Fix | Delete
*
[3006] Fix | Delete
* @param string $yes
[3007] Fix | Delete
* @param string $no
[3008] Fix | Delete
* @param string $default
[3009] Fix | Delete
* @param array $args
[3010] Fix | Delete
*
[3011] Fix | Delete
* @return array
[3012] Fix | Delete
*/
[3013] Fix | Delete
function themify_ternary_options( $yes = '', $no = '', $default = '', $args = array() ) {
[3014] Fix | Delete
return wp_parse_args( $args, array(
[3015] Fix | Delete
array(
[3016] Fix | Delete
'value' => 'default',
[3017] Fix | Delete
'name' => !empty( $default ) ? $default : __( 'Default', 'themify' ),
[3018] Fix | Delete
'selected' => true
[3019] Fix | Delete
),
[3020] Fix | Delete
array(
[3021] Fix | Delete
'value' => 'yes',
[3022] Fix | Delete
'name' => !empty( $yes ) ? $yes : __( 'Yes', 'themify' ),
[3023] Fix | Delete
),
[3024] Fix | Delete
array(
[3025] Fix | Delete
'value' => 'no',
[3026] Fix | Delete
'name' => !empty( $no ) ? $no : __( 'No', 'themify' ),
[3027] Fix | Delete
),
[3028] Fix | Delete
));
[3029] Fix | Delete
}
[3030] Fix | Delete
[3031] Fix | Delete
/**
[3032] Fix | Delete
* Returns a collection of states: yes, no and default which means the theme settings will be used.
[3033] Fix | Delete
*
[3034] Fix | Delete
* @since 2.1.3
[3035] Fix | Delete
*
[3036] Fix | Delete
* @param string $yes
[3037] Fix | Delete
* @param string $no
[3038] Fix | Delete
* @param string $default
[3039] Fix | Delete
* @param array $args
[3040] Fix | Delete
*
[3041] Fix | Delete
* @return array
[3042] Fix | Delete
*/
[3043] Fix | Delete
function themify_ternary_states( $args = array(), $all = array() ) {
[3044] Fix | Delete
$args = wp_parse_args( $args, array(
[3045] Fix | Delete
'icon_yes' => THEMIFY_URI . '/img/ddbtn-check.svg',
[3046] Fix | Delete
'icon_no' => THEMIFY_URI . '/img/ddbtn-cross.svg',
[3047] Fix | Delete
'value_default' => '',
[3048] Fix | Delete
) );
[3049] Fix | Delete
return wp_parse_args( $all, array(
[3050] Fix | Delete
array(
[3051] Fix | Delete
'name' => empty( $args['label_yes'] ) ? __('Hide', 'themify') : $args['label_yes'],
[3052] Fix | Delete
'value' => 'yes',
[3053] Fix | Delete
'icon' => $args['icon_no'],
[3054] Fix | Delete
'title' => __('Hide this', 'themify')
[3055] Fix | Delete
),
[3056] Fix | Delete
array(
[3057] Fix | Delete
'name' => empty( $args['label_no'] ) ? __('Show', 'themify') : $args['label_no'],
[3058] Fix | Delete
'value' => 'no',
[3059] Fix | Delete
'icon' => $args['icon_yes'],
[3060] Fix | Delete
'title' => __('Show this', 'themify')
[3061] Fix | Delete
),
[3062] Fix | Delete
array(
[3063] Fix | Delete
'name' => empty( $args['default'] ) ? __('Theme default', 'themify') : $args['default'],
[3064] Fix | Delete
'value' => $args['value_default'],
[3065] Fix | Delete
'icon' => THEMIFY_URI . '/img/ddbtn-blank.png',
[3066] Fix | Delete
'title' => __('Use theme settings', 'themify'),
[3067] Fix | Delete
'default' => true
[3068] Fix | Delete
)
[3069] Fix | Delete
));
[3070] Fix | Delete
}
[3071] Fix | Delete
if( ! function_exists( 'themify_multi_meta_field' ) ) {
[3072] Fix | Delete
/**
[3073] Fix | Delete
* Definition for tri-state hide meta buttons
[3074] Fix | Delete
*
[3075] Fix | Delete
* @param array $args
[3076] Fix | Delete
* @param string $prefix
[3077] Fix | Delete
*
[3078] Fix | Delete
* @return mixed|void
[3079] Fix | Delete
* @since 1.5.2
[3080] Fix | Delete
*/
[3081] Fix | Delete
function themify_multi_meta_field( $args = array(), $prefix = 'hide_meta' ) {
[3082] Fix | Delete
[3083] Fix | Delete
$states = themify_ternary_states( array( 'label_no' => __('Show', 'themify') ) );
[3084] Fix | Delete
[3085] Fix | Delete
$defaults = array(
[3086] Fix | Delete
'name' => $prefix . '_multi',
[3087] Fix | Delete
'title' => __('Post Meta', 'themify'),
[3088] Fix | Delete
'description' => '',
[3089] Fix | Delete
'type' => 'multi',
[3090] Fix | Delete
'meta' => array (
[3091] Fix | Delete
'fields' => array(
[3092] Fix | Delete
array(
[3093] Fix | Delete
'name' => $prefix . '_all',
[3094] Fix | Delete
'title' => __('Hide All', 'themify'),
[3095] Fix | Delete
'description' => '',
[3096] Fix | Delete
'type' => 'dropdownbutton',
[3097] Fix | Delete
'states' => $states,
[3098] Fix | Delete
'main' => true,
[3099] Fix | Delete
'disable_value' => 'yes'
[3100] Fix | Delete
),
[3101] Fix | Delete
array(
[3102] Fix | Delete
'name' => $prefix . '_author',
[3103] Fix | Delete
'title' => __('Author', 'themify'),
[3104] Fix | Delete
'description' => '',
[3105] Fix | Delete
'type' => 'dropdownbutton',
[3106] Fix | Delete
'states' => $states,
[3107] Fix | Delete
'sub' => true
[3108] Fix | Delete
),
[3109] Fix | Delete
array(
[3110] Fix | Delete
'name' => $prefix . '_category',
[3111] Fix | Delete
'title' => __('Category', 'themify'),
[3112] Fix | Delete
'description' => '',
[3113] Fix | Delete
'type' => 'dropdownbutton',
[3114] Fix | Delete
'states' => $states,
[3115] Fix | Delete
'sub' => true
[3116] Fix | Delete
),
[3117] Fix | Delete
array(
[3118] Fix | Delete
'name' => $prefix . '_comment',
[3119] Fix | Delete
'title' => __('Comment', 'themify'),
[3120] Fix | Delete
'description' => '',
[3121] Fix | Delete
'type' => 'dropdownbutton',
[3122] Fix | Delete
'states' => $states,
[3123] Fix | Delete
'sub' => true
[3124] Fix | Delete
),
[3125] Fix | Delete
array(
[3126] Fix | Delete
'name' => $prefix . '_tag',
[3127] Fix | Delete
'title' => __('Tag', 'themify'),
[3128] Fix | Delete
'description' => '',
[3129] Fix | Delete
'type' => 'dropdownbutton',
[3130] Fix | Delete
'states' => $states,
[3131] Fix | Delete
'sub' => true
[3132] Fix | Delete
),
[3133] Fix | Delete
),
[3134] Fix | Delete
'description' => '',
[3135] Fix | Delete
'before' => '',
[3136] Fix | Delete
'after' => '',
[3137] Fix | Delete
'separator' => ''
[3138] Fix | Delete
)
[3139] Fix | Delete
);
[3140] Fix | Delete
[3141] Fix | Delete
$field = wp_parse_args( $args, $defaults );
[3142] Fix | Delete
[3143] Fix | Delete
return apply_filters( 'themify_multi_meta_field', $field );
[3144] Fix | Delete
}
[3145] Fix | Delete
}
[3146] Fix | Delete
[3147] Fix | Delete
function themify_meta_field_fontawesome( $args, $call_before_after = true, $echo = true ) {
[3148] Fix | Delete
[3149] Fix | Delete
$meta_box = $args['meta_box'];
[3150] Fix | Delete
$meta_value = $args['meta_value'];
[3151] Fix | Delete
$class = isset( $meta_box['meta']['size'] ) && 'small' === $meta_box['meta']['size']?'small': '';
[3152] Fix | Delete
[3153] Fix | Delete
$html = '<div class="icon-preview font-icon-preview">
[3154] Fix | Delete
<i class="fa ' . esc_attr( $meta_value ) . '"></i>
[3155] Fix | Delete
</div>
[3156] Fix | Delete
<!-- /icon-preview -->';
[3157] Fix | Delete
$html .= sprintf( '<input type="text" id="%s" name="%s" value="%s" size="55" class="themify_input_field themify_fa %s" /> <a class="button button-secondary hide-if-no-js themify_fa_toggle" href="#" data-target="#%s">%s</a>',
[3158] Fix | Delete
esc_attr( $meta_box['name'] ),
[3159] Fix | Delete
esc_attr( $meta_box['name'] ),
[3160] Fix | Delete
esc_attr( $meta_value ),
[3161] Fix | Delete
$class,
[3162] Fix | Delete
esc_attr( $meta_box['name'] ),
[3163] Fix | Delete
__( 'Insert Icon', 'themify' ) );
[3164] Fix | Delete
[3165] Fix | Delete
if ( !empty( $meta_box['label'] )) {
[3166] Fix | Delete
$html = sprintf( '<label for="%s">%s %s</label>',
[3167] Fix | Delete
esc_attr( $meta_box['name'] ),
[3168] Fix | Delete
$html,
[3169] Fix | Delete
esc_html( $meta_box['label'] )
[3170] Fix | Delete
);
[3171] Fix | Delete
}
[3172] Fix | Delete
[3173] Fix | Delete
if ( isset( $meta_box['description'] ) ) {
[3174] Fix | Delete
$html .= themify_meta_field_get_description( $meta_box['description'] );
[3175] Fix | Delete
}
[3176] Fix | Delete
[3177] Fix | Delete
if ( !empty( $meta_box['before'] )) {
[3178] Fix | Delete
$html = $meta_box['before'] . $html;
[3179] Fix | Delete
}
[3180] Fix | Delete
if ( !empty( $meta_box['after'] )) {
[3181] Fix | Delete
$html .= $meta_box['after'];
[3182] Fix | Delete
}
[3183] Fix | Delete
[3184] Fix | Delete
if ( $echo ) echo $html;
[3185] Fix | Delete
return $html;
[3186] Fix | Delete
}
[3187] Fix | Delete
/**
[3188] Fix | Delete
* Build custom write panels
[3189] Fix | Delete
* This function is required to provide backward compatibility
[3190] Fix | Delete
*/
[3191] Fix | Delete
function themify_build_write_panels( $args = null ) {
[3192] Fix | Delete
}
[3193] Fix | Delete
/**
[3194] Fix | Delete
* featimgdropdown field type, creates an option to select image sizes
[3195] Fix | Delete
*
[3196] Fix | Delete
* @since 2.8.8
[3197] Fix | Delete
*/
[3198] Fix | Delete
function themify_meta_field_featimgdropdown( $args ) {
[3199] Fix | Delete
/** Define WP Featured Image sizes + blank + Themify's image script*/
[3200] Fix | Delete
$themify_fi_sizes = themify_get_image_sizes_list();
[3201] Fix | Delete
$meta_box = $args['meta_box'];
[3202] Fix | Delete
?>
[3203] Fix | Delete
<select name="<?php esc_attr_e( $meta_box['name'] ); ?>">
[3204] Fix | Delete
<?php foreach($themify_fi_sizes as $option): ?>
[3205] Fix | Delete
<option value="<?php esc_attr_e( $option['value'] ); ?>" <?php selected( $option['value'], $args['meta_value'] ); ?>><?php echo esc_html( $option['name'] ); ?></option>
[3206] Fix | Delete
<?php endforeach; ?>
[3207] Fix | Delete
</select>
[3208] Fix | Delete
<?php if ( isset( $meta_box['description'] ) ) : ?>
[3209] Fix | Delete
<span class="themify_field_description"><?php echo wp_kses_post( $meta_box['description'] ); ?></span>
[3210] Fix | Delete
<?php endif; // meta_box description
[3211] Fix | Delete
}
[3212] Fix | Delete
/**
[3213] Fix | Delete
* Outputs html to display alert messages in post edit/new screens. Excludes pages.
[3214] Fix | Delete
* @since 1.2.2
[3215] Fix | Delete
*/
[3216] Fix | Delete
function themify_prompt_message() {
[3217] Fix | Delete
if(class_exists('Themify_Builder_Model',false)){
[3218] Fix | Delete
Themify_Builder_Model::check_plugins_compatible();
[3219] Fix | Delete
}
[3220] Fix | Delete
if(!Themify_Enqueue_Assets::createDir()){
[3221] Fix | Delete
echo '<div class="notice notice-error"><p><strong>'.__('Themify:','themify').'</strong></p><p>'.__('It looks like the WordPress upload folder path is set wrong or have file permission issue. Please check the upload path on WP Settings > Media. Make sure the folder is set correctly and it has correct file permission.','themify').'</p></div>';
[3222] Fix | Delete
}
[3223] Fix | Delete
}
[3224] Fix | Delete
add_action( 'admin_enqueue_scripts', 'themify_enqueue_scripts', 12 );
[3225] Fix | Delete
[3226] Fix | Delete
// register custom field types only available in the framework
[3227] Fix | Delete
function themify_meta_field_page_layout( $args ) {
[3228] Fix | Delete
$option_name = isset( $args['meta_box']['name'] ) ? $args['meta_box']['name'] : 'page_layout';
[3229] Fix | Delete
$page_layout = get_post_meta( get_the_ID(), $option_name, true );
[3230] Fix | Delete
$content_width = get_post_meta( get_the_ID(), 'content_width', true );
[3231] Fix | Delete
$section_scroll = get_post_meta( get_the_ID(), 'section_full_scrolling', true );
[3232] Fix | Delete
if ( $section_scroll === 'yes' ) {
[3233] Fix | Delete
$args['meta_value'] = 'section_scroll';
[3234] Fix | Delete
} else if ( $content_width === 'full_width' ) {
[3235] Fix | Delete
$args['meta_value'] = 'full_width';
[3236] Fix | Delete
}
[3237] Fix | Delete
[3238] Fix | Delete
echo '<div class="themify_field-layout">';
[3239] Fix | Delete
$meta_box = $args['meta_box'];
[3240] Fix | Delete
$meta_value = $args['meta_value'];
[3241] Fix | Delete
extract( $args, EXTR_OVERWRITE );
[3242] Fix | Delete
$ops_html = '';
[3243] Fix | Delete
[3244] Fix | Delete
foreach ( $meta_box['meta'] as $options ) {
[3245] Fix | Delete
if ( ( '' == $meta_value || !$meta_value || !isset($meta_value)) && ( isset( $options['selected'] ) && $options['selected'] ) ) {
[3246] Fix | Delete
$meta_value = $options['value'];
[3247] Fix | Delete
}
[3248] Fix | Delete
$class = $meta_value == $options['value']?'selected':'';
[3249] Fix | Delete
[3250] Fix | Delete
if(isset($meta_box['show_title'])){
[3251] Fix | Delete
$title = isset($options['title'])? $options['title']: ucwords(str_replace('-', ' ', $options['value']));
[3252] Fix | Delete
} else {
[3253] Fix | Delete
$title = '';
[3254] Fix | Delete
}
[3255] Fix | Delete
$w= isset($option['w'])?$option['w']:'46';
[3256] Fix | Delete
$h= isset($option['w'])?$option['w']:'35';
[3257] Fix | Delete
// Check image src whether absolute url or relative url
[3258] Fix | Delete
$img_src = ( '' != parse_url( $options['img'], PHP_URL_SCHEME) ) ? $options['img'] : get_template_directory_uri() . '/' . $options['img'];
[3259] Fix | Delete
[3260] Fix | Delete
$ops_html .= sprintf('<a href="#" class="preview-icon %s"><img src="%s" alt="%s" width="'.$w.'" height="'.$h.'" loading="lazy" decoding="async"/><span class="tm-option-title">%s</span></a>',
[3261] Fix | Delete
$class,
[3262] Fix | Delete
esc_url( $img_src ),
[3263] Fix | Delete
esc_attr( $options['value'] ),
[3264] Fix | Delete
$title
[3265] Fix | Delete
);
[3266] Fix | Delete
}
[3267] Fix | Delete
[3268] Fix | Delete
$page_layout = empty( $page_layout ) ? 'default' : $page_layout;
[3269] Fix | Delete
[3270] Fix | Delete
/* data-selected is the selected option, whereas 'value' is the thing stored in db */
[3271] Fix | Delete
$html = sprintf('%s<input type="hidden" name="%s" value="%s" class="val" data-selected="%s" />',
[3272] Fix | Delete
$ops_html, esc_attr( $meta_box['name'] ), esc_attr( $page_layout ), $meta_value );
[3273] Fix | Delete
[3274] Fix | Delete
if(isset($meta_box['label']) && '' != $meta_box['label'])
[3275] Fix | Delete
$html = sprintf('<label for="%s">%s %s</label>', esc_attr( $meta_box['name'] ), $html, esc_attr( $meta_box['label'] ));
[3276] Fix | Delete
[3277] Fix | Delete
$html .= isset( $meta_box['description'] )? themify_meta_field_get_description($meta_box['description']) : '';
[3278] Fix | Delete
[3279] Fix | Delete
if( isset( $meta_box['before'] ) ) $html = $meta_box['before'] . $html;
[3280] Fix | Delete
if( isset( $meta_box['after'] ) ) $html .= $meta_box['after'];
[3281] Fix | Delete
[3282] Fix | Delete
echo $html;
[3283] Fix | Delete
echo '</div>';
[3284] Fix | Delete
}
[3285] Fix | Delete
add_action( 'themify_metabox/field/page_layout', 'themify_meta_field_page_layout', 10, 3 );
[3286] Fix | Delete
add_action( 'themify_metabox/field/fontawesome', 'themify_meta_field_fontawesome', 10, 1 );
[3287] Fix | Delete
add_action( 'themify_metabox/field/sidebar_visibility', 'themify_meta_field_sidebar_visibility', 10, 1 );
[3288] Fix | Delete
add_action( 'themify_metabox/field/featimgdropdown', 'themify_meta_field_featimgdropdown', 10, 1 );
[3289] Fix | Delete
add_action( 'themify_metabox/field/page_builder', 'themify_meta_field_page_builder', 10, 1 );
[3290] Fix | Delete
add_action( 'admin_notices', 'themify_prompt_message' );
[3291] Fix | Delete
[3292] Fix | Delete
require_once THEMIFY_DIR . '/themify-import-functions.php';
[3293] Fix | Delete
if(themify_is_ajax()){
[3294] Fix | Delete
require_once THEMIFY_DIR . '/themify-wpajax.php';
[3295] Fix | Delete
}
[3296] Fix | Delete
if ( themify_is_themify_theme() ) {
[3297] Fix | Delete
[3298] Fix | Delete
/**
[3299] Fix | Delete
* In this hook current user is authenticated so we can check for capabilities.
[3300] Fix | Delete
*
[3301] Fix | Delete
* @since 2.1.8
[3302] Fix | Delete
*/
[3303] Fix | Delete
function themify_after_user_is_authenticated() {
[3304] Fix | Delete
if ( current_theme_supports( 'themify-exclude-theme-from-wp-update' ) ) {
[3305] Fix | Delete
add_filter( 'http_request_args', 'themify_hide_themes', 10, 2 );
[3306] Fix | Delete
}
[3307] Fix | Delete
/**
[3308] Fix | Delete
* Themify - Admin Menu
[3309] Fix | Delete
*******************************************************/
[3310] Fix | Delete
add_action( 'admin_menu', 'themify_admin_nav', 1 );
[3311] Fix | Delete
if ( current_user_can( 'manage_options' ) ) {
[3312] Fix | Delete
add_action( 'load-toplevel_page_themify', function() {
[3313] Fix | Delete
if ( isset( $_GET['tf_clean_gz'] ) ) {
[3314] Fix | Delete
// clean gz files from the theme
[3315] Fix | Delete
themify_remove_gzip( THEME_DIR );
[3316] Fix | Delete
// clean gz files from all Themify plugins
[3317] Fix | Delete
$plugins = get_plugins();
[3318] Fix | Delete
foreach ( $plugins as $path => $data ) {
[3319] Fix | Delete
if ( isset( $data['Author'] ) && $data['Author'] === 'Themify' ) {
[3320] Fix | Delete
themify_remove_gzip( trailingslashit( WP_PLUGIN_DIR ) . dirname( $path ) );
[3321] Fix | Delete
}
[3322] Fix | Delete
}
[3323] Fix | Delete
}
[3324] Fix | Delete
} );
[3325] Fix | Delete
}
[3326] Fix | Delete
}
[3327] Fix | Delete
add_action( 'init', 'themify_after_user_is_authenticated' );
[3328] Fix | Delete
[3329] Fix | Delete
/**
[3330] Fix | Delete
* Hijacks themes passed for upgrade checking and remove those from Themify
[3331] Fix | Delete
*
[3332] Fix | Delete
* This feature is only required for legacy themes without "themify-" prefix,
[3333] Fix | Delete
* to prevent updates from wp.org overwriting theme files.
[3334] Fix | Delete
*
[3335] Fix | Delete
* @param Bool
[3336] Fix | Delete
* @param Array $r List of themes
[3337] Fix | Delete
* @param String $url URL of upgrade check
[3338] Fix | Delete
* @return Array
[3339] Fix | Delete
* @since 1.1.8
[3340] Fix | Delete
*/
[3341] Fix | Delete
function themify_hide_themes( $response, $url ){
[3342] Fix | Delete
if ( 0 === strpos( $url, 'https://api.wordpress.org/themes/update-check' ) ) {
[3343] Fix | Delete
$themes = json_decode( $response['body']['themes'] );
[3344] Fix | Delete
unset( $themes->themes->{get_option( 'template' )},$themes->themes->{get_option( 'stylesheet' )} );
[3345] Fix | Delete
$response['body']['themes'] = json_encode( $themes );
[3346] Fix | Delete
}
[3347] Fix | Delete
[3348] Fix | Delete
return $response;
[3349] Fix | Delete
}
[3350] Fix | Delete
[3351] Fix | Delete
require_once THEMIFY_DIR . '/class-tgm-plugin-activation.php';
[3352] Fix | Delete
}
[3353] Fix | Delete
[3354] Fix | Delete
/**
[3355] Fix | Delete
* List all files in a directory, recursively
[3356] Fix | Delete
*
[3357] Fix | Delete
* @return array
[3358] Fix | Delete
*/
[3359] Fix | Delete
function themify_glob_recursive( $pattern, $flags = 0 ) {
[3360] Fix | Delete
$files = glob( $pattern, $flags );
[3361] Fix | Delete
foreach ( glob( dirname( $pattern ) . '/*', GLOB_ONLYDIR|GLOB_NOSORT ) as $dir ) {
[3362] Fix | Delete
$files = array_merge( $files, themify_glob_recursive( $dir . '/' . basename( $pattern ), $flags ) );
[3363] Fix | Delete
}
[3364] Fix | Delete
[3365] Fix | Delete
return $files;
[3366] Fix | Delete
}
[3367] Fix | Delete
[3368] Fix | Delete
/**
[3369] Fix | Delete
* Removes all .gz files found in the $path
[3370] Fix | Delete
*/
[3371] Fix | Delete
function themify_remove_gzip( $path ) {
[3372] Fix | Delete
$search = themify_glob_recursive( $path . '/*.gz' );
[3373] Fix | Delete
foreach ( $search as $file ) {
[3374] Fix | Delete
@unlink( $file );
[3375] Fix | Delete
}
[3376] Fix | Delete
}
[3377] Fix | Delete
[3378] Fix | Delete
/**
[3379] Fix | Delete
* Loads Term Cover feature, an option to add an image to taxonomy terms
[3380] Fix | Delete
*
[3381] Fix | Delete
* @since 7.0
[3382] Fix | Delete
* @return void
[3383] Fix | Delete
*/
[3384] Fix | Delete
function themify_load_term_cover_feature() {
[3385] Fix | Delete
if ( current_theme_supports( 'themify-term-cover' ) ) {
[3386] Fix | Delete
require_once THEMIFY_DIR . '/class-tf-term-image.php';
[3387] Fix | Delete
}
[3388] Fix | Delete
}
[3389] Fix | Delete
add_action( 'admin_init', 'themify_load_term_cover_feature' );
[3390] Fix | Delete
[3391] Fix | Delete
function themify_gutenberg_admin_css() {
[3392] Fix | Delete
$screen=get_current_screen();
[3393] Fix | Delete
if (!empty($screen) && $screen->is_block_editor() ) {
[3394] Fix | Delete
echo '
[3395] Fix | Delete
<style>
[3396] Fix | Delete
.editor-styles-wrapper {
[3397] Fix | Delete
font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
[3398] Fix | Delete
}
[3399] Fix | Delete
.wp-block-post-content{
[3400] Fix | Delete
padding:0 3%
[3401] Fix | Delete
}
[3402] Fix | Delete
.themify-gutenberg-editor :is(.editor-post-title,.block-editor-block-list__layout){
[3403] Fix | Delete
padding-inline:3%
[3404] Fix | Delete
}
[3405] Fix | Delete
</style>
[3406] Fix | Delete
';
[3407] Fix | Delete
}
[3408] Fix | Delete
}
[3409] Fix | Delete
add_action( 'admin_head', 'themify_gutenberg_admin_css' );
[3410] Fix | Delete
[3411] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function