Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.15.26.231
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/home/wavevlvu/misswavenigeria.com/wp-content/themes/siteorigin-unwind/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/wavevlvu/misswavenigeria.com/wp-content/themes/siteorigin-unwind/functions.php
<?php
/**
 * SiteOrigin Unwind functions and definitions.
 *
 * @see https://developer.wordpress.org/themes/basics/theme-functions/
 * @since siteorigin-unwind 0.1
 *
 * @license GPL 2.0
 */
define( 'SITEORIGIN_THEME_VERSION', '1.9.18' );
define( 'SITEORIGIN_THEME_JS_PREFIX', '.min' );
define( 'SITEORIGIN_THEME_CSS_PREFIX', '.min' );

// Load theme specific files.
require get_template_directory() . '/inc/extras.php';
require get_template_directory() . '/inc/jetpack.php';
require get_template_directory() . '/inc/siteorigin-panels.php';
require get_template_directory() . '/inc/settings/settings.php';
require get_template_directory() . '/inc/settings.php';
require get_template_directory() . '/inc/template-tags.php';
require get_template_directory() . '/inc/deprecated.php';

if ( ! function_exists( 'siteorigin_unwind_setup' ) ) {
	/**
	 * Sets up theme defaults and registers support for various WordPress features.
	 *
	 * Note that this function is hooked into the after_setup_theme hook, which
	 * runs before the init hook. The init hook is too late for some features, such
	 * as indicating support for post thumbnails.
	 */
	function siteorigin_unwind_setup() {
		/*
		 * Make theme available for translation.
		 * Translations can be filed in the /languages/ directory.
		 * If you're building a theme based on siteorigin_unwind, use a find and replace
		 * to change 'siteorigin-unwind' to the name of your theme in all the template files.
		 */
		load_theme_textdomain( 'siteorigin-unwind', get_template_directory() . '/languages' );

		// Add default posts and comments RSS feed links to head.
		add_theme_support( 'automatic-feed-links' );

		/*
		 * Let WordPress manage the document title.
		 * By adding theme support, we declare that this theme does not use a
		 * hard-coded <title> tag in the document head, and expect WordPress to
		 * provide it for us.
		 */
		add_theme_support( 'title-tag' );

		/*
		 * Enable support for Post Thumbnails on posts and pages.
		 *
		 * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
		 */
		add_theme_support( 'post-thumbnails' );

		/*
		 * Enable support for the custom logo.
		 */
		add_theme_support( 'custom-logo' );

		// This theme uses wp_nav_menu() in one location.
		register_nav_menus( array(
			'primary' => esc_html__( 'Primary Menu', 'siteorigin-unwind' ),
		) );

		/*
		 * Switch default core markup for search form, comment form, and comments
		 * to output valid HTML5.
		 */
		add_theme_support( 'html5', array(
			'comment-form',
			'comment-list',
			'gallery',
			'caption',
		) );

		/*
		 * Enable support for Post Formats.
		 * See https://developer.wordpress.org/themes/functionality/post-formats/
		 */
		add_theme_support( 'post-formats', array(
			'gallery',
			'image',
			'video',
		) );

		// Custom image sizes.
		add_image_size( 'siteorigin-unwind-263x174-crop', 263, 174, true );
		add_image_size( 'siteorigin-unwind-360x238-crop', 360, 238, true );
		add_image_size( 'siteorigin-unwind-500x500-crop', 500, 500, true );

		// Set up the WordPress core custom background feature.
		add_theme_support(
			'custom-background',
			apply_filters( 'siteorigin_unwind_custom_background_args', array(
				'default-color' => 'ffffff',
				'default-image' => '',
			)
			)
		);

		/*
		 * Enable support for Gutenberg Editor Styles.
		 * https://wordpress.org/gutenberg/handbook/extensibility/theme-support/#editor-styles
		 */
		add_theme_support( 'editor-styles' );

		/*
		 * Allow shortcodes to be use in category descriptions.
		 * See https://developer.wordpress.org/reference/functions/term_description/
		 */
		add_filter( 'term_description', 'shortcode_unautop' );
		add_filter( 'term_description', 'do_shortcode' );

		if ( ! defined( 'SITEORIGIN_PANELS_VERSION' ) ) {
			// Only include panels lite if the panels plugin doesn't exist.
			include get_template_directory() . '/inc/panels-lite/panels-lite.php';
		}

		/*
		 * Support SiteOrigin Page Builder plugin.
		 */
		add_theme_support( 'siteorigin-panels', array(
			'home-page'  => true,
		) );

		/*
		 * Use the SiteOrigin archive theme settings.
		 */
		add_theme_support( 'siteorigin-template-settings' );
	}
} // siteorigin_unwind_setup.
add_action( 'after_setup_theme', 'siteorigin_unwind_setup' );

/*
 * Add the theme's custom WooCommerce functions.
 */
if ( function_exists( 'is_woocommerce' ) ) {
	require get_template_directory() . '/woocommerce/functions.php';
}

/**
 * Set the content width in pixels, based on the theme's design and stylesheet.
 *
 * Priority 0 to make it available to lower priority callbacks.
 *
 * @global int $content_width
 */
function siteorigin_unwind_content_width() {
	$GLOBALS['content_width'] = apply_filters( 'siteorigin_unwind_content_width', 1140 );
}
add_action( 'after_setup_theme', 'siteorigin_unwind_content_width', 0 );

/**
 * Register widget area.
 *
 * @see https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
 */
function siteorigin_unwind_widgets_init() {
	register_sidebar( array(
		'name'          => esc_html__( 'Sidebar', 'siteorigin-unwind' ),
		'id'            => 'main-sidebar',
		'description'   => esc_html__( 'Visible on posts and pages that use the Default or Full Width, With Sidebar layout.', 'siteorigin-unwind' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h2 class="widget-title heading-strike">',
		'after_title'   => '</h2>',
	) );

	register_sidebar( array(
		'name'          => esc_html__( 'Footer', 'siteorigin-unwind' ),
		'id'            => 'footer-sidebar',
		'description'   => esc_html__( 'A column will be automatically assigned to each widget inserted', 'siteorigin-unwind' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h2 class="widget-title heading-strike">',
		'after_title'   => '</h2>',
	) );

	if ( function_exists( 'is_woocommerce' ) ) {
		register_sidebar( array(
			'name'          => esc_html__( 'Shop', 'siteorigin-unwind' ),
			'id'            => 'shop-sidebar',
			'description'   => esc_html__( 'Displays on WooCommerce pages.', 'siteorigin-unwind' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h2 class="widget-title heading-strike">',
			'after_title'   => '</h2>',
		) );
	}

	register_sidebar( array(
		'name'          => esc_html__( 'Masthead', 'siteorigin-unwind' ),
		'id'            => 'masthead-sidebar',
		'description'   => esc_html__( 'Replaces the logo and description. Works with all header layouts except Menu inline with logo.', 'siteorigin-unwind' ),
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h2 class="widget-title heading-strike">',
		'after_title'   => '</h2>',
	) );
}
add_action( 'widgets_init', 'siteorigin_unwind_widgets_init' );

/**
 * Enqueue scripts and styles.
 */
function siteorigin_unwind_scripts() {
	// Theme stylesheet.
	wp_enqueue_style(
		'siteorigin-unwind-style',
		get_template_directory_uri() . '/style' . SITEORIGIN_THEME_CSS_PREFIX . '.css',
		array(),
		SITEORIGIN_THEME_VERSION
	);

	// Flexslider.
	wp_register_style(
		'siteorigin-unwind-flexslider',
		get_template_directory_uri() . '/css/flexslider.css'
	);

	wp_register_script(
		'jquery-flexslider',
		get_template_directory_uri() . '/js/jquery.flexslider' . SITEORIGIN_THEME_JS_PREFIX . '.js',
		array( 'jquery' ),
		'2.6.3',
		true
	);

	if (
		(
			is_home() &&
			siteorigin_setting( 'blog_featured_slider' ) &&
			siteorigin_unwind_has_featured_posts()
		) ||
		(
			is_single() &&
			has_post_format( 'gallery' )
		)
	) {
		wp_enqueue_style( 'siteorigin-unwind-flexslider' );
		wp_enqueue_script( 'jquery-flexslider' );
	}

	// FitVids.
	wp_register_script(
		'jquery-fitvids',
		get_template_directory_uri() . '/js/jquery.fitvids' . SITEORIGIN_THEME_JS_PREFIX . '.js',
		array( 'jquery' ),
		'1.1',
		true
	);

	if ( ! ( function_exists( 'has_blocks' ) && has_blocks() ) ) {
		wp_enqueue_script( 'jquery-fitvids' );
	}

	// Jetpack Portfolio
	if ( post_type_exists( 'jetpack-portfolio' ) ) {
		wp_register_script(
			'jquery-isotope',
			get_template_directory_uri() . '/js/isotope.pkgd' . SITEORIGIN_THEME_JS_PREFIX . '.js',
			array( 'jquery' ),
			'3.0.4',
			true
		);
	}

	// Theme JavaScript.
	wp_enqueue_script(
		'siteorigin-unwind-script',
		get_template_directory_uri() . '/js/unwind' . SITEORIGIN_THEME_JS_PREFIX . '.js',
		array( 'jquery' ),
		SITEORIGIN_THEME_VERSION,
		true
	);

	// Skip link focus fix.
	wp_enqueue_script(
		'siteorigin-unwind-skip-link-focus-fix',
		get_template_directory_uri() . '/js/skip-link-focus-fix' . SITEORIGIN_THEME_JS_PREFIX . '.js',
		array(),
		'20130115',
		true
	);

	// Comment reply.
	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
		wp_enqueue_script( 'comment-reply' );
	}
}
add_action( 'wp_enqueue_scripts', 'siteorigin_unwind_scripts' );

/**
 * Enqueue the Flexslider scripts and styles.
 */
function siteorigin_unwind_enqueue_flexslider() {
	wp_enqueue_style( 'siteorigin-unwind-flexslider' );
	wp_enqueue_script( 'jquery-flexslider' );
}

/**
 * Enqueue Block Editor styles.
 */
function siteorigin_unwind_block_editor_styles() {
	wp_enqueue_style( 'siteorigin-unwind-block-editor-styles', get_template_directory_uri() . '/style-editor.css', SITEORIGIN_THEME_VERSION );
}
add_action( 'enqueue_block_editor_assets', 'siteorigin_unwind_block_editor_styles' );

if ( ! function_exists( 'siteorigin_unwind_post_class_filter' ) ) {
	/**
	 * Filter post classes as required.
	 *
	 * @see https://codex.wordpress.org/Function_Reference/post_class.
	 */
	function siteorigin_unwind_post_class_filter( $classes ) {
		$classes[] = 'post';

		// Resolves structured data issue in core. See https://core.trac.wordpress.org/ticket/28482.
		if ( is_page() ) {
			$class_key = array_search( 'hentry', $classes );

			if ( $class_key !== false ) {
				unset( $classes[ $class_key ] );
			}
		}

		$classes = array_unique( $classes );

		return $classes;
	}
}
add_filter( 'post_class', 'siteorigin_unwind_post_class_filter' );

if ( ! function_exists( 'siteorigin_unwind_premium_setup' ) ) {
	/**
	 * Add support for SiteOrigin Premium theme addons.
	 */
	function siteorigin_unwind_premium_setup() {
		// No Attribution addon.
		add_theme_support( 'siteorigin-premium-no-attribution', array(
			'filter'             => 'siteorigin_unwind_footer_credits',
			'enabled'            => ! siteorigin_setting( 'branding_attribution' ),
			'siteorigin_setting' => '!branding_attribution',
		) );

		// Ajax Comments addon.
		add_theme_support( 'siteorigin-premium-ajax-comments', array(
			'enabled'            => siteorigin_setting( 'blog_ajax_comments' ),
			'siteorigin_setting' => 'blog_ajax_comments',
		) );
	}

  // Logo Booster.
	add_theme_support( 'siteorigin-premium-logo-booster' );
}
add_action( 'after_setup_theme', 'siteorigin_unwind_premium_setup' );

Youez - 2016 - github.com/yon3zu
LinuXploit