示例#1
0
 function viewAction()
 {
     $clearArray = array('flags');
     $this->filter($clearArray);
     if (empty($this->params)) {
         $today = date("d.m.Y");
         $this->params['dates'] = $today . '-' . $today;
     }
     $pagination = new Pagination(array('action' => $this->action, 'controller' => $this->controller, 'params' => $this->params, 'ajax' => true));
     $models = AFActiveDataProvider::models('ProspectEmail', $this->params, $pagination);
     $dataProvider = $models->getAll();
     $filterFields = $models->getoutFilterFields($clearArray, array('dates'));
     // set ajax table
     if (AF::isAjaxRequestModels()) {
         $this->view->includeFile('_table', array('application', 'views', 'emails'), array('access' => $this->access, 'controller' => $this->controller, 'dataProvider' => $dataProvider, 'pagination' => $pagination, 'filterFields' => $filterFields));
         die;
     }
     $campaigns = Campaign::model()->cache()->findAllInArray();
     $templates = Template::model()->cache()->findAllInArray();
     $flags = ProspectEmail::getEmailFlags();
     /*
     $campaignsFilter = $models->getFilterCampaigns();
     $templatesFilter = $models->getFilterTemplates();
     $flagsFilter = $models->getFilterFlags();
     */
     Assets::css('jquery-ui');
     Assets::js('jquery-ui');
     Assets::js('dateRange/jquery.daterange');
     Assets::js('ajax_table');
     Assets::js('af_input_field');
     $this->addToPageTitle(__('prospect_emails'));
     $this->render('view', array('dataProvider' => $dataProvider, 'pagination' => $pagination, 'models' => $models, 'filterFields' => $filterFields, 'campaigns' => $campaigns, 'templates' => $templates, 'flags' => $flags));
 }
示例#2
0
 public function ordersAction()
 {
     $from = AF::get($this->params, 'from', false);
     $clearArray = array();
     $this->filter($clearArray);
     if (!isset($this->params['r_dates'])) {
         $today = date("d.m.Y");
         $this->params['r_dates'] = $today . '-' . $today;
     }
     $pagination = new Pagination(array('action' => $this->action, 'controller' => $this->controller, 'params' => $this->params, 'ajax' => true));
     $models = AFActiveDataProvider::models('Attempt', $this->params, $pagination);
     $dataProvider = $models->getDeclineOrdersReport();
     $filterFields = Attempt::$FilterFields = $models->getoutFilterFields($clearArray, array('r_dates'));
     $fields = array('order_formatted', 'type_formatted', 'status_note', 'created_formatted');
     $gateways = $models->getDSearchGateways();
     $reasons = $models->getDSearchReasons();
     // set ajax table
     if (AF::isAjaxRequestModels()) {
         $this->view->includeFile('_orders_table', array('application', 'views', 'declinedreports'), array('access' => $this->access, 'controller' => $this->controller, 'dataProvider' => $dataProvider, 'pagination' => $pagination, 'filterFields' => $filterFields, 'fields' => $fields, 'gateways' => $gateways, 'reasons' => $reasons));
         die;
     }
     Assets::css('jquery-ui');
     Assets::js('//code.jquery.com/ui/1.10.3/jquery-ui.js');
     Assets::js('dateRange/jquery.daterange');
     Assets::js('ajax_table');
     $this->render('orders', array('dataProvider' => $dataProvider, 'pagination' => $pagination, 'filterFields' => $filterFields, 'fields' => $fields, 'gateways' => $gateways, 'reasons' => $reasons, 'from' => $from));
 }
示例#3
0
 function newretentionAction()
 {
     $clearArray = array('campaign_id', 'aff_id');
     $this->filter($clearArray);
     if (!isset($this->params['dates_r'])) {
         $dataFrom = mktime(0, 0, 0, date("m") - 1, date("d"), date("Y"));
         $fromDate = date("d.m.Y", $dataFrom);
         $today = date("d.m.Y");
         $this->params['dates_r'] = $fromDate . '-' . $today;
     }
     if (!isset($this->params['initial_dates'])) {
         $fromDate = date("d.m.Y", time() - 777600);
         $today = date("d.m.Y");
         $this->params['initial_dates'] = $fromDate . '-' . $today;
     }
     if (!isset($this->params['billing_cycle'])) {
         $this->params['billing_cycle'] = 1;
     }
     $pagination = new Pagination(array('action' => $this->action, 'controller' => $this->controller, 'params' => $this->params));
     $models = AFActiveDataProvider::models('Retention', $this->params, $pagination);
     $report = $models->getForGraph();
     $filterFields = $models->getoutFilterFields($clearArray, array('dates_r', 'initial_dates'));
     $campaigns = Campaign::model()->cache()->findAllInArray();
     $affiliates = Affiliate::model()->cache()->findAllInArray();
     Assets::css('jquery-ui');
     Assets::js('//code.jquery.com/ui/1.10.3/jquery-ui.js');
     Assets::js('dateRange/jquery.daterange');
     Assets::js('//www.google.com/jsapi');
     //<script type="text/javascript" src="https://www.google.com/jsapi"></script>
     $this->addToPageTitle(__('sales_by_retention_chart'));
     $this->render('newretention', array('report' => $report, 'campaigns' => $campaigns, 'affiliates' => $affiliates, 'filterFields' => $filterFields));
 }
示例#4
0
 function viewAction()
 {
     $id = AF::get($this->params, 'campaign_id', FALSE);
     if (!($modelCampaign = Campaign::model()->restrictions()->findByPk($id))) {
         throw new AFHttpException(0, 'incorrect_id');
     }
     $clearArray = array();
     $this->filter($clearArray);
     $pagination = new Pagination(array('action' => $this->action, 'controller' => $this->controller, 'params' => $this->params, 'ajax' => true));
     $models = AFActiveDataProvider::models('Pixel', $this->params, $pagination);
     $dataProvider = $models->getAll();
     $filterFields = $models->getoutFilterFields($clearArray);
     // set ajax table
     if (AF::isAjaxRequestModels()) {
         $this->view->includeFile('_table', array('application', 'views', 'pixels'), array('access' => $this->access, 'controller' => $this->controller, 'dataProvider' => $dataProvider, 'pagination' => $pagination, 'filterFields' => $filterFields));
         die;
     }
     $affiliates = Affiliate::model()->restrictions()->findAllInArray();
     Assets::js('jquery.form');
     Assets::css('jquery-ui');
     Assets::js('jquery-ui');
     Assets::js('ajax_table');
     Assets::js('af_input_field');
     $this->addToPageTitle(__('pixels'));
     $this->render('view', array('dataProvider' => $dataProvider, 'pagination' => $pagination, 'campaign_id' => AF::get($this->params, 'campaign_id'), 'affiliates' => $affiliates, 'modelCampaign' => $modelCampaign));
 }
示例#5
0
 function welcomeAction()
 {
     $filterFields = array();
     $dataProvider = array();
     if ($this->access->actionAccess('dashboard')) {
         if (!isset($this->params['dates'])) {
             //$dataFrom=mktime(0, 0, 0, date("m"), date("d")-1, date("Y"));
             $fromDate = date("d.m.Y");
             $this->params['dates'] = $fromDate . '-' . $fromDate;
         }
         $models = AFActiveDataProvider::models('Order', $this->params);
         $dataProvider = $models->dashboard();
         $filterFields = $models->getoutFilterFields(array(), array('dates'));
         // set ajax table
         if (AF::isAjaxRequestModels()) {
             $this->view->includeFile('_dashboard', array('application', 'views', 'home'), array('access' => $this->access, 'controller' => $this->controller, 'dataProvider' => $dataProvider, 'filterFields' => $filterFields));
             die;
         }
         Assets::css('jquery-ui');
         Assets::js('jquery-ui');
         Assets::js('dateRange/jquery.daterange');
         Assets::js('ajax_table');
         Assets::js('//www.google.com/jsapi');
     }
     $this->addToPageTitle(__('welcome'));
     $this->render('welcome', array('dataProvider' => $dataProvider, 'filterFields' => $filterFields));
 }
示例#6
0
 function viewAction()
 {
     $clearArray = array('action', 'section');
     $this->filter($clearArray);
     if (!isset($this->params['dates'])) {
         //$dataFrom=mktime(0, 0, 0, date("m"), date("d"), date("Y")-2);
         //$fromDate = date("d.m.Y", $dataFrom);
         $today = date("d.m.Y");
         $this->params['dates'] = $today . '-' . $today;
     }
     $pagination = new Pagination(array('action' => $this->action, 'controller' => $this->controller, 'params' => $this->params, 'ajax' => true));
     $models = AFActiveDataProvider::models('Log', $this->params, $pagination);
     $dataProvider = $models->getAll();
     $filterFields = $models->getoutFilterFields($clearArray, array('dates'));
     // set ajax table
     if (AF::isAjaxRequestModels()) {
         $this->view->includeFile('_table', array('application', 'views', 'logs'), array('access' => $this->access, 'controller' => $this->controller, 'dataProvider' => $dataProvider, 'pagination' => $pagination, 'filterFields' => $filterFields));
         die;
     }
     $this->addToPageTitle('Logs');
     Assets::css('jquery-ui');
     Assets::js('jquery-ui');
     Assets::js('dateRange/jquery.daterange');
     Assets::js('ajax_table');
     Assets::js('af_input_field');
     $this->render('view', array('dataProvider' => $dataProvider, 'pagination' => $pagination, 'models' => $models, 'filterFields' => $filterFields));
 }
示例#7
0
 public function test_add_css_includes_arrays()
 {
     touch(FCPATH . 'themes/admin/css/null1.css');
     Assets::add_css(array('null', 'null1'));
     $r = Assets::css();
     $this->assertTrue(strpos($r, 'null.css') !== false && strpos($r, 'null1.css') !== false);
     unlink(FCPATH . 'themes/admin/css/null.css');
     unlink(FCPATH . 'themes/admin/css/null1.css');
 }
示例#8
0
 public function action_index()
 {
     Assets::package('jquery-ui');
     Assets::css('fullcalendar', ADMIN_RESOURCES . 'libs/fullcalendar-2.1.0/fullcalendar.min.css', 'global');
     Assets::js('fullcalendar', ADMIN_RESOURCES . 'libs/fullcalendar-2.1.0/fullcalendar.min.js', 'jquery');
     Assets::js('fullcalendar.lang', ADMIN_RESOURCES . 'libs/fullcalendar-2.1.0/lang/' . I18n::lang_short() . '.js', 'fullcalendar');
     $this->set_title(__('Calendar'), FALSE);
     $this->template->content = View::factory('calendar/index', array('colors' => array('default', 'darken', 'danger', 'info', 'primary', 'success', 'warning'), 'icons' => array('info', 'warning', 'check', 'user', 'lock', 'clock-o')));
 }
示例#9
0
文件: logs.php 项目: ZerGabriel/cms-1
 public function action_index()
 {
     $logs = ORM::factory('log')->filter();
     Assets::css('logs', 'cms/media/css/controller/logs.css');
     $per_page = (int) Arr::get($this->request->query(), 'per_page', 20);
     $pager = Pagination::factory(array('total_items' => $logs->reset(FALSE)->count_all(), 'items_per_page' => $per_page));
     $sidebar = new Sidebar(array(new Sidebar_Fields_DateRange(array('label' => __('Date range'), 'name' => 'created_on', 'range' => array(array('name' => '', 'value' => Arr::path($this->request->query(), 'created_on.0')), array('name' => '', 'value' => Arr::path($this->request->query(), 'created_on.1'))))), new Sidebar_Fields_Select(array('name' => 'level[]', 'label' => __('Log level'), 'options' => Log::levels(), 'selected' => (array) $this->request->query('level'))), new Sidebar_Fields_Input(array('name' => 'per_page', 'label' => __('Items per page'), 'value' => $per_page, 'size' => 3))));
     $this->set_title(__('Logs'), FALSE);
     $this->template->content = View::factory('logs/index', array('logs' => $logs->with('user')->limit($pager->items_per_page)->offset($pager->offset)->find_all(), 'pager' => $pager, 'sidebar' => $sidebar));
 }
示例#10
0
 public function action_index()
 {
     \Assets::css('page2', base_UI . 'css/rangeslider.css');
     \Assets::js('page1', base_UI . 'js/plugins/range/rangeslider.min.js');
     \Assets::js('page2', base_UI . 'js/plugins/range/range_script.js');
     \Assets::js('attr', base_UI . 'js/pages/attr.js');
     \Assets::js('jumper', base_UI . 'js/index/recovery_pass_jumper.js');
     $user_id = \Registry::getCurrentUser()->iduser;
     $data_formula = $this->dataFormula();
     $this->template->assign(['data_formula' => $data_formula]);
     $this->response->body($this->template->fetch('main.tpl'));
 }
示例#11
0
 /**
  * Tests whether CSS files can be combined, minified,
  * and cached successfully. Verfies returned HTML 
  * tag and checks to see whether cached file exists.
  * @return void
  */
 public function testRenderCss()
 {
     $this->setup();
     Assets::css(array('test.css', 'test2.css'));
     Assets::less('test.less');
     // Does returned tag match expected output?
     $this->assertTrue(Assets::renderCss() == "<link rel=\"stylesheet\" href=\"/assets/cache/" . Assets::getCompiledName('css') . "\">");
     // Does file exist?
     $this->filename = __DIR__ . '/assets/cache/' . Assets::getCompiledName('css');
     $this->assertTrue(file_exists($this->filename));
     $this->tearDown();
 }
示例#12
0
 /**
  * Add hook for shortcode tag
  *
  * There can only be one hook for each shortcode.
  * Which means that if another plugin has a similar shortcode, it will
  * override yours or yours will override theirs depending on which order
  * the plugins are included and/or ran.
  *
  * @param   string          $tag       Shortcode tag to be searched in post content.
  * @param   callable        $callback  Hook to run when shortcode is found.
  * @param   string|boolean  $asset     CSS or JS or both to be added. css|js|both [Optional]
  *
  * @return  array
  *
  * @throws  Gleez_Exception
  *
  * @uses    Assets::css
  * @uses    Assets::js
  */
 public static function set($tag, $callback, $asset = FALSE)
 {
     if (!is_callable($callback)) {
         throw new Gleez_Exception('Invalid Shortcode::callback specified');
     }
     self::$_tags[$tag] = $callback;
     if ($asset and $asset == 'css') {
         Assets::css($tag, "media/css/shortcodes/{$tag}.css");
     }
     if ($asset and $asset == 'js') {
         Assets::js($tag, "media/js/shortcodes/{$tag}.js");
     }
     return self::$_tags;
 }
示例#13
0
 /**
  * Prepare welcome page
  */
 public function action_welcome()
 {
     // If Gleez CMS don't installed
     if (!Gleez::$installed) {
         // Send to the installer with server status
         $this->request->redirect(Route::get('install')->uri(array('action' => 'index')), 200);
     }
     Assets::css('welcome', "media/css/welcome.css", array('default'), array('weight' => 30));
     $this->title = __('Welcome!');
     $this->schemaType = 'WebPage';
     $content = View::factory('welcome');
     // Disable sidebars on welcome page
     $this->_sidebars = FALSE;
     $this->response->body($content);
 }
示例#14
0
文件: user.php 项目: MenZil-Team/cms
 /**
  * The before() method is called before controller action
  *
  * @uses  Assets::css
  * @uses  Auth::get_user
  * @uses  Request::uri
  * @uses  Request::action
  */
 public function before()
 {
     Assets::css('user', 'media/css/user.css', array('theme'), array('weight' => 60));
     parent::before();
     // Get the currently logged in user or set up a new one.
     // Note that get_user will also do an auto_login check.
     if (($this->_user = $this->_auth->get_user()) === FALSE) {
         $this->_user = ORM::factory('user');
     }
     if (strpos($this->request->uri(), 'user/reset/', 0) !== FALSE) {
         $this->request->action('reset_' . $this->request->action());
     }
     // Disable sidebars on user pages
     $this->_sidebars = FALSE;
 }
示例#15
0
文件: user.php 项目: MenZil-Team/cms
 public function login()
 {
     $auth = Auth::instance();
     $request = Request::current();
     // If user already signed-in / don't show the widget on user controller.
     if ($auth->logged_in() or $request->controller() === 'user') {
         return;
     }
     Assets::css('user', 'media/css/user.css', array('weight' => 2));
     // Create form action
     $destination = isset($_GET['destination']) ? $_GET['destination'] : Request::initial()->uri();
     $params = array('action' => 'login');
     $action = Route::get('user')->uri($params) . URL::query(array('destination' => $destination));
     return View::factory('widget/login')->set('register', Config::get('auth.register'))->set('use_username', Config::get('auth.username'))->set('providers', array_filter(Auth::providers()))->set('action', $action)->set('post', ORM::factory('user'))->render();
 }
示例#16
0
 /**
  * The before() method is called before controller action
  *
  * @throws  HTTP_Exception
  *
  * @uses    Assets::css
  * @uses    User::is_guest
  */
 public function before()
 {
     if (User::is_guest()) {
         throw HTTP_Exception::factory(403, 'Permission denied! You must login!');
     }
     $id = $this->request->param('id', FALSE);
     if ($id and 'index' == $this->request->action()) {
         $this->request->action('view');
     }
     if (!$id and 'index' == $this->request->action()) {
         $this->request->action('inbox');
     }
     Assets::css('user', 'media/css/user.css', array('theme'), array('weight' => 60));
     parent::before();
 }
示例#17
0
 function viewAction()
 {
     $clearArray = array();
     $this->filter($clearArray);
     $pagination = new Pagination(array('action' => $this->action, 'controller' => $this->controller, 'params' => $this->params, 'ajax' => true));
     $models = AFActiveDataProvider::models('Campaign', $this->params, $pagination);
     //$dataProvider = $models->getAll();
     $dataProvider = $models->cache()->getMethod('getAll');
     $filterFields = $models->getoutFilterFields($clearArray, array('dates'));
     // set ajax table
     if (AF::isAjaxRequestModels()) {
         $this->view->includeFile('_table', array('application', 'views', 'campaigns'), array('access' => $this->access, 'controller' => $this->controller, 'dataProvider' => $dataProvider, 'pagination' => $pagination, 'filterFields' => $filterFields));
         die;
     }
     $campaignsFilter = Campaign::model()->cache()->restrictions()->findAllInArray();
     // useful UI components for popup dialogs and things of that nature.  added to use a dialog popup on the single campaign clone action
     Assets::js('jquery-ui');
     Assets::js('ajax_table');
     Assets::css('jquery-ui');
     $this->addToPageTitle('Campaigns');
     $this->render('view', array('dataProvider' => $dataProvider, 'campaignsFilter' => $campaignsFilter, 'pagination' => $pagination, 'models' => $models, 'filterFields' => $filterFields));
 }
示例#18
0
文件: meta.php 项目: ZerGabriel/cms-1
 /**
  * Генерация HTML кода CSS, JS, Meta
  * 
  * По умолчанию выводятся все группы CSS, JS, Meta, если вы выводите JS
  * код перед тегом </body>, то непобхимо передать параметр FALSE и сделать
  * вывод JS кода в нужно месте с помощью
  *		
  *		<?php echo Assets::js(); ?>
  * 
  * @param boolean $include_js Включить в вывод JavaScript
  * @return string
  */
 public function render($js_footer = FALSE)
 {
     $html = Assets::group('FRONTEND') . Assets::css() . Assets::js($js_footer);
     return $html;
 }
示例#19
0
    e(settings_item('site.title'));
} else {
    echo 'Bonfire';
}
?>
</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="fbmfbm">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Expires" content="Sat, 01 Dec 2001 00:00:00 GMT">

    <?php 
echo Assets::css();
?>
    <link href="http://fonts.googleapis.com/css?family=Droid+Serif" rel="stylesheet" type="text/css">
    <link href="http://fonts.googleapis.com/css?family=Nobile" rel="stylesheet" type="text/css">
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="<?php 
echo base_url();
?>
components/ol3/build/ol.css"/>
    <link rel="stylesheet" href="<?php 
echo base_url();
?>
assets/css/app.css">
    <link rel="stylesheet" href="<?php 
echo base_url();
?>
示例#20
0
</title>

	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<meta name="robots" content="noindex" />
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="<?php 
echo js_path();
?>
admin/ui-grid/ui-grid-unstable.css"/>
    <link rel="stylesheet" href="<?php 
echo css_path();
?>
admin.css"/>
	<?php 
echo Assets::css(null, true);
?>

	<script src="<?php 
echo Template::theme_url('js/modernizr-2.5.3.js');
?>
"></script>
</head>
<body class="desktop" ng-controller="MainCtrl">
<!--[if lt IE 7]>
		<p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or
		<a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p>
<![endif]-->


	<noscript>
示例#21
0
use Lobby\Need;
use Lobby\Time;
$page_title = "Lobby Store";
$appID = \Request::get('app');
if ($appID !== null) {
    $app = \Lobby\Server::store(array("get" => "app", "id" => $appID));
    if ($app) {
        $page_title = $app['name'] . " | Lobby Store";
    }
}
?>
<html>
  <head>
    <?php 
\Assets::css("apps-grid", "/admin/css/apps-grid.css");
\Assets::css("lobby-store", "/admin/css/lobby-store.css");
\Assets::js("lobby-store", "/admin/js/lobby-store.js");
\Hooks::doAction("admin.head.begin");
\Response::head($page_title);
?>
  </head>
  <body>
    <?php 
\Hooks::doAction("admin.body.begin");
?>
    <div id="workspace">
      <div class="contents">
        <?php 
if ($appID !== null) {
    if ($app === false) {
        echo ser("404 - App Not Found", "App was not found in Lobby Store.");
示例#22
0
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php 
echo $title;
?>
 | <?php 
echo Config::get('app.name', SITETITLE);
?>
</title>
    <?php 
echo isset($meta) ? $meta : '';
// Place to pass data / plugable hook zone
?>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <?php 
Assets::css(array(template_url('css/bootstrap-rtl.min.css', 'Default'), 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css', template_url('css/AdminLTE-rtl.min.css', 'AdminLTE'), vendor_url('dist/css/skins/_all-skins.min.css', 'almasaeed2010/adminlte'), vendor_url('plugins/select2/select2.min.css', 'almasaeed2010/adminlte'), template_url('css/style-rtl.css', 'AdminLTE')));
echo isset($css) ? $css : '';
// Place to pass data / plugable hook zone
?>

<style>
.pagination {
    margin: 0;
}

.pagination > li > a, .pagination > li > span {
  padding: 5px 10px;
}
</style>

<?php 
示例#23
0
文件: header.php 项目: RomsonApp/blog
<html>
    <head>
        <title>Blog</title>
        <?php 
echo Assets::css('blog.css');
?>
    </head>
    <body>
示例#24
0
<?php

Assets::css('user', 'media/css/user.css', array('weight' => 2));
?>

<ul id="oauth-providers">
	<li class="oprovider base">
		<?php 
$url = Route::get('user')->uri(array('action' => 'login'));
$url .= URL::query(array('destination' => Request::current()->uri()));
echo HTML::anchor($url, __('Log In'), array('class' => 'base', 'title' => __('Login with :provider account', array(':provider' => $site_name))));
unset($url);
?>
	</li>

	<?php 
foreach ($providers as $name => $provider) {
    ?>
		<li class="oprovider <?php 
    echo $name;
    ?>
">
			<?php 
    $url = $provider['url'] . URL::query(array('destination' => Request::current()->uri()));
    echo HTML::anchor($url, __('Log In'), array('class' => $name, 'title' => __('Login with :provider account', array(':provider' => ucfirst($name)))));
    unset($url);
    ?>
		</li>
	<?php 
}
?>
示例#25
0
        <meta charset="utf-8">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
        <title><?php 
echo $title . ' - ' . SITETITLE;
?>
</title>
        <link rel="icon" type="image/x-icon" href="<?php 
echo DIR . "/favicon.ico";
?>
" />
        
        <?php 
echo $meta;
//place to pass data / plugable hook zone
Assets::css(['https://fonts.googleapis.com/icon?family=Material+Icons', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css', Url::templatePath() . 'css/style.css', Url::templatePath() . 'css/slippry.css', Url::templatePath() . 'css/materialize.min.css']);
echo $css;
//place to pass data / plugable hook zone
?>
    </head>
    <body>
        <?php 
echo $afterBody;
//place to pass data / plugable hook zone
?>
        <header>
            <nav class="nav-logo brown">
                <div class="nav-wrapper">
                    <span class="brand-logo center padding-logo"><img src="<?php 
echo Url::templatePath() . 'images/dcorrido.png';
?>
示例#26
0
?>
<!DOCTYPE html>
<html lang="<?php 
echo Language::code();
?>
">
<head>
    <meta charset="utf-8">
    <title><?php 
echo $title . ' - ' . Config::get('app.name', SITETITLE);
?>
</title>
<?php 
echo isset($meta) ? $meta : '';
// Place to pass data / plugable hook zone
Assets::css([site_url('vendor/twbs/bootstrap/dist/css/bootstrap.min.css'), site_url('vendor/twbs/bootstrap/dist/css/bootstrap-theme.min.css'), 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css', template_url('css/style.css', 'Default')]);
echo isset($css) ? $css : '';
// Place to pass data / plugable hook zone
?>
</head>
<body>

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
示例#27
0
文件: App.php 项目: LobbyOS/server
 public function addStyle($fileName)
 {
     $url = "/contents/apps/{$this->id}/src/css/{$fileName}";
     \Assets::css("{$this->id}-{$fileName}", $url);
 }
示例#28
0
 /**
  * Remove a CSS asset, or all
  *
  * @param   mixed   Asset name, or `NULL` to remove all
  * @return  mixed   Empty array or void
  */
 public static function remove_css($handle = NULL)
 {
     if ($handle === NULL) {
         return Assets::$css = array();
     }
     unset(Assets::$css[$handle]);
 }
示例#29
0
 public function test_add_css_includes_arrays()
 {
     Assets::add_css(array('null', 'null1'));
     $r = Assets::css();
     $this->assertTrue(strpos($r, 'null.css') !== false && strpos($r, 'null1.css') !== false);
 }
示例#30
0
文件: index.php 项目: ndcisiv/Bonfire
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	
	<title><?php echo config_item('site.title'); ?></title>

	<?php Assets::css(); ?>
</head>
<body>

	<div class="page">
	
		<!-- Header -->
		<div class="head text-right">
			<h1>Bonfire</h1>
		</div>
		
		<div class="main">
			<?php echo Template::message(); ?>
			<?php echo Template::yield(); ?>

		</div>	<!-- /main -->
	</div>	<!-- /page -->
	
	<div class="foot">
		<?php if (ENVIRONMENT == 'development') :?>
			<p style="float: right; margin-right: 80px;">Page rendered in {elapsed_time} seconds, using {memory_usage}.</p>
		<?php endif; ?>
		
		<p>Powered by <a href="http://cibonfire.com" target="_blank">Bonfire <?php echo BONFIRE_VERSION ?></a></p>