Remove these advertisements by upgrading your account for only $5/month
Back to /branches/0.9/functions/themes
01: <?php 02: /* eoCMS � 2007 - 2010, a Content Management System 03: by James Mortemore, Ryan Matthews 04: http://www.eocms.com 05: is licenced under a Creative Commons 06: Attribution-Share Alike 2.0 UK: England & Wales Licence. 07: Permissions beyond the scope of this licence 08: may be available at http://creativecommons.org/licenses/by-sa/2.0/uk/. 09: Additional licence terms at http://eocms.com/licence.html 10: */ 11: 12: function displaylowerpanel() 13: { 14: global $settings, $user, $lowerpanel, $lang_path; 15: $body = ''; 16: if (!empty($settings['exclude_lower'])) { 17: $listofexcludeslower = explode(", ", $settings['exclude_lower']); 18: if(in_array($querystring, $listofexcludeslower)) 19: $checkupper = true; 20: else 21: $checklower = in_array($_GET['act'], $listofexcludeslower); 22: } else { 23: $checkupper = false; 24: } 25: if ($checklower == false) { 26: $body .= '<div class="sidebar" id="panel_lower">'; 27: foreach ($lowerpanel as $panel) { 28: if (call('visiblecheck', $user['membergroup_id'], $panel['rank'])) { 29: if ($panel['all_pages'] == '1' || ($_GET['act'] == '' && $panel['all_pages'] == '0')) { 30: if (!empty($panel['file'])) { 31: $body .= '<br />'; 32: $body .= '<div class="panel" id="panel_' . $panel['id'] . '">'; 33: if(strpos($panel['file'], 'Plugins/') !== false) { 34: @include($panel['file'] .'/languages/' . $lang_path . '.php'); 35: include $panel['file'].'/index.php'; 36: } else { 37: @include('panels/' . $panel['file'] .'/languages/' . $lang_path . '.php'); 38: include 'panels/' . $panel['file'] . '/index.php'; 39: } 40: $body .= '</div>'; 41: } else { 42: $body .= '<div class="panel" id="panel_' . $panel['id'] . '"><div class="panel-header">' . theme('title', $panel['panelname']) . '</div>' . theme('start_content_panel'); 43: if(empty($panel['type']) || $panel['type'] == 'html') 44: $body .= html_entity_decode($panel['panelcontent']); 45: elseif(!empty($panel['type']) && $panel['type'] == 'php') 46: eval(html_entity_decode($panel['panelcontent'])); 47: $body .= theme('end_content') . '</div>'; 48: } 49: } 50: } 51: } 52: $body .= '</div>'; 53: } 54: return $body; 55: } 56: ?>
| Revision | Author | Commited | Message | |
|---|---|---|---|---|
| 809 |
|
Fri 12 Mar, 2010 19:37:27 +0000 | Added in the missing query string in displaylowerpanel which was causing a notice to appear. |
Diff
|
| 806 |
|
Sun 28 Feb, 2010 22:48:44 +0000 | Fixed exclude panels problems when excluding using a query string |
Diff
|
| 784 |
|
Wed 06 Jan, 2010 19:07:42 +0000 | Change the 0.9 branch licence to the Creative Commons Share-Alike 2.0 England and Wales |
Diff
|
| 702 |
|
Mon 05 Oct, 2009 21:47:21 +0000 | Added 0.9 branch |
Diff
|
| 701 |
|
Mon 05 Oct, 2009 21:43:44 +0000 | Moved all files into trunk |
Diff
|
| 546 |
|
Thu 20 Aug, 2009 21:18:36 +0000 | Fixed bug with language include for lower panels |
Diff
|
| 535 |
|
Fri 14 Aug, 2009 15:40:35 +0000 | Added support for panels to have language files within their folder example: panels/user_info/languages/en.php |
Diff
|
| 532 |
|
Thu 13 Aug, 2009 18:46:09 +0000 | Fixed bug when using PHP in a panel |
Diff
|
| 479 |
|
Wed 05 Aug, 2009 13:02:39 +0000 | Fixed bug in installplugin function. Added support to use Plugin panels |
Diff
|
| 466 |
|
Sun 02 Aug, 2009 19:20:52 +0000 | Added support to use PHP inside a panel made within the admin |
Remove these advertisements by upgrading your account for only $5/month
Commits for banancanard-eoCMS:/branches/0.9/functions/themes/displaylowerpanel.php