| Server IP : 216.250.13.251 / Your IP : 216.73.217.37 Web Server : nginx/1.24.0 System : Linux gunay 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : root ( 0) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/gunay/wp-content/plugins/rt19-extentions/inc/metaboxes/ |
Upload File : |
<?php
#-----------------------------------------
# RT-Theme design_custom_fields.php
# version: 1.0
#-----------------------------------------
//get nav list
$rt_nav_menu_list =rt_get_nav_menus();
$rt_nav_menu_list[""] = _x("Default",'Admin Panel','rt_theme');
ksort($rt_nav_menu_list);
#
# Design Custom Fields
#
$customFields = array(
array(
"description" => __("Use these options to alter the global theme options for this page. ",'rt_theme'),
"type" => "info_text_only"
),
/* ==========================================================================
CUSTOM PAGE MENU
========================================================================== */
array(
"title" => _x("CUSTOMIZE MENUS",'Admin Panel','rt_theme'),
"type" => "heading"
),
array(
"name" => "_custom_main_menu",
"title" => _x("Main Menu",'Admin Panel','rt_theme'),
"description" => "",
"transport" => "refresh",
"options" => $rt_nav_menu_list,
"description" => _x('You can change the main navigation menu for this page only.','Admin Panel','rt_theme'),
"default" => "",
"type" => "select"
),
array(
"name" => "_custom_side_panel_menu",
"title" => _x("Side Panel Menu",'Admin Panel','rt_theme'),
"description" => "",
"transport" => "refresh",
"options" => $rt_nav_menu_list,
"description" => _x('You can change the side panel menu for this page only.','Admin Panel','rt_theme'),
"default" => "",
"type" => "select"
),
/* ==========================================================================
TOP HEADER
========================================================================== */
array(
"title" => __("HEADER",'rt_theme'),
"type" => "heading"
),
array(
"name" => "_main_header_row_background_width",
"title" => __("Header Bar Width",'rt_theme'),
"description" => "",
"transport" => "refresh",
"options" => array(
"global" => __("Use the global value","rt_theme"),
"fullwidth" => __("Full Width","rt_theme"),
"default" => __("Content Width","rt_theme"),
),
"type" => "select"
),
);
if( get_theme_mod(RT_THEMESLUG.'_layout') == "layout3" || get_theme_mod(RT_THEMESLUG.'_layout') == "layout4" ){
$customFields = array_merge( $customFields ,array(
array(
"name" => "_main_header_row_bg_color",
"title" => __("Header Background Color",'rt_theme'),
"description" => "",
"type" => "colorpicker",
"rt_skin" => true
),
array(
"name" => "_header_position",
"title" => __("Header Position",'rt_theme'),
"description" => "",
"transport" => "refresh",
"options" => array(
"global" => __("Use the global value","rt_theme"),
"default" => __("Standard","rt_theme"),
"overlapped" => __("Overlapped","rt_theme"),
),
"type" => "select"
),
));
}
if( get_theme_mod(RT_THEMESLUG.'_layout') != "layout1" ){
$customFields = array_merge( $customFields ,array(
/* ==========================================================================
SIDEBARS
========================================================================== */
array(
"title" => __("PAGE LAYOUT",'rt_theme'),
"type" => "heading"
),
array(
"name" => "_post_sidebar_position",
"title" => __("Sidebar Position",'rt_theme'),
"description" => "",
"transport" => "refresh",
"options" => array(
"global"=> __("Use the global value","rt_theme"),
"" => __("No Sidebar","rt_theme"),
"left" => __("Left","rt_theme"),
"right" => __("Right","rt_theme"),
),
"default" => "global",
"type" => "select"
),
array(
"name" => "_custom_sidebar_locations[]",
"title" => _x("Customize Sidebar Locations",'Admin Panel','rt_theme'),
"description" => "",
"transport" => "refresh",
"options" => rtframework_get_sidebar_list(),
"description" => _x("You can customize the sidebar locations and their order by using this select form. Leave blank for default settings.",'Admin Panel','rt_theme'),
"default" => "",
"type" => "selectmultiple",
"dependency" => array(
"element" => "rttheme_post_sidebar_position",
"value" => array("left","right")
),
),
));
}
$customFields = array_merge( $customFields ,array(
/* ==========================================================================
CONTENT WIDTH
========================================================================== */
array(
"title" => __("CONTENT CONTAINER WIDTH",'rt_theme'),
"type" => "heading"
),
array(
"name" => "_default_content_row_width",
"title" => __("Content Container Width",'rt_theme'),
"description" => __("Control the content container width of the main content area. This option will be ignored if this page created with Visual Composer.",'rt_theme'),
"transport" => "refresh",
"options" => array(
"global" => __("Use the global value","rt_theme"),
"fullwidth" => __("Full Width","rt_theme"),
"default" => __("Content Width","rt_theme"),
),
"type" => "select"
),
/* ==========================================================================
PAGE TITLE & BREADCRUMB MENU
========================================================================== */
array(
"title" => __("PAGE TITLE & BREADCRUMB MENU",'rt_theme'),
"type" => "heading"
),
array(
"title" => __("Hide The Page Title",'rt_theme'),
"name" => "_hide_page_title",
"description" => __('Control the visibility of the titles inside the page header bar.','rt_theme'),
"type" => "checkbox"
),
array(
"title" => __("Hide The Breadcrumb Menu",'rt_theme'),
"name" => "_hide_breadcrumb_menu",
"description" => __('Control the visibility of the breadcrumb menu inside the page header bar.','rt_theme'),
"type" => "checkbox"
),
/* ==========================================================================
SUB HEADER BAR STYLING
========================================================================== */
array(
"title" => __("SUB HEADER BAR STYLING",'rt_theme'),
"type" => "heading"
),
));
if( get_theme_mod(RT_THEMESLUG.'_layout') != "layout1" || get_theme_mod(RT_THEMESLUG.'_layout') != "layout2" ){
$customFields = array_merge( $customFields ,array(
array(
"name" => "_sub_header_style",
"title" => __("Sub Header Style",'rt_theme'),
"description" => "",
"transport" => "refresh",
"options" => array(
"global" => __("Use the global value","rt_theme"),
"default-style" => __("Default","rt_theme"),
"center-style" => __("Centered","rt_theme"),
),
"type" => "select",
"hr" => true
),
));
}
$customFields = array_merge( $customFields ,array(
array(
"name" => "_header_row_background_width",
"title" => __("Sub Header Bar Width",'rt_theme'),
"description" => "",
"transport" => "refresh",
"options" => array(
"global" => __("Use the global value","rt_theme"),
"fullwidth" => __("Full Width","rt_theme"),
"default" => __("Content Width","rt_theme"),
),
"type" => "select",
"hr" => true
),
array(
"title" => __("Sub Header Background Options",'rt_theme'),
"description" => __('You can customize the header background settings for this post only','rt_theme'),
"name" => "_header_options",
"options" => array(
"default" => __("Use the global settings","rt_theme"),
"new" => __("Customize for this post","rt_theme"),
),
"type" => "select",
"class" => "div_controller",
),
array(
"div_class" => "hidden_options_set",
"name" => "_header_options_hidden",
"type" => "div_start",
"dependency" => array(
"element" => "rttheme_header_options",
"value" => array("new")
),
),
array(
"name" => "_header_row_font_color",
"title" => __("Page Title Font Color",'rt_theme'),
"description" => "",
"transport" => "postMessage",
"default" => "",
"type" => "colorpicker",
"rt_skin" => true
),
array(
"name" => "_header_row_bg_color",
"title" => __("Background Color",'rt_theme'),
"description" => "",
"type" => "colorpicker",
"rt_skin" => true
),
array(
"name" => "_header_row_bg_image",
"title" => __("Background Image",'rt_theme'),
"description" => "",
"type" => "upload",
),
array(
"name" => "_header_row_bg_effect",
"title" => __("Parallax Effect",'rt_theme'),
"description" => "",
"options" => array(
"parallax" => __("Enabled","rt_theme"),
"" => __("Disabled","rt_theme"),
),
"type" => "select",
),
array(
"name" => "_header_row_bg_position",
"title" => __("Position",'rt_theme'),
"description" => "",
"options" => array(
"right top" => __("Right Top","rt_theme"),
"right center" => __("Right Center","rt_theme"),
"right bottom" => __("Right Bottom","rt_theme"),
"left top" => __("Left Top","rt_theme"),
"left center" => __("Left Center","rt_theme"),
"left bottom" => __("Left Bottom","rt_theme"),
"center top" => __("Center Top","rt_theme"),
"center center" => __("Center Center","rt_theme"),
"center bottom" => __("Center Bottom","rt_theme"),
),
"type" => "select",
),
array(
"name" => "_header_row_bg_attachment",
"title" => __("Attachment",'rt_theme'),
"description" => "",
"options" => array("scroll" =>__("Scroll","rt_theme"), "fixed" =>__("Fixed","rt_theme")),
"type" => "radio",
),
array(
"name" => "_header_row_bg_image_repeat",
"title" => __("Repeat",'rt_theme'),
"description" => "",
"options" => array(
"repeat" => __("Tile","rt_theme"),
"repeat-x" => __("Tile Horizontally","rt_theme"),
"repeat-y" => __("Tile Vertically","rt_theme"),
"no-repeat" => __("No Repeat","rt_theme"),
),
"type" => "radio",
),
array(
"name" => "_header_row_bg_size",
"title" => __("Background Size",'rt_theme'),
"description" => "",
"options" => array(
"auto auto" => __("Auto","rt_theme"),
"cover" => __("Cover","rt_theme"),
"contain" => __("Contain","rt_theme"),
"100% auto" => __("100%","rt_theme"),
"50% auto" => __("50%","rt_theme"),
"25% auto" => __("25%","rt_theme"),
),
"type" => "select",
),
array(
"type" => "div_end"
),
/* ==========================================================================
BREADCRUMB MENU STYLING
========================================================================== */
array(
"title" => __("BREADCRUMB MENU STYLING",'rt_theme'),
"type" => "heading"
),
array(
"title" => __("Breadcrumb Colors",'rt_theme'),
"description" => __('You can customize the breadcrumbs styling for this post only.','rt_theme'),
"name" => "_breadcrumb_styling",
"options" => array(
"default" => __("Use the global settings","rt_theme"),
"new" => __("Customize for this post","rt_theme"),
),
"type" => "select",
"class" => "div_controller",
),
array(
"div_class" => "hidden_options_set",
"name" => "_breadcrumb_styling_hidden",
"type" => "div_start",
"dependency" => array(
"element" => "rttheme_breadcrumb_styling",
"value" => array("new")
),
),
array(
"name" => "_breadcrumb_font_color",
"title" => __("Breadcrumb Font Color",'rt_theme'),
"description" => "",
"type" => "colorpicker",
),
array(
"name" => "_breadcrumb_link_color",
"title" => __("Breadcrumb Link Color",'rt_theme'),
"description" => "",
"type" => "colorpicker",
),
array(
"name" => "_breadcrumb_bg_color",
"title" => __("Breadcrumb Background Color",'rt_theme'),
"description" => "",
"type" => "colorpicker",
),
array(
"type" => "div_end"
),
/* ==========================================================================
BODY
========================================================================== */
array(
"title" => __("BODY",'rt_theme'),
"type" => "heading"
),
array(
"title" => __("Body Background",'rt_theme'),
"description" => __('You can customize the body background settings for this post only.','rt_theme'),
"name" => "_body_background_options",
"options" => array(
"default" => __("Use the global settings","rt_theme"),
"new" => __("Customize for this post","rt_theme"),
),
"type" => "select",
"class" => "div_controller",
),
array(
"div_class" => "hidden_options_set",
"name" => "_body_background_options_hidden",
"type" => "div_start",
"dependency" => array(
"element" => "rttheme_body_background_options",
"value" => array("new")
),
),
array(
"title" => __("Background Video (MP4)",'rt_theme'),
"desc" => "",
"name" => "_body_background_video_mp4",
"type" => "upload"),
array(
"title" => __("Background Video (WEBM)",'rt_theme'),
"desc" => "",
"name" => "_body_background_video_webm",
"type" => "upload",
"hr" => true
),
array(
"title" => __("Background Image",'rt_theme'),
"desc" => "",
"name" => "_body_background_image_url",
"type" => "upload"),
array(
"title" => __("Background Color",'rt_theme'),
"desc" => "",
"name" => "_body_background_color",
"type" => "colorpicker"
),
array(
"name" => "_body_background_attachment",
"title" => __("Attachment",'rt_theme'),
"options" => array("scroll" =>__("Scroll","rt_theme"), "fixed" =>__("Fixed","rt_theme")),
"type" => "radio",
),
array(
"title" => __("Position",'rt_theme'),
"desc" => "",
"name" => "_body_background_position",
"options" => array(
"right top" => __("Right Top","rt_theme"),
"right center" => __("Right Center","rt_theme"),
"right bottom" => __("Right Bottom","rt_theme"),
"left top" => __("Left Top","rt_theme"),
"left center" => __("Left Center","rt_theme"),
"left bottom" => __("Left Bottom","rt_theme"),
"center top" => __("Center Top","rt_theme"),
"center center" => __("Center Center","rt_theme"),
"center bottom" => __("Center Bottom","rt_theme"),
),
"type" => "select"),
array(
"title" => __("Repeat",'rt_theme'),
"desc" => "",
"name" => "_body_background_repeat",
"options" => array(
"repeat" => __("Tile","rt_theme"),
"repeat-x" => __("Tile Horizontally","rt_theme"),
"repeat-y" => __("Tile Vertically","rt_theme"),
"no-repeat" => __("No Repeat","rt_theme"),
),
"type" => "radio",
"default" => "repeat"
),
array(
"title" => __("Background Size",'rt_theme'),
"desc" => "",
"name" => "_body_background_size",
"options" => array(
"auto auto" => __("Auto","rt_theme"),
"cover" => __("Cover","rt_theme"),
"contain" => __("Contain","rt_theme"),
"100% auto" => __("100%","rt_theme"),
"50% auto" => __("50%","rt_theme"),
"25% auto" => __("25%","rt_theme"),
),
"default" => "auto auto",
"type" => "select"
),
array(
"type" => "div_end"
),
));
if( get_theme_mod(RT_THEMESLUG.'_layout') == "layout1" || get_theme_mod(RT_THEMESLUG.'_layout') == "" ){
$customFields = array_merge( $customFields ,array(
/* ==========================================================================
LEFT SIDE
========================================================================== */
array(
"title" => __("LEFT SIDE",'rt_theme'),
"type" => "heading"
),
array(
"title" => __("Left Side",'rt_theme'),
"description" => __('You can customize the left side background settings for this post only.','rt_theme'),
"name" => "_left_background_options",
"options" => array(
"default" => __("Use the global settings","rt_theme"),
"new" => __("Customize for this post","rt_theme"),
),
"type" => "select",
"class" => "div_controller",
),
array(
"div_class" => "hidden_options_set",
"name" => "_left_background_options_hidden",
"type" => "div_start",
"dependency" => array(
"element" => "rttheme_left_background_options",
"value" => array("new")
),
),
array(
"title" => __("Background Image",'rt_theme'),
"desc" => "",
"name" => "_left_background_image_url",
"type" => "upload"),
array(
"title" => __("Parallax Effect",'rt_theme'),
"desc" => "",
"name" => "_left_background_parallax_effect",
"options" => array(
"true" => __("Enabled",'rt_theme'),
"" => __("Disabled",'rt_theme')
),
"type" => "select"),
array(
"title" => __("Background Color",'rt_theme'),
"desc" => "",
"name" => "_left_background_color",
"type" => "colorpicker"
),
array(
"title" => __("Position",'rt_theme'),
"desc" => "",
"name" => "_left_background_position",
"options" => array(
"right top" => __("Right Top","rt_theme"),
"right center" => __("Right Center","rt_theme"),
"right bottom" => __("Right Bottom","rt_theme"),
"left top" => __("Left Top","rt_theme"),
"left center" => __("Left Center","rt_theme"),
"left bottom" => __("Left Bottom","rt_theme"),
"center top" => __("Center Top","rt_theme"),
"center center" => __("Center Center","rt_theme"),
"center bottom" => __("Center Bottom","rt_theme"),
),
"type" => "select"),
array(
"title" => __("Repeat",'rt_theme'),
"desc" => "",
"name" => "_left_background_repeat",
"options" => array(
"repeat" => __("Tile","rt_theme"),
"repeat-x" => __("Tile Horizontally","rt_theme"),
"repeat-y" => __("Tile Vertically","rt_theme"),
"no-repeat" => __("No Repeat","rt_theme"),
),
"type" => "radio",
"default" => "repeat"
),
array(
"title" => __("Background Size",'rt_theme'),
"desc" => "",
"name" => "_left_background_size",
"options" => array(
"auto auto" => __("Auto","rt_theme"),
"cover" => __("Cover","rt_theme"),
"contain" => __("Contain","rt_theme"),
"100% auto" => __("100%","rt_theme"),
"50% auto" => __("50%","rt_theme"),
"25% auto" => __("25%","rt_theme"),
),
"default" => "auto auto",
"type" => "select"
),
array(
"type" => "div_end"
),
array(
"title" => __("Top padding of the left side (px)",'rt_theme'),
"description" => __('Set a padding value in pixels for the left side top. Use only numbers and leave blank to use the global value.','rt_theme'),
"name" => "_left_top_padding",
"default" => "",
"type" => "text"
),
/* ==========================================================================
RIGHT SIDE
========================================================================== */
array(
"title" => __("RIGHT SIDE",'rt_theme'),
"type" => "heading"
),
array(
"title" => __("Right Side Background",'rt_theme'),
"description" => __('You can customize the right side background settings for this post only.','rt_theme'),
"name" => "_right_background_options",
"options" => array(
"default" => __("Use the global settings","rt_theme"),
"new" => __("Customize for this post","rt_theme"),
),
"type" => "select",
"class" => "div_controller",
),
array(
"div_class" => "hidden_options_set",
"name" => "_right_background_options_hidden",
"type" => "div_start",
"dependency" => array(
"element" => "rttheme_right_background_options",
"value" => array("new")
),
),
array(
"title" => __("Background Image",'rt_theme'),
"name" => "_right_background_image_url",
"type" => "upload"),
array(
"title" => __("Background Color",'rt_theme'),
"name" => "_right_background_color",
"type" => "colorpicker"
),
array(
"name" => "_right_background_attachment",
"title" => __("Attachment",'rt_theme'),
"options" => array("scroll" =>__("Scroll","rt_theme"), "fixed" =>__("Fixed","rt_theme")),
"type" => "radio",
),
array(
"title" => __("Position",'rt_theme'),
"name" => "_right_background_position",
"options" => array(
"right top" => __("Right Top","rt_theme"),
"right center" => __("Right Center","rt_theme"),
"right bottom" => __("Right Bottom","rt_theme"),
"left top" => __("Left Top","rt_theme"),
"left center" => __("Left Center","rt_theme"),
"left bottom" => __("Left Bottom","rt_theme"),
"center top" => __("Center Top","rt_theme"),
"center center" => __("Center Center","rt_theme"),
"center bottom" => __("Center Bottom","rt_theme"),
),
"type" => "select"),
array(
"title" => __("Repeat",'rt_theme'),
"name" => "_right_background_repeat",
"options" => array(
"repeat" => __("Tile","rt_theme"),
"repeat-x" => __("Tile Horizontally","rt_theme"),
"repeat-y" => __("Tile Vertically","rt_theme"),
"no-repeat" => __("No Repeat","rt_theme"),
),
"type" => "radio",
"default" => "repeat"
),
array(
"title" => __("Background Size",'rt_theme'),
"name" => "_right_background_size",
"options" => array(
"auto auto" => __("Auto","rt_theme"),
"cover" => __("Cover","rt_theme"),
"contain" => __("Contain","rt_theme"),
"100% auto" => __("100%","rt_theme"),
"50% auto" => __("50%","rt_theme"),
"25% auto" => __("25%","rt_theme"),
),
"default" => "auto auto",
"type" => "select"
),
array(
"type" => "div_end"
),
array(
"title" => __("Top padding of the right side (px)",'rt_theme'),
"description" => __('Set a padding value in pixels for the right side top. Use only numbers and leave blank to use the global value.','rt_theme'),
"name" => "_right_top_padding",
"default" => "",
"type" => "text"
),
));
}
$customFields = array_merge( $customFields ,array(
/* ==========================================================================
FOOTER
========================================================================== */
array(
"title" => __("FOOTER STYLING",'rt_theme'),
"type" => "heading"
),
array(
"name" => "_footer_background_width",
"title" => __("Footer Container Width",'rt_theme'),
"description" => "",
"transport" => "refresh",
"options" => array(
"global" => __("Use the global value","rt_theme"),
"fullwidth" => __("Full Width","rt_theme"),
"default" => __("Content Width","rt_theme"),
),
"type" => "select"
),
array(
"name" => "_footer_content_width",
"title" => __("Footer Content Width",'rt_theme'),
"description" => "",
"transport" => "refresh",
"options" => array(
"global" => __("Use the global value","rt_theme"),
"fullwidth" => __("Full Width","rt_theme"),
"default" => __("Content Width","rt_theme"),
),
"type" => "select"
),
));
$settings = array(
"name" => __("Design Options",'rt_theme'),
"scope" => array('page','post','product','portfolio','products','staff'),
"slug" => "rt_design_custom_fields",
"capability" => "edit_page",
"context" => "normal",
"priority" => "core"
);
$rt_design_custom_fields = new rt_meta_boxes($settings,$customFields);
?>