• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP qa_admin_sub_navigation函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中qa_admin_sub_navigation函数的典型用法代码示例。如果您正苦于以下问题:PHP qa_admin_sub_navigation函数的具体用法?PHP qa_admin_sub_navigation怎么用?PHP qa_admin_sub_navigation使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了qa_admin_sub_navigation函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: donut_get_sub_navigation

 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;
 }
开发者ID:architbakliwal,项目名称:Q2A,代码行数:27,代码来源:qa-donut-utils.php


示例2: qa_array_insert

        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
*/
开发者ID:gogupe,项目名称:question2answer-releases,代码行数:31,代码来源:qa-page-admin-points.php


示例3: doctype


//.........这里部分代码省略.........
                 $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;
         }
     }
 }
开发者ID:Kailashaghera,项目名称:Q2A-Ultimate-SEO,代码行数:101,代码来源:layer.php


示例4: nav_item

 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);
     }
 }
开发者ID:NoahY,项目名称:q2a-admin-plus,代码行数:19,代码来源:qa-admin-layer.php


示例5: ra_sub_nav

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;
}
开发者ID:rahularyan,项目名称:dude-theme,代码行数:27,代码来源:qa-plugin.php


示例6: doctype

 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;
     }
//.........这里部分代码省略.........
开发者ID:swuit,项目名称:swuit-q2a,代码行数:101,代码来源:qa-admin-options.php



注:本文中的qa_admin_sub_navigation函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP qa_anchor函数代码示例发布时间:2022-05-15
下一篇:
PHP qa_admin_page_error函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap