| 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 single_product_custom_fields.php
# version: 1.0
#-----------------------------------------
#
# Single Product Custom Fields
#
/**
* @var array $customFields Defines the custom fields available
*/
/**
*
*
* WooCommerce Single Content Layout
*
*
*/
$customFields = array(
array(
"title" => __("Single Product Layout",'rt_theme'),
"description" => __('Use this options to overwrite to global single product layout. Select "new" to customize the single product page layout for this post only.','rt_theme'),
"name" => "_product_content_layout_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" => "_product_content_layout_hidden",
"type" => "div_start",
"dependency" => array(
"element" => "rttheme_product_content_layout_options",
"value" => array("new")
),
),
array(
"name" => "_product_content_width",
"title" => __("Product Info Width",'rt_theme'),
"description" => __('Select a width for the content block that contains product title, short info and the images.','rt_theme'),
"options" => array(
"1/6" => "1/6",
"1/4" => "1/4",
"1/3" => "1/3",
"1/2" => "1/2",
"1/1" => "1/1"
),
"type" => "select",
),
array(
"name" => "_product_content_style",
"title" => __("Product Info Width",'rt_theme'),
"description" => __('Select a width for the content block that contains product title, short info and the images.','rt_theme'),
"options" => array(
"1" => __("Stlye 1 - Horizontal Tabs","rt_theme"),
"2" => __("Stlye 2 - Left Vertical Tabs","rt_theme"),
"3" => __("Stlye 3 - Right Vertical Tabs","rt_theme")
),
"type" => "select",
),
array(
"type" => "div_end"
),
);
$settings = array(
"name" => __("Single Product Layout",'rt_theme'),
"scope" => array('product'),
"slug" => "rt_single_product_custom_fields",
"capability" => "edit_page",
"context" => "side",
"priority" => ""
);
$rt_single_product_custom_fields = new rt_meta_boxes($settings,$customFields);
/**
*
*
* Product Showcase Single Content Layout
*
*
*/
$customFields = array(
array(
"title" => __("Single Product Layout",'rt_theme'),
"description" => __('Use this options to overwrite to global single product layout. Select "new" to customize the single product page layout for this post only.','rt_theme'),
"name" => "_product_content_layout_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" => "_product_content_layout_hidden",
"type" => "div_start",
"dependency" => array(
"element" => "rttheme_product_content_layout_options",
"value" => array("new")
),
),
array(
"name" => "_product_content_width",
"title" => __("Product Info Width",'rt_theme'),
"description" => __('Select a width for the content block that contains product title, short info and the images.','rt_theme'),
"options" => array(
"1/6" => "1/6",
"1/4" => "1/4",
"1/3" => "1/3",
"1/2" => "1/2",
"1/1" => "1/1"
),
"type" => "select",
),
array(
"name" => "_product_content_style",
"title" => __("Product Info Width",'rt_theme'),
"description" => __('Select a width for the content block that contains product title, short info and the images.','rt_theme'),
"options" => array(
"1" => __("Stlye 1 - Horizontal Tabs","rt_theme"),
"2" => __("Stlye 2 - Left Vertical Tabs","rt_theme"),
"3" => __("Stlye 3 - Right Vertical Tabs","rt_theme"),
"4" => __("Stlye 4 - Accordion","rt_theme"),
),
"type" => "select",
),
array(
"type" => "div_end"
),
);
$settings = array(
"name" => __("Single Product Layout",'rt_theme'),
"scope" => array('products'),
"slug" => "rt_single_product_custom_fields",
"capability" => "edit_page",
"context" => "side",
"priority" => ""
);
$rt_single_product_custom_fields = new rt_meta_boxes($settings,$customFields);
?>