cat_ID] = $of_cat->cat_name;}
$categories_tmp = array_unshift($of_categories, "Select a category:");
//Access the WordPress Pages via an Array
$of_pages = array();
$of_pages_obj = get_pages('sort_column=post_parent,menu_order');
foreach ($of_pages_obj as $of_page) {
$of_pages[$of_page->ID] = $of_page->post_name; }
$of_pages_tmp = array_unshift($of_pages, "Select a page:");
//Testing
$of_options_select = array("one","two","three","four","five");
$of_options_radio = array("one" => "One","two" => "Two","three" => "Three","four" => "Four","five" => "Five");
//Sample Homepage blocks for the layout manager (sorter)
$of_options_homepage_blocks = array
(
"disabled" => array (
"placebo" => "placebo", //REQUIRED!
"block_one" => "Block One",
"block_two" => "Block Two",
"block_three" => "Block Three",
),
"enabled" => array (
"placebo" => "placebo", //REQUIRED!
"block_four" => "Block Four",
),
);
//Stylesheets Reader
$alt_stylesheet_path = LAYOUT_PATH;
$alt_stylesheets = array();
if ( is_dir($alt_stylesheet_path) )
{
if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) )
{
while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false )
{
if(stristr($alt_stylesheet_file, ".css") !== false)
{
$alt_stylesheets[] = $alt_stylesheet_file;
}
}
}
}
//Background Images Reader
$bg_images_path = get_stylesheet_directory(). '/images/bg/'; // change this to where you store your bg images
$bg_images_url = get_template_directory_uri().'/images/bg/'; // change this to where you store your bg images
$bg_images = array();
if ( is_dir($bg_images_path) ) {
if ($bg_images_dir = opendir($bg_images_path) ) {
while ( ($bg_images_file = readdir($bg_images_dir)) !== false ) {
if(stristr($bg_images_file, ".png") !== false || stristr($bg_images_file, ".jpg") !== false) {
$bg_images[] = $bg_images_url . $bg_images_file;
}
}
}
}
/*-----------------------------------------------------------------------------------*/
/* TO DO: Add options/functions that use these */
/*-----------------------------------------------------------------------------------*/
//More Options
$uploads_arr = wp_upload_dir();
$all_uploads_path = $uploads_arr['path'];
$all_uploads = get_option('of_uploads');
$other_entries = array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19");
$body_repeat = array("no-repeat","repeat-x","repeat-y","repeat");
$body_pos = array("top left","top center","top right","center left","center center","center right","bottom left","bottom center","bottom right");
// Image Alignment radio box
$of_options_thumb_align = array("alignleft" => "Left","alignright" => "Right","aligncenter" => "Center");
// Image Links to Options
$of_options_image_link_to = array("image" => "The Image","post" => "The Post");
/*-----------------------------------------------------------------------------------*/
/* The Options Array */
/*-----------------------------------------------------------------------------------*/
// Set the Options Array
global $of_options;
$of_options = array();
$of_options[] = array( "name" => "Home Settings",
"type" => "heading"
);
$of_options[] = array( "name" => "Hello there!",
"desc" => "",
"id" => "introduction",
"std" => "
Welcome to Beauty Light Theme
You can change everything from here just as like as you want.If you have any question or suggestion just feel free to contact.The theme is developed by Md.Golam Dostogir",
"icon" => true,
"type" => "info"
);
$of_options[] = array( "name" => "Upload your logo",
"desc" => "*Best size is width:180 by height:70",
"id" => "logo_upload",
"type" => "upload"
);
$of_options[] = array( "name" => "Update Welcome Page Services Boxes",
);
$of_options[] = array( "name" => "Welcome page Tagline",
"desc" => "Give Tagline",
"id" => "tagline",
"type" => "text"
);
$of_options[] = array( "name" => "Welcome page Left Top Box",
"desc" => "Give Service Title",
"id" => "box1_title",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give Service Description",
"id" => "box1_desc",
"type" => "textarea"
);
$of_options[] = array( "name" => "Upload a service icon image",
"desc" => "Best size is width:62 by height:54",
"id" => "box1_img",
"type" => "upload"
);
//
$of_options[] = array( "name" => "Welcome page Right Top Box",
"desc" => "Give Service Title",
"id" => "box2_title",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give Service Description",
"id" => "box2_desc",
"type" => "textarea"
);
$of_options[] = array( "name" => "Upload a service icon image",
"desc" => "Best size is width:62 by height:54",
"id" => "box2_img",
"type" => "upload"
);
//
$of_options[] = array( "name" => "Welcome page Left Bottom Box",
"desc" => "Give Service Title",
"id" => "box3_title",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give Service Description",
"id" => "box3_desc",
"type" => "textarea"
);
$of_options[] = array( "name" => "Upload a service icon image",
"desc" => "Best size is width:62 by height:54",
"id" => "box3_img",
"type" => "upload"
);
//
$of_options[] = array( "name" => "Welcome page Right Bottom Box",
"desc" => "Give Service Title",
"id" => "box4_title",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give Service Description",
"id" => "box4_desc",
"type" => "textarea"
);
$of_options[] = array( "name" => "Upload a service icon image",
"desc" => "Best size is width:62 by height:54",
"id" => "box4_img",
"type" => "upload"
);
//social options
$of_options[] = array( "name" => "Social Settings",
"type" => "heading",
"icon" => ADMIN_IMAGES . "icon-slider.png"
);
$of_options[] = array(
"name" => "Social Settings",
"desc" => "Give your Facebook url(Leave blank if u dont have facebook url)",
"id" => "facebook_url",
"std" => "#",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give your Twiteer url(Leave blank if u dont have twiteer url)",
"id" => "twiteer_url",
"std" => "#",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give your Pinterest url(Leave blank if u dont have pinterest url)",
"id" => "pinterest_url",
"std" => "#",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give your Linkedin url(Leave blank if u dont have Linkedin url)",
"id" => "in_url",
"std" => "#",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give your Rss url(Leave blank if u dont have rss url)",
"id" => "rss_url",
"std" => "#",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give your wordpress url(Leave blank if u dont have wordpress url)",
"id" => "wordpress_url",
"std" => "#",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give your Tumblr url(Leave blank if u dont have Tumblr url)",
"id" => "tm_url",
"std" => "#",
"type" => "text"
);
$of_options[] = array(
"desc" => "Give your Vimeo url(Leave blank if u dont have wordpress url)",
"id" => "vm_url",
"std" => "#",
"type" => "text"
);
//end of social settings
$of_options[] = array( "name" => "General Settings",
"type" => "heading"
);
$of_options[] = array( "name" => "Tracking Code",
"desc" => "Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.",
"id" => "google_analytics",
"std" => "",
"type" => "textarea"
);
$of_options[] = array( "name" => "Footer Text",
"desc" => "You can use the following shortcodes in your footer text: [wp-link] [theme-link] [loginout-link] [blog-title] [blog-link] [the-year]",
"id" => "footer_text",
"type" => "textarea"
);
$of_options[] = array( "name" => "Styling Options",
"type" => "heading"
);
$of_options[] = array( "name" => "Body Background Color",
"desc" => "Pick a background color for the theme (default: #fff).",
"id" => "body_back",
"type" => "color"
);
$of_options[] = array( "name" => "Header Background Color",
"desc" => "Pick a background color for the header",
"id" => "header_background",
"std" => "",
"type" => "color"
);
$of_options[] = array( "name" => "Footer Background Color",
"desc" => "Pick a background color for the footer",
"id" => "footer_background",
"std" => "",
"type" => "color"
);
$of_options[] = array( "name" => "Body Font",
"desc" => "Specify the body font properties",
"id" => "body_font",
"std" => array('size' => '12px','face' => 'arial','style' => 'normal','color' => '#000000'),
"type" => "typography"
);
$of_options[] = array( "name" => "Custom CSS",
"desc" => "Quickly add some CSS to your theme by adding it to this block.",
"id" => "custom_css",
"std" => "",
"type" => "textarea"
);
}//End function: of_options()
}//End chack if function exists: of_options()
?>