createAdminPanel( array( 'name' => 'Theme Cerebellum', 'parent' => 'themes.php' ) ); // General Tab. $general = $panel->createTab( array( 'name' => __( 'General', 'bloggster' ), ) ); $general->createOption( array( 'name' => __( 'Select a Color Theme', 'bloggster' ), 'id' => 'color_palette', 'type' => 'radio-image', 'options' => array( 'light' => IMG_URL . '/palette_light.jpg', 'woods' => IMG_URL . '/palette_woods.jpg', 'dark' => IMG_URL . '/palette_dark.jpg', ), 'default' => 'light', ) ); $general->createOption( array( 'name' => __( 'Favicon', 'bloggster' ), 'id' => 'favicon', 'type' => 'upload', 'desc' => __( 'Upload your favicon. Ideal Size is', 'bloggster' ) . ' 16px x 16px', ) ); $general->createOption( array( 'name' => __( 'iPhone Icon', 'bloggster' ), 'id' => 'iphone', 'type' => 'upload', 'desc' => __( 'Upload your iPhone icon. Ideal Size is', 'bloggster' ) . ' 57px x 57px', ) ); $general->createOption( array( 'name' => __( 'iPhone Retina Icon', 'bloggster' ), 'id' => 'iphone_retina', 'type' => 'upload', 'desc' => __( 'Upload your iPhone Retina Icon. Ideal Size is', 'bloggster' ) . ' 120px x 120px', ) ); $general->createOption( array( 'name' => __( 'iPad Icon', 'bloggster' ), 'id' => 'ipad', 'type' => 'upload', 'desc' => __( 'Upload your iPad Icon. Ideal Size is', 'bloggster' ) . ' 72 x 72px', ) ); $general->createOption( array( 'name' => __( 'iPad Retina Icon', 'bloggster' ), 'id' => 'ipad_retina', 'type' => 'upload', 'desc' => __( 'Uplaod your iPad Retina Icon. Ideal Size is', 'bloggster' ) . ' 144px x 144px', ) ); $general->createOption( array( 'name' => __( 'Head Markup', 'bloggster' ), 'id' => 'head_code', 'type' => 'code', 'desc' => __( 'Any code placed here will be added in the <head> section of the Theme', 'bloggster' ), 'lang' => 'html', ) ); $general->createOption( array( 'name' => __( 'Body Markup', 'bloggster' ), 'id' => 'body_code', 'type' => 'code', 'desc' => __( 'Any code placed here will be added right after the <body> tag of the Theme', 'bloggster' ), 'lang' => 'html', ) ); $general->createOption( array( 'name' => __( 'Custom (S)CSS', 'bloggster' ), 'id' => 'custom_css', 'type' => 'code', 'desc' => __( 'Any additional CSS code can be added here. SCSS is supported as well', 'bloggster' ), 'lang' => 'scss', ) ); $general->createOption( array( 'name' => __( 'Custom JavaScript', 'bloggster' ), 'id' => 'custom_js', 'type' => 'code', 'desc' => __( 'Any additional JavaScript can be added here, the script tags are already included, so type your script in here, without them', 'bloggster' ), 'lang' => 'javascript', ) ); // Header Tab. $header = $panel->createTab( array( 'name' => __( 'Header', 'bloggster' ), ) ); $header->createOption( array( 'name' => __( 'Search Function', 'bloggster' ), 'id' => 'search', 'type' => 'checkbox', 'desc' => __( 'Display Search Icon in the top Menu', 'bloggster' ), 'default' => true, ) ); $header->createOption( array( 'name' => __( 'Header Image', 'bloggster' ), 'id' => 'my_header_img', 'type' => 'upload', 'desc' => __( 'Upload your header image here. It will replace the title and subtitle display shown by default.', 'bloggster' ), ) ); $header->createOption( array( 'name' => __( 'Header Logo', 'bloggster' ), 'id' => 'my_header_logo', 'type' => 'upload', 'desc' => __( 'Upload your logo here, it will be shown next to the title', 'bloggster' ), ) ); // Social Media Tab. $socialmedia = $panel->createTab( array( 'name' => __( 'Social Media', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'facebook', 'bloggster' ), 'id' => 'fb', 'type' => 'text', 'desc' => __( 'Include Facebook', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'Google+', 'bloggster' ), 'id' => 'gplus', 'type' => 'text', 'desc' => __( 'Include Google Plus', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'twitter', 'bloggster' ), 'id' => 'twitter', 'type' => 'text', 'desc' => __( 'Include Twitter', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'linkedIn', 'bloggster' ), 'id' => 'li', 'type' => 'text', 'desc' => __( 'Include LinkedIn', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'Xing', 'bloggster' ), 'id' => 'xing', 'type' => 'text', 'desc' => __( 'Include Xing', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'Pinterest', 'bloggster' ), 'id' => 'pin', 'type' => 'text', 'desc' => __( 'Include Pinterest', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'Instagram', 'bloggster' ), 'id' => 'insta', 'type' => 'text', 'desc' => __( 'Include Instagram', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'Flickr', 'bloggster' ), 'id' => 'flickr', 'type' => 'text', 'desc' => __( 'Include Flickr', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'deviantArt', 'bloggster' ), 'id' => 'dA', 'type' => 'text', 'desc' => __( 'Include deviantArt', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'dribbble', 'bloggster' ), 'id' => 'dribbble', 'type' => 'text', 'desc' => __( 'Include Dribble', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'Behance', 'bloggster' ), 'id' => 'behance', 'type' => 'text', 'desc' => __( 'Include Behance', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'GitHub', 'bloggster' ), 'id' => 'github', 'type' => 'text', 'desc' => __( 'Include GitHub', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'tumblr', 'bloggster' ), 'id' => 'tumblr', 'type' => 'text', 'desc' => __( 'Include Tumblr', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'YouTube', 'bloggster' ), 'id' => 'yt', 'type' => 'text', 'desc' => __( 'Include YouTube', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'Vimeo', 'bloggster' ), 'id' => 'vimeo', 'type' => 'text', 'desc' => __( 'Include Vimeo', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'Vine', 'bloggster' ), 'id' => 'vine', 'type' => 'text', 'desc' => __( 'Include Vine', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'SoundCloud', 'bloggster' ), 'id' => 'sc', 'type' => 'text', 'desc' => __( 'Include Soundcloud', 'bloggster' ), ) ); $socialmedia->createOption( array( 'name' => __( 'Spotify', 'bloggster' ), 'id' => 'spotifiy', 'type' => 'text', 'desc' => __( 'Include Spotify', 'bloggster' ), ) ); // Article Tab. $article = $panel->createTab( array( 'name' => __( 'Article Settings', 'bloggster' ), ) ); $article->createOption( array( 'name' => __( 'Meta Information', 'bloggster' ), 'id' => 'meta_info', 'type' => 'multicheck', 'desc' => __( 'Check the ones you want to show', 'bloggster' ), 'options' => array( '1' => __( 'Date', 'bloggster' ), '2' => __( 'Author', 'bloggster' ), '3' => __( 'Category', 'bloggster' ), '4' => __( 'Tags', 'bloggster' ), ), 'default' => array( '1', '2', '3', '4' ), ) ); $article->createOption( array( 'name' => __( 'Featured Image', 'bloggster' ), 'id' => 'feat_img', 'type' => 'multicheck', 'desc' => __( 'Display Search Icon in the top Menu', 'bloggster' ), 'options' => array( '1' => __( 'Display the featured image on home page', 'bloggster' ), '2' => __( 'Display the featured image on single page', 'bloggster' ), '3' => __( 'Display featured image of featured post on home page', 'bloggster' ), ), 'default' => array( '1', '2', '3' ), ) ); $article->createOption( array( 'name' => __( 'Featured Category', 'bloggster' ), 'id' => 'fcselect', 'type' => 'select-categories', 'desc' => __( 'Select from what category the most recent post shall be taken.', 'bloggster' ), ) ); $article->createOption( array( 'name' => __( 'AddThis Code', 'bloggster' ), 'id' => 'addthis_code', 'type' => 'code', 'desc' => __( 'Add the addthis container here. Place the javascript within the custom body section found in the General tab', 'bloggster' ), 'lang' => 'html', ) ); // Footer Tab. $footer = $panel->createTab( array( 'name' => __( 'Footer', 'bloggster' ), ) ); $footer->createOption( array( 'name' => __( 'Select a Layout for the widgetized footer', 'bloggster' ), 'id' => 'footer_layout', 'type' => 'radio-image', 'options' => array( 'full_width' => IMG_URL . '/foot_1.jpg', '2_widget_area' => IMG_URL . '/foot_2.jpg', '3_widget_area' => IMG_URL . '/foot_3.jpg', '4_widget_area' => IMG_URL . '/foot_4.jpg', 'hide_footer' => IMG_URL . '/foot_0.jpg', ), 'default' => '3_widget_area', ) ); $footer->createOption( array( 'name' => __( 'Footer Elements', 'bloggster' ), 'id' => 'foot_elements', 'type' => 'multicheck', 'desc' => __( 'Check which elements to display', 'bloggster' ), 'options' => array( '1' => __( 'Back to top link', 'bloggster' ), '2' => __( 'Social Media Icons', 'bloggster' ), ), 'default' => array( '1', '2' ), ) ); $footer->createOption( array( 'name' => __( 'Footer Content', 'bloggster' ), 'id' => 'foot_content', 'type' => 'editor', 'desc' => __( 'Put your footer content here', 'bloggster' ), ) ); $panel->createOption( array( 'type' => 'save', ) ); } } new Digitalmind_Admin_Options(); ?>