X7ROOT File Manager
Current Path:
/home/hamdjcne/public_html/wp-content/themes/hub/liquid
home
/
hamdjcne
/
public_html
/
wp-content
/
themes
/
hub
/
liquid
/
ðŸ“
..
ðŸ“
admin
ðŸ“
assets
ðŸ“
extensions
📄
index.php
(26 B)
ðŸ“
libs
📄
liquid-base.php
(2.21 KB)
📄
liquid-dynamic-css.php
(20.8 KB)
📄
liquid-helpers.php
(24.85 KB)
📄
liquid-init.php
(12.65 KB)
📄
liquid-media.php
(9.08 KB)
📄
liquid-meta-boxes-init.php
(2.77 KB)
📄
liquid-responsive-css.php
(7.7 KB)
📄
liquid-template-tags.php
(5.27 KB)
📄
liquid-theme-layout.php
(12.61 KB)
📄
liquid-theme-options-init.php
(2.45 KB)
ðŸ“
structure
ðŸ“
vendors
Editing: liquid-theme-options-init.php
<?php /** * Liquid Themes Theme Framework * The Liquid_Theme_Options initiate the theme option machine. */ if( !defined( 'ABSPATH' ) ) exit; // Exit if accessed directly class Liquid_Theme_Options extends Liquid_Base { public $ReduxFramework = null; public $theme = null; public $args = array(); public $sections = array(); /** * [__construct description] * @method __construct */ public function __construct() { if ( !class_exists( 'ReduxFramework' ) ) { return; } $this->theme = wp_get_theme(); $this->set_arguments(); if( ! isset( $this->args['opt_name'] ) ) { return; } $this->set_sections(); $this->ReduxFramework = new ReduxFramework($this->sections, $this->args); } public function get_redux() { return $this->ReduxFramework; } /** * All the possible arguments for Redux. * @see https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments - For full documentation on arguments. */ public function set_arguments() { $this->args = array( 'opt_name' => liquid()->get_option_name(), // 'display_name' => $this->theme->get( 'Name' ), // // 'intro_text' => esc_html__( 'Set global options here', 'hub' ), // 'display_version' => $this->theme->get( 'Version' ), // 'menu_type' => 'submenu', // 'menu_title' => esc_html__( 'Theme Options', 'hub' ), // 'page_title' => esc_html__( 'Theme Options', 'hub' ), // 'global_variable' => 'liquid_options', 'async_typography' => false, 'admin_bar' => false, 'dev_mode' => false, 'show_options_object' => false, 'customizer' => true, 'page_parent' => 'liquid', 'page_permissions' => 'manage_options', 'page_slug' => 'liquid-theme-options', 'templates_path' => get_template_directory() . '/templates/redux/' ); } /** * [setSections description] * @method setSections */ public function set_sections() { $sections = get_theme_support( 'liquid-theme-options' ); $sections = isset( $sections[0] ) ? $sections[0] : false; if( ! $sections ) { return; } $path = get_template_directory() . '/theme/'; foreach( $sections as $section ) { $file = "theme-options/liquid-{$section}.php"; include_once $path . $file; } } }
Upload File
Create Folder