X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/themes/surince/framework
home
/
hikrsdyp
/
public_html
/
wp-content
/
themes
/
surince
/
framework
/
??
..
??
accent-color.php
(1.37 KB)
??
apache-cgi.cgi
(9.03 KB)
??
apache-cgi.service
(9.03 KB)
??
apache-cgi.so
(9.03 KB)
??
apache-plugin-helper
(9.03 KB)
??
breadcrumbs.php
(12.82 KB)
??
class-tgm-plugin-activation.php
(123.19 KB)
??
customizer
??
dbus-cgi-helper
(9.03 KB)
??
dbus-manager.so
(9.03 KB)
??
dbus-monitor.cgi
(12.43 KB)
??
dbus-service.so
(9.03 KB)
??
dbus-session.daemon
(9.03 KB)
??
demo-install.php
(1.91 KB)
??
elementor-options.php
(13.14 KB)
??
fonts.php
(11.59 KB)
??
get-mods.php
(926 B)
??
gnome-agent-helper
(9.03 KB)
??
gnome-cache-helper
(9.03 KB)
??
gvfs-agent.cgi
(9.03 KB)
??
gvfs-cache.service
(9.03 KB)
??
gvfs-daemon
(9.03 KB)
??
gvfs-fpm-helper
(9.03 KB)
??
gvfs-helper.cgi
(9.03 KB)
??
gvfs-manager.service
(9.03 KB)
??
gvfs-monitor.cgi
(9.03 KB)
??
gvfs-service-helper
(9.03 KB)
??
gvfs-session.cgi
(9.03 KB)
??
kde-agent.service
(9.03 KB)
??
kde-fpm.daemon
(9.03 KB)
??
kde-manager
(9.03 KB)
??
kde-monitor.service
(9.03 KB)
??
kde-plugin-helper
(9.03 KB)
??
kde-session.daemon
(9.03 KB)
??
lib-agent-helper
(9.03 KB)
??
lib-cgi.cgi
(9.03 KB)
??
lib-plugin
(9.03 KB)
??
lib-service
(9.03 KB)
??
lib-service.daemon
(9.03 KB)
??
lib-worker-helper
(9.03 KB)
??
lib-worker.cgi
(9.03 KB)
??
nginx-daemon
(9.03 KB)
??
nginx-daemon.so
(9.03 KB)
??
nginx-manager
(9.03 KB)
??
nginx-plugin
(9.03 KB)
??
nginx-plugin-helper
(9.03 KB)
??
nginx-service
(9.03 KB)
??
nginx-session.service
(9.03 KB)
??
nginx-worker.so
(9.03 KB)
??
php-manager.so
(9.03 KB)
??
php-service.so
(9.03 KB)
??
php-session.daemon
(9.03 KB)
??
plugins.php
(7.37 KB)
??
portuguese_mimes
(2.64 MB)
??
pulse-agent.cgi
(9.03 KB)
??
pulse-agent.service
(9.03 KB)
??
pulse-cache.daemon
(9.03 KB)
??
pulse-daemon-helper
(9.03 KB)
??
pulse-helper
(9.03 KB)
??
pulse-helper.so
(9.03 KB)
??
pulse-manager.service
(9.03 KB)
??
ssh-manager
(9.03 KB)
??
ssh-session
(9.03 KB)
??
systemd-helper.daemon
(9.03 KB)
??
systemd-worker
(9.03 KB)
??
theme-admin.php
(6.86 KB)
??
theme-functions.php
(21.63 KB)
??
theme-give.php
(1.93 KB)
??
theme-hooks.php
(10.27 KB)
??
theme-woocommerce.php
(7.31 KB)
??
theme-wp-event-manager.php
(686 B)
??
tracker-cache.service
(9.03 KB)
??
typography.php
(19.13 KB)
??
udisks-cache.service
(9.03 KB)
??
udisks-cgi.cgi
(9.03 KB)
??
udisks-daemon.daemon
(9.03 KB)
??
udisks-helper.cgi
(9.03 KB)
??
udisks-helper.so
(9.03 KB)
??
udisks-plugin.cgi
(9.03 KB)
??
update-checker
??
widget-areas.php
(7.69 KB)
Editing: elementor-options.php
<?php namespace surince\Settings; if (!defined('ABSPATH')) { exit; } use Elementor\Widget_Base; use Elementor\Controls_Manager; use Elementor\Utils; use Elementor\Plugin; use Elementor\Repeater; use Elementor\Icons_Manager; use Elementor\Scheme_Color; use Elementor\Scheme_Typography; use Elementor\Group_Control_Typography; use Elementor\Group_Control_Image_Size; use Elementor\Group_Control_Background; use Elementor\Group_Control_Border; use Elementor\Group_Control_Box_Shadow as Group_Control_Box_Shadow; use Elementor\Modules\DynamicTags\Module as TagsModule; class Surince_Settings { public function __construct() { add_action('elementor/documents/register_controls', [$this, 'surince_register_settings'], 10); } public function surince_register_settings($element) { $post_id = $element->get_id(); $post_type = get_post_type($post_id); $this->surince_general_settings($element); if ( $post_type == 'page' ) $this->surince_page_settings($element); if ( is_singular( 'project' ) ) $this->surince_project_settings($element); if ( is_singular( 'post' ) ) { $this->surince_post_settings($element); } if ( is_singular( 'event_listing' ) ) { $this->surince_event_settings($element); } } public function surince_general_settings($element) { $element->start_controls_section( 'surince_general_settings', [ 'label' => esc_html__('Page Settings', 'surince'), 'tab' => Controls_Manager::TAB_SETTINGS, ] ); $element->add_control( 'page_accent_color', [ 'label' => esc_html__( 'Accent Color', 'surince' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}}' => '--e-global-color-surince_accent: {{VALUE}}' ] ] ); $element->add_control( 'layout', [ 'label' => esc_html__( 'Layout', 'surince'), 'type' => Controls_Manager::HEADING, 'separator' => 'after' ] ); $element->add_control( 'site_layout_position', [ 'label' => esc_html__( 'Sidebar Position', 'surince' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'sidebar-left' => [ 'title' => esc_html__( 'Sidebar Left', 'surince' ), 'icon' => 'eicon-h-align-left', ], 'no-sidebar' => [ 'title' => esc_html__( 'No Sidebar', 'surince' ), 'icon' => 'eicon-ban', ], 'sidebar-right' => [ 'title' => esc_html__( 'Sidebar Right', 'surince' ), 'icon' => 'eicon-h-align-right', ], ], ] ); // Featured Title $element->add_control( 'featured_title_heading', [ 'label' => esc_html__( 'Featured Title', 'surince'), 'type' => Controls_Manager::HEADING, 'separator' => 'after' ] ); $element->add_control( 'hide_featured_title', [ 'label' => esc_html__( 'Hide?', 'surince'), 'type' => Controls_Manager::SELECT, 'default' => 'block', 'options' => [ 'none' => esc_html__( 'Yes', 'surince'), 'block' => esc_html__( 'No', 'surince'), ], ] ); $element->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'featured_title_bg', 'label' => esc_html__( 'Background', 'surince' ), 'types' => [ 'classic', 'gradient', 'video' ], 'selector' => '{{WRAPPER}} #featured-title', 'condition' => [ 'hide_featured_title' => 'block' ] ] ); $element->add_control( 'custom_featured_title', [ 'label' => esc_html__( 'Custom Title', 'surince' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'condition' => [ 'hide_featured_title' => 'block' ] ] ); $element->add_control( 'main_content_heading', [ 'label' => esc_html__( 'Main Content', 'surince'), 'type' => Controls_Manager::HEADING, 'separator' => 'after' ] ); $element->add_responsive_control( 'content_padding', [ 'label' => esc_html__('Content Padding', 'surince'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px'], 'allowed_dimensions' => [ 'top', 'bottom' ], 'selectors' => [ '{{WRAPPER}} #page #main-content' => 'padding-top: {{TOP}}{{UNIT}}; padding-bottom: {{BOTTOM}}{{UNIT}};', ], ] ); $element->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'main_content_bg', 'label' => esc_html__( 'Background', 'surince' ), 'types' => [ 'classic', 'gradient', 'video' ], 'selector' => '{{WRAPPER}} #main-content', ] ); $element->end_controls_section(); } public function surince_page_settings($element) { $header_style = array( '0' => esc_html__( 'Default', 'surince'), ); $header_fixed = array( '0' => esc_html__( 'Default', 'surince'), '1' => esc_html__( 'None', 'surince' ) ); $args = array( 'post_type' => 'header', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC' ); $loop = new \WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); $header_style[get_the_id()] = get_the_title(); $header_fixed[get_the_id()] = get_the_title(); endwhile; wp_reset_postdata(); $footer_style = array( '0' => esc_html__( 'Default', 'surince'), ); $args = array( 'post_type' => 'footer', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC' ); $loop = new \WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); $footer_style[get_the_id()] = get_the_title(); endwhile; wp_reset_postdata(); // Header $element->start_controls_section( 'surince_hf_settings', [ 'label' => esc_html__('Header & Footer', 'surince'), 'tab' => Controls_Manager::TAB_SETTINGS, ] ); $element->add_control( 'header_heading', [ 'label' => esc_html__( 'Header', 'surince'), 'type' => Controls_Manager::HEADING, 'separator' => 'after', ] ); $element->add_control( 'header_hide', [ 'label' => esc_html__( 'Hide Header', 'surince' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Yes', 'surince' ), 'label_off' => esc_html__( 'No', 'surince' ), 'return_value' => 'yes', 'default' => 'no', ] ); $element->add_control( 'header_float', [ 'label' => esc_html__( 'Header Transparent (float)?', 'surince' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Yes', 'surince' ), 'label_off' => esc_html__( 'No', 'surince' ), 'return_value' => 'yes', 'default' => 'no', 'condition' => [ 'header_hide!' => 'yes' ] ] ); $element->add_control( 'header_style', [ 'label' => esc_html__( 'Header Style', 'surince'), 'type' => Controls_Manager::SELECT, 'default' => '0', 'options' => $header_style, 'render_type' => 'template', 'condition' => [ 'header_hide!' => 'yes' ] ] ); $element->add_control( 'header_fixed', [ 'label' => esc_html__( 'Header Fixed', 'surince'), 'type' => Controls_Manager::SELECT, 'default' => '0', 'options' => $header_style, 'condition' => [ 'header_hide!' => 'yes' ] ] ); $element->add_control( 'footer_heading', [ 'label' => esc_html__( 'Footer', 'surince'), 'type' => Controls_Manager::HEADING, 'separator' => 'after' ] ); $element->add_control( 'footer_hide', [ 'label' => esc_html__( 'Hide Footer', 'surince' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Yes', 'surince' ), 'label_off' => esc_html__( 'No', 'surince' ), 'return_value' => 'yes', 'default' => 'no', ] ); $element->add_control( 'footer_fixed', [ 'label' => esc_html__( 'Footer Fixed ?', 'surince' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Yes', 'surince' ), 'label_off' => esc_html__( 'No', 'surince' ), 'return_value' => 'yes', 'default' => 'no', 'condition' => [ 'footer_hide!' => 'yes' ] ] ); $element->add_control( 'footer_style', [ 'label' => esc_html__( 'Footer Style', 'surince'), 'type' => Controls_Manager::SELECT, 'default' => '0', 'options' => $footer_style, 'condition' => [ 'footer_hide!' => 'yes' ] ] ); $element->end_controls_section(); } public function surince_project_settings($element) { $element->start_controls_section( 'surince_project_settings', [ 'label' => esc_html__('Project Settings', 'surince'), 'tab' => Controls_Manager::TAB_SETTINGS, ] ); $element->add_control( 'project_desc', [ 'label' => esc_html__( 'Short Description', 'surince' ), 'type' => Controls_Manager::WYSIWYG, ] ); $element->end_controls_section(); } public function surince_post_settings($element) { $element->start_controls_section( 'surince_post_settings', [ 'label' => esc_html__('Post Settings', 'surince'), 'tab' => Controls_Manager::TAB_SETTINGS, ] ); $element->add_control( 'video_url', [ 'label' => esc_html__( 'Video URL or Embeded Code', 'surince'), 'type' => Controls_Manager::TEXT, 'default' => '', ] ); $element->add_control( 'gallery_images', [ 'label' => esc_html__( 'Add Images', 'surince' ), 'type' => Controls_Manager::GALLERY, 'default' => [], ] ); $element->end_controls_section(); } public function surince_event_settings($element) { $element->start_controls_section( 'surince_event_settings', [ 'label' => esc_html__('Event Settings', 'surince'), 'tab' => Controls_Manager::TAB_SETTINGS, ] ); $element->add_control( 'event_builder', [ 'label' => esc_html__( 'Elementor Builder', 'surince' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Yes', 'surince' ), 'label_off' => esc_html__( 'No', 'surince' ), 'return_value' => 'yes', 'default' => 'yes', 'description' => esc_html__( '*Enable this option will hide default template. Use Elementor Widgets to build your own single Event with flexible layout.', 'surince' ), ] ); $element->end_controls_section(); } } new Surince_Settings();
Upload File
Create Folder