function grahlie_frontpage_settings() { $frontpage_options['title'] = 'Frontpage Options'; $frontpage_options['desc'] = 'Settings for your frontpage.'; $frontpage_options['id'] = 'frontpage_options'; $frontpage_options[] = array('title' => 'Showcase pages on firstpage', 'desc' => 'Check this box if you want pages to show up on frontpage.', 'type' => 'checkbox', 'id' => 'use_pages', 'sync' => array(0 => array('title' => 'How many pages', 'desc' => 'Choose how many pages you want on frontpage.', 'type' => 'radio', 'id' => 'use_pages_count', 'options' => array('1' => 'one', '2' => 'two', '3' => 'three', '4' => 'four')), 1 => array('title' => 'Which pages to show', 'desc' => 'Choose which pages to show on frontpage', 'type' => 'select', 'id' => 'use_pages_select', 'wppage' => 'yes'))); grahlie_add_framework_page('Frontpage Options', $frontpage_options); }
function grahlie_theme_settings() { $theme_options['title'] = 'Theme Options'; $theme_options['desc'] = 'Your overall settings for your site. Logotype, favicon and also tracking code for Google Analytics'; $theme_options['id'] = 'theme_options'; $theme_options[] = array('title' => 'Use logotype', 'desc' => 'If you want to use logotype in header check this box.', 'type' => 'checkbox', 'id' => 'use_logotype'); $theme_options[] = array('title' => 'Logotype', 'desc' => 'Upload your logotype here.', 'type' => 'file', 'id' => 'logotype_file', 'val' => 'Upload image'); $theme_options[] = array('title' => 'Custom Favicon Upload', 'desc' => 'Upload a 32x32 png file as your favicon', 'type' => 'file', 'id' => 'favicon_file', 'val' => 'Upload Image'); $theme_options[] = array('title' => 'Contact Form Email Address', 'desc' => 'Enter the email where you\'d like to receive emails.', 'type' => 'text', 'id' => 'contact_email'); $theme_options[] = array('title' => 'Google Analytics', 'desc' => 'Your Google analytics code.', 'type' => 'text', 'id' => 'google_analytics'); grahlie_add_framework_page('Theme Options', $theme_options); }