public static function init()
 {
     if (isset(Kohana::$environment)) {
         self::$env = Kohana::$environment;
     }
     Cache::$default = 'default';
     Sourcemap_JS::add_packages(isset(Kohana::config('js')->packages) ? Kohana::config('js')->packages : array());
     //Sourcemap_JS::$bundle = self::$env == self::DEV ? false : true;
     Sourcemap_JS::$bundle = false;
     Sourcemap_JS::$minified = self::$env == self::DEV ? false : true;
     Sourcemap_JS::$bundle_path = 'assets/scripts/bundles/' . self::site() . '/';
     Sourcemap_CSS::$convert_less = self::$env == self::DEV ? false : true;
     // Use db for session storage
     Session::$default = 'database';
 }
Exemple #2
0
</title>

	<meta name="description" content="" /> 
	<meta name="keywords" content="" />
    <meta name="author" content="">
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > 
	<meta http-equiv="content-language" content="en-us">

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

    <link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.ico" />
    <link rel="apple-touch-icon" href="assets/images/favicon-large.png">
    <link rel="image_src" href="assets/images/favicon-large.png">

    <?php 
echo isset($styles) ? Sourcemap_CSS::link_tags($styles) : '';
?>
</head>
<body class="main admin">
    <?php 
echo View::factory('partial/branding', array('page_title' => isset($page_title) ? $page_title : APPLONGNM));
?>
    <div class="container">
        <div class="messages">
            <p><?php 
echo Message::instance()->get() ? Message::instance()->render() : false;
?>
</p>
        </div>
    </div>
    <div id="admin-head" class="container">
Exemple #3
0
"></base>
    <title><?php 
echo HTML::chars(isset($page_title) && $page_title ? $page_title : APPLONGNM);
?>
</title>

    <meta name="description" content="">
    <meta name="author" content="">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="apple-touch-icon" href="/apple-touch-icon.png">

    <?php 
if (isset($styles)) {
    ?>
        <?php 
    echo Sourcemap_CSS::link_tags($styles);
    ?>
    <?php 
}
?>
</head>
<body>
<?php 
echo isset($content) ? $content : '<h2>There\'s nothing here.</h2>';
?>
 
</body>
</html>
Exemple #4
0
<?php

/* Copyright (C) Sourcemap 2011
 * This program is free software: you can redistribute it and/or modify it under the terms
 * of the GNU Affero General Public License as published by the Free Software Foundation,
 * either version 3 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License along with this
 * program. If not, see <http://www.gnu.org/licenses/>.*/
?>

<head>
<?php 
echo isset($styles) ? Sourcemap_CSS::link_tags($styles) : Sourcemap_CSS::link_tags('sites/default/assets/styles/reset.css', 'assets/styles/general.less');
?>


</head>

<div class="upload-form">
     <label for="key">Google Spreadsheet:</label><input type="text" id="key" name="key" value="" />  
<input type="submit" id="submit" value="Get JSON"/>

</div>