'',
'image' => '',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );
//breadcumhide_array
$breadcumhide_array = array(
'true' => __('Enable', 'advertica-lite'),
'false' => __('Disable', 'advertica-lite')
);
$bread_type = array(
'brimage' => __('Image', 'advertica-lite'),
'brcolor' => __('Color', 'advertica-lite')
);
// Pull all the categories into an array
$options_categories = array();
$options_categories_obj = get_categories();
foreach ($options_categories_obj as $category) {
$options_categories[$category->cat_ID] = $category->cat_name;
}
// Pull all tags into an array
$options_tags = array();
$options_tags_obj = get_tags();
foreach ( $options_tags_obj as $tag ) {
$options_tags[$tag->term_id] = $tag->name;
}
// Pull all the pages into an array
$options_pages = array();
$options_pages_obj = get_pages('sort_column=post_parent,menu_order');
$options_pages[''] = 'Select a page:';
foreach ($options_pages_obj as $page) {
$options_pages[$page->ID] = $page->post_title;
}
// set pages
$options_pages = array();
$options_pages_obj = get_pages('sort_column=post_parent,menu_order');
$options_pages[''] = 'Select a page:';
foreach ($options_pages_obj as $page) {
$options_pages[$page->ID] = $page->post_title;
}
// If using image radio buttons, define a directory path
$imagepath = get_template_directory_uri() . '/images/';
$twitterInfo = 'http://www.sketchthemes.com/tutorials/getting-new-twitter-api-consumer-and-secret-keys/';
$options = array();
//General Settings
$options[] = array(
'name' => __('General Settings', 'advertica-lite'),
'type' => 'heading');
$options[] = array(
'name' => __('Choose Theme Color', 'advertica-lite'),
'desc' => __('', 'advertica-lite'),
'id' => $advertica_shortname.'_colorpicker',
'std' => '#FFA500',
'type' => 'color' );
$options[] = array(
'name' => __('Custom Logo', 'advertica-lite'),
'desc' => __('Choose your own logo for your site. Recomended size: 156px * 40px', 'advertica-lite'),
'id' => $advertica_shortname.'_logo_img',
'std' => '',
'type' => 'upload');
$options[] = array(
'name' => __('Logo ALT Text', 'advertica-lite'),
'desc' => __('Enter logo image alt attribute text.', 'advertica-lite'),
'id' => $advertica_shortname.'_logo_alt',
'std' => 'sketch themes',
'type' => 'text');
$options[] = array(
'name' => __('Custom favicon', 'advertica-lite'),
'desc' => __('Choose a custom favicon for your site. Recomended size: 16px*16px or 32px*32px.', 'advertica-lite'),
'id' => $advertica_shortname.'_favicon',
'std' => '',
'type' => 'upload');
//Bg style
$options[] = array(
'name' => __('Custom Background', 'advertica-lite'),
'desc' => __('Change the page background.', 'advertica-lite'),
'id' => $advertica_shortname.'_bg_style',
'std' => $background_style,
'type' => 'background' );
//Front Page Options
$options[] = array(
'name' => __('Home Header Image', 'advertica-lite'),
'type' => 'heading');
$options[] = array(
'name' => __('Home Header Image:', 'advertica-lite'),
'desc' => __('Choose image for home page header. Recomended size: 1600px*500px.', 'advertica-lite'),
'id' => $advertica_shortname.'_frontslider_stype',
'std' => $imagepath.'advertica-header.jpg',
'type' => 'upload');
//Home Page Featured Box Options
$options[] = array(
'name' => __('Home Featured Box', 'advertica-lite'),
'type' => 'heading');
//Featured Box 1
$options[] = array(
'name' => __('First Featured Box Heading', 'advertica-lite'),
'desc' => __('Enter heading for first featured box.', 'advertica-lite'),
'id' => $advertica_shortname.'_fb1_first_part_heading',
'std' => 'Business Strategy',
'type' => 'text');
$options[] = array(
'name' => __('First Featured Box Image', 'advertica-lite'),
'desc' => __('Choose image for first featured box. size: 150px*150px.', 'advertica-lite'),
'id' => $advertica_shortname.'_fb1_first_part_image',
'std' => '',
'type' => 'upload');
$options[] = array(
'name' => __('First Featured Box Content', 'advertica-lite'),
'desc' => __('Enter content for first featured box.','advertica-lite'),
'id' => $advertica_shortname.'_fb1_first_part_content',
'std' => ' Get focused from your target consumers and increase your business with Web portal Design and Development. ',
'type' => 'textarea');
$options[] = array(
'name' => __('First Featured Box Link', 'advertica-lite'),
'desc' => __('Enter link for first featured box.', 'advertica-lite'),
'id' => $advertica_shortname.'_fb1_first_part_link',
'std' => '#',
'type' => 'text');
//Featured Box 2
$options[] = array(
'name' => __('Second Featured Box Heading', 'advertica-lite'),
'desc' => __('Enter heading for second featured box.', 'advertica-lite'),
'id' => $advertica_shortname.'_fb2_second_part_heading',
'std' => 'Quality Products',
'type' => 'text');
$options[] = array(
'name' => __('Second Featured Box Image', 'advertica-lite'),
'desc' => __('Choose image for second featured box. size: 150px*150px.', 'advertica-lite'),
'id' => $advertica_shortname.'_fb2_second_part_image',
'std' => '',
'type' => 'upload');
$options[] = array(
'name' => __('Second Featured Box Content', 'advertica-lite'),
'desc' => __('Enter content for second featured box.','advertica-lite'),
'id' => $advertica_shortname.'_fb2_second_part_content',
'std' => ' Products with the ultimate features and functionality that provide the complete satisfaction to the clients.',
'type' => 'textarea');
$options[] = array(
'name' => __('Second Featured Box Link', 'advertica-lite'),
'desc' => __('Enter link for second featured box.', 'advertica-lite'),
'id' => $advertica_shortname.'_fb2_second_part_link',
'std' => '#',
'type' => 'text');
//Featured Box 3
$options[] = array(
'name' => __('Third Featured Box Heading', 'advertica-lite'),
'desc' => __('Enter heading for third featured box.', 'advertica-lite'),
'id' => $advertica_shortname.'_fb3_third_part_heading',
'std' => 'Best Business Plans',
'type' => 'text');
$options[] = array(
'name' => __('Third Featured Box Image', 'advertica-lite'),
'desc' => __('Choose image for third featured box. size: 150px*150px.', 'advertica-lite'),
'id' => $advertica_shortname.'_fb3_third_part_image',
'std' => '',
'type' => 'upload');
$options[] = array(
'name' => __('Third Featured Box Content', 'advertica-lite'),
'desc' => __('Enter content for third featured box.','advertica-lite'),
'id' => $advertica_shortname.'_fb3_third_part_content',
'std' => ' Based on the client requirement, different business plans suits and fulfill your business and cost requirement.',
'type' => 'textarea');
$options[] = array(
'name' => __('Third Featured Box Link', 'advertica-lite'),
'desc' => __('Enter link for third featured box.', 'advertica-lite'),
'id' => $advertica_shortname.'_fb3_third_part_link',
'std' => '#',
'type' => 'text');
//Front Page Parallax Box Options
$options[] = array(
'name' => __('Home Parallax', 'advertica-lite'),
'type' => 'heading');
$options[] = array(
'name' => __('Home Parallax Image', 'advertica-lite'),
'desc' => __('Choose home page parallax image. Recomended size: 1600px*1000px.', 'advertica-lite'),
'id' => $advertica_shortname.'_fullparallax_image',
'std' => $imagepath.'Parallax_Section_Image.jpg',
'type' => 'upload');
$options[] = array(
'name' => __('Home Parallax Content', 'advertica-lite'),
'desc' => __('Enter home parallax content.','advertica-lite'),
'id' => $advertica_shortname.'_para_content_left',
'std' => '
Awesome Parallax Section
Advertica features an amazing parallax section
',
'type' => 'textarea');
//Front Page Blog Options
$options[] = array(
'name' => __('Home Blogs', 'advertica-lite'),
'type' => 'heading');
$options[] = array(
'name' => __('Home Blogs Enable/Disable:', 'advertica-lite'),
'desc' => __('Radio select with default options "Enable".', 'advertica-lite'),
'id' => $advertica_shortname.'_hide_home_blog',
'std' => 'true',
'type' => 'radio',
'options' => $breadcumhide_array);
$options[] = array(
'name' => __('Home Blogs Title:', 'advertica-lite'),
'desc' => __('Enter blog section title.', 'advertica-lite'),
'id' => $advertica_shortname.'_blogsec_title',
'std' => 'Latest News',
'type' => 'text');
$options[] = array(
'name' => __('Number of post:', 'advertica-lite'),
'desc' => __('Enter number of post to show.', 'advertica-lite'),
'id' => $advertica_shortname.'_blog_no',
'std' => '6',
'type' => 'text');
//Front Page Clients Options
$options[] = array(
'name' => __('Home Clients Logo', 'advertica-lite'),
'type' => 'heading');
$options[] = array(
'name' => __('Client Section Title', 'advertica-lite'),
'desc' => __('Enter title for client section.', 'advertica-lite'),
'id' => $advertica_shortname.'_clientsec_title',
'std' => 'Our Partners',
'type' => 'text');
$options[] = array(
'name' => __('First Client Logo Title', 'advertica-lite'),
'desc' => __('Enter title for first client logo image.', 'advertica-lite'),
'id' => $advertica_shortname.'_img1_title',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('First Client Logo Image', 'advertica-lite'),
'desc' => __('Upload image for first client logo. Recomended size: 232px*101px.', 'advertica-lite'),
'id' => $advertica_shortname.'_img1_icon',
'std' => $imagepath.'clients-logo/client-logo1.png',
'type' => 'upload');
$options[] = array(
'name' => __('First Client Logo Image Link', 'advertica-lite'),
'desc' => __('Enter link for first client logo image.', 'advertica-lite'),
'id' => $advertica_shortname.'_img1_link',
'std' => '#',
'type' => 'text');
$options[] = array(
'name' => __('Second Client Logo Title', 'advertica-lite'),
'desc' => __('Enter title for second client logo image.', 'advertica-lite'),
'id' => $advertica_shortname.'_img2_title',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('Second Client Logo Image', 'advertica-lite'),
'desc' => __('Upload image for second client logo. Recomended size: 232px*101px.', 'advertica-lite'),
'id' => $advertica_shortname.'_img2_icon',
'std' => $imagepath.'clients-logo/client-logo2.png',
'type' => 'upload');
$options[] = array(
'name' => __('Second Client Logo Image Link', 'advertica-lite'),
'desc' => __('Enter link for second client logo image.', 'advertica-lite'),
'id' => $advertica_shortname.'_img2_link',
'std' => '#',
'type' => 'text');
$options[] = array(
'name' => __('Third Client Logo Title', 'advertica-lite'),
'desc' => __('Enter title for third client logo image. Recomended size: 232px*101px.', 'advertica-lite'),
'id' => $advertica_shortname.'_img3_title',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('Third Client Logo Image', 'advertica-lite'),
'desc' => __('Upload image for third client logo.', 'advertica-lite'),
'id' => $advertica_shortname.'_img3_icon',
'std' => $imagepath.'clients-logo/client-logo3.png',
'type' => 'upload');
$options[] = array(
'name' => __('Third Client Logo Image Link', 'advertica-lite'),
'desc' => __('Enter link for third client logo image.', 'advertica-lite'),
'id' => $advertica_shortname.'_img3_link',
'std' => '#',
'type' => 'text');
$options[] = array(
'name' => __('Fourth Client Logo Title', 'advertica-lite'),
'desc' => __('Enter title for fourth client logo image.', 'advertica-lite'),
'id' => $advertica_shortname.'_img4_title',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('Fourth Client Logo Image', 'advertica-lite'),
'desc' => __('Upload image for fourth client logo. Recomended size: 232px*101px.', 'advertica-lite'),
'id' => $advertica_shortname.'_img4_icon',
'std' => $imagepath.'clients-logo/client-logo4.png',
'type' => 'upload');
$options[] = array(
'name' => __('Fourth Client Logo Image Link', 'advertica-lite'),
'desc' => __('Enter link for fourth client logo image.', 'advertica-lite'),
'id' => $advertica_shortname.'_img4_link',
'std' => '#',
'type' => 'text');
$options[] = array(
'name' => __('Fifth Client Logo Title', 'advertica-lite'),
'desc' => __('Enter title for fifth client logo image.', 'advertica-lite'),
'id' => $advertica_shortname.'_img5_title',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('Fifth Client Logo Image', 'advertica-lite'),
'desc' => __('Upload image for fifth client logo. Recomended size: 232px*101px.', 'advertica-lite'),
'id' => $advertica_shortname.'_img5_icon',
'std' => $imagepath.'clients-logo/client-logo5.png',
'type' => 'upload');
$options[] = array(
'name' => __('Fifth Client Logo Image Link', 'advertica-lite'),
'desc' => __('Enter link for fifth client logo image.', 'advertica-lite'),
'id' => $advertica_shortname.'_img5_link',
'std' => '#',
'type' => 'text');
//Blog
$options[] = array(
'name' => __('Blog Page Settings', 'advertica-lite'),
'type' => 'heading');
//Blog page Title
$options[] = array(
'name' => __('Blog Page Title', 'advertica-lite'),
'desc' => __('Enter blog page title.', 'advertica-lite'),
'id' => $advertica_shortname.'_blogpage_heading',
'std' => 'Blog',
'type' => 'text');
//Breadcrumb
$options[] = array(
'name' => __('Breadcrumb Settings', 'advertica-lite'),
'type' => 'heading');
$options[] = array(
'name' => __('Breadcrumb Enable/Disable', 'advertica-lite'),
'desc' => __('Radio select with default options "Enable".', 'advertica-lite'),
'id' => $advertica_shortname.'_hide_bread',
'std' => 'true',
'type' => 'radio',
'options' => $breadcumhide_array);
$options[] = array(
'name' => __('Breadcrumb Background Type', 'advertica-lite'),
'desc' => __('Select breadcrumb background type. Default ( image ).', 'advertica-lite'),
'id' => $advertica_shortname.'_bread_stype',
'std' => 'brimage',
'type' => 'radio',
'options' => $bread_type);
$options[] = array(
'name' => __('Breadcrumb Background Color', 'advertica-lite'),
'desc' => __('Select breadcrumb background color. No color selected by default.', 'advertica-lite'),
'id' => $advertica_shortname.'_bread_color',
'std' => '#F2F2F2',
'type' => 'color',
'class'=>'hidden' );
$options[] = array(
'name' => __('Breadcrumb Background Image (size: 1600px by 180px)', 'advertica-lite'),
'desc' => __('Upload breadcrumb background image.', 'advertica-lite'),
'id' => $advertica_shortname.'_bread_image',
'std' => $imagepath.'page-title-bg.jpg',
'type' => 'upload',
'class'=>'hidden');
$options[] = array(
'name' => __('Breadcrumb Text Color', 'advertica-lite'),
'desc' => __('Select breadcrumb text color. No color selected by default.', 'advertica-lite'),
'id' => $advertica_shortname.'_bread_title_color',
'std' => '#222222',
'type' => 'color' );
//Footer
$options[] = array(
'name' => __('Footer Settings', 'advertica-lite'),
'type' => 'heading');
$options[] = array(
'name' => __('Copyright Text', 'advertica-lite'),
'desc' => __('You can use HTML for links etc..', 'advertica-lite'),
'id' => $advertica_shortname.'_copyright',
'std' => "Copyright Text",
'type' => 'textarea');
return $options;
}
/*
* This is an example of how to add custom scripts to the options panel.
* This example shows/hides an option when a checkbox is clicked.
*/
add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts');
function optionsframework_custom_scripts() { ?>