当前位置: 首页>>代码示例>>PHP>>正文


PHP qa_html_theme_base::head_css方法代码示例

本文整理汇总了PHP中qa_html_theme_base::head_css方法的典型用法代码示例。如果您正苦于以下问题:PHP qa_html_theme_base::head_css方法的具体用法?PHP qa_html_theme_base::head_css怎么用?PHP qa_html_theme_base::head_css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在qa_html_theme_base的用法示例。


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

示例1: head_css

 function head_css()
 {
     qa_html_theme_base::head_css();
     $this->output('<link rel="stylesheet" href="' . qa_html(QA_HTML_THEME_LAYER_URLTOROOT . 'notification.css') . '"/>');
     $this->content['style'][] = '<link rel="stylesheet" href="' . qa_html(QA_HTML_THEME_LAYER_URLTOROOT . 'notification.css') . '" />';
     qa_html_theme_base::head_css();
 }
开发者ID:ramblinjan,项目名称:Q2A-Notification,代码行数:7,代码来源:notification-layer.php

示例2: head_css

 function head_css()
 {
     qa_html_theme_base::head_css();
     if (qa_opt('tw_custom_css') != 'NO Costume Style') {
         $this->output('<link href="' . qa_opt('site_url') . $this->tabs_plugin_url . 'styles/' . qa_opt('tw_custom_css') . '.css" type="text/css" rel="stylesheet"></link>');
     }
 }
开发者ID:architbakliwal,项目名称:Q2A,代码行数:7,代码来源:qa-tabs-layer.php

示例3: head_css

 function head_css()
 {
     qa_html_theme_base::head_css();
     if (strlen(qa_opt('facebook_app_id')) && strlen(qa_opt('facebook_app_secret'))) {
         $this->output('<style><!--', '.fb-login-button.fb_iframe_widget.fb_hide_iframes span {display:none;}', '--></style>');
     }
 }
开发者ID:gogupe,项目名称:question2answer-releases,代码行数:7,代码来源:qa-facebook-layer.php

示例4: head_css

 /**
  * Adding theme stylesheets
  *
  * @since Snow 1.4
  */
 public function head_css()
 {
     // add RTL CSS file
     if ($this->isRTL) {
         $this->content['css_src'][] = $this->rooturl . 'qa-styles-rtl.css?' . QA_VERSION;
     }
     // add Ubuntu font CSS file
     $this->content['css_src'][] = 'http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic';
     parent::head_css();
     // output some dynamic CSS inline
     $this->head_inline_css();
 }
开发者ID:ronkeizer,项目名称:question2answer,代码行数:17,代码来源:qa-theme.php

示例5:

 function head_css()
 {
     parent::head_css();
     if (qa_opt('qat_custom_css') != 'NO Custome Style') {
         $this->output('<link href="' . $this->theme_url . 'styles/' . qa_opt('qat_custom_css') . '.css" type="text/css" rel="stylesheet"></link>');
     }
     if ($this->template == 'theme_options') {
         $this->output('<style type="text/css">.qa-option-header{font-size: 115%;}</style>');
     }
     $this->output('<style type="text/css">');
     echo qa_opt('qat_custom_style');
     $this->output('</style>');
 }
开发者ID:swuit,项目名称:swuit-q2a,代码行数:13,代码来源:qa-admin-options.php

示例6: head_css

    function head_css()
    {
        if ($this->is_print_view) {
            $this->output('<style>
					h1, h2 {margin-bottom: 12px;}
					a {text-decoration:none; font-weight:bold};
					.qa-vote-count {margin-bottom: 12px;}

					.qa-q-view-content {margin-bottom:12px;}
					.qa-q-view-tags {margin-bottom:12px;}
					.qa-q-view-tag-list {list-style:none; margin:0; padding:0;}
					.qa-q-view-tag-item {display:inline;}	
					.qa-q-view-main {border-bottom:1px dotted #666; padding-bottom:12px;}
					.qa-q-view-meta {margin-bottom:12px;}

					.qa-a-list-item {border-top:1px dotted #666; padding-top:12px;}
					.qa-a-item-content {font-size:14px; margin-bottom:12px;}
					.qa-a-item-main { padding-bottom:12px;}

					.qa-c-list-item {
					  border-top: 1px dotted #666666;
					  margin: 12px 0 0 24px;
					  padding-top: 12px;
					}
					.qa-vote-count {
					  font-weight: bold;
					  margin-bottom: 12px;
					}					
					#printer {
						cursor: pointer;
						float: right;
						margin: 12px 12px 12px 0;
					}
				</style>');
        } else {
            if (qa_opt('print_view')) {
                $this->output('
				<style>
					#printer {
						cursor: pointer;
						float: right;
						margin: 12px 12px 12px 0;
					}
				</style>');
                qa_html_theme_base::head_css();
            } else {
                qa_html_theme_base::head_css();
            }
        }
    }
开发者ID:NoahY,项目名称:q2a-print,代码行数:50,代码来源:qa-print-layer.php

示例7: head_css

 function head_css()
 {
     qa_html_theme_base::head_css();
     if ($this->template != 'admin') {
         $breadcrumb_css_url = qa_opt('site_url') . 'qa-plugin/' . AMI_BREADCRUMBS_FOLDER . '/css/breadcrumbs-styles.css';
         $this->output('<link rel="stylesheet" TYPE="text/css" href="' . $breadcrumb_css_url . '"/>');
         $fa_cdn = qa_opt(q2a_breadcrumbs_admin::FA_CDN);
         if (qa_opt(q2a_breadcrumbs_admin::USE_FA_CDN) && !empty($fa_cdn)) {
             $this->output('<link rel="stylesheet" TYPE="text/css" href="' . $fa_cdn . '"/>');
         } else {
             $icons = qa_opt('site_url') . 'qa-plugin/' . AMI_BREADCRUMBS_FOLDER . '/css/font-awesome.min.css';
             $this->output('<link rel="stylesheet" TYPE="text/css" href="' . $icons . '"/>');
         }
     }
 }
开发者ID:Alvarofg,项目名称:q2a-breadcrumbs,代码行数:15,代码来源:qa-breadcrumbs-layer.php

示例8: array

 function head_css()
 {
     parent::head_css();
     $css_paths = array('fonts' => 'css/font-awesome.min.css', 'bootstrap' => 'css/bootstrap.min.css', 'donut' => 'css/donut.css', 'responsive' => 'css/donut-responsive.css');
     if (donut_opt('is_rtl') && $this->isRTL) {
         $css_paths['rtl'] = 'css/donut-rtl.css';
     }
     if (donut_opt('activate_prod_mode')) {
         $cdn_css_paths = array('bootstrap' => Donut_Option_Keys::BS_CSS_CDN, 'fonts' => Donut_Option_Keys::FA_CDN);
         unset($css_paths['bootstrap']);
         unset($css_paths['fonts']);
         $this->donut_resources($cdn_css_paths, 'css', true);
     }
     $this->donut_resources($css_paths, 'css');
 }
开发者ID:hckrtech,项目名称:Donut,代码行数:15,代码来源:qa-donut-layer.php

示例9: head_css

 function head_css()
 {
     qa_html_theme_base::head_css();
     $css_paths = array('fonts' => 'css/font-awesome.min.css', 'bootstrap' => 'css/bootstrap.css', 'donut' => 'css/donut.css', 'responsive' => 'css/donut-responsive.css');
     if (DONUT_LANG_RTL) {
         $css_paths['rtl'] = 'css/donut-rtl.css';
     }
     if (DONUT_ACTIVATE_PROD_MODE) {
         $cdn_css_paths = array('bootstrap' => donut_opt::BS_CSS_CDN, 'fonts' => donut_opt::FA_CDN);
         unset($css_paths['bootstrap']);
         unset($css_paths['fonts']);
         $this->donut_resources($cdn_css_paths, 'css', TRUE);
     }
     $this->donut_resources($css_paths, 'css');
 }
开发者ID:architbakliwal,项目名称:RapidInnovation,代码行数:15,代码来源:qa-donut-layer.php

示例10: head_css

    function head_css()
    {
        $this->output('<meta http-equiv="X-UA-Compatible" content="IE=edge" />');
        qa_html_theme_base::head_css();
        $this->output('<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">');
        $fav = qa_opt('cs_favicon_url');
        if ($fav) {
            $this->output('<link rel="shortcut icon" href="' . $fav . '" type="image/x-icon">');
        }
        $this->output('

				<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
				<!--[if lte IE 9]>
					<link rel="stylesheet" type="text/css" href="' . Q_THEME_URL . '/css/ie.css"/>
				  <script src="' . Q_THEME_URL . '/js/html5shiv.js"></script>
				  <script src="' . Q_THEME_URL . '/js/respond.min.js"></script>
				<![endif]-->
			');
        if (qa_opt('cs_enable_gzip')) {
            //Gzip
            $this->output('<LINK REL="stylesheet" TYPE="text/css" HREF="' . Q_THEME_URL . '/inc/gzip.php' . '"/>');
        } else {
            $this->output('<link rel="stylesheet" type="text/css" href="' . Q_THEME_URL . '/css/font.css"/>');
            $this->output('<link rel="stylesheet" type="text/css" href="' . Q_THEME_URL . '/css/bootstrap.css"/>');
            $this->output('<link rel="stylesheet" type="text/css" href="' . Q_THEME_URL . '/css/main.css"/>');
            $this->output('<link rel="stylesheet" type="text/css" href="' . Q_THEME_URL . '/css/wide.css"/>');
            $this->output('<link rel="stylesheet" type="text/css" href="' . Q_THEME_URL . '/css/responsive.css"/>');
            $this->output('<link rel="stylesheet" type="text/css" href="' . Q_THEME_URL . '/css/theme-green.css"/>');
        }
        if (qa_opt('cs_custom_style_created')) {
            $this->output('<link rel="stylesheet" type="text/css" href="' . Q_THEME_URL . '/css/dynamic.css"/>');
        } else {
            $css = qa_opt('cs_custom_css');
            $this->output('<style>' . $css . '</style>');
        }
        $this->output('<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" rel="stylesheet" type="text/css">');
        $googlefonts = json_decode(qa_opt('typo_googlefonts'), true);
        if (isset($googlefonts) && !empty($googlefonts)) {
            foreach ($googlefonts as $font_name) {
                $font_name = str_replace(" ", "+", $font_name);
                $link = 'http://fonts.googleapis.com/css?family=' . $font_name;
                $this->output('<link href="' . $link . '" rel="stylesheet" type="text/css">');
            }
        }
        if (qa_opt('cs_styling_rtl')) {
            $this->output('<link rel="stylesheet" type="text/css" href="' . Q_THEME_URL . '/css/rtl.css"/>');
        }
    }
开发者ID:microbye,项目名称:CleanStrap,代码行数:48,代码来源:blocks.php

示例11: url

 function head_css()
 {
     parent::head_css();
     $hidecss = qa_opt('open_login_css') == '1';
     $zocial = qa_opt('open_login_zocial') == '1';
     if (!$hidecss) {
         // display CSS inline
         $path = QA_HTML_THEME_LAYER_URLTOROOT;
         $this->output('<style type="text/css"><!--');
         $this->output(@file_get_contents(QA_HTML_THEME_LAYER_URLTOROOT . 'qa-open-login.css'));
         $this->output('//--></style>');
         if ($zocial) {
             $this->output('<style type="text/css"><!--');
             $this->output("@import url('{$path}css/zocial.css');");
             $this->output('//--></style>');
         }
     }
 }
开发者ID:microbye,项目名称:q2a-open-login,代码行数:18,代码来源:qa-open-layer.php

示例12: head_css

    function head_css()
    {
        qa_html_theme_base::head_css();
        if ($this->template == 'user' && qa_opt('signatures_enable')) {
            $this->output_raw('
<style>
	.sig-left-green {
		color:green;
	}
	.sig-left-orange {
		color:orange;
	}
	.sig-left-red {
		color:red;
	}
	
</style>');
        }
    }
开发者ID:NoahY,项目名称:q2a-signatures,代码行数:19,代码来源:qa-sig-layer.php

示例13: array

 function head_css()
 {
     parent::head_css();
     $css_paths = array('fonts' => 'css/font-awesome.min.css?4.2.0', 'bootstrap' => 'css/bootstrap.min.css?3.3.5', 'donut' => 'css/donut.css?' . DONUT_THEME_VERSION);
     if (qa_opt('donut_activate_prod_mode')) {
         $cdn_css_paths = array('bootstrap' => Donut_Option_Keys::BS_CSS_CDN, 'fonts' => Donut_Option_Keys::FA_CDN);
         unset($css_paths['bootstrap']);
         unset($css_paths['fonts']);
         $this->donut_resources($cdn_css_paths, 'css', true);
         $css_paths['donut'] = 'css/donut.min.css?' . DONUT_THEME_VERSION;
         //put the donut.min.css for the prod mode
     }
     $this->donut_resources($css_paths, 'css');
     if (qa_opt('donut_use_local_font')) {
         $this->donut_resources(array('css/open-sans.css?' . DONUT_THEME_VERSION));
     } else {
         $this->donut_resources(array('https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic'), 'css', true);
     }
 }
开发者ID:microbye,项目名称:Donut,代码行数:19,代码来源:qa-donut-layer.php

示例14: head_css

 function head_css()
 {
     qa_html_theme_base::head_css();
     $this->output('<style>', qa_opt('faq_css'), '</style>');
 }
开发者ID:ruuttt,项目名称:question2answer_sandbox,代码行数:5,代码来源:qa-faq-layer.php

示例15: head_css

 function head_css()
 {
     qa_html_theme_base::head_css();
     if ($this->template == 'user' && qa_opt('theme_switch_enable')) {
     }
 }
开发者ID:NoahY,项目名称:q2a-theme-switcher,代码行数:6,代码来源:qa-theme-layer.php


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