RtThemesSupport

RT17-add general details title to the product page

Nov 20th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.00 KB | None | 0 0
  1. <?php
  2. #-----------------------------------------
  3. #   RT-Theme product_custom_fields.php
  4. #   version: 1.0
  5. #-----------------------------------------
  6.  
  7. #
  8. #   Portfolio Custom Fields
  9. #
  10.  
  11. /**
  12. * @var  array  $customFields  Defines the custom fields available
  13. */
  14.  
  15. $customFields = array(
  16.      
  17.     array(
  18.         "name"          => "short_description",
  19.         "title"         => __("Short Description",'rt_theme_admin'),
  20.         "description"       => __('Short description for product listing pages. If you want to show price info in the listing pages, you can use  this code in this field.','rt_theme_admin'),
  21.         "type"          => "textarea"
  22.     ),  
  23.    
  24.     array(
  25.         "title"          => __("Related Products",'rt_theme_admin'),
  26.         "type"           => "heading"
  27.     ),
  28.     array(
  29.         "title"             => __("Select Related Products",'rt_theme_admin'),
  30.         "name"          => "related_products[]",
  31.         "options"       => RTTheme::rt_get_products(),
  32.         "select"            => __("Select products",'rt_theme_admin'),
  33.         "type"          => "selectmultiple"
  34.     ),
  35.  
  36.  
  37.     //document tabs
  38.    
  39.     array(
  40.         "title"          => __("ATTACHED DOCUMENTS",'rt_theme_admin'),
  41.         "type"           => "heading"
  42.     ),
  43.    
  44.     array(
  45.         "name"          => "attached_documents",
  46.         "title"         => __("Attached File Urls", 'rt_theme_admin'),
  47.         "description"       => __("You can attach unlimited file to this product. Please put all the file urls line by line.",'rt_theme_admin'),       
  48.         "type"          => "textarea"
  49.     ),
  50.  
  51.     //general details  
  52.    
  53.     array(
  54.         "title"          => __("General Details",'rt_theme_admin'),
  55.         "type"           => "heading"
  56.     ),     
  57.    
  58.  
  59.     array(
  60.         "name"          => "general_details_title",
  61.         "title"         => __("General Details Name ", 'rt_theme_admin'),
  62.         "type"          => "text"
  63.     ), 
  64.    
  65.     //free tabs
  66.    
  67.     array(
  68.         "title"          => __("FREE TABS",'rt_theme_admin'),
  69.         "type"           => "heading"
  70.     ),       
  71.  
  72.     array(
  73.         "name"          => "free_tab_1_title",
  74.         "title"         => __("#1 - Free Tab Name ", 'rt_theme_admin'),
  75.         "type"          => "text"
  76.     ),
  77.    
  78.     array(
  79.         "name"          => "free_tab_1_content",
  80.         "title"         => __("#1 - Free Tab Content", 'rt_theme_admin'),
  81.         "type"          => "textarea",
  82.         "richeditor"        => "true"      
  83.     ),
  84.  
  85.     array(
  86.         "title"          => "",
  87.         "type"           => "heading"
  88.     ),
  89.    
  90.     array(
  91.         "name"          => "free_tab_2_title",
  92.         "title"         => __("#2 - Free Tab Name", 'rt_theme_admin'),     
  93.         "type"          => "text"
  94.     ),
  95.    
  96.     array(
  97.         "name"          => "free_tab_2_content",
  98.         "title"         => __("#2 - Free Tab Content", 'rt_theme_admin'),
  99.         "type"          => "textarea",
  100.         "richeditor"        => "true"
  101.     ),
  102.  
  103.     array(
  104.         "title"          => "",
  105.         "type"           => "heading"
  106.     ), 
  107.    
  108.     array(
  109.         "name"          => "free_tab_3_title",
  110.         "title"         => __("#3 - Free Tab Name", 'rt_theme_admin'),     
  111.         "type"          => "text",
  112.         "richeditor"        => "true"
  113.     ),
  114.    
  115.     array(
  116.         "name"          => "free_tab_3_content",
  117.         "title"         => __("#3 - Free Tab Content", 'rt_theme_admin'),
  118.         "type"          => "textarea",
  119.         "richeditor"        => "true"
  120.     ),
  121.  
  122. );
  123.  
  124. $settings  = array(
  125.     "name"      => THEMENAME ." Product Options",
  126.     "scope"     => "products",
  127.     "slug"      => "product_custom_fields",
  128.     "capability"    => "edit_post",
  129.     "context"       => "normal",
  130.     "priority"  => "high"
  131. );
  132.  
  133. ?>
Advertisement
Add Comment
Please, Sign In to add comment