~quam-plures-core/quam-plures/xml-comment-feeds-fix

« back to all changes in this revision

Viewing changes to qp_view_admin/fire/_adminUI.class.php

  • Committer: EdB
  • Date: 2013-05-18 17:02:22 UTC
  • mfrom: (7556.2.107 quam-plures)
  • Revision ID: 1912webworks@gmail.com-20130518170222-ccp8ok2njoasujlb
updating to current core

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
/**
3
 
 * This file implements the Admin UI class.
4
 
 *
5
 
 * DO NOT EDIT THIS FILE!!!
6
 
 * In order to provide multiple admin styles, this file must be kept intact.
7
 
 * If you change it you run the risk of breaking some admin features.  To
8
 
 * make a customized admin interface, copy any admin template folder to a
9
 
 * new name then edit ONLY the style.css file.
10
 
 *
11
 
 * This file is part of the Quam Plures project - {@link http://quamplures.net/}.
12
 
 * See also {@link https://launchpad.net/quam-plures}.
13
 
 *
14
 
 * @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
15
 
 * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}.
16
 
 * Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}.
17
 
 *
18
 
 * @license http://quamplures.net/license.html GNU General Public License (GPL)
19
 
 *
20
 
 * {@internal Open Source relicensing agreement:
21
 
 * Daniel HAHLER grants Francois PLANQUE the right to license
22
 
 * Daniel HAHLER's contributions to this file and the b2evolution project
23
 
 * under any OSI approved OSS license (http://www.opensource.org/licenses/).
24
 
 * }}
25
 
 *
26
 
 * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
27
 
 * @author blueyed: Daniel HAHLER
28
 
 *
 
3
 * This file implements the Admin UI class
 
4
 *
 
5
 * DO NOT EDIT THIS FILE!!! In order to provide multiple admin styles, this file
 
6
 * must be kept intact. If you change it you run the risk of breaking some admin
 
7
 * features. To make a customized admin interface, copy any admin template folder
 
8
 * to a new name then edit ONLY the style.css file.
 
9
 *
 
10
 * @todo (1111) style sheets before javascripts (not the way init_templates() says)
 
11
 * @author {@link http://wonderwinds.com/ Ed Bennett}
 
12
 * @author {@link http://daniel.hahler.de/ Daniel HAHLER}
 
13
 * @author {@link http://fplanque.net/ Francois PLANQUE}
 
14
 * @copyright (c) 2009 by {@link http://quamplures.net/ the Quam Plures project}
 
15
 * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License v3
29
16
 * @package admin
 
17
 * @subpackage fire
30
18
 */
31
 
if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
 
19
if(!defined('QP_MAIN_INIT')) die('fail');
32
20
 
33
21
/**
34
 
 * Includes
 
22
 * Require adminUI general class
35
23
 */
36
24
require_once dirname(__FILE__).'/../_adminUI_general.class.php';
37
25
 
38
 
 
39
26
/**
40
 
 * We define a special template for the main menu.
 
27
 * AdminUI class
41
28
 *
42
 
 * @package pond
 
29
 * @package admin
43
30
 */
44
31
class AdminUI extends AdminUI_general
45
32
{
46
33
        /**
47
 
         * This function should init the templates - like adding Javascript through the {@link add_headline()} method.
 
34
         * This is included before controller specifc require_css() calls
 
35
         *
 
36
         * This should init the templates, like adding Javascript through the {@link add_headline()} method.
48
37
         */
49
38
        function init_templates()
50
39
        {
51
 
                // This is included before controller specifc require_css() calls:
52
40
                global $admin_template;
 
41
 
53
42
                require_css( 'qp_view_admin/'.$admin_template.'/style.css', true );
54
43
        }
55
44
 
56
 
 
57
 
        /**
58
 
         * GLOBAL HEADER - APP TITLE, LOGOUT, ETC.
59
 
         *
60
 
         * @return string
61
 
         */
62
 
        function get_page_head()
63
 
        { // Display MAIN menu:
64
 
                $r = '<div id="header">'.$this->get_html_menu().'</div>';
65
 
                return $r;
66
 
        }
67
 
 
68
 
 
69
 
        /**
70
 
         *
71
 
         *
72
 
         * @return string
73
 
         */
74
 
        function get_body_top()
75
 
        {
76
 
                global $Messages, $mode;
77
 
 
78
 
                $r = '<div class="wrapper">';
79
 
                if( empty($mode) )
80
 
                {
81
 
                        $r .= $this->get_page_head();
82
 
                }
83
 
                $r .= $this->get_bloglist_buttons();
84
 
                $r .= '<div class="panelbody">'."\n\n";
85
 
                // Display info & error messages
86
 
                $r .= $Messages->display( NULL, NULL, false, 'all', NULL, NULL, 'action_messages' );
87
 
                return $r;
88
 
        }
89
 
 
90
 
 
91
 
        /**
92
 
         * Get the end of the HTML <body>. Close open divs, etc...
93
 
         *
94
 
         * @return string
95
 
         */
96
 
        function get_body_bottom()
97
 
        {
98
 
                return "\n</div>\n</div>\n";
99
 
        }
100
 
 
101
 
 
102
 
        /**
103
 
         * Get the footer text
104
 
         */
105
 
        function get_footer_contents()
106
 
        {
107
 
                global $app_footer_text, $copyright_text, $app_name, $app_homepage;
108
 
                global $rsc_url;
109
 
                global $Hit;
110
 
 
111
 
                $r = '<div class="footer">';
112
 
                if( $Hit->is_winIE() )
113
 
                {
114
 
                        $r .= '<!--[if lt IE 7]>
115
 
<div style="text-align:center; color:#f00; font-weight:bold;">'
116
 
.T_('WARNING: Internet Explorer 6 may not able to display this admin template properly. We strongly recommend you upgrade to IE 7 or Firefox.')
117
 
.'</div><![endif]-->';
118
 
                }
119
 
                $r .= '<a href="'.$app_homepage.'" class="footer_logo">';
120
 
                $r .= '<img src="'.$rsc_url.'img/adminfooter-logo.png" alt="Powered by '.$app_name.'" width="142" height="43" longdesc="'.$app_homepage.'" /></a>';
121
 
                $r .= '<div class="copyright">';
122
 
                $r .= $app_footer_text.'<br />'.$copyright_text."</div></div>\n\n";
123
 
                return $r;
124
 
        }
125
 
 
126
45
}
127
46
 
128
47
?>