Permalink
Browse files

more admin corrections, appurl resolution, lfcss

  • Loading branch information...
bioshazard committed Feb 6, 2016
1 parent faed983 commit ef419ccc0d755622094440a9a376e3f64db0ba59
View
@@ -25,3 +25,7 @@ The preferred convention for issue titles is as follows:
### Screenshots
Please include a screenshot. [GitHub made it really easy](https://help.github.com/articles/issue-attachments/)
+
+## Design thoughts
+
+* I want to be able to access anything from any context.
@@ -11,18 +11,19 @@ public function main()
// $var[0] = 'manage'
$app_name = $var[0];
-
- echo '<h2><a href="%appurl%'.$app_name.'/">'.ucfirst($app_name).'</a> Admin</h2>
+ echo '<h2 class="no_marbot">
+ <a href="'.\lf\wwwAppUrl().$app_name.'/">
+ '.ucfirst($app_name).'
+ </a> Admin</h2>
<div class="dashboard_manage">';
-
+
\lf\get('request')->actionDrop(); // drop the 'apps' action in front
\lf\get('request')->actionPush(); // make '$app' the new root action
// manage
preg_match('/[A-Za-z0-9_]+/', $args[0], $matches);
$app_path = ROOT.'apps/'.$matches[0];
-
//$preview = 'admin';
$admin = true;
/*$urlpreview = '';
@@ -50,7 +51,7 @@ public function main()
echo '</div>';
- return str_replace('%appurl%', '%appurl%'.$app_name.'/'.$urlpreview, ob_get_clean());
+ return \lf\resolveAppUrl( ob_get_clean() );
}
public function manage($var)
Oops, something went wrong.

0 comments on commit ef419cc

Please sign in to comment.