Ejemplo n.º 1
0
 /**
  * AFFICHE LA FEUILLE DE STYLE ET LE JAVASCRIPT UNIQUEMENT SUR LA PAGE DEMANDÉE.
  *
  */
 public function siteHead()
 {
     global $Page, $Url;
     $html = '';
     if ($Url->whereAmI() === 'page' && $Page->slug() == $this->getDbField('page')) {
         $pluginPath = $this->htmlPath();
         /** 
          * ON INCLUT LA CSS PAR DÉFAUT DU PLUG-IN OU LA CSS PERSONNALISÉE STOCKER DANS NOTRE THÈME 
          */
         $css = PATH_THEME_CSS . 'contact.css';
         if (file_exists($css)) {
             $html .= Theme::css('contact.css');
         } else {
             $html .= '<link rel="stylesheet" href="' . $pluginPath . 'layout/contact.css">';
         }
     }
     return $html;
 }
Ejemplo n.º 2
0
?>
</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php 
echo $Site->description();
?>
">
<meta name="author" content="Bludit - Theme design by Afnizar Nur Ghifari">

<?php 
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
/*
<link rel="stylesheet" href="css/kube.min.css" />
<link rel="stylesheet" href="css/font-awesome.min.css" />
<link rel="stylesheet" href="css/custom.min.css" />
*/
Theme::css(array('kube.min.css', 'font-awesome.min.css', 'custom.css'));
/*
<link href="http://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
*/
Theme::css(array('http://fonts.googleapis.com/css?family=Lato:400,700', 'http://fonts.googleapis.com/css?family=Open+Sans:400,700'), false);
Theme::favicon();
// Plugins Site Head
Theme::plugins('siteHead');
Ejemplo n.º 3
0
<?php

/**
 *
 *   Copyright © 2010-2012 by xhost.ch GmbH
 *
 *   All rights reserved.
 *
 **/
$this->pageTitle = Yii::app()->name . ' - ' . Yii::t('admin', 'Minecraft Manager Settings');
$this->breadcrumbs = array(Yii::t('admin', 'Settings') => array('index'), Yii::t('admin', 'Settings'));
$this->menu = array(array('label' => Yii::t('admin', 'Update Minecraft'), 'url' => array('daemon/updateMC'), 'icon' => 'update'), array('label' => Yii::t('admin', 'Multicraft Status'), 'url' => array('daemon/status'), 'icon' => 'status'), array('label' => Yii::t('admin', 'Panel Configuration'), 'url' => array('daemon/panelConfig'), 'icon' => 'config'), array('label' => Yii::t('admin', 'Statistics'), 'url' => array('daemon/statistics'), 'icon' => 'statistics'), array('label' => Yii::t('admin', 'Operations'), 'url' => array('daemon/operations'), 'icon' => 'operations'), array('label' => Yii::t('admin', 'Config File Settings'), 'url' => array('configFile/index'), 'icon' => 'file'));
Yii::app()->clientScript->registerCssFile(Theme::css('detailview.css'));
Yii::app()->getClientScript()->registerCoreScript('jquery');
?>

<?php 
echo CHtml::beginForm();
echo CHtml::hiddenField('submit', 'true');
?>
<table class="detail-view">
<tr class="titlerow">
    <td><?php 
echo Yii::t('admin', 'Setting');
?>
</td>
    <td></td>
    <td><?php 
echo Yii::t('admin', 'Default');
?>
</td>
Ejemplo n.º 4
0
    <link rel="stylesheet" type="text/css" href="<?php 
echo Theme::css('ie.css');
?>
" media="screen, projection" />
    <![endif]-->

    <link rel="stylesheet" type="text/css" href="<?php 
echo Theme::css('main.css');
?>
" />
    <link rel="stylesheet" type="text/css" href="<?php 
echo Theme::css('form.css');
?>
" />
    <link rel="stylesheet" type="text/css" href="<?php 
echo Theme::css('theme.css');
?>
" />

    <title><?php 
echo CHtml::encode($this->pageTitle);
?>
</title>
</head>

<body>

<div id="frame">
<div id="border-left"></div>
<div id="border-right"></div>
<div class="container" id="page">
Ejemplo n.º 5
0
?>
">

<title><?php 
echo $Site->title();
?>
</title>

<!-- Bootstrap Core CSS -->
<?php 
Theme::css('bootstrap.min.css');
?>

<!-- Custom CSS -->
<?php 
Theme::css('clean-blog.min.css');
?>

<!-- Custom Fonts -->
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<!-- Plugins Site Head -->
Ejemplo n.º 6
0
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php 
echo $Site->description();
?>
">

<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS from theme/css/
Theme::css(array('pure-min.css', 'grids-responsive-min.css', 'blog.css', 'rainbow.github.css'));
// Javascript from theme/js/
Theme::javascript('rainbow.min.js');
// Favicon from theme/img/
Theme::favicon('favicon.png');
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
?>

<!-- Custom Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic,latin-ext" rel="stylesheet" type="text/css">

<!-- Pure and Google Fonts -->
Ejemplo n.º 7
0
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS from theme/css/
Theme::css(array('main.css'));
//if IE <= 8
if (preg_match('/(?i)msie [5-8]/', $_SERVER['HTTP_USER_AGENT'])) {
    Theme::css(array('ie8.css'));
    Theme::javascript('html5shiv.js');
} else {
    //if IE > 8
    Theme::css(array('ie9.css'));
}
// Favicon from theme/img/
Theme::favicon('favicon.png');
?>

<!-- Plugins Site Head -->
<?php 
Theme::plugins('siteHead');
Ejemplo n.º 8
0
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php 
echo $Site->description();
?>
">

<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS from theme/css/
Theme::css(array('blog.css', 'bootstrap.css', 'bootstrap.min.css', 'business-casual.css'));
// Javascript from theme/js/
Theme::javascript(array('rainbow.min.js', 'bootstrap.js', 'bootstrap.min.js', 'jquery.js'));
// Favicon from theme/img/
Theme::favicon('favicon.png');
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
?>

<!-- Custom Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic,latin-ext" rel="stylesheet" type="text/css">

<!-- Pure and Google Fonts -->
Ejemplo n.º 9
0
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">

    <!-- Meta tag Title -->
    <title><?php 
echo $Site->title();
?>
</title>

    <!-- CSS -->
    <?php 
Theme::css('blog.css');
?>

    <!-- Javascript -->
    <?php 
Theme::javascript('blog.js');
?>

    <!-- Plugins site head -->
    <?php 
Theme::plugins('siteHead');
?>
</head>
<body>
    <!-- Plugins site body begin -->
    <?php 
Theme::plugins('siteBodyBegin');
?>
Ejemplo n.º 10
0
 public function init()
 {
     parent::init();
     // Subset of http://detectmobilebrowsers.com/
     if (preg_match('/android.+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|' . 'hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i' . '|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|symbian|treo|up\\.(browser|link)|vodafone' . '|wap|windows (ce|phone)|xda|xiino/i', Yii::app()->request->userAgent)) {
         Yii::app()->theme = 'mobile';
     }
     $pf = @$_REQUEST['mc_platform'];
     $pf = $pf ? $pf : @$_SESSION['mc_platform'];
     if ($pf && preg_match('/^[-_\\w\\d]{2,16}$/', $pf)) {
         Yii::app()->params['platform'] = $pf;
         Yii::app()->theme = 'platform' . DIRECTORY_SEPARATOR . $pf;
     }
     Yii::app()->widgetFactory->widgets['CGridView']['cssFile'] = Theme::css('gridview.css');
     Yii::app()->widgetFactory->widgets['CDetailView']['cssFile'] = Theme::css('detailview.css');
     Yii::app()->widgetFactory->widgets['CDetailView']['itemTemplate'] = "<tr class=\"{class}\"><th>{label}</th><td>{value}</td><td class=\"hintRow\">{hint}</td></tr>\n";
     Yii::app()->widgetFactory->widgets['CLinkPager']['cssFile'] = Theme::css('pager.css');
     if (@Yii::app()->params['installer'] === 'show' || Yii::app()->params['superuser_check_only'] && !Yii::app()->user->isSuperuser()) {
         return;
     }
     $checkKey = 'mcUpdateCheck';
     $noticeKey = 'mcUpdateNotice';
     $last = (int) Yii::app()->user->getState($checkKey, 0);
     $this->notice = Yii::app()->user->getState($noticeKey, '');
     if (!($check = time() - $last >= 3600)) {
         //Check every hour
         return;
     }
     Yii::app()->user->setState($checkKey, time());
     try {
         $s = Setting::model()->findByPk('updateChecks');
         if ($s && ($s->value == '0' || $s->value == 'False' || $s->value == 'false')) {
             $check = false;
         }
     } catch (Exception $e) {
     }
     if (!$check) {
         return;
     }
     $context = stream_context_create(array('http' => array('timeout' => 5, 'method' => 'POST', 'header' => 'Content-Type: application/x-www-form-urlencoded' . "\r\n" . 'Referer: ' . Yii::app()->request->getBaseUrl(true) . "\r\n", 'content' => http_build_query(array('version' => $this->version)))));
     $remote = @file_get_contents('http://www.multicraft.org/site/version?panel=true', 0, $context);
     $pattern = '[\\w]?([\\d]+)\\.([\\d]+)\\.([\\d]+)(-(.*))?';
     $ml = array();
     $mr = array();
     preg_match('/' . $pattern . '/', $this->version, $ml);
     preg_match('/<v>' . $pattern . '<\\/v>/', $remote, $mr);
     if (count($ml) < 3) {
         $this->notice = '';
     } else {
         if (count($mr) < 3) {
             $this->notice = 'Update check failed';
         } else {
             if ($mr[1] > $ml[1] || $mr[1] == $ml[1] && $mr[2] > $ml[2] || $mr[1] == $ml[1] && $mr[2] == $ml[2] && $mr[3] > $ml[3] || $mr[1] == $ml[1] && $mr[2] == $ml[2] && $mr[3] == $ml[3] && (count($ml) >= 6 && preg_match('/^pre/', $ml[5]))) {
                 $this->notice = Yii::t('mc', 'Update available') . ': <a href="http://www.multicraft.org/"><b>' . $remote . '</b></a>';
             } else {
                 $this->notice = '';
             }
         }
     }
     Yii::app()->user->setState($noticeKey, $this->notice);
 }
Ejemplo n.º 11
0
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php 
echo $Site->title();
?>
</title>
<?php 
// CSS from theme/css/
Theme::css(array('aqua.css'));
// Javascript from theme/js/
// Theme::javascript('file.name.js');
// Favicon from theme/img/
Theme::favicon('favicon.png');
// Where Am I
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
    Theme::description($Post->description());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
    Theme::description($Page->description());
} else {
    Theme::description($Site->description());
}
?>
<!-- Custom Fonts and Scripts -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,800,700|Merriweather:400,700' rel='stylesheet' type='text/css'>
<script src="<?php 
echo HTML_PATH_THEME;
?>
js/modernizr-2.8.3-respond-1.4.2.min.js"></script>
<!-- Plugins Site Head -->
Ejemplo n.º 12
0
 /**
  * AFFICHE LA FEUILLE DE STYLE ET LE JAVASCRIPT UNIQUEMENT SUR LA PAGE DEMANDÉE.
  *
  */
 public function siteHead()
 {
     global $Page, $Url;
     $html = '';
     if ($Url->whereAmI() === 'page' && $Page->slug() == $this->getDbField('page')) {
         $pluginPath = $this->htmlPath() . 'libs' . DS;
         /** 
          * ON INCLUT LA CSS PAR DÉFAUT DU PLUG-IN OU LA CSS PERSONNALISÉE STOCKER DANS NOTRE THÈME 
          */
         $css = PATH_THEME_CSS . 'foliogallery.css';
         if (file_exists($css)) {
             $html .= Theme::css('foliogallery.css');
         } else {
             $html .= '<link rel="stylesheet" href="' . $pluginPath . 'foliogallery' . DS . 'foliogallery.css">' . PHP_EOL;
         }
         $html .= '<link rel="stylesheet" type="text/css" href="' . $pluginPath . 'colorbox' . DS . 'colorbox.css" media="screen">' . PHP_EOL;
     }
     return $html;
 }
Ejemplo n.º 13
0
<?php

// <meta charset="utf-8">
Theme::charset('utf-8');
// <meta name="viewport" content="width=device-width, initial-scale=1">
Theme::viewport('width=device-width, initial-scale=1');
// <title>...</title>
Theme::title();
// <meta name="description" content=".....">
Theme::description();
// <link rel="shortcut icon" href="favicon.png">
Theme::favicon('favicon.png');
// CSS files
Theme::css('style.css');
Theme::css('bludit.css');
?>

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<!-- Google Webfont
-->
<link href='//fonts.googleapis.com/css?family=Roboto:400,300,100,500' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto+Slab:400,300,100,500' rel='stylesheet' type='text/css'>

<!-- Load plugins
- Hook: Site head
-->
<?php 
Theme::plugins('siteHead');
Ejemplo n.º 14
0
// <title>Site title</title>
Theme::title($Site->title());
// <meta name="description" content="Site description">
Theme::description($Site->description());
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
// <link rel="stylesheet" type="text/css" href="pure-min.css">
// <link rel="stylesheet" type="text/css" href="grids-responsive-min.css">
// <link rel="stylesheet" type="text/css" href="blog.css">
// <link rel="stylesheet" type="text/css" href="rainbow.github.css">
Theme::css(array('pure-min.css', 'grids-responsive-min.css', 'blog.css', 'rainbow.github.css'));
Theme::css(array('http://fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic,latin-ext'), '');
// <script src="rainbow.min.js"></script>
Theme::javascript(array('rainbow.min.js'));
?>

<!-- Pure and Google Fonts -->
<style>
html, button, input, select, textarea,
.pure-g [class *= "pure-u"] {
	font-family: 'Open Sans', sans-serif;
}
</style>

<!-- Plugins Site Head -->
<?php 
Theme::plugins('siteHead');
Ejemplo n.º 15
0
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" >
<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS
Theme::css(array('style.css', 'bludit.css'));
// Javascript
Theme::javascript(array('jquery-1.12.0.min.js', 'jquery-migrate-1.2.1.min.js'));
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
    Theme::description($Post->description());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
    Theme::description($Page->description());
} else {
    Theme::description($Site->description());
}
?>

<!-- Custom Fonts -->
<link href="//fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Raleway:600,500,400" rel="stylesheet" type="text/css">

<!-- Favicon -->
<link rel="shortcut icon" href="<?php 
echo $Site->url();
?>
Ejemplo n.º 16
0
    echo $Page->title() . " – ";
}
echo $Site->title();
?>
</title>
<?php 
/* ===========================================================
	MONOCHROMATO for Bludit
==============================================================
	by hxii (http://paulglushak.com)
	Github: https://github.com/hxii/Monochromato
	Release Date: 2015/11/20
	Version: v0.1
============================================================== */
?>

<?php 
Theme::css(array('normalize.css', 'highlight.css', 'scss.php?p=main.scss'));
Theme::javascript('highlight.pack.js');
Theme::favicon('favicon.png');
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
?>
<script>hljs.initHighlightingOnLoad();</script>
<!-- Custom Fonts -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,700,700italic,800&subset=latin,cyrillic' rel='stylesheet' type='text/css' rel="stylesheet" type="text/css">
<?php 
Theme::plugins('siteHead');