almonk Posted September 19, 2011 Share Posted September 19, 2011 I recently made a few custom modules for a client (sadly not able to share) that required quite an 'app like' environment. While Apeisa is busy working on the updates to his clean admin theme that I have designed, I thought I'd put together a different theme entirely. This theme uses the Twitter Bootstrap framework, which is really nice if you haven't already tried it. There's quite a few nasty hacks that I've had to do to skew PW to fit the framework, but none of it is too apparent to the user. You can fork the code here (git clone into a folder called templates-admin under site): https://github.com/almonk/Bootstrap-admin-theme It's still a wip, but very much usable already. Please fork and improve. Thanks, Al Link to comment Share on other sites More sharing options...
Soma Posted September 19, 2011 Share Posted September 19, 2011 Nice and clean theme, looks good! Thanks for sharing. Link to comment Share on other sites More sharing options...
ryan Posted September 20, 2011 Share Posted September 20, 2011 Nice job! Tried it out and seems to work great. I've just updated the Admin Themes page with your theme and Soma's: http://processwire.com/download/admin-themes/ Link to comment Share on other sites More sharing options...
Soma Posted September 20, 2011 Share Posted September 20, 2011 just noticed one big problem... Link to comment Share on other sites More sharing options...
diogo Posted September 21, 2011 Share Posted September 21, 2011 I like this theme very much! I also liked your PinWire some time ago Anyway, there seems to be a problem with the name, next to the login. i checked the default.php and found out something wrong in these lines <?php if($user->hasPermission('profile-edit')): ?> <li><a class='action' href='<?php echo $config->urls->admin; ?>profile/'><?=$user->name?></a></li> <?php endif; ?> I couldn't find the error there(maybe because i don't know much of php, or maybe because i'm quite sleepy ), so i just rewrote it in a different way, and it works now <?php if($user->hasPermission('profile-edit')): echo "<li><a class='action' href='" . $config->urls->admin . "profile/'>" . $user->name . "</a></li>"; endif; ?> EDIT: Hm, In my office computer it works fine just as it is on github. I took another look at the code, and there seems to be nothing wrong with it... anyone knows what might have happened? Link to comment Share on other sites More sharing options...
ryan Posted September 22, 2011 Share Posted September 22, 2011 The problem is right here: <?=$user->name?> That's a PHP short tag. The majority of PHP installations have them enabled, but not all do. As a result, it's not always safe to use short tags in things like admin themes, modules, or templates/profiles intended for broad distribution. @almonk: next time you are making updates, this can be fixed just by changing it to: <?php echo $user->name; ?> Link to comment Share on other sites More sharing options...
diogo Posted September 22, 2011 Share Posted September 22, 2011 oops, I will confirm this at home, and make sure to enable it Link to comment Share on other sites More sharing options...
apeisa Posted September 22, 2011 Share Posted September 22, 2011 I recently made a few custom modules for a client (sadly not able to share) that required quite an 'app like' environment. While Apeisa is busy working on the updates to his clean admin theme that I have designed, I thought I'd put together a different theme entirely. Damn you Alistair This is even better looking theme than the one before (that I am porting to clean admin). And not just the looks, I really like how this one feels to use! EDIT: I think that pw admin would really benefit from simple dropdown navigation. One click access from anywhere to templates, fields, users, permissions and roles. Setup and access pages are really just container pages without any content or function, so easy way to skip those would mean faster site building and maintaining. Link to comment Share on other sites More sharing options...
slkwrm Posted September 22, 2011 Share Posted September 22, 2011 I think that pw admin would really benefit from simple dropdown navigation. One click access from anywhere to templates, fields, users, permissions and roles. Setup and access pages are really just container pages without any content or function, so easy way to skip those would mean faster site building and maintaining. Cool idea, Apeisa! Totally agree here. This would make navigation much faster. Link to comment Share on other sites More sharing options...
ryan Posted September 23, 2011 Share Posted September 23, 2011 I think that pw admin would really benefit from simple dropdown navigation. One click access from anywhere to templates, fields, users, permissions and roles. Setup and access pages are really just container pages without any content or function, so easy way to skip those would mean faster site building and maintaining. I agree, that makes sense. I'll work on this. Link to comment Share on other sites More sharing options...
Pete Posted September 24, 2011 Share Posted September 24, 2011 Love this theme - only thing I changed so far was to make it fixed-width again. Obviously it's all down to personal preference, but it helps because my site is fixed-width too so if I have the TinyMCE fields around the same width then you get a better representation of how the text (which will be interspersed with images inserted trhough TinyMCE on some pages) will look on the live site. Also at 1600 pixels wide on my screen, some paragraphs of text just fit the full width and it made reading the content of some of the pages a bit hard for me. Just personal preferences like I say, and it was a simple CSS edit to change it to fixed-width. Link to comment Share on other sites More sharing options...
ryan Posted September 24, 2011 Share Posted September 24, 2011 A good middleground is fluid with minwidth/maxwidth and centered-- good at any res. Link to comment Share on other sites More sharing options...
vknt Posted November 6, 2011 Share Posted November 6, 2011 almonk, I really really like this theme. Had some issues with the theme, as mentioned by Soma and I was just wondering if you are planning to continue to work on it in the near future? Link to comment Share on other sites More sharing options...
almonk Posted November 7, 2011 Author Share Posted November 7, 2011 No plans to support this. But it is open source, please fork and make any enhancements. Link to comment Share on other sites More sharing options...
Didjee Posted March 15, 2012 Share Posted March 15, 2012 Hi! This is my first post here ;-) I solved the issues mentioned by Soma by editing bootstrap.css. Go to /wire/templates-admin/styles/bootstrap.css Remove or comment line 2063 to 2087 (.modal class) and replace it by: body.modal { background-position: 0 -60px !important; } body.modal div.topbar, body.modal ul#breadcrumb { display: none; } body.modal div.container-fluid { min-width: 300px; } body.modal div.container-fluid > div[style] { padding-top: 15px !important; } 2 Link to comment Share on other sites More sharing options...
ryan Posted March 16, 2012 Share Posted March 16, 2012 Welcome to the forums Didjee! Thanks for the fix. Great first post! 1 Link to comment Share on other sites More sharing options...
almonk Posted March 25, 2012 Author Share Posted March 25, 2012 Thanks Didjee! I've updated the git repo with your fix. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now