1
0
Fork 0

Cleanup /format pre-move

This commit is contained in:
Hypolite Petovan 2017-04-30 00:01:26 -04:00
commit 56ee734b00
85 changed files with 522 additions and 581 deletions

View file

@ -1,4 +1,5 @@
<?php
/**
* Theme settings
*/

View file

@ -19,10 +19,10 @@
<script>var frio="<?php echo "view/theme/frio"; ?>";</script>
<?php $baseurl = App::get_baseurl(); ?>
<?php $frio = "view/theme/frio"; ?>
<?php
<?php
// Because we use minimal for modals the header and the included js stuff should be only loaded
// if the page is an standard page (so we don't have it twice for modals)
//
//
/// @todo Think about to move js stuff in the footer
if(!$minimal) {
if(x($page,'htmlhead')) echo $page['htmlhead'];

View file

@ -3,7 +3,7 @@
/**
* @file view/theme/frio/php/frio_boot.php
*
* @brief This file contains functions for page contstruction
* @brief This file contains functions for page construction
*
*/

View file

@ -1,4 +1,5 @@
<?php
/**
* Theme settings
*/

View file

@ -16,7 +16,7 @@ function smoothly_init(App $a) {
$cssFile = null;
$ssl_state = null;
$baseurl = App::get_baseurl($ssl_state);
$a->page['htmlhead'] .= <<< EOT
$a->page['htmlhead'] .= <<< EOT
<script>
function insertFormatting(BBcode, id) {
@ -99,13 +99,12 @@ $(document).ready(function() {
</script>
EOT;
/** custom css **/
/** custom css **/
if (!is_null($cssFile)) {
$a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
}
_js_in_foot();
_js_in_foot();
}
if (! function_exists('_js_in_foot')) {