Skip to content

Commit

Permalink
more admin corrections, appurl resolution, lfcss
Browse files Browse the repository at this point in the history
  • Loading branch information
bioshazard committed Feb 6, 2016
1 parent faed983 commit ef419cc
Show file tree
Hide file tree
Showing 12 changed files with 213 additions and 161 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ The preferred convention for issue titles is as follows:
### Screenshots ### Screenshots


Please include a screenshot. [GitHub made it really easy](https://help.github.com/articles/issue-attachments/) 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 changes: 6 additions & 5 deletions lf/system/admin/controller/apps.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ public function main()


// $var[0] = 'manage' // $var[0] = 'manage'
$app_name = $var[0]; $app_name = $var[0];

echo '<h2 class="no_marbot">
echo '<h2><a href="%appurl%'.$app_name.'/">'.ucfirst($app_name).'</a> Admin</h2> <a href="'.\lf\wwwAppUrl().$app_name.'/">
'.ucfirst($app_name).'
</a> Admin</h2>
<div class="dashboard_manage">'; <div class="dashboard_manage">';

\lf\get('request')->actionDrop(); // drop the 'apps' action in front \lf\get('request')->actionDrop(); // drop the 'apps' action in front
\lf\get('request')->actionPush(); // make '$app' the new root action \lf\get('request')->actionPush(); // make '$app' the new root action


// manage // manage
preg_match('/[A-Za-z0-9_]+/', $args[0], $matches); preg_match('/[A-Za-z0-9_]+/', $args[0], $matches);
$app_path = ROOT.'apps/'.$matches[0]; $app_path = ROOT.'apps/'.$matches[0];



//$preview = 'admin'; //$preview = 'admin';
$admin = true; $admin = true;
/*$urlpreview = ''; /*$urlpreview = '';
Expand Down Expand Up @@ -50,7 +51,7 @@ public function main()


echo '</div>'; echo '</div>';


return str_replace('%appurl%', '%appurl%'.$app_name.'/'.$urlpreview, ob_get_clean()); return \lf\resolveAppUrl( ob_get_clean() );
} }


public function manage($var) public function manage($var)
Expand Down
Loading

0 comments on commit ef419cc

Please sign in to comment.