Ejemplo n.º 1
0
    $yt->ytStyleSheet('css/ie/template-ie10.css');
}
// Include css RTL
if ($direction['rtl']) {
    $yt->ytStyleSheet('css/template-rtl.css');
}
// Enable & disable responsive
if ($showCpanel) {
    $yt->ytStyleSheet('asset/minicolors/jquery.miniColors.css');
}
if ($layoutType == 'res' || $layoutType == 'float') {
    $yt->ytStyleSheet('css/responsive.css');
}
/**************************** Jquery Framework ************************
**********************************************************************/
$doc->addScript($yt->templateurl() . 'js/modernizr.custom.js');
// Compile less by Client
if (strtolower($compileLess) == 'client') {
    $doc->addScript($yt->templateurl() . 'js/less.min.js');
}
// jQuery & Bootstrap's
JHtml::_('jquery.framework');
if (!defined('BOOTSTRAP_JS')) {
    $doc->addScript($yt->templateurl() . 'asset/bootstrap/js/bootstrap.js');
}
// KeepMenu
if ($keepmenu) {
    $doc->addScript($yt->templateurl() . 'js/keepmenu.js');
}
// Cpanel
if ($showCpanel) {
Ejemplo n.º 2
0
                $layoutItem = trim($o[1]);
            }
        }
    }
}
if ($boolOverride == true) {
    // Window Overwrite Layouts
    $yt_render = new YtRenderXML($layoutItem . '.xml');
} else {
    // Window Layout default
    $yt_render = new YtRenderXML($windows_main_layout);
}
// Set GeneratorTag
$this->setGenerator($setGeneratorTag);
/*** Javascript ***/
$doc->addScript($yt->templateurl() . 'js/yt-script.js');
if (isset($yt_render->arr_TH['script'])) {
    foreach ($yt_render->arr_TH['script'] as $tagScript) {
        $doc->addScript($yt->templateurl() . 'js/' . $tagScript);
    }
}
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
if (!defined('SMART_NOCONFLICT')) {
    define('SMART_NOCONFLICT', 1);
    $doc->addScript($yt->templateurl() . 'js/jsmart.noconflict.js');
}
// For param enableJquery
/*if($yt->getParam('enableJquery')=='1'){
	if (!defined('SMART_JQUERY')){
		define('SMART_JQUERY', 1);
Ejemplo n.º 3
0
<!DOCTYPE html>
<html lang="<?php 
echo $this->language;
?>
" dir="<?php 
echo $this->direction;
?>
">
<head>
    <jdoc:include type="head" />
    <?php 
include_once J_TEMPLATEDIR . '/includes/head.php';
// Include CSS
$yt->ytStyleSheet('templates/protostar/css/template.css');
// Include jQuery & bootstrap's javascript
$doc->addScript($yt->templateurl() . 'asset/bootstrap/js/bootstrap.min.js');
$doc->addScript($yt->templateurl() . 'js/touchswipe.min.js');
?>
	<?php 
if ($print == 1) {
    ?>
 
		<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<?php 
}
?>
</head>
<body class="contentpane<?php 
echo $direction == 'rtl' ? ' rtl' : '';
?>
">
Ejemplo n.º 4
0
if ($direction == 'rtl') {
    $yt->ytStyleSheet('css/template-rtl.css');
}
// Enable & disable responsive
if ($showCpanel) {
    $yt->ytStyleSheet('asset/minicolors/jquery.miniColors.css');
}
if ($layoutType == 'res' || $layoutType == 'float') {
    $yt->ytStyleSheet('css/responsive.css');
}
/**************************** Jquery Framework ************************
**********************************************************************/
// jQuery & Bootstrap's
JHtml::_('jquery.framework', true, true);
if (!defined('BOOTSTRAP_JS')) {
    $doc->addScript($yt->templateurl() . 'asset/bootstrap/js/bootstrap.min.js');
    define('BOOTSTRAP_JS', 1);
}
// KeepMenu
if ($keepmenu) {
    $doc->addScript($yt->templateurl() . 'js/keepmenu.js');
}
// Cpanel
if ($showCpanel) {
    $doc->addScript($yt->templateurl() . 'js/ytcpanel.js');
    $doc->addScript($yt->templateurl() . 'asset/minicolors/jquery.miniColors.min.js');
}
// Include Scroll Reveal Effect
if ($animatescroll) {
    $doc->addScript($yt->templateurl() . 'js/scrollReveal.js');
}
Ejemplo n.º 5
0
if ($responsive) {
    $yt->ytStyleSheet('css/responsive.css');
}
/*** JS ***
***********/
// Javascript of joomla core
if (J_VERSION <= 2) {
    JHTML::_('behavior.framework');
}
// Include jQuery & bootstrap's javascript
if (J_VERSION >= 3) {
    JHtml::_('bootstrap.framework');
} elseif (J_VERSION <= 2) {
    if (!defined('SMART_JQUERY')) {
        define('SMART_JQUERY', 1);
        $doc->addScript($yt->templateurl() . 'js/jquery.min.js');
        $doc->addScript($yt->templateurl() . 'js/jquery-noconflict.js');
    }
    $doc->addScript($yt->templateurl() . 'asset/bootstrap/js/bootstrap.min.js');
}
if (strtolower($compileLess) == 'client') {
    $doc->addScript($yt->templateurl() . 'js/less.min.js');
}
$doc->addScript($yt->templateurl() . 'js/yt-script.js');
$doc->addScript($yt->templateurl() . 'js/prettify.js');
if ($showCpanel) {
    $doc->addScript($yt->templateurl() . 'js/ytcpanel.js');
    $doc->addScript($yt->templateurl() . 'asset/minicolors/jquery.miniColors.min.js');
}
// Include js in layout(.xml)
if (isset($yt_render->arr_TH['script'])) {
Ejemplo n.º 6
0
}
// Include css RTL
if ($direction == 'rtl') {
    $yt->ytStyleSheet('css/template-rtl.css');
}
// Enable & disable responsive
if ($showCpanel) {
    $yt->ytStyleSheet('asset/minicolors/jquery.miniColors.css');
}
if ($layoutType == 'res' || $layoutType == 'float') {
    $yt->ytStyleSheet('css/responsive.css');
}
/*** Jquery Framework ***
*************************/
// Include jQuery & bootstrap's javascript
$doc->addScript($yt->templateurl() . 'asset/bootstrap/js/bootstrap.min.js');
if (strtolower($compileLess) == 'client') {
    $doc->addScript($yt->templateurl() . 'js/less.min.js');
}
// Include jQuery KeepMenu
if ($keepmenu) {
    $doc->addScript($yt->templateurl() . 'js/keepmenu.js');
}
// Include Cpanel
if ($showCpanel) {
    $doc->addScript($yt->templateurl() . 'js/ytcpanel.js');
    $doc->addScript($yt->templateurl() . 'asset/minicolors/jquery.miniColors.min.js');
}
// Include Fade Images Scroll
if ($fadeimgscroll) {
    $doc->addScript($yt->templateurl() . 'js/fadeimgscroll.js');
Ejemplo n.º 7
0
// Set GeneratorTag
$this->setGenerator($setGeneratorTag);
// Style sheets
$doc->addStyleDeclaration('.yt-main{width:' . $yt_render->ytmain_width . '; margin:0 auto}');
$doc->addStyleDeclaration('body{font-family:' . $font_name . '}');
if ($googleWebFont != "" && $googleWebFont != " ") {
    $googleWebFontFamily = str_replace("+", " ", $googleWebFont);
    $doc->addStyleSheet('http://fonts.googleapis.com/css?family=' . $googleWebFont . '');
    if (strpos($googleWebFontFamily, ':')) {
        $googleWebFontFamily = substr($googleWebFontFamily, 0, strpos($googleWebFontFamily, ':'));
    }
    $doc->addStyleDeclaration('  ' . $googleWebFontTargets . '{font-family:' . $googleWebFontFamily . ', serif !important}');
}
$doc->addStyleSheet($yt->baseurl() . 'templates/system/css/system.css', 'text/css');
$doc->addStyleSheet($yt->baseurl() . 'templates/system/css/general.css', 'text/css');
$doc->addStyleSheet($yt->templateurl() . 'css/base.css', 'text/css');
$doc->addStyleSheet($yt->templateurl() . 'css/template.css', 'text/css');
if (isset($yt_render->arr_TH['stylesheet'])) {
    foreach ($yt_render->arr_TH['stylesheet'] as $tagStyle) {
        $doc->addStyleSheet($yt->templateurl() . 'css/' . $tagStyle, 'text/css');
    }
}
//$doc->addStyleSheet($yt->templateurl().'css/css3.php?url='.$yt->templateurl(),'text/css');
$doc->addStyleSheet($yt->templateurl() . 'css/typography.css', 'text/css');
// Add css include from layout file
$arr_style = $yt->getStyleSite();
if (!empty($arr_style)) {
    $doc->addStyleSheet($yt->templateurl() . 'css/color/' . $arr_style['filestyle'] . '.css', 'text/css');
}
if ($yt->is_mobile) {
    $doc->addStyleSheet($yt->templateurl() . 'css/mobile.css', 'text/css');