__( 'Colors' , 'boozurk' ), 'index' => __( 'Posts archives' , 'boozurk' ), 'content' => __( 'Contents' , 'boozurk' ), 'widgets' => __( 'Sidebars and Widgets' , 'boozurk' ), 'javascript' => __( 'Javascript' , 'boozurk' ), 'mobile' => __( 'Mobile' , 'boozurk' ), 'other' => __( 'Other' , 'boozurk' ) ); $boozurk_groups = apply_filters( 'boozurk_options_groups', $boozurk_groups ); $boozurk_coa = array( 'boozurk_jsani'=> array( 'group'=>'javascript', 'type'=>'chk', 'default'=>1, 'description'=>__( 'javascript animations','boozurk' ), 'info'=>__( 'try disable animations if you encountered problems with javascript','boozurk' ), 'req'=>'' ), 'boozurk_js_thickbox'=> array( 'group'=>'javascript', 'type'=>'chk', 'default'=>1, 'description'=>__( 'thickbox preview','boozurk' ), 'info'=>__( 'add the thickbox effect to each linked image and galleries in post content','boozurk' ), 'req'=>'boozurk_jsani', 'sub'=>array('boozurk_js_thickbox_force') ), 'boozurk_js_thickbox_force'=> array( 'group'=>'javascript', 'type'=>'chk', 'default'=>1, 'description'=>__( 'replace links','boozurk' ), 'info'=>__( 'force galleries to use links to image instead of links to attachment','boozurk' ), 'req'=>'', 'sub'=>false ), 'boozurk_js_post_expander'=> array( 'group'=>'javascript', 'type'=>'chk', 'default'=>1, 'description'=>__( 'post expander','boozurk' ), 'info'=>__( 'expands a post to show the full content when the reader clicks the "Read more..." link','boozurk' ), 'req'=>'boozurk_jsani' ), 'boozurk_js_tooltips'=> array( 'group'=>'javascript', 'type'=>'chk', 'default'=>1, 'description'=>__( 'cool tooltips','boozurk' ), 'info'=>__( 'replace titles of some links with cool tooltips','boozurk' ), 'req'=>'boozurk_jsani' ), 'boozurk_js_swfplayer'=> array( 'group'=>'javascript', 'type'=>'chk', 'default'=>1, 'description'=>__( 'swf audio player','boozurk' ), 'info'=>__( 'create an audio player for linked audio files (mp3,ogg and m4a) in the audio format posts','boozurk' ), 'req'=>'boozurk_jsani' ), 'boozurk_quotethis'=> array( 'group'=>'javascript', 'type'=>'chk', 'default'=>1, 'description'=>__( 'quote link', 'boozurk' ), 'info'=>__( 'show a link for easily add the selected text as a quote inside the comment form', 'boozurk' ), 'req'=>'boozurk_jsani' ), 'boozurk_infinite_scroll'=> array( 'group'=>'javascript', 'type'=>'chk', 'default'=>0, 'description'=>__( 'infinite pagination','boozurk' ), 'info'=>__( 'automatically append the next page of posts (via AJAX) to your current page','boozurk' ), 'req'=>'boozurk_jsani', 'sub'=>array('boozurk_infinite_scroll_type') ), 'boozurk_infinite_scroll_type'=> array( 'group'=>'javascript', 'type'=>'sel', 'default'=>'manual', 'description'=>__( 'behaviour','boozurk' ), 'info'=>__( 'auto: when a user scrolls to the bottom - manual: by clicking the link at the end of posts','boozurk' ), 'options'=>array('auto','manual'), 'options_l10n'=>array(__('auto','boozurk'),__('manual','boozurk')), 'req'=>'', 'sub'=>false ), 'boozurk_sidebar_primary'=> array( 'group'=>'widgets', 'type'=>'sel', 'default'=>'scroll', 'description'=>__( 'primary sidebar','boozurk' ), 'info'=> '', 'options'=>array('scroll','fixed'), 'options_l10n'=>array(__('scroll','boozurk'),__('fixed','boozurk')), 'req'=>'' ), 'boozurk_sidebar_secondary'=> array( 'group'=>'widgets', 'type'=>'sel', 'default'=>'fixed', 'description'=>__( 'secondary sidebar','boozurk' ), 'info'=> '', 'options'=>array('scroll','fixed'), 'options_l10n'=>array(__('scroll','boozurk'),__('fixed','boozurk')), 'req'=>'' ), 'boozurk_sidebar_head_split'=> array( 'group'=>'widgets', 'type'=>'sel', 'default'=>'3', 'description'=>__( 'split Header widget area','boozurk' ), 'info'=>__( 'number of widget that can stay in the widget area side by side','boozurk' ), 'options'=>array('1','2','3'), 'options_l10n'=>array('1','2','3'), 'req'=>'' ), 'boozurk_sidebar_single_split'=> array( 'group'=>'widgets', 'type'=>'sel', 'default'=>'1', 'description'=>__( 'split Post widget area','boozurk' ), 'info'=>__( 'number of widget that can stay in the widget area side by side','boozurk' ), 'options'=>array('1','2','3'), 'options_l10n'=>array('1','2','3'), 'req'=>'' ), 'boozurk_sidebar_foot_1_width'=> array( 'group'=>'widgets', 'type'=>'sel', 'default'=>'33%', 'description'=>__( 'footer widget area #1','boozurk' ), 'info'=>__( 'width of the widget area','boozurk' ), 'options'=>array('100%','50%','33%'), 'options_l10n'=>array('100%','50%','33%'), 'req'=>'' ), 'boozurk_sidebar_foot_2_width'=> array( 'group'=>'widgets', 'type'=>'sel', 'default'=>'33%', 'description'=>__( 'footer widget area #2','boozurk' ), 'info'=>__( 'width of the widget area','boozurk' ), 'options'=>array('100%','50%','33%'), 'options_l10n'=>array('100%','50%','33%'), 'req'=>'' ), 'boozurk_sidebar_foot_3_width'=> array( 'group'=>'widgets', 'type'=>'sel', 'default'=>'33%', 'description'=>__( 'footer widget area #3','boozurk' ), 'info'=>__( 'width of the widget area','boozurk' ), 'options'=>array('100%','50%','33%'), 'options_l10n'=>array('100%','50%','33%'), 'req'=>'' ), 'boozurk_custom_widgets'=> array( 'group'=>'widgets', 'type'=>'chk', 'default'=>1, 'description'=>__( 'custom widgets','boozurk' ), 'info'=>__( 'add a lot of new usefull widgets','boozurk' ), 'req'=>'' ), 'boozurk_colors_link_wrap'=> array( 'group'=>'colors', 'type'=>'', 'default'=>'', 'description'=>__( 'links colors','boozurk' ), 'info'=>'', 'req'=>'', 'sub'=>array('boozurk_colors_link', 'boozurk_colors_link_hover', 'boozurk_colors_link_sel') ), 'boozurk_colors_link'=> array( 'group'=>'colors', 'type'=>'col', 'default'=>'#21759b', 'description'=>'', 'info'=>__( 'links','boozurk' ), 'req'=>'', 'sub'=>false ), 'boozurk_colors_link_hover'=> array( 'group'=>'colors', 'type'=>'col', 'default'=>'#404040', 'description'=>'', 'info'=>__( 'highlighted links','boozurk' ), 'req'=>'', 'sub'=>false ), 'boozurk_colors_link_sel'=> array( 'group'=>'colors', 'type'=>'col', 'default'=>'#87CEEB', 'description'=>'', 'info'=>__( 'selected links','boozurk' ), 'req'=>'', 'sub'=>false ), 'boozurk_cat_colors_wrap'=> array( 'group'=>'colors', 'type'=>'', 'default'=>'', 'description'=>__( 'colors for categories','boozurk' ), 'info'=>'', 'req'=>'', 'sub'=>array('boozurk_cat_colors') ), 'boozurk_blank_title'=> array( 'group'=>'content', 'type'=>'chk', 'default'=>1, 'description'=> __( 'blank titles', 'boozurk' ), 'info' => __( 'set the standard text for blank titles', 'boozurk' ), 'req'=>'', 'sub'=>array('boozurk_blank_title_text') ), 'boozurk_blank_title_text' => array( 'group' => 'content', 'type' => 'txt', 'default' => __( '(no title)', 'boozurk' ), 'description' => __( 'default text', 'boozurk' ), 'info' => __( '
you may use these codes:
%d for post date
%f for post format (if any)
%n for post id', 'boozurk' ), 'req' => '', 'sub'=>false ), 'boozurk_excerpt' => array( 'group' => 'content', 'type' => '', 'default' => '', 'description' => __( 'excerpt', 'boozurk' ), 'info' => '', 'req' => '', 'sub'=>array('boozurk_excerpt_length','boozurk_excerpt_more_txt','boozurk_excerpt_more_link') ), 'boozurk_excerpt_length' => array( 'group' => 'content', 'type' => 'int', 'default' => 55, 'description' => __( 'excerpt length', 'boozurk' ), 'info' => '', 'req' => '', 'sub'=>false ), 'boozurk_excerpt_more_txt' => array( 'group' => 'content', 'type' => 'txt', 'default' => '[...]', 'description' => __( 'excerpt more string', 'boozurk' ), 'info' => '', 'req' => '', 'sub'=>false ), 'boozurk_excerpt_more_link' => array( 'group' => 'content', 'type' => 'chk', 'default' => 0, 'description' => __( 'excerpt more linked', 'boozurk' ), 'info' => __( 'use the excerpt more string as a link to the full post', 'boozurk' ), 'req' => '', 'sub'=>false ), 'boozurk_more_tag' => array( 'group' => 'content', 'type' => 'txt', 'default' => __( '(more...)', 'boozurk' ), 'description' => __( '"more" tag string', 'boozurk' ), 'info' => __( 'only plain text. use %t as placeholder for the post title', 'boozurk' ) . ' (Codex)', 'req' => '' ), 'boozurk_cat_colors'=> array( 'group'=>'colors', 'type'=>'catcol', 'default'=>array(), 'defaultcolor'=>'#87CEEB', 'description'=>'', 'info'=>'', 'req'=>'', 'sub'=>false ), 'boozurk_font_family'=> array( 'group'=>'other', 'type'=>'sel', 'default'=>'monospace', 'description'=>__( 'font family','boozurk' ), 'info'=>'', 'options'=>array('monospace','Arial, sans-serif','Helvetica, sans-serif','Comic Sans MS, cursive','Courier New, monospace','Georgia, serif','Lucida Console, Monaco, monospace','Lucida Sans Unicode, Lucida Grande, sans-serif','Palatino Linotype, Book Antiqua, Palatino, serif','Tahoma, Geneva, sans-serif','Times New Roman, Times, serif','Trebuchet MS, sans-serif','Verdana, Geneva, sans-serif'), 'options_l10n'=>array('monospace','Arial, sans-serif','Helvetica, sans-serif','Comic Sans MS, cursive','Courier New, monospace','Georgia, serif','Lucida Console, Monaco, monospace','Lucida Sans Unicode, Lucida Grande, sans-serif','Palatino Linotype, Book Antiqua, Palatino, serif','Tahoma, Geneva, sans-serif','Times New Roman, Times, serif','Trebuchet MS, sans-serif','Verdana, Geneva, sans-serif'), 'req'=>'', 'sub'=>array('boozurk_font_size') ), 'boozurk_font_size'=> array( 'group'=>'other', 'type'=>'sel', 'default'=>'14px', 'description'=>__( 'font size','boozurk' ), 'info'=>'', 'options'=>array('10px','11px','12px','13px','14px','15px','16px'), 'options_l10n'=>array('10px','11px','12px','13px','14px','15px','16px'), 'req'=>'', 'sub'=>false ), 'boozurk_google_font_family'=> array( 'group' => 'other', 'type' => 'txt', 'default' => '', 'description' => __( 'Google web font', 'boozurk' ), 'info' => __( 'Copy and paste Google web font name here. Example: Architects Daughter', 'boozurk' ), 'req' => '', 'sub' => array( 'boozurk_google_font_body', 'boozurk_google_font_post_title', 'boozurk_google_font_post_content' ) ), 'boozurk_google_font_body' => array( 'group' => 'other', 'type' => 'chk', 'default' => 0, 'description' => __( 'for whole site', 'boozurk' ), 'info' => '', 'req' => '', 'sub' => false ), 'boozurk_google_font_post_title' => array( 'group' => 'other', 'type' => 'chk', 'default' => 1, 'description' => __( 'for posts/pages title', 'boozurk' ), 'info' => '', 'req' => '', 'sub' => false ), 'boozurk_google_font_post_content' => array( 'group' => 'other', 'type' => 'chk', 'default' => 0, 'description' => __( 'for posts/pages content', 'boozurk' ), 'info' => '', 'req' => '', 'sub' => false ), 'boozurk_post_formats'=> array( 'group'=>'index', 'type'=>'chk', 'default'=>1, 'description'=>__( 'post formats support','boozurk' ), 'info'=>'WordPress Codex : Post Formats', 'req'=>'' ), 'boozurk_browse_links'=> array( 'group'=>'content', 'type'=>'chk', 'default'=>1, 'description'=>__( 'quick browsing links', 'boozurk' ), 'info'=>__( 'show navigation links before post content', 'boozurk' ), 'req'=>'' ), 'boozurk_post_info'=> array( 'group' => 'content', 'type' => '', 'default' => '', 'description' => __( 'Post details', 'boozurk' ), 'info' => __( 'show post details in index view, right before the post content
in single post view you can use the Post details widget', 'boozurk' ), 'req' => '', 'sub' => array( 'boozurk_post_date', 'boozurk_post_cat', 'boozurk_post_tag' ) ), 'boozurk_post_date'=> array( 'group'=>'content', 'type'=>'chk', 'default'=>1, 'description'=>__( 'date', 'boozurk' ), 'info'=>'', 'req'=>'', 'sub' => false ), 'boozurk_post_cat'=> array( 'group'=>'content', 'type'=>'chk', 'default'=>0, 'description'=>__( 'categories', 'boozurk' ), 'info'=>'', 'req'=>'', 'sub' => false ), 'boozurk_post_tag'=> array( 'group'=>'content', 'type'=>'chk', 'default'=>0, 'description'=>__( 'tags', 'boozurk' ), 'info'=>'', 'req'=>'', 'sub' => false ), 'boozurk_featured_title'=> array( 'group'=>'content', 'type'=>'sel', 'default'=>'lists', 'description'=>__( 'enhanced post title','boozurk' ), 'info'=>__( 'use the featured image as background for the post title','boozurk' ), 'options'=>array('lists','single','both','none'), 'options_l10n'=>array(__('in lists','boozurk'),__('in single posts/pages','boozurk'),__('both','boozurk'),__('none','boozurk')), 'req'=>'', 'sub'=>array('boozurk_featured_title_thumb') ), 'boozurk_featured_title_thumb'=> array( 'group'=>'content', 'type'=>'chk', 'default'=>0, 'description'=>__( 'thumbnail','boozurk' ), 'info'=>'use small thumbnail instead of the full image', 'req'=>'', 'sub'=>false ), 'boozurk_smilies' => array( 'group' => 'content', 'type' => 'chk', 'default' => 1, 'description' => __( 'custom smilies', 'boozurk' ), 'info' => '(^_^) (ToT) (o_O) ...', 'req' => '' ), 'boozurk_plusone'=> array( 'group'=>'other', 'type'=>'chk', 'default'=>1, 'description'=>'Google +1', 'info'=>__( 'integrates the +1 feature for your contents', 'boozurk' ), 'req'=>'' ), 'boozurk_main_menu'=> array( 'group'=>'other', 'type'=>'sel', 'default'=>'text', 'description'=>__( 'main menu look','boozurk' ), 'info'=>__( 'select the style of the main menu: text, thumbnails or both','boozurk' ), 'options'=>array( 'text', 'thumbnail', 'thumbnail and text' ), 'options_l10n'=>array( __('text','boozurk'), __('thumbnail','boozurk'), __('thumbnail and text','boozurk') ), 'req'=>'', 'sub'=>array('boozurk_main_menu_icon_size') ), 'boozurk_main_menu_icon_size'=> array( 'group'=>'other', 'type'=>'sel', 'default'=>'48', 'description'=>__( 'main menu icon size','boozurk' ), 'info'=>__( 'the dimension of the thumbnails in main menu (if "thumbnails" style is selected)','boozurk' ), 'options'=>array ('32', '48', '64', '96'), 'options_l10n'=>array ('32', '48', '64', '96'), 'req'=>'', 'sub'=>false ), 'boozurk_logo'=> array( 'group'=>'other', 'type'=>'url', 'default'=>'', 'description'=>__( 'Logo','boozurk' ), 'info'=>__( 'a logo in the upper right corner of the window. paste here the complete path to image location. leave empty to ignore','boozurk' ), 'req'=>'', 'sub'=>array('boozurk_logo_description') ), 'boozurk_logo_description'=> array( 'group'=>'other', 'type'=>'chk', 'default'=>1, 'description'=>__( 'tagline','boozurk' ), 'info'=>__( 'show site description below the logo','boozurk' ), 'req'=>'', 'sub'=>false ), 'boozurk_editor_style'=> array( 'group'=>'other', 'type'=>'chk', 'default'=>1, 'description'=>__( 'editor style', 'boozurk' ), 'info'=>__( "add style to the editor in order to write the post exactly how it will appear on the site", 'boozurk' ), 'req'=>'' ), 'boozurk_comment_style'=> array( 'group'=>'other', 'type'=>'chk', 'default'=>0, 'description'=>__( 'comment style', 'boozurk' ), 'info'=>__( 'let the commenters to choose their comment background', 'boozurk' ), 'req'=>'' ), 'boozurk_custom_css' => array( 'group' => 'other', 'type' => 'txtarea', 'default' => '', 'description' => __( 'custom CSS code', 'boozurk' ), 'info' => __( 'For advanced users only: paste here your custom css code. it will be added after the defatult style', 'boozurk' ) . ' (style.css)', 'req' => '' ), 'boozurk_mobile_css'=> array( 'group'=>'mobile', 'type'=>'chk', 'default'=>1, 'description'=>__( 'mobile support','boozurk' ), 'info'=>__( 'use a dedicated style in mobile devices','boozurk' ), 'req'=>'', 'sub' => array('boozurk_mobile_css_color') ), 'boozurk_mobile_css_color'=> array( 'group' => 'mobile', 'type' => 'opt', 'default' => 'light', 'options' => array('light','dark'), 'options_readable' => array('light','dark'), 'description' => __( 'colors', 'boozurk' ), 'info' => '', 'req' => '', 'sub' => false ), 'boozurk_post_formats_standard'=> array( 'group'=>'index', 'type'=>'gro', 'default'=>1, 'description'=>__( 'standard','boozurk' ), 'info'=>sprintf( __( '%s format posts', 'boozurk' ), __( 'standard','boozurk' ) ), 'sub'=>array('boozurk_post_formats_standard_title','boozurk_post_formats_standard_content'), 'req'=>'' ), 'boozurk_post_formats_standard_title'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'post title', 'description'=>__( 'title','boozurk' ), 'info'=>'', 'options'=>array('post title', 'post date','none'), 'options_l10n'=>array(__( 'post title','boozurk' ),__( 'post date','boozurk' ),__( 'none','boozurk' )), 'req'=>'', 'sub'=>false ), 'boozurk_post_formats_standard_content'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'content', 'description'=>__( 'content','boozurk' ), 'info'=>'', 'options'=>array( 'content', 'excerpt', 'none'), 'options_l10n'=>array(__( 'content','boozurk' ),__( 'excerpt','boozurk' ),__( 'none','boozurk' )), 'req'=>'', 'sub'=>false ), 'boozurk_post_formats_gallery'=> array( 'group'=>'index', 'type'=>'chk', 'default'=>1, 'description'=>__( 'gallery','boozurk' ), 'info'=>sprintf( __( '%s format posts', 'boozurk' ), __( 'gallery','boozurk' ) ), 'req'=>'boozurk_post_formats', 'sub'=>array('boozurk_post_formats_gallery_title','boozurk_post_formats_gallery_content') ), 'boozurk_post_formats_gallery_title'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'none', 'description'=>__( 'title','boozurk' ), 'info'=>'', 'options'=>array('post title', 'post date','none'), 'options_l10n'=>array(__( 'post title','boozurk' ),__( 'post date','boozurk' ),__( 'none','boozurk' )), 'req'=>'boozurk_post_formats_gallery', 'sub'=>false ), 'boozurk_post_formats_gallery_content'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'presentation', 'description'=>__( 'content','boozurk' ), 'info'=>'', 'options'=>array( 'presentation', 'content', 'excerpt', 'none'), 'options_l10n'=>array(__( 'presentation','boozurk' ),__( 'content','boozurk' ),__( 'excerpt','boozurk' ),__( 'none','boozurk' )), 'req'=>'boozurk_post_formats_gallery', 'sub'=>false ), 'boozurk_post_formats_aside'=> array( 'group'=>'index', 'type'=>'chk', 'default'=>1, 'description'=>__( 'aside','boozurk' ), 'info'=>sprintf( __( '%s format posts', 'boozurk' ), __( 'aside','boozurk' ) ), 'req'=>'boozurk_post_formats' ), 'boozurk_post_formats_audio'=> array( 'group'=>'index', 'type'=>'chk', 'default'=>1, 'description'=>__( 'audio','boozurk' ), 'info'=>sprintf( __( '%s format posts', 'boozurk' ), __( 'audio','boozurk' ) ), 'req'=>'boozurk_post_formats', 'sub'=>array('boozurk_post_formats_audio_title','boozurk_post_formats_audio_content') ), 'boozurk_post_formats_audio_title'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'first link text', 'description'=>__( 'title','boozurk' ), 'info'=>'', 'options'=>array( 'post title', 'post date', 'first link text', 'none'), 'options_l10n'=>array(__( 'post title','boozurk' ),__( 'post date','boozurk' ),__( 'first link text','boozurk' ),__( 'none','boozurk' )), 'req'=>'boozurk_post_formats_audio', 'sub'=>false ), 'boozurk_post_formats_audio_content'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'audio player', 'description'=>__( 'content','boozurk' ), 'info'=>'', 'options'=>array( 'audio player', 'content', 'excerpt', 'none'), 'options_l10n'=>array(__( 'audio player','boozurk' ),__( 'content','boozurk' ),__( 'excerpt','boozurk' ),__( 'none','boozurk' )), 'req'=>'boozurk_post_formats_audio', 'sub'=>false ), 'boozurk_post_formats_image'=> array( 'group'=>'index', 'type'=>'chk', 'default'=>1, 'description'=>__( 'image','boozurk' ), 'info'=>sprintf( __( '%s format posts', 'boozurk' ), __( 'image','boozurk' ) ), 'req'=>'boozurk_post_formats', 'sub'=>array('boozurk_post_formats_image_title','boozurk_post_formats_image_content') ), 'boozurk_post_formats_image_title'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'first image title', 'description'=>__( 'title','boozurk' ), 'info'=>'', 'options'=>array( 'post title', 'post date', 'first image title', 'none'), 'options_l10n'=>array(__( 'post title','boozurk' ),__( 'post date','boozurk' ),__( 'first image title','boozurk' ),__( 'none','boozurk' )), 'req'=>'boozurk_post_formats_image', 'sub'=>false ), 'boozurk_post_formats_image_content'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'first image', 'description'=>__( 'content','boozurk' ), 'info'=>'', 'options'=>array( 'first image', 'content', 'excerpt', 'none'), 'options_l10n'=>array(__( 'first image','boozurk' ),__( 'content','boozurk' ),__( 'excerpt','boozurk' ),__( 'none','boozurk' )), 'req'=>'boozurk_post_formats_gallery', 'sub'=>false ), 'boozurk_post_formats_link'=> array( 'group'=>'index', 'type'=>'chk', 'default'=>1, 'description'=>__( 'link','boozurk' ), 'info'=>sprintf( __( '%s format posts', 'boozurk' ), __( 'link','boozurk' ) ), 'req'=>'boozurk_post_formats', 'sub'=>array('boozurk_post_formats_link_title','boozurk_post_formats_link_content') ), 'boozurk_post_formats_link_title'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'first link text', 'description'=>__( 'title','boozurk' ), 'info'=>'', 'options'=>array( 'post title', 'post date', 'first link text', 'none'), 'options_l10n'=>array(__( 'post title','boozurk' ),__( 'post date','boozurk' ),__( 'first link text','boozurk' ),__( 'none','boozurk' )), 'req'=>'boozurk_post_formats_link', 'sub'=>false ), 'boozurk_post_formats_link_content'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'none', 'description'=>__( 'content','boozurk' ), 'info'=>'', 'options'=>array( 'content', 'excerpt', 'none'), 'options_l10n'=>array(__( 'content','boozurk' ),__( 'excerpt','boozurk' ),__( 'none','boozurk' )), 'req'=>'boozurk_post_formats_gallery', 'sub'=>false ), 'boozurk_post_formats_quote'=> array( 'group'=>'index', 'type'=>'chk', 'default'=>1, 'description'=>__( 'quote','boozurk' ), 'info'=>sprintf( __( '%s format posts', 'boozurk' ), __( 'quote','boozurk' ) ), 'req'=>'boozurk_post_formats', 'sub'=>array('boozurk_post_formats_quote_title','boozurk_post_formats_quote_content') ), 'boozurk_post_formats_quote_title'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'short quote excerpt', 'description'=>__( 'title','boozurk' ), 'info'=>'', 'options'=>array( 'post title', 'post date', 'short quote excerpt', 'none'), 'options_l10n'=>array(__( 'post title','boozurk' ),__( 'post date','boozurk' ),__( 'short quote excerpt','boozurk' ),__( 'none','boozurk' )), 'req'=>'boozurk_post_formats_quote', 'sub'=>false ), 'boozurk_post_formats_quote_content'=> array( 'group'=>'index', 'type'=>'sel', 'default'=>'content', 'description'=>__( 'content','boozurk' ), 'info'=>'', 'options'=>array( 'content', 'excerpt', 'none'), 'options_l10n'=>array(__( 'content','boozurk' ),__( 'excerpt','boozurk' ),__( 'none','boozurk' )), 'req'=>'boozurk_post_formats_gallery', 'sub'=>false ), 'boozurk_post_formats_status'=> array( 'group'=>'index', 'type'=>'chk', 'default'=>1, 'description'=>__( 'status','boozurk' ), 'info'=>sprintf( __( '%s format posts', 'boozurk' ), __( 'status','boozurk' ) ), 'req'=>'boozurk_post_formats' ), 'boozurk_post_formats_video'=> array( 'group'=>'index', 'type'=>'chk', 'default'=>1, 'description'=>__( 'video','boozurk' ), 'info'=>sprintf( __( '%s format posts', 'boozurk' ), __( 'video','boozurk' ) ), 'req'=>'boozurk_post_formats' ), 'boozurk_tbcred'=> array( 'group'=>'other', 'type'=>'chk', 'default'=>1, 'description'=>__( 'theme credits','boozurk' ), 'info'=>__( 'It is completely optional, but if you like the Theme we would appreciate it if you keep the credit link at the bottom','boozurk' ), 'req'=>'' ) ); $boozurk_coa = apply_filters( 'boozurk_options_array', $boozurk_coa ); if ( $option == 'groups' ) return $boozurk_groups; elseif ( $option ) return $boozurk_coa[$option]; else return $boozurk_coa; } if ( !function_exists( 'boozurk_widget_area_init' ) ) { function boozurk_widget_area_init() { // Area 0, in the left sidebar. register_sidebar( array( 'name' => __( 'Primary Sidebar', 'boozurk' ), 'id' => 'primary-widget-area', 'description' => __( 'The primary sidebar widget area', 'boozurk' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); // Area 1, in the right sidebar. register_sidebar( array( 'name' => __( 'Secondary sidebar', 'boozurk' ), 'id' => 'fixed-widget-area', 'description' => __( 'The secondary sidebar widget area', 'boozurk' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); // Area 2, located under the main menu. register_sidebar( array( 'name' => __( 'Menu Widget Area', 'boozurk' ), 'id' => 'header-widget-area', 'description' => __( 'The widget area under the main menu', 'boozurk' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); // Area 3, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'boozurk' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', 'boozurk' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); // Area 4, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'boozurk' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area', 'boozurk' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); // Area 5, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'boozurk' ), 'id' => 'third-footer-widget-area', 'description' => __( 'The third footer widget area', 'boozurk' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); // Area 6, located in page 404. register_sidebar( array( 'name' => __( 'Page 404', 'boozurk' ), 'id' => '404-widgets-area', 'description' => __( 'Enrich the page 404 with some useful widgets', 'boozurk' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); // Area 7, located after the post body. register_sidebar( array( 'name' => __( 'Post Widget Area', 'boozurk' ), 'id' => 'single-widgets-area', 'description' => __( 'a widget area located after the post body', 'boozurk' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); } } // Add style element for custom theme options if ( !function_exists( 'boozurk_custom_style' ) ) { function boozurk_custom_style(){ global $boozurk_opt, $boozurk_is_mobile_browser; if ( $boozurk_is_mobile_browser ) return; // skip if in mobile view ?> boozurk_get_js_modules(), 'script_modules_afterajax' => boozurk_get_js_modules(1), 'post_expander' => __( 'Post loading, please wait...','boozurk' ), 'gallery_preview' => __( 'Preview','boozurk' ), 'gallery_click' => __( 'Click on thumbnails','boozurk' ), 'infinite_scroll' => __( 'Page is loading, please wait...','boozurk' ), 'infinite_scroll_end' => __( 'No more posts beyond this line','boozurk' ), 'infinite_scroll_type' => $boozurk_opt['boozurk_infinite_scroll_type'], 'quote_tip' => esc_attr( __( 'Add selected text as a quote', 'boozurk' ) ), 'quote' => __( 'Quote', 'boozurk' ), 'quote_alert' => __( 'Nothing to quote. First of all you should select some text...', 'boozurk' ), 'comments_closed' => __( 'Comments closed', 'boozurk' ) ); wp_localize_script( 'boozurk-script', 'boozurk_l10n', $data ); } } // post-top-date if ( !function_exists( 'boozurk_print_details' ) ) { function boozurk_print_details() { global $boozurk_opt; if ( is_singular() ) return; if ( $boozurk_opt['boozurk_post_date'] == 1 ) echo '
' . get_the_time( get_option( 'date_format' ) ) . '
'; if ( $boozurk_opt['boozurk_post_cat'] == 1 ) { echo '
'; the_category(', '); echo '
'; } if ( $boozurk_opt['boozurk_post_tag'] == 1 ) { echo '
'; the_tags(' '); echo '
'; } } } // Pages Menu if ( !function_exists( 'boozurk_pages_menu' ) ) { function boozurk_pages_menu() { echo ''; } } // display the post title with the featured image if ( !function_exists( 'boozurk_featured_title' ) ) { function boozurk_featured_title( $args = '' ) { global $post, $boozurk_opt; $defaults = array( 'alternative' => '', 'fallback' => '', 'featured' => true, 'href' => get_permalink(), 'target' => '', 'title' => the_title_attribute( array('echo' => 0 ) ) ); $args = wp_parse_args( $args, $defaults ); $post_title = $args['alternative'] ? $args['alternative'] : get_the_title(); $post_title = $post_title ? $post_title : $args['fallback']; $link_target = $args['target'] ? ' target="'.$args['target'].'"' : ''; if ( $post_title ) $post_title = '

' . $post_title . '

'; switch ( $boozurk_opt['boozurk_featured_title'] ) { case 'none': $args['featured'] = false; break; case 'lists': if ( is_singular() ) $args['featured'] = false; break; case 'single': if ( !is_singular() ) $args['featured'] = false; break; } $thumb = false; if ( $args['featured'] && has_post_thumbnail( $post->ID ) ) { if ( $boozurk_opt['boozurk_featured_title_thumb'] = 'large') { $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); if ( $image[1] >= 900 ) $thumb = get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); } else { $thumb = get_the_post_thumbnail( $post->ID, 'thumbnail' ); } } // Check if this is a post or page, if it has a thumbnail, and if it's a big one if ( $thumb ) { ?>
5 ) { $ellipsis = '...'; $comments = array_slice( $comments, 0, 5 ); } $comments = array_reverse( $comments ); if ( $comments ) { ?>
 
comment_author );?>
comment_author; ?>

comment_ID ); ?>
'; } } } // create theme option page if ( !function_exists( 'boozurk_create_menu' ) ) { function boozurk_create_menu() { //create new top-level menu $pageopt = add_theme_page( __( 'Theme Options','boozurk' ), __( 'Theme Options','boozurk' ), 'edit_theme_options', 'boozurk_functions', 'boozurk_edit_options' ); //call register settings function add_action( 'admin_init', 'boozurk_register_tb_settings' ); add_action( 'admin_print_styles-' . $pageopt, 'boozurk_theme_admin_styles' ); add_action( 'admin_print_scripts-' . $pageopt, 'boozurk_theme_admin_scripts' ); add_action( 'admin_print_styles-widgets.php', 'boozurk_widgets_style' ); add_action( 'admin_print_scripts-widgets.php', 'boozurk_widgets_scripts' ); } } if ( !function_exists( 'boozurk_register_tb_settings' ) ) { function boozurk_register_tb_settings() { //register boozurk settings register_setting( 'boozurk_settings_group', 'boozurk_options', 'boozurk_sanitize_options' ); } } // set up custom colors and header image if ( !function_exists( 'boozurk_setup' ) ) { function boozurk_setup() { global $boozurk_opt; // Register localization support load_theme_textdomain( 'boozurk', get_template_directory() . '/languages' ); // Theme uses wp_nav_menu() in three location register_nav_menus( array( 'primary' => __( 'Main Navigation Menu', 'boozurk' ) ) ); register_nav_menus( array( 'secondary1' => __( 'Secondary Navigation Menu #1', 'boozurk' ) ) ); register_nav_menus( array( 'secondary2' => __( 'Secondary Navigation Menu #2', 'boozurk' ) ) ); // Used for featured posts if a large-feature doesn't exist. set_post_thumbnail_size( 1000, 288, true ); add_image_size( 'large-feature', 1000, 288, true ); // Register Features Support add_theme_support( 'automatic-feed-links' ); // Thumbnails support add_theme_support( 'post-thumbnails' ); // Add the editor style if ( isset( $boozurk_opt['boozurk_editor_style'] ) && ( $boozurk_opt['boozurk_editor_style'] == 1 ) ) add_editor_style( 'css/editor-style.css' ); // This theme uses post formats add_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' ) ); $args = array( 'width' => 1000, // Header image width (in pixels) 'height' => 288, // Header image height (in pixels) 'default-image' => '', // Header image default 'header-text' => false, // Header text display default 'default-text-color' => '21759B', // Header text color default 'wp-head-callback' => 'boozurk_header_style', 'admin-head-callback' => '', 'flex-height' => true, 'flex-width' => true ); $args = apply_filters( 'boozurk_custom_header_args', $args ); if ( function_exists( 'get_custom_header' ) ) { add_theme_support( 'custom-header', $args ); } } } // custom header image style - gets included in the site header if ( !function_exists( 'boozurk_header_style' ) ) { function boozurk_header_style() { //the custom header style } } //add a default gravatar if ( !function_exists( 'boozurk_addgravatar' ) ) { function boozurk_addgravatar( $avatar_defaults ) { $myavatar = get_template_directory_uri() . '/images/user.png'; $avatar_defaults[$myavatar] = __( 'boozurk Default Gravatar', 'boozurk' ); return $avatar_defaults; } add_filter( 'avatar_defaults', 'boozurk_addgravatar' ); } // create a random nick name if ( !function_exists( 'boozurk_random_nick' ) ) { function boozurk_random_nick ( ) { $prefix = array( 'ATX-', 'Adorable ', 'Adventurous ', 'Alien ', 'Angry ', 'Annoyed ', 'Anxious ', 'Atrocious ', 'Attractive ', 'Bad ', 'Bad ', 'Barbarious ', 'Bavarian ', 'Beautiful ', 'Bewildered ', 'Bitter ', 'Black ', 'Blond ', 'Blue ', 'Blue-Eyed ', 'Bored ', 'Breezy ', 'Bright ', 'Brown ', 'Cloudy ', 'Clumsy ', 'Colorful ', 'Combative ', 'Condemned ', 'Confused ', 'Cool ', 'Crazy ', 'Creepy ', 'Cruel ', 'Cubic ', 'Curly ', 'Cute ', 'Dance ', 'Dangerous ', 'Dark ', 'Death ', 'Delicious ', 'Dinky ', 'Distinct ', 'Disturbed ', 'Dizzy ', 'Drunk ', 'Drunken ', 'Dull ', 'Dumb ', 'E-', 'Electro ', 'Elegant ', 'Elite ', 'Embarrassed ', 'Envious ', 'Evil ', 'Fancy ', 'Fast ', 'Fat ', 'Fierce ', 'Flipped-out ', 'Flying ', 'Fourios ', 'Frantic ', 'Fresh ', 'Frustraded ', 'Funny ', 'Furious ', 'Fuzzy ', 'Gameboy ', 'Giant ', 'Giga ', 'Green ', 'Handsome ', 'Hard ', 'Harsh ', 'Hazardous ', 'Hiphop ', 'Hi-res ', 'Holy ', 'Horny ', 'Hot ', 'House ', 'i-', 'Icy ', 'Infested ', 'Insane ', 'Joyous ', 'Kentucky Fried ', 'Lame ', 'Leaking ', 'Lone ', 'Lovely ', 'Lucky ', 'Mc', 'Melodic ', 'Micro ', 'Mighty ', 'Mini ', 'Mutated ', 'Nasty ', 'Nice ', 'Orange ', 'PS/2-', 'Pretty ', 'Purple ', 'Purring ', 'Quiet ', 'Radioactive ', 'Red ', 'Resonant ', 'Salty ', 'Sexy ', 'Slow ', 'Smooth ', 'Stinky ', 'Strong ', 'Supa-Dupa-', 'Super ', 'USB-', 'Ugly ', 'Unholy ', 'Vivacious ', 'Whispering ', 'White ', 'Wild ', 'X', 'XBox ', 'Yellow ' ); $suffix = array( '16', '3', '6', '7', 'Abe', 'Bee', 'Bird', 'Boy', 'Cat', 'Cow', 'Crow', 'Cypher', 'DJ', 'Dad', 'Deer', 'Dog', 'Donkey', 'Duck', 'Eagle', 'Elephant', 'Fly', 'Fox', 'Frog', 'Girl', 'Girlie', 'Guinea Pig', 'Hasi', 'Hawk', 'Jackal', 'Lizard', 'MC', 'Men', 'Mom', 'Morpheus', 'Mouse', 'Mule', 'Neo', 'Pig', 'Rabbit', 'Rat', 'Rhino', 'Smurf', 'Snail', 'Snake', 'Star', 'Tank', 'Tiger', 'Wolf', 'Butterfly', 'Elk', 'Godzilla', 'Horse', 'Penguin', 'Pony', 'Reindeer', 'Sheep', 'Sock-Puppet', 'Worm', 'Bermuda' ); return $prefix[array_rand($prefix)] . $suffix[array_rand($suffix)]; } } //custom smiles if ( isset( $boozurk_opt['boozurk_smilies'] ) && $boozurk_opt['boozurk_smilies'] ) add_filter( 'smilies_src', 'boozurk_smiles_replace',10,2 ); function boozurk_smiles_replace( $src, $img ) { return get_template_directory_uri() . '/images/smilies/' . $img; } // custom image caption if ( !function_exists( 'boozurk_img_caption_shortcode' ) ) { function boozurk_img_caption_shortcode( $deprecated, $attr, $content = null ) { extract(shortcode_atts(array( 'id' => '', 'align' => 'alignnone', 'width' => '', 'caption' => '' ), $attr)); if ( 1 > (int) $width || empty($caption) ) return $content; if ( $id ) $id = 'id="' . esc_attr($id) . '" '; return '
' . do_shortcode( $content ) . '
' . $caption . '
'; } } /** * Create HTML list of nav menu items. * Replacement for the native Walker, using the thumbnail. * * @see http://wordpress.stackexchange.com/q/14037/ * @author toscho, http://toscho.de */ class boozurk_Thumb_Walker extends Walker_Nav_Menu { /** * Start the element output. * * @param string $output Passed by reference. Used to append additional content. * @param object $item Menu item data object. * @param int $depth Depth of menu item. May be used for padding. * @param array $args Additional strings. * @return void */ function start_el(&$output, $item, $depth, $args) { global $boozurk_opt; $classes = empty ( $item->classes ) ? array () : (array) $item->classes; $class_names = join( ' ' , apply_filters( 'nav_menu_css_class' , array_filter( $classes ), $item ) ); ! empty ( $class_names ) and $class_names = ' class="'. esc_attr( $class_names ) . '"'; $output .= "