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();
 }
Ejemplo n.º 2
0
 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>');
     }
 }
 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>');
     }
 }
Ejemplo n.º 4
0
 /**
  * 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();
 }
Ejemplo n.º 5
0
 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>');
 }
Ejemplo n.º 6
0
    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();
            }
        }
    }
 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 . '"/>');
         }
     }
 }
Ejemplo n.º 8
0
 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');
 }
 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');
 }
Ejemplo n.º 10
0
    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"/>');
        }
    }
Ejemplo n.º 11
0
 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>');
         }
     }
 }
Ejemplo n.º 12
0
    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>');
        }
    }
Ejemplo n.º 13
0
 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);
     }
 }
Ejemplo n.º 14
0
 function head_css()
 {
     qa_html_theme_base::head_css();
     $this->output('<style>', qa_opt('faq_css'), '</style>');
 }
Ejemplo n.º 15
0
 function head_css()
 {
     qa_html_theme_base::head_css();
     if ($this->template == 'user' && qa_opt('theme_switch_enable')) {
     }
 }
Ejemplo n.º 16
0
 function head_css()
 {
     // prepare CSS
     $this->output('<link rel="stylesheet" type="text/css" href="' . $this->rooturl . 'css/bootstrap.min.css"/>');
     if (qa_opt('it_custom_style_created')) {
         $this->output('<link rel="stylesheet" type="text/css" href="' . $this->rooturl . 'css/dynamic.css"/>');
     } else {
         $this->output('<style type="text/css">' . qa_opt('it_custom_css') . '</style>');
     }
     if ($this->template == 'ask' or $this->template == 'question' && substr(qa_get_state(), 0, 4) == 'edit') {
         $this->output('<link rel="stylesheet" type="text/css" href="' . $this->rooturl . 'css/ask.css"/>');
     }
     if ($this->request == 'admin/it_options') {
         $this->output('<link rel="stylesheet" type="text/css" href="' . $this->rooturl . 'css/admin.css"/>');
         $this->output('<link rel="stylesheet" type="text/css" href="' . $this->rooturl . 'css/spectrum.css"/>');
         // color picker
     }
     $googlefonts = json_decode(qa_opt('it_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">');
         }
     }
     $fav = qa_opt('it_favicon_url');
     if ($fav) {
         $this->output('<link rel="shortcut icon" href="' . $fav . '" type="image/x-icon">');
     }
     qa_html_theme_base::head_css();
 }
Ejemplo n.º 17
0
 function head_css()
 {
     if ($this->request == 'themeoptions') {
         $this->output('<link rel="stylesheet" type="text/css" href="' . $this->rooturl . 'css/admin.css"/>');
         $this->output('<link rel="stylesheet" type="text/css" href="' . $this->rooturl . 'css/spectrum.css"/>');
         // color picker
     }
     qa_html_theme_base::head_css();
 }
Ejemplo n.º 18
0
 function head_css()
 {
     qa_html_theme_base::head_css();
     $this->output('<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"/>');
 }
 function head_css()
 {
     qa_html_theme_base::head_css();
     // call back through to the default function
     $this->output('<STYLE>', '.is_favorite{background:' . qa_opt('obvious_content_color') . ';padding:10px}', '.is_favorite_cat{background:' . qa_opt('obvious_content_category_color') . ';padding:10px}', '</STYLE>');
 }