예제 #1
0
 /**
  * Initialize bootstrap
  */
 public static function init()
 {
     $autoload = \Config::get('bootstrap.assets.autoload', false);
     if (!$autoload) {
         return;
     }
     $path = \Config::get('bootstrap.assets.path', '');
     $use_min = \Config::get('bootstrap.assets.use_min', true);
     $css_file = $path . 'bootstrap';
     $js_file = $path . 'bootstrap';
     if ($use_min) {
         $css_file .= '.min';
         $js_file .= '.min';
     }
     $css_file .= '.css';
     $js_file .= '.js';
     // See if Casset package is used.
     if (\Package::loaded('casset')) {
         \Casset::css($css_file, !$use_min);
         \Casset::js($js_file, !$use_min);
     } else {
         \Asset::css($css_file);
         \Asset::js($js_file);
     }
 }
예제 #2
0
파일: asset.php 프로젝트: nockout/tshpro
 /**
  * Asset CSS
  *
  * Insert a CSS tag
  *
  * Usage:
  *
  * {{ asset:css file="" group="" }}
  *
  * @return string Full url to css asset
  */
 public function css()
 {
     $file = $this->attribute('file');
     $file_min = $this->attribute('file_min');
     $group = $this->attribute('group');
     return Asset::css($file, $file_min, $group);
 }
 /**
  * 予約履歴一覧
  *
  * @access public
  * @param
  * @return void
  * @author kobayashi
  * @author ida
  */
 public function action_list()
 {
     Asset::css('jquery-ui.min.css', array(), 'add_css');
     Asset::js('jquery-ui.min.js', array(), 'add_js');
     $conditions = $this->getCondition();
     $condition_list = \Model_Entry::createAdminSearchCondition($conditions);
     $total_count = \Model_Entry::getCountByAdminSearch($condition_list);
     // ページネーション設定
     $pagination = \Pagination::forge('entry_pagination', $this->getPaginationConfig($total_count));
     $entry_list = \Model_Entry::findAdminBySearch($condition_list, $pagination->current_page, $this->result_per_page);
     $view_model = \ViewModel::forge('admin/entry/list');
     if (\Input::param('fleamarket_id')) {
         $fleamarket = \Model_Fleamarket::find(\Input::param('fleamarket_id'));
         $view_model->set('fleamarket', $fleamarket, false);
     }
     if (\Input::param('user_id')) {
         $user = \Model_User::find(Input::param('user_id'));
         $view_model->set('user', $user, false);
     }
     $view_model->set('entry_list', $entry_list, false);
     $view_model->set('pagination', $pagination, false);
     $view_model->set('conditions', $conditions, false);
     $view_model->set('total_count', $total_count);
     $this->template->content = $view_model;
 }
예제 #4
0
파일: welcome.php 프로젝트: roine/wawaw
 public function action_404()
 {
     $this->template = \View::forge('404');
     $this->template->title = 'Page not found';
     $this->template->custom_class = 'special_page 404';
     $this->template->css = Asset::css(array('special-page.css'));
 }
 /**
  * 会場詳細
  *
  * @access public
  * @param mixed $location_id 会場ID
  * @param mixed $fleamarket_id フリマID
  * @return void
  * @author ida
  */
 public function action_detail($location_id = null, $fleamarket_id = null)
 {
     if (!$location_id) {
         return $this->forward('errors/notfound', 404);
     }
     \Asset::css('jquery-ui.min.css', array(), 'add_css');
     \Asset::js('jquery-ui.min.js', array(), 'add_js');
     // 会場に紐づくフリマを取得する
     $fleamarket_date_list = \Model_Fleamarket::find('all', array('select' => array('fleamarket_id', 'event_date'), 'where' => array(array('location_id' => $location_id)), 'order_by' => array('event_date' => 'asc')));
     if (!$location_id || !$fleamarket_date_list) {
         \Response::redirect('errors/notfound');
     }
     if (!$fleamarket_id) {
         $first_fleamarket = end($fleamarket_date_list);
         $fleamarket_id = $first_fleamarket['fleamarket_id'];
     }
     $fleamarket = \Model_Fleamarket::findDetail($fleamarket_id);
     if (!$fleamarket) {
         \Response::redirect('errors/notfound');
     }
     $this->setHtmlReplace(array('AREA' => $this->getArea($fleamarket['prefecture_id']), 'AREA_NAME' => $this->getAreaName($fleamarket['prefecture_id']), 'LOCATION_ID' => $fleamarket['location_id'], 'LOCATION_NAME' => $fleamarket['location_name'], 'FLEAMARKET_NAME' => $fleamarket['name']));
     $fleamarket_abouts = \Model_Fleamarket_About::findByFleamarketId($fleamarket_id);
     $fleamarket_images = \Model_Fleamarket_Image::findByFleamarketId($fleamarket_id);
     $entry_styles = \Model_Fleamarket_Entry_Style::findByFleamarketId($fleamarket_id);
     $view_model = \ViewModel::forge('location/detail');
     $view_model->set('fleamarket', $fleamarket, false);
     $view_model->set('fleamarket_date_list', $fleamarket_date_list, false);
     $view_model->set('fleamarket_images', $fleamarket_images, false);
     $view_model->set('fleamarket_abouts', $fleamarket_abouts, false);
     $view_model->set('fleamarket_entry_styles', $entry_styles, false);
     $view_model->set('prefectures', \Config::get('master.prefectures'), false);
     $view_model->set('user', $this->login_user, false);
     $this->template->content = $view_model;
 }
예제 #6
0
파일: forms.php 프로젝트: roine/wawaw
 public function action_index()
 {
     $data['all'] = Model_Forms::find('all');
     $this->template->js .= Asset::js(array('mylibs/jquery.dataTables.js'));
     $this->template->css = Asset::css(array('sprite.tables.css'));
     $this->template->content = View::forge('forms/index', $data);
 }
 /**
  * フリーマーケット詳細表示画面
  *
  * @access public
  * @param mixed $fleamarket_id フリーマーケットID
  * @return void
  * @author ida
  */
 public function get_detail($fleamarket_id)
 {
     Asset::css('jquery-ui.min.css', array(), 'add_css');
     Asset::js('jquery-ui.min.js', array(), 'add_js');
     if (!$fleamarket_id) {
         return $this->forward('errors/notfound', 404);
     }
     $fleamarket = \Model_Fleamarket::findDetail($fleamarket_id);
     if (!$fleamarket) {
         return $this->forward('errors/notfound', 404);
     }
     $this->setHtmlReplace(array('AREA' => $this->getArea($fleamarket['prefecture_id']), 'AREA_NAME' => $this->getAreaName($fleamarket['prefecture_id']), 'FLEAMARKET_NAME' => $fleamarket['name'], 'LOCATION_ID' => $fleamarket['location_id'], 'LOCATION_NAME' => $fleamarket['location_name']));
     $fleamarket_abouts = \Model_Fleamarket_About::findByFleamarketId($fleamarket_id);
     $fleamarket_images = \Model_Fleamarket_Image::findByFleamarketId($fleamarket_id);
     $entry_styles = \Model_Fleamarket_Entry_Style::findByFleamarketId($fleamarket_id);
     $entries = \Model_Entry::getTotalEntryByFleamarketId($fleamarket_id);
     $fleamarket['entries'] = $entries;
     $view_model = \ViewModel::forge('search/detail');
     $view_model->set('fleamarket', $fleamarket, false);
     $view_model->set('fleamarket_images', $fleamarket_images, false);
     $view_model->set('fleamarket_abouts', $fleamarket_abouts, false);
     $view_model->set('fleamarket_entry_styles', $entry_styles, false);
     $view_model->set('entries', $entries, false);
     $view_model->set('prefectures', \Config::get('master.prefectures'), false);
     $view_model->set('user', $this->login_user, false);
     $this->template->content = $view_model;
 }
예제 #8
0
파일: base.php 프로젝트: sajans/cms
 protected function set_theme()
 {
     View::bind_global('before', $false);
     View::bind_global('navigation', $false);
     View::bind_global('after_navigation', $false);
     View::bind_global('sidebar', $false);
     View::bind_global('pageheader', $false);
     //echo "<pre>";var_dump(Uri::current()); exit;
     //$theme = Utils_Themer::get_theme(Uri::current());
     $theme = Utils_Themer::get_theme($this->request->uri->uri);
     //var_dump($theme); exit;
     $this->template = view::forge($theme['template']);
     View::bind_global('body_attr', $theme['body_attr']);
     Asset::css($theme['css'], array(), 'head_css');
     foreach ($theme['js'] as $js) {
         Casset\Casset::js($js);
     }
     if ($theme['navigation']) {
         $navigation = call_user_func('Utils_Navigation::get_links', $theme['navigation']);
         View::bind_global('navigation', $navigation, false);
     }
     if ($theme['pageheader']) {
         View::bind_global('pageheader', $theme['pageheader']);
     }
 }
 /**
  * 初期画面
  *
  * ログイン画像を切り替える場合
  * 「会員登録はこちら」のimgのidを書きかえる
  *
  * @access public
  * @return void
  * @author shimma
  * @author ida
  */
 public function action_index()
 {
     Asset::css('login.css', array(), 'add_css');
     $return_url = Input::get('rurl');
     $data = array('info_message' => '', 'error_message' => '', 'return_url' => $return_url);
     $status = Session::get_flash('status');
     $data['info_message'] = $this->getStatusMessage($status);
     $this->template->content = View::forge('login/index', $data);
 }
예제 #10
0
 public function before()
 {
     $this->template = "template";
     parent::before();
     $this->css .= Asset::css("reset.css");
     $this->css .= Asset::css("bootstrap.min.css");
     $this->css .= Asset::css("style.css");
     $this->js .= Asset::js("vendor/jquery.min.js");
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n\n    <meta charset=\"utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    <meta name=\"description\" content=\"\">\n    <meta name=\"author\" content=\"\">\n\n    <title>SB Admin 2 - Bootstrap Admin Theme</title>\n\n    <!-- Bootstrap Core CSS -->\n    <link href=\"assets/css/bootstrap.min.css\" rel=\"stylesheet\">\n\n    <!-- MetisMenu CSS -->\n    ";
     // line 18
     echo Asset::css("plugins/metisMenu/metisMenu.min.css");
     echo "\n\n    <!-- Custom CSS -->\n    <link href=\"assets/css/sb-admin-2.css\" rel=\"stylesheet\">\n\n    <!-- Custom Fonts -->\n    <link href=\"assets/font-awesome-4.1.0/css/font-awesome.min.css\" rel=\"stylesheet\" type=\"text/css\">\n    \n    <!-- My Style -->\n    <link href=\"assets/css/plugins/social-buttons.css\" rel=\"stylesheet\">\n    <link href=\"assets/css/style.css\" rel=\"stylesheet\">\n    \n    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->\n    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\n    <!--[if lt IE 9]>\n        <script src=\"https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js\"></script>\n        <script src=\"https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js\"></script>\n    <![endif]-->\n\n</head>\n<body>\n\n    <div class=\"container\">\n        <div class=\"row\">\n            <div class=\"col-md-4 col-md-offset-4\">\n                <div class=\"login-panel panel panel-default\">\n                    <div class=\"panel-heading\">\n                        <h3 class=\"panel-title\">Đăng nhập vào MFB</h3>\n                    </div>\n                    <div class=\"panel-body\">\n                        <a href=\"";
     // line 48
     echo isset($context["loginUrl"]) ? $context["loginUrl"] : null;
     echo "\" class=\"btn btn-block btn-social btn-facebook\">\n                            <i class=\"fa fa-facebook\"></i> Sign in with Facebook\n                        </a>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</body>\n</html>\n";
 }
예제 #12
0
 public function before()
 {
     parent::before();
     if (!\Auth::check()) {
         \Output::redirect('myauth');
     }
     \Asset::remove_path('assets/');
     \Asset::add_path('assets/uploadify/');
     $this->template->css = \Asset::css(array('style.css'), array(), 'layout', false);
     $this->template->js = \Asset::js(array('jquery-1.3.2.min.js', 'swfobject.js', 'jquery.uploadify.v2.1.0.min.js', 'jquery.application.js'), array(), 'layout', false);
 }
예제 #13
0
파일: index.php 프로젝트: stabernz/wnb
 public function view()
 {
     $initial_content = '';
     $meta_description = '';
     $organisation = '';
     $assets = [Asset::css(['ebs.css', 'bootstrap.css']), Asset::js(['jquery-2.1.4.js', 'ebs.js', 'bootstrap.js', 'confirm-bootstrap.js'])];
     $nav_header = Presenter::forge('layouts/index/header');
     $content = View::forge('layout/content', ['content' => $initial_content]);
     $nav_footer = Presenter::forge('layouts/index/footer');
     $ebs = View::forge('layout/ebs', ['meta_description' => $meta_description, 'organisation' => $organisation, 'assets' => $assets, 'nav_header' => $nav_header, 'content' => $content, 'alert_area' => View::forge('layout/alert_area'), 'nav_footer' => $nav_footer], false);
     $this->ebs = $ebs;
 }
예제 #14
0
파일: groups.php 프로젝트: roine/wawaw
 public function action_index()
 {
     if (!Sentry::user()->has_access('groups_index')) {
         self::no_access();
     }
     $data['total'] = count(Config::get('sentry.permissions.rules'));
     $this->template->js .= Asset::js(array('mylibs/jquery.dataTables.js', 'script.js'));
     $this->template->css = Asset::css(array('sprite.tables.css'));
     $data['groups'] = Sentry::group()->all();
     $this->template->title = "Groups &raquo; index";
     $this->template->h2 = 'List of groups';
     $this->template->content = View::forge('groups/index', $data);
 }
예제 #15
0
파일: charts.php 프로젝트: roine/wawaw
 public function action_index()
 {
     if (!Sentry::user()->has_access('charts_monthly')) {
         Session::set_flash('error', 'You don\'t have access to the charts');
         Response::redirect('');
     }
     $data['id'] = '';
     $this->template->js = Asset::js(array('plugins.js', 'mylibs/jquery.ba-resize.js', 'mylibs/jquery.easing.1.3.js', 'mylibs/jquery.ui.touch-punch.js', 'libs/date.js', 'script.js', 'mylibs/highcharts.js', 'mylibs/HighCharts/exporting.js', 'charts.js'));
     $this->template->css = Asset::css(array('plugin.charts.css'));
     $this->template->title = 'Charts';
     $this->template->h2 = 'Monthly Subscription in all the forms';
     $this->template->content = View::forge('charts/view');
 }
예제 #16
0
파일: Asset.php 프로젝트: bafs/parvula
 /**
  * Auto render the ressource file
  * Read the extension and automatically load the right type
  * @param string|array $ressource Ressource filename
  * @param string ($pattern)
  * @return string Html output
  */
 public static function auto($ressource, $pattern = null)
 {
     $ext = pathinfo($ressource, PATHINFO_EXTENSION);
     if ($ext === 'js') {
         return Asset::js($name, $pattern);
     } else {
         if ($ext === 'css') {
             return Asset::css($name, $pattern);
         } else {
             return false;
         }
     }
 }
 /**
  * トップページ
  *
  * @access public
  * @return void
  * @author ida
  * @author shimma
  */
 public function action_index()
 {
     $view_model = \ViewModel::forge('top/index');
     $view_model->set('news_headlines', \Model_News::getHeadlines());
     $view_model->set('upcomming', \ViewModel::forge('component/upcomming'), false);
     $view_model->set('calendar', \ViewModel::forge('component/calendar'), false);
     $view_model->set('search', \ViewModel::forge('component/search')->set('is_top', true), false);
     $view_model->set('popular_ranking', \ViewModel::forge('component/popular'), false);
     $view_model->set('latest', \ViewModel::forge('component/latest'), false);
     Asset::js('jquery.carouFredSel.js', array(), 'add_js');
     Asset::js('jquery.rwdImageMaps.min.js', array(), 'add_js');
     Asset::js('top.js', array(), 'add_js');
     Asset::css('top.css', array(), 'add_css');
     $this->template->content = $view_model;
 }
예제 #18
0
파일: users.php 프로젝트: roine/wawaw
 public function action_index()
 {
     if (!Sentry::user()->has_access('users_index')) {
         Session::set_flash('error', 'You DO NOT have access to the user list');
         Response::redirect('');
     }
     $this->template->less = Asset::less(array('customic.less'));
     $this->template->js .= Asset::js(array('mylibs/jquery.dataTables.js', 'mylibs/jquery-fallr-1.2.js'));
     $this->template->css = Asset::css(array('sprite.tables.css'));
     $data['users'] = Sentry::user()->all();
     $this->template->js .= Asset::js(array('script.js'));
     $this->template->h2 = 'List of users';
     $this->template->title = 'User &raquo; Index';
     $this->template->content = View::forge('users/index', $data);
 }
 /**
  * マイリスト/出店予約したフリマ/開催投稿したフリマ一覧ページ
  *
  * @access public
  * @return void
  * @author shimma
  */
 public function action_list()
 {
     \Asset::css('jquery-ui.min.css', array(), 'add_css');
     \Asset::js('jquery-ui.min.js', array(), 'add_js');
     $pagination_param = 'p';
     $item_per_page = 10;
     $page = Input::get($pagination_param, 1);
     $type = Input::get('type');
     switch ($type) {
         case 'finished':
             $fleamarkets = $this->login_user->getFinishedEntries($page, $item_per_page);
             $count = $this->login_user->getFinishedEntryCount();
             break;
         case 'reserved':
             $fleamarkets = $this->login_user->getReservedEntries($page, $item_per_page);
             $count = $this->login_user->getReservedEntryCount();
             break;
         case 'waiting':
             $fleamarkets = $this->login_user->getWaitingEntries($page, $item_per_page);
             $count = $this->login_user->getWaitingEntryCount();
             break;
         case 'mylist':
             $fleamarkets = $this->login_user->getFavorites($page, $item_per_page);
             $count = $this->login_user->getFavoriteCount();
             break;
         case 'myfleamarket':
             $fleamarkets = $this->login_user->getMyFleamarkets($page, $item_per_page);
             $count = $this->login_user->getMyFleamarketCount();
             break;
         default:
             return \Response::redirect('/mypage');
     }
     $num_links = 5;
     $pagination = \Pagination::forge('mypage/list', array('uri_segment' => $pagination_param, 'num_links' => $num_links, 'per_page' => $item_per_page, 'total_items' => $count));
     $fleamarkets_view = array();
     foreach ($fleamarkets as $fleamarket) {
         $fleamarkets_view[] = \ViewModel::forge('component/fleamarket')->set('type', $type)->set('fleamarket', $fleamarket)->set('user', $this->login_user);
     }
     $view_model = \View::forge('mypage/list');
     $view_model->set('type', $type, false);
     $view_model->set('pagination', $pagination, false);
     $view_model->set('user', $this->login_user, false);
     $view_model->set('fleamarkets_view', $fleamarkets_view, false);
     $view_model->set('calendar', \ViewModel::forge('component/calendar'), false);
     $view_model->set('prefectures', \Config::get('master.prefectures'), false);
     $view_model->set('regions', \Config::get('master.regions'), false);
     $this->template->content = $view_model;
 }
예제 #20
0
 public function run($options)
 {
     //load library
     class_exists('Pmslider_m') or $this->load->model('pmaker/pmslider_m');
     class_exists('Pmslide_m') or $this->load->model('pmaker/pmslide_m');
     //get slider
     $slider = $this->pmslider_m->get_by('id', $options['slider']);
     //get slides
     $slides = $this->pmslide_m->get_slides($options['slider']);
     // add path to widget's assets
     // MODIFY THIS PATH IF YOU'D LIKE TO KEEP THE MODULE ELSEWHERE
     Asset::add_path('pmcamera', 'addons/shared_addons/modules/pmaker/widgets/pm_camera/assets/');
     Asset::css('pmcamera::camera.css', false, 'camera');
     Asset::js('pmcamera::camera.js', false, 'camera');
     Asset::js('pmcamera::jquery.mobile.customized.min.js', false, 'camera');
     return array('options' => $options, 'slider' => $slider, 'slides' => $slides);
 }
예제 #21
0
 public function before()
 {
     parent::before();
     // controllerとaction毎にcssとjsを自動読み込み
     $controller = mb_strtolower(str_replace('Controller/', '', strtr(Request::main()->controller, '_', '/')));
     $action = Request::main()->action;
     if (File::exists(DOCROOT . 'assets/css/' . $controller . '.css')) {
         Asset::css(array($controller . '.css'), array(), 'controller_style_css', false);
     }
     if (File::exists(DOCROOT . 'assets/css/' . $controller . '/' . $action . '.css')) {
         Asset::css(array($controller . '/' . $action . '.css'), array(), 'action_style_css', false);
     }
     if (File::exists(DOCROOT . 'assets/js/' . $controller . '.js')) {
         Asset::js(array($controller . '.js'), array(), 'controller_script_js', false);
     }
     if (File::exists(DOCROOT . 'assets/js/' . $controller . '/' . $action . '.js')) {
         Asset::js(array($controller . '/' . $action . '.js'), array(), 'action_script_js', false);
     }
 }
예제 #22
0
파일: customers.php 프로젝트: roine/wawaw
 public function before()
 {
     // check right accesses
     if (!Sentry::user()->has_access('customers_index')) {
         self::no_access();
     }
     // inherit parent
     parent::before();
     $this->languages = array();
     if (Sentry::user()->has_access('customers_en')) {
         array_push($this->languages, 'en');
     }
     if (Sentry::user()->has_access('customers_ru')) {
         array_push($this->languages, 'ru');
     }
     if (Sentry::user()->has_access('customers_cn')) {
         array_push($this->languages, 'cn');
     }
     if (Sentry::user()->has_access('customers_tw')) {
         array_push($this->languages, 'tw');
     }
     View::set_global('language', $this->languages);
     // assets
     $this->template->js = Asset::js(array('mylibs/jquery.chosen.js', 'mylibs/jquery.ba-resize.js', 'mylibs/jquery.easing.1.3.js', 'mylibs/jquery.ui.touch-punch.js', '/mylibs/jquery.jgrowl.js', 'mylibs/jquery-fallr-1.2.js', 'script.js', 'mylibs/jquery.dataTables.1.9.4.min.js', 'mylibs/dataTables/jquery.jeditable.js', 'mylibs/dataTables/jquery.dataTables.editable.js', 'mylibs/dataTables/ColVis.js', 'mylibs/dataTables/ZeroClipboard.js', 'mylibs/dataTables/TableTools.min.js', 'mylibs/dataTables/FixedHeader.min.js', 'libs/date.js', 'datatables.configuration.js'));
     $this->template->css = Asset::css(array('external/jquery-ui-1.8.16.custom.css', 'ColVis.css', 'TableTools.css', 'sprite.tables.css'));
     $this->template->less = Asset::less(array('customic.less'));
     // set the global to get the table url, name, clean name
     // View::set_global('current_table',$this->current_table(Request::active()->action));
     // $this->current_table = $this->current_table(Request::active()->action);
     if (!empty(Request::active()->method_params)) {
         View::set_global('current_table', $this->current_table(Request::active()->method_params[0]));
         $this->current_table = $this->current_table(Request::active()->method_params[0]);
     } else {
         View::set_global('current_table', $this->current_table(Request::active()->action));
         $this->current_table = $this->current_table(Request::active()->action);
     }
     $this->template->h2 = $this->current_table['cleanName'];
 }
예제 #23
0
echo config_item('cookie_prefix') . config_item('csrf_cookie_name');
?>
";
</script>

<?php 
Asset::css(array('plugins.css', 'jquery/colorbox.css', 'codemirror.css', 'animate/animate.css'));
?>

<?php 
echo Asset::render();
?>

<!--[if lt IE 9]>
<?php 
echo Asset::css('ie8.css', null, 'ie8');
echo Asset::render_css('ie8');
?>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<?php 
if ($module_details['sections']) {
    ?>
<style>section#content {margin-top: 170px!important;}</style>
<?php 
}
?>

<?php 
echo $template['metadata'];
예제 #24
0
<?php

echo Asset::css('blueimp-gallery/blueimp-gallery.css', null, null, false, false, true);
?>

 /**
  * js、cssを追加する
  *
  * @access private
  * @param
  * @return void
  * @author kobayashi
  */
 private function setAssets()
 {
     \Asset::css('jquery-ui.min.css', array(), 'add_css');
     \Asset::css('jquery-ui-timepicker.css', array(), 'add_css');
     \Asset::js('jquery-ui.min.js', array(), 'add_js');
     \Asset::js('jquery.ui.datepicker-ja.js', array(), 'add_js');
     \Asset::js('jquery-ui-timepicker.js', array(), 'add_js');
     \Asset::js('jquery-ui-timepicker-ja.js', array(), 'add_js');
 }
예제 #26
0
파일: template.php 프로젝트: ratiw/petro
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>APP Title</title>
	
	<?php 
echo Asset::css('bootstrap.min.css');
echo Asset::css('ui-lightness/jquery-ui-1.8.21.custom.css');
echo Asset::css('petro.css');
echo Asset::css('markdown.css');
echo Asset::js('jquery-1.7.2.min.js');
echo Asset::js('jquery-ui-1.8.21.custom.min.js');
echo Asset::js('bootstrap.min.js');
// echo Asset::js('bootstrap-typeahead.js');
?>
	<script>
		$(document).ready(function() {
			$('.dropdown-toggle').dropdown();
			$('.datepicker').datepicker();
			$('.clear_filters_btn').click(function(){
				window.location.search = "";
				return false;
			});
			$('a.del-item').click(function(){
				$('#petro-confirm a#petro-confirm-button').attr('href', this.href);
			});
			// a fix for Fieldset auto-generate form
			$('form table tbody td > label').css('display', 'inline');
		});
		
예제 #27
0
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php 
echo $title;
?>
</title>
    <?php 
echo Asset::css('bootstrap.css');
?>
    <style>
        body {
            margin: 50px;
        }
    </style>
    <?php 
echo Asset::js(array('http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js', 'bootstrap.js'));
?>
    <script>
        $(function () {
            $('.topbar').dropdown();
        });
    </script>
</head>
<body>

<?php 
if ($current_user) {
    ?>
    <div class="navbar navbar-inverse navbar-fixed-top">
예제 #28
0
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>ピザ注文</title>
	<?php 
echo Asset::css("pizza_order.css");
?>
</head>
<body>
	<div class="header">
		<div class="title">
			<p>注文登録</p>
		</div>
		<div class="back">
			<p><?php 
echo Html::anchor('index.php/top', '戻る');
?>
</p>
		</div>
		<div style="clear :both;"></div>
	</div>
	<div class="content">
		<div class="content_top">
			<div class="content_top_top">
				<div class="content_top_left">
					<table class="order_table"  border="1">
						<thead class="order_table_head">
							<tr>
								<th id="number">No.</th>
								<th id="item_name">商品名</th>
예제 #29
0
<!DOCTYPE html>
<html lang="ja">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Bootstrap Template</title>

		<!-- Bootstrap -->
		<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
		<?php 
echo Asset::css('pembit.css');
?>
		<!-- HTML5 shim and Respond.js for 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/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
	</head>
	<body>
		<h1>個別記事</h1>
		
		<?php 
if (isset($massage)) {
    ?>
		<div class="alert alert-<?php 
    echo $massage['css'];
    ?>
" role="alert">
			<?php 
예제 #30
0
	<meta property="og:title" content="Game-bootcamp | 3-month online programming course for 8 to 15-year-old children">
	<meta property="og:description" content="Game Bootcamp is a 3-month online programming course for 8 to 15-year-old children.">
	<meta property="og:url" content="http://www.game-bootcamp.com/">
	<meta property="og:image" content="http://game-bootcamp.com/assets/img/logo/logo2_b.png">
	<meta property="og:site_name" content="Game-BootCamp">
	<?php 
echo Asset::css("common.css");
?>
	<?php 
echo Asset::css("student.css");
?>
	<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
  <!--[if IE]><script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
	<?php 
echo Asset::css("jquery.remodal.css");
?>
	<title><?php 
echo $title;
?>
 | Game-BootCamp | Get Your Kids the Most Powerful Skill in 21st Century</title>
</head>
<body>
<header>
	<h1><?php 
echo Html::anchor('/', Asset::img('logo/logo3_c.png', array('alt' => 'Game-bootcamp', 'style' => 'width: 100%;')));
?>
</h1>
	<nav>
		<div class="toggle"><i class="fa fa-bars"></i></div>
		<ul>