From f575ef551d5c22953080faab5890b675c6e0985e Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 23 May 2015 22:19:02 +0200 Subject: use $a->data instead of $a->page for $content and ad another library for use with webpages - foundation --- include/comanche.php | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'include/comanche.php') diff --git a/include/comanche.php b/include/comanche.php index 93cbd8b12..9fe7dc255 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -175,12 +175,12 @@ function comanche_block($s, $class = '') { } if($r[0]['title'] && trim($r[0]['title']) === '$content' && get_app()->data['webpage'][0]['title']) { - $o .= '

' . get_app()->data['webpage'][0]['title'] . '

'; + $o .= '

' . get_app()->page['title'] . '

'; } if(trim($r[0]['body']) === '$content') { - $o .= prepare_text(get_app()->data['webpage'][0]['body'], get_app()->data['webpage'][0]['mimetype']); + $o .= prepare_text(get_app()->page['content'], get_app()->data['webpage'][0]['mimetype']); } else { $o .= prepare_text($r[0]['body'], $r[0]['mimetype']); @@ -202,9 +202,17 @@ function comanche_js($s) { case 'bootstrap': $path = 'library/bootstrap/js/bootstrap.min.js'; break; + case 'foundation': + $path = 'library/foundation/js/foundation.min.js'; + $init = "\r\n" . ''; + break; } - return ''; + $ret = ''; + if($init) + $ret .= $init; + + return $ret; } @@ -214,9 +222,14 @@ function comanche_css($s) { case 'bootstrap': $path = 'library/bootstrap/css/bootstrap.min.css'; break; + case 'foundation': + $path = 'library/foundation/css/foundation.min.css'; + break; } - return ''; + $ret = ''; + + return $ret; } -- cgit v1.2.3