Files
wingedit.pl/wp-content/themes/restly/inc/restly-default-options.php
2024-11-04 20:48:19 +01:00

54 lines
1.9 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
if ( !defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
function restly_default_theme_options() {
return array(
'restly_copyright_text' => wp_kses(
__( '&copy; Copyright 2021 Restly All Rights Reserved', 'restly' ),
array(
'a' => array(
'href' => array(),
),
'strong' => array(),
'small' => array(),
'span' => array(),
)
),
'restly_not_found_text' => wp_kses(
__( '<h2> Oops! page not found.</h2><p>The page you are looking for is not available or doesnt belong to this website!</p>', 'restly' ),
array(
'a' => array(
'href' => array(),
),
'strong' => array(),
'small' => array(),
'span' => array(),
'p' => array(),
'h1' => array(),
'h2' => array(),
'h3' => array(),
'h4' => array(),
'h5' => array(),
'h6' => array(),
)
),
'restly_blog_title' => esc_html__( 'Blog Standard', 'restly' ),
'restly_error_page_title' => esc_html__( 'Page not found.', 'restly' ),
);
}
if ( !function_exists( 'restly_options' ) ) {
function restly_options( $option = '', $default = null ) {
$defaults = restly_default_theme_options();
$options = get_option( 'restly_Theme_Option' );
$default = ( !isset( $default ) && isset( $defaults[$option] ) ) ? $defaults[$option] : $default;
return ( isset( $options[$option] ) ) ? $options[$option] : $default;
}
}
add_filter( 'csf_welcome_page', '__return_false' );
if(restly_options('restly_classic_widget_enable') == true ){
add_filter( 'use_widgets_block_editor', '__return_false' );
}