function donut_get_sub_navigation($page_type, $template = '')
 {
     require_once QA_INCLUDE_DIR . 'qa-app-q-list.php';
     require_once QA_INCLUDE_DIR . 'qa-app-format.php';
     require_once QA_INCLUDE_DIR . 'qa-app-admin.php';
     $sub_nav = array();
     switch ($page_type) {
         case 'questions':
             $sort = qa_get('sort');
             $sub_nav = donut_qs_sub_navigation($sort, array());
             break;
         case 'unanswered':
             $categoryslugs = qa_request_parts(1);
             $by = qa_get('by');
             $sub_nav = donut_unanswered_sub_navigation($by, $categoryslugs);
             break;
         case 'users':
             $sub_nav = donut_users_sub_navigation();
             break;
         case 'admin':
             $sub_nav = qa_admin_sub_navigation();
             break;
         default:
             break;
     }
     return $sub_nav;
 }
        case 'points_per_q_voted_up':
        case 'points_per_a_voted_up':
        case 'points_q_voted_max_gain':
        case 'points_a_voted_max_gain':
            $prefix = '+';
            break;
        case 'points_per_q_voted_down':
        case 'points_per_a_voted_down':
        case 'points_q_voted_max_loss':
        case 'points_a_voted_max_loss':
            $prefix = '–';
            break;
        case 'points_base':
            $prefix = '+';
            break;
        default:
            $prefix = '<span style="visibility:hidden;">+</span>';
            // for even alignment
            break;
    }
    $optionfield['prefix'] = '<span style="width:1em; display:inline-block; display:-moz-inline-stack;">' . $prefix . '</span>';
    $qa_content['form']['fields'][$optionname] = $optionfield;
}
qa_array_insert($qa_content['form']['fields'], 'points_post_a', array('blank0' => array('type' => 'blank')));
qa_array_insert($qa_content['form']['fields'], 'points_vote_up_q', array('blank1' => array('type' => 'blank')));
qa_array_insert($qa_content['form']['fields'], 'points_multiple', array('blank2' => array('type' => 'blank')));
$qa_content['navigation']['sub'] = qa_admin_sub_navigation();
return $qa_content;
/*
	Omit PHP closing tag to help avoid accidental output
*/
 function doctype()
 {
     qa_html_theme_base::doctype();
     require_once QA_INCLUDE_DIR . 'qa-db-metas.php';
     // Custom Meta(title,description,keywords)
     if ($this->template == 'question' and qa_opt('useo_meta_editor_enable')) {
         $metas = json_decode(qa_db_postmeta_get($this->content['q_view']['raw']['postid'], 'useo-meta-info'), true);
         $this->meta_title = @$metas['title'];
         $this->meta_description = @$metas['description'];
         $this->meta_keywords = @$metas['keywords'];
     }
     // Generate Social Meta Tags
     $page_url = @$this->content['canonical'];
     if (!empty($this->meta_description)) {
         $description = $this->meta_description;
     } else {
         $description = @$this->content['description'];
     }
     if (!empty($this->meta_title)) {
         $title = $this->meta_title;
     } else {
         $title = @$this->content['q_view']['raw']['title'];
     }
     if ($this->template == 'question') {
         if (qa_opt('useo_social_enable_editor')) {
             $this->social_metas = json_decode(qa_db_postmeta_get($this->content['q_view']['raw']['postid'], 'useo-social-info'), true);
             if (count($this->social_metas)) {
                 foreach ($this->social_metas as $index => $variable) {
                     $this->metas[$index]['content'] = $variable;
                     $this->metas[$index]['type'] = '';
                 }
             }
         }
         if (qa_opt('useo_social_og_enable_auto')) {
             // Open Graph
             // site name
             $this->metas['og-sitename']['content'] = @$this->content['site_title'];
             $this->metas['og-sitename']['type'] = 'property="og:site_name"';
             // title
             $this->metas['og-title']['content'] = $title;
             $this->metas['og-title']['type'] = 'property="og:title"';
             // description
             $gl_length = qa_opt('useo_social_og_desc_length');
             if ($gl_length <= 0) {
                 $gl_length = 140;
             }
             $this->metas['og-description']['content'] = useo_get_excerpt($description, 0, $gl_length);
             $this->metas['og-description']['type'] = 'property="og:description"';
             // Type
             $this->metas['og-type']['content'] = 'website';
             $this->metas['og-type']['type'] = 'property="og:type"';
             // url
             if (!empty($page_url)) {
                 $this->metas['og-url']['content'] = $page_url;
                 $this->metas['og-url']['type'] = 'property="og:url"';
             }
             // image
             $og_image = qa_opt('useo_social_og_image');
             if (!empty($og_image)) {
                 $this->metas['og-image']['content'] = $og_image;
                 $this->metas['og-image']['type'] = 'property="og:image"';
             }
         }
         if (qa_opt('useo_social_tc_enable')) {
             // Twitter Cards
             // type
             $this->metas['tc-type']['content'] = 'summary';
             $this->metas['tc-type']['type'] = 'property="twitter:card"';
             // title
             $this->metas['tc-title']['content'] = $title;
             $this->metas['tc-title']['type'] = 'property="twitter:title"';
             // description
             $useo_social_tc_desc_length = qa_opt('useo_social_og_desc_length');
             if ($useo_social_tc_desc_length <= 0) {
                 $useo_social_tc_desc_length = 120;
             }
             $this->metas['tc-description']['content'] = useo_get_excerpt($description, 0, $useo_social_tc_desc_length);
             $this->metas['tc-description']['type'] = 'property="twitter:description"';
             // image
             $tc_image = qa_opt('useo_social_tc_image');
             if (!empty($tc_image)) {
                 $this->metas['tc-image']['content'] = $tc_image;
                 $this->metas['tc-image']['type'] = 'property="twitter:image"';
             }
             // handler
             // twitter handler goes into "site" field of meta tag
             $tc_handler = qa_opt('useo_social_tc_handler');
             if (!empty($tc_handler)) {
                 $this->metas['tc-handler']['content'] = $tc_handler;
                 $this->metas['tc-handler']['type'] = 'property="twitter:site"';
             }
         }
         if (qa_opt('useo_social_schema_enable')) {
             // Twitter Cards
             // title
             $this->metas['gp-title']['content'] = $title;
             $this->metas['gp-title']['type'] = 'itemprop="name"';
             // description
             $this->metas['gp-title']['content'] = $description;
             $this->metas['gp-title']['type'] = 'itemprop="description"';
             // type
             $gp_type = qa_opt('useo_social_schema_page_type');
             if ($gp_type == 2) {
                 $gp_page_type = 'Question';
             } elseif ($gp_type == 3) {
                 $gp_page_type = 'Article';
             }
             if (isset($gp_page_type)) {
                 $this->metas['gp-title']['content'] = '';
                 $this->metas['gp-title']['type'] = 'itemscope itemtype="http://schema.org/' . $gp_page_type . '"';
             }
             // description
             $gp_image = qa_opt('useo_social_gp_thumbnail');
             if (!empty($gp_image)) {
                 $this->metas['gp-image']['content'] = $gp_image;
                 $this->metas['gp-image']['type'] = 'itemprop="image"';
             }
         }
     }
     // category link titles
     $useo_cat_desc_map = array();
     $categoryid_list = array();
     //prepare category navigation ids
     if (isset($this->content['navigation']['cat']) && qa_opt('useo_cat_title_nav_enable')) {
         $category_nav = $this->content['navigation']['cat'];
         unset($category_nav['all']);
         foreach ($category_nav as $index => $item) {
             $categoryid_list[$item['categoryid']] = $item['categoryid'];
         }
     }
     // prepare question list ids
     if (isset($this->content["q_list"]["qs"]) && qa_opt('useo_cat_title_qlist_enable')) {
         foreach ($this->content["q_list"]["qs"] as $index => $item) {
             if ($item['raw']['categoryid']) {
                 $categoryid_list[$item['raw']['categoryid']] = $item['raw']['categoryid'];
             }
         }
     }
     // get all category titles
     if (count($categoryid_list)) {
         $result = qa_db_query_sub('SELECT categoryid, content FROM ^categorymetas WHERE categoryid IN ($) AND title=$', $categoryid_list, 'useo_cat_title');
         $useo_cat_desc_map = qa_db_read_all_assoc($result, 'categoryid');
         if (isset($this->content["q_list"]["qs"])) {
             foreach ($this->content["q_list"]["qs"] as $index => $item) {
                 if (isset($item['raw']['categoryid']) && isset($useo_cat_desc_map[$item['raw']['categoryid']])) {
                     $this->content["q_list"]["qs"][$index]['where']['title'] = $useo_cat_desc_map[$item['raw']['categoryid']]['content'];
                 }
             }
         }
     }
     // set category title for navigation
     if (count(@$this->content['navigation']['cat']) && qa_opt('useo_cat_title_nav_enable')) {
         foreach ($this->content['navigation']['cat'] as $index => $item) {
             if (isset($item['categoryid']) && isset($useo_cat_desc_map[$item['categoryid']])) {
                 $this->content['navigation']['cat'][$index]["popup"] = $useo_cat_desc_map[$item['categoryid']]['content'];
             }
         }
     }
     // Administrator panel navigation item
     if ($this->request == 'admin/ulitmate_seo') {
         if (empty($this->content['navigation']['sub'])) {
             $this->content['navigation']['sub'] = array();
         }
         require_once QA_INCLUDE_DIR . 'qa-app-admin.php';
         $admin_nav = qa_admin_sub_navigation();
         $this->content['navigation']['sub'] = array_merge($admin_nav, $this->content['navigation']['sub']);
     }
     if ($this->template == 'admin' or $this->request == 'ulitmate_seo') {
         $this->content['navigation']['sub']['ulitmate_seo'] = array('label' => 'Ultimate SEO', 'url' => qa_path_html('admin/ulitmate_seo'));
         if ($this->request == 'admin/ulitmate_seo') {
             $this->content['navigation']['sub']['ulitmate_seo']['selected'] = true;
         }
     }
 }
 function nav_item($key, $navlink, $class, $level = null)
 {
     if (qa_opt('admin_plus_dropdown')) {
         if ($class == 'nav-sub-dropdown') {
             $class = 'nav-sub';
         }
         if ($key == 'admin' && $class == 'nav-main') {
             $this->output('<LI CLASS="qa-' . $class . '-item' . (@$navlink['opposite'] ? '-opp' : '') . (@$navlink['state'] ? ' qa-' . $class . '-' . $navlink['state'] : '') . ' qa-' . $class . '-' . $key . '">');
             $this->nav_link($navlink, $class);
             require_once QA_INCLUDE_DIR . 'qa-app-admin.php';
             $this->nav_list(qa_admin_sub_navigation(), 'nav-sub-dropdown', 1 + $level);
             $this->output('</LI>');
         } else {
             qa_html_theme_base::nav_item($key, $navlink, $class, $level);
         }
     } else {
         qa_html_theme_base::nav_item($key, $navlink, $class, $level);
     }
 }
Exemple #5
0
function ra_sub_nav()
{
    //require_once QA_INCLUDE_DIR.'qa-app-q-list.php';
    require_once QA_INCLUDE_DIR . 'qa-app-admin.php';
    $m = array();
    $handle = qa_get_logged_in_handle();
    $categoryslugs = qa_request_parts(1);
    $countslugs = count($categoryslugs);
    $sort = $countslugs && !QA_ALLOW_UNINDEXED_QUERIES ? null : qa_get('sort');
    $by = qa_get('by');
    $forfavorites = qa_get('show') != 'content';
    $forcontent = qa_get('show') != 'favorites';
    //$m['account']=qa_account_sub_navigation();
    $m['admin'] = qa_admin_sub_navigation();
    $m['questions'] = ra_answered_nav($sort, $categoryslugs);
    $m['unanswered'] = ra_unanswered_nav($by, $categoryslugs);
    $m['updates'] = array('all' => array('label' => qa_lang_html('misc/nav_all_my_updates'), 'url' => qa_path_html('updates'), 'selected' => $forfavorites && $forcontent), 'favorites' => array('label' => qa_lang_html('misc/nav_my_favorites'), 'url' => qa_path_html('updates', array('show' => 'favorites')), 'selected' => $forfavorites && !$forcontent), 'myposts' => array('label' => qa_lang_html('misc/nav_my_content'), 'url' => qa_path_html('updates', array('show' => 'content')), 'selected' => $forcontent && !$forfavorites));
    //$m['activity']=qa_user_sub_navigation($handle, 'activity');
    //$m['answers']=qa_user_sub_navigation($handle, 'answers');
    //$m['profile']=qa_user_sub_navigation($handle, 'profile');
    //$m['users']['questions']=qa_user_sub_navigation($handle, 'questions');
    //$m['users']['wall']=qa_user_sub_navigation($handle, 'wall');
    if (!QA_FINAL_EXTERNAL_USERS && qa_get_logged_in_level() >= QA_USER_LEVEL_MODERATOR) {
        $m['user'] = array('users$' => array('url' => qa_path_html('users'), 'label' => qa_lang_html('main/highest_users')), 'users/special' => array('label' => qa_lang('users/special_users'), 'url' => qa_path_html('users/special')), 'users/blocked' => array('label' => qa_lang('users/blocked_users'), 'url' => qa_path_html('users/blocked')));
    }
    return $m;
}
Exemple #6
0
 function doctype()
 {
     // CSS Customizations will need this variables
     global $p_path, $s_path, $p_url, $s_url;
     global $qa_request;
     if ($qa_request == 'admin/theme_options' and qa_get_logged_in_level() >= QA_USER_LEVEL_ADMIN) {
         //$this->theme_url , $this->theme_directory
         $p_path = $this->theme_directory . 'patterns';
         $s_path = $this->theme_directory . 'styles';
         $p_url = $this->theme_url . 'patterns';
         $s_url = $this->theme_url . 'styles';
         $this->template = "theme_options";
         $this->content['navigation']['sub'] = qa_admin_sub_navigation();
         $this->content['navigation']['sub']['theme_options'] = array('label' => 'Theme Options', 'url' => qa_path_html('admin/theme_options'), 'selected' => 'selected');
         $this->content['site_title'] = "Theme Options";
         $this->content['error'] = "";
         $this->content['suggest_next'] = "";
         $this->content['title'] = "Sharp Theme";
         $saved = false;
         // CSS Compression options
         $compression = array('Normal CSS Styling', 'Compressed CSS', 'GZip Compressed CSS');
         // List of BackGrounds
         $bg_images = array();
         $files = scandir($p_path, 1);
         $bg_images[] = "Default Background";
         $bg_images[] = "NO Background";
         foreach ($files as $file) {
             if (!(empty($file) or $file == '.' or $file == '..')) {
                 $bg_images[] = preg_replace("/\\.[^.]*\$/", "", $file);
             }
         }
         // List of styles
         $styles = array();
         $files = scandir($s_path, 1);
         $styles[] = "NO Custom Style";
         foreach ($files as $file) {
             if (!(empty($file) or $file == '.' or $file == '..')) {
                 $styles[] = preg_replace("/\\.[^.]*\$/", "", $file);
             }
         }
         // List Of Font Stacks
         $font_name = array('Default Theme Font', 'Times New Roman based serif', 'Modern Georgia+Times based serif', 'Traditional Garamond-based serif', 'The Helvetica/Arial-based sans serif', 'The Verdana-based sans serif', 'The Trebuchet-based sans serif', 'The heavier "Impact" sans serif', 'The monospace', 'Monospace Typewriter', 'Display Serifs', 'Geometric ', 'Neo Grotesque', 'Readable Verdana+Tahoma', 'Small Readable Corbel+Lucida');
         $font_style = array('', 'Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif', 'Didot,"Bodoni MT", "Century Schoolbook", "Niagara Solid", Utopia, Georgia, Times, "Times New Roman", serif', '"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif', 'Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif', 'Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif', '"Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif', 'Impact, Haettenschweiler, "Franklin Gothic Bold", Charcoal, "Helvetica Inserat", "Bitstream Vera Sans Bold", "Arial Black", sans-serif', 'Consolas, "Bitstream Vera Sans Mono", "Andale Mono", Monaco, "DejaVu Sans Mono", "Lucida Console', '"Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace', 'Perpetua, Baskerville, "Big Caslon", "Palatino Linotype", Palatino, "URW Palladio L", "Nimbus Roman No9 L", serif', '"Century Gothic", "Tw Cen MT", Futura, "URW Gothic L", Arial, sans-serif', 'Corbel, Arial, Helvetica, "Nimbus Sans L", "Liberation Sans", sans-serif', 'Verdana, Tahoma, "Trebuchet MS", "DejuVu Sans", "Bitstream Vera Sans", sans-serif', 'Corbel, "Lucida Sans Unicode", "Lucida Grade", "Bitstream Vera Sans", "Luxi Serif", Verdana, sans-serif');
         // Save Settings
         if (qa_clicked('qat_save_button')) {
             qa_opt('qat_excerpt_on', (int) qa_post_text('qat_excerpt_on_field'));
             qa_opt('qat_excerpt_max_len', (int) qa_post_text('qat_excerpt_max_len_field'));
             qa_opt('qat_bg_color_on', (int) qa_post_text('qat_bg_color_on_field'));
             qa_opt('qat_bg_color', qa_post_text('qat_bg_color_field'));
             qa_opt('qat_bg_image', $bg_images[(int) qa_post_text('qat_bg_image_field')]);
             qa_opt('qat_bg_image_index', (int) qa_post_text('qat_bg_image_field'));
             qa_opt('qat_b_font', $font_style[(int) qa_post_text('qat_b_font_field')]);
             qa_opt('qat_b_font_index', (int) qa_post_text('qat_b_font_field'));
             qa_opt('qat_main_nav_font', $font_style[(int) qa_post_text('qat_main_nav_font_field')]);
             qa_opt('qat_main_nav_font_index', (int) qa_post_text('qat_main_nav_font_field'));
             qa_opt('qat_user_nav_font', $font_style[(int) qa_post_text('qat_user_nav_font_field')]);
             qa_opt('qat_user_nav_font_index', (int) qa_post_text('qat_user_nav_font_field'));
             qa_opt('qat_sub_nav_font', $font_style[(int) qa_post_text('qat_sub_nav_font_field')]);
             qa_opt('qat_sub_nav_font_index', (int) qa_post_text('qat_sub_nav_font_field'));
             qa_opt('qat_q_list_title_font', $font_style[(int) qa_post_text('qat_q_list_title_font_field')]);
             qa_opt('qat_q_list_title_font_index', (int) qa_post_text('qat_q_list_title_font_field'));
             qa_opt('qat_q_list_excerp_font', $font_style[(int) qa_post_text('qat_q_list_excerp_font_field')]);
             qa_opt('qat_q_list_excerp_font_index', (int) qa_post_text('qat_q_list_excerp_font_field'));
             qa_opt('qat_q_title_font', $font_style[(int) qa_post_text('qat_q_title_font_field')]);
             qa_opt('qat_q_title_font_index', (int) qa_post_text('qat_q_title_font_field'));
             qa_opt('qat_q_content_font', $font_style[(int) qa_post_text('qat_q_content_font_field')]);
             qa_opt('qat_q_content_font_index', (int) qa_post_text('qat_q_content_font_field'));
             qa_opt('qat_a_content_font', $font_style[(int) qa_post_text('qat_a_content_font_field')]);
             qa_opt('qat_a_content_font_index', (int) qa_post_text('qat_a_content_font_field'));
             qa_opt('qat_c_content_font', $font_style[(int) qa_post_text('qat_c_content_font_field')]);
             qa_opt('qat_c_content_font_index', (int) qa_post_text('qat_c_content_font_field'));
             qa_opt('qat_s_bar_font', $font_style[(int) qa_post_text('qat_s_bar_font_field')]);
             qa_opt('qat_s_bar_font_index', (int) qa_post_text('qat_s_bar_font_field'));
             qa_opt('qat_sb_bar_font', $font_style[(int) qa_post_text('qat_sb_bar_font_field')]);
             qa_opt('qat_sb_bar_font_index', (int) qa_post_text('qat_sb_bar_font_field'));
             qa_opt('qat_fs_b', (int) qa_post_text('qat_fs_b_field'));
             qa_opt('qat_fs_main_nav', (int) qa_post_text('qat_fs_main_nav_field'));
             qa_opt('qat_fs_sub_nav', (int) qa_post_text('qat_fs_sub_nav_field'));
             qa_opt('qat_fs_user_nav', (int) qa_post_text('qat_fs_user_nav_field'));
             qa_opt('qat_fs_q_list_title', (int) qa_post_text('qat_fs_q_list_title_field'));
             qa_opt('qat_fs_q_list_excerp', (int) qa_post_text('qat_fs_q_list_excerp_field'));
             qa_opt('qat_fs_q_title', (int) qa_post_text('qat_fs_q_title_field'));
             qa_opt('qat_fs_q_content', (int) qa_post_text('qat_fs_q_content_field'));
             qa_opt('qat_fs_a_content', (int) qa_post_text('qat_fs_a_content_field'));
             qa_opt('qat_fs_c_content', (int) qa_post_text('qat_fs_c_content_field'));
             qa_opt('qat_fs_s_bar', (int) qa_post_text('qat_fs_s_bar_field'));
             qa_opt('qat_fs_sb_bar', (int) qa_post_text('qat_fs_sb_bar_field'));
             qa_opt('qat_theme_attribution', (int) qa_post_text('qat_theme_attribution_field'));
             qa_opt('qat_qa_attribution', (int) qa_post_text('qat_qa_attribution_field'));
             qa_opt('qat_compression', (int) qa_post_text('qat_compression_field'));
             qa_opt('qat_custom_css', $styles[(int) qa_post_text('qat_custom_css_field')]);
             qa_opt('qat_custom_css_index', (int) qa_post_text('qat_custom_css_field'));
             require_once $this->theme_directory . '/qa-styles.php';
             // Generate customized CSS styling
             $saved = true;
         }
         // Option Form
         $options = array('ok' => $saved ? 'Stylish Theme\'s settings are saved' : null, 'tags' => 'METHOD="POST" ACTION="' . qa_path_html(qa_request()) . '"', 'style' => 'wide', 'fields' => array(array('type' => 'static', 'label' => '<span class="qa-option-header"> Excerpt in question list </span>'), array('label' => 'Show excerpt in question lists', 'type' => 'checkbox', 'value' => qa_opt('qat_excerpt_on'), 'tags' => 'NAME="qat_excerpt_on_field" ID="qat_excerpt_on_field"'), array('label' => 'Maximum length of preview:', 'suffix' => 'characters', 'type' => 'number', 'value' => (int) qa_opt('qat_excerpt_max_len'), 'tags' => 'NAME="qat_excerpt_max_len_field" ID="qat_excerpt_max_len_field"'), array('type' => 'blank'), array('type' => 'static', 'label' => '<span class="qa-option-header"> Background Customization </span>'), array('label' => 'Customize Background Color', 'type' => 'checkbox', 'tags' => 'NAME="qat_bg_color_on_field" ID="qat_bg_color_on_field"', 'value' => qa_opt('qat_bg_color_on')), array('label' => 'Background Color', 'tags' => 'NAME="qat_bg_color_field" ID="qat_bg_color_field"', 'value' => qa_opt('qat_bg_color')), array('label' => 'Background Image', 'tags' => 'NAME="qat_bg_image_field" ID="qat_bg_image_field"', 'type' => 'select', 'options' => @$bg_images, 'value' => @$bg_images[qa_opt('qat_bg_image_index')]), array('type' => 'blank'), array('type' => 'static', 'label' => '<span class="qa-option-header"> Typography </span>'), array('label' => 'Body Font', 'tags' => 'NAME="qat_b_font_field" ID="qat_b_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_b_font_index')]), array('label' => 'Body Font Size', 'tags' => 'NAME="qat_fs_b_field" ID="qat_fs_b_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_b'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('type' => 'custom', 'html' => ''), array('label' => 'Main Navigation Font', 'tags' => 'NAME="qat_main_nav_font_field" ID="qat_main_nav_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_main_nav_font_index')]), array('label' => 'Main Navigation Font Size', 'tags' => 'NAME="qat_fs_main_nav_field" ID="qat_fs_main_nav_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_main_nav'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('label' => 'Sub Navigation Font', 'tags' => 'NAME="qat_sub_nav_font_field" ID="qat_main_sub_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_sub_nav_font_index')]), array('label' => 'Sub Navigation Font Size', 'tags' => 'NAME="qat_fs_sub_nav_field" ID="qat_fs_sub_nav_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_sub_nav'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('label' => 'User Navigation Font', 'tags' => 'NAME="qat_user_nav_font_field" ID="qat_user_nav_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_user_nav_font_index')]), array('label' => 'User Navigation Font Size', 'tags' => 'NAME="qat_fs_user_nav_field" ID="qat_fs_user_nav_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_user_nav'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('type' => 'custom', 'html' => ''), array('label' => 'Question Title in lists', 'tags' => 'NAME="qat_q_list_title_font_field" ID="qat_q_list_title_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_q_list_title_font_index')]), array('label' => 'Question Title Font Size', 'tags' => 'NAME="qat_fs_q_list_title_field" ID="qat_fs_q_list_title_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_q_list_title'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('label' => 'Question Excerp in lists', 'tags' => 'NAME="qat_q_list_excerp_font_field" ID="qat_q_list_excerp_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_q_list_excerp_font_index')]), array('label' => 'Question Excerp Font Size', 'tags' => 'NAME="qat_fs_q_list_excerp_field" ID="qat_fs_q_list_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_q_list_excerp'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('type' => 'custom', 'html' => ''), array('label' => 'Question Title Font', 'tags' => 'NAME="qat_q_title_font_field" ID="qat_q_title_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_q_title_font_index')]), array('label' => 'Question Title Font Size', 'tags' => 'NAME="qat_fs_q_title_field" ID="qat_fs_q_title_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_q_title'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('label' => 'Question Content Form', 'tags' => 'NAME="qat_q_content_font_field" ID="qat_q_content_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_q_content_font_index')]), array('label' => 'Question Content Font Size', 'tags' => 'NAME="qat_fs_q_content_field" ID="qat_fs_q_content_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_q_content'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('label' => 'Answer Content Font', 'tags' => 'NAME="qat_a_content_font_field" ID="qat_a_content_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_a_content_font_index')]), array('label' => 'Answer Content Font Size', 'tags' => 'NAME="qat_fs_a_content_field" ID="qat_fs_a_content_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_a_content'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('label' => 'Comment Content Form', 'tags' => 'NAME="qat_c_content_font_field" ID="qat_c_content_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_c_content_font_index')]), array('label' => 'Comment Content Font Size', 'tags' => 'NAME="qat_fs_c_content_field" ID="qat_fs_c_content_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_c_content'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('type' => 'custom', 'html' => ''), array('label' => 'Side Panel(sidebar) Font', 'tags' => 'NAME="qat_s_bar_font_field" ID="qat_s_bar_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_s_bar_font_index')]), array('label' => 'Side Panel(sidebar) Font Size', 'tags' => 'NAME="qat_fs_s_bar_field" ID="qat_fs_s_bar_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_s_bar'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('label' => 'Sidebar Box on every page', 'tags' => 'NAME="qat_sb_bar_font_field" ID="qat_sb_bar_font_field"', 'type' => 'select', 'options' => @$font_name, 'value' => @$font_name[qa_opt('qat_sb_bar_font_index')]), array('label' => 'Sidebar Box Font Size', 'tags' => 'NAME="qat_fs_sb_bar_field" ID="qat_fs_sb_bar_field"', 'type' => 'number', 'value' => (int) qa_opt('qat_fs_sb_bar'), 'suffix' => '<strong>px</strong> - <small>Zero(0) for default value</small>'), array('type' => 'blank'), array('type' => 'static', 'label' => '<span class="qa-option-header"> CSS Stlye Files </span>'), array('label' => 'CSS Style\'s Compression', 'tags' => 'NAME="qat_compression_field" ID="qat_compression_field"', 'type' => 'select', 'options' => $compression, 'value' => @$compression[qa_opt('qat_compression')]), array('label' => 'CSS Styles', 'tags' => 'NAME="qat_custom_css_field" ID="qat_custom_css_field"', 'type' => 'select', 'options' => @$styles, 'value' => @$styles[qa_opt('qat_custom_css_index')]), array('type' => 'blank'), array('type' => 'static', 'label' => '<span class="qa-option-header"> Attribution Links </span>')), 'buttons' => array(array('label' => 'Save Changes', 'tags' => 'NAME="qat_save_button"')));
         $this->content['form'] = $options;
     }
     qa_html_theme_base::doctype();
 }