Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

G

By: a guest on Sep 20th, 2012  |  syntax: PHP  |  size: 1.32 KB  |  views: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. $pageinfo = array('full_name' => 'Mainpage Options', 'optionname'=>'mainpage', 'child'=>true, 'filename' => basename(__FILE__));
  3.  
  4. $options = array (
  5.  
  6.         array(  "type" => "open"),
  7.         array(  "type" => "group"),
  8.                
  9.         array(  "name" => "Headline Button Text",
  10.                 "desc" => "Enter the text of the button besides the mainpage headline.<br/>",
  11.                 "id" => "buttonText",
  12.                 "std" => "Our Work",
  13.                 "size" => 30,
  14.                 "type" => "text"),
  15.                
  16.         array(  "name" => "Headline Button Link",
  17.                 "desc" => "Where should the button link to:",
  18.         "id" => "buttonLink",
  19.         "type" => "dropdown",
  20.         "subtype" => "page"),
  21.        
  22.         array(  "type" => "group"),    
  23.        
  24.         array(  "name" => "Second Headline Text",
  25.                 "desc" => "Enter the text of the second headline.<br/>",
  26.                 "id" => "second_headline_text",
  27.                 "std" => "text of second headline goes here",
  28.                 "size" => 150,
  29.                 "type" => "text"),
  30.                
  31.        
  32.         array(  "type" => "group"),    
  33.        
  34.         array(  "name" => "Mainpage Content",
  35.                         "desc" => "Select the pages you want to display on your front page here. They are grouped with the help of tabs",
  36.             "id" => "mainpage_content",
  37.             "type" => "multi",
  38.             "subtype" => "page"),      
  39.                
  40.        
  41.         array(  "type" => "group"),
  42.  
  43.            
  44.         array(  "type" => "close")
  45.  
  46.  
  47.        
  48.                        
  49. );
  50.  
  51. $options_page = new kriesi_option_pages($options, $pageinfo);