1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of rateIt, a plugin for Dotclear 2. |
---|
4 | # |
---|
5 | # Copyright (c) 2009 JC Denis and contributors |
---|
6 | # jcdenis@gdwd.com |
---|
7 | # |
---|
8 | # Licensed under the GPL version 2.0 license. |
---|
9 | # A copy of this license is available in LICENSE file or at |
---|
10 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
11 | # -- END LICENSE BLOCK ------------------------------------ |
---|
12 | |
---|
13 | if (!defined('DC_CONTEXT_ADMIN')){return;} |
---|
14 | |
---|
15 | require_once dirname(__FILE__).'/inc/lib.rateit.index.php'; |
---|
16 | |
---|
17 | $requests = rateItTabs::requests($core); |
---|
18 | $combos = rateItTabs::combos($core); |
---|
19 | $params = rateItTabs::params($core,$requests,$combos); |
---|
20 | |
---|
21 | ?> |
---|
22 | <html> |
---|
23 | <head> |
---|
24 | <title><?php echo __('Rate it'); ?></title> |
---|
25 | <?php echo dcPage::jsLoad('js/_posts_list.js').dcPage::jsToolBar().dcPage::jsPageTabs($requests->tab); ?> |
---|
26 | <script type="text/javascript"> |
---|
27 | $(function() { |
---|
28 | $('#post-options-title').toggleWithLegend($('#post-options-content'),{cookie:'dcx_rateit_admin_post_options'}); |
---|
29 | $('#post-entries-title').toggleWithLegend($('#post-entries-content'),{cookie:'dcx_rateit_admin_post_entries'}); |
---|
30 | $('#comment-options-title').toggleWithLegend($('#comment-options-content'),{cookie:'dcx_rateit_admin_comment_options'}); |
---|
31 | $('#comment-entries-title').toggleWithLegend($('#comment-entries-content'),{cookie:'dcx_rateit_admin_comment_entries'}); |
---|
32 | $('#gallery-options-title').toggleWithLegend($('#gallery-options-content'),{cookie:'dcx_rateit_admin_gallery_options'}); |
---|
33 | $('#gallery-gals-title').toggleWithLegend($('#gallery-gals-content'),{cookie:'dcx_rateit_admin_gals_entries'}); |
---|
34 | $('#gallery-galitems-title').toggleWithLegend($('#gallery-galitems-content'),{cookie:'dcx_rateit_galitems_gallery_entries'}); |
---|
35 | }); |
---|
36 | </script> |
---|
37 | <?php |
---|
38 | |
---|
39 | |
---|
40 | # --BEHAVIOR-- adminRateItHeader |
---|
41 | $core->callBehavior('adminRateItHeader',$core); |
---|
42 | |
---|
43 | |
---|
44 | ?> |
---|
45 | </head> |
---|
46 | <body> |
---|
47 | <h2 style="padding:8px 0 8px 34px;background:url(index.php?pf=rateIt/icon-b.png) no-repeat;"> |
---|
48 | <?php echo html::escapeHTML($core->blog->name).' › '.__('Rate it'); ?></h2> |
---|
49 | |
---|
50 | <?php if ('' != $requests->msg) : ?> |
---|
51 | <p class="message"><?php echo $requests->msg; ?></p> |
---|
52 | <?php endif; |
---|
53 | |
---|
54 | rateItTabs::summaryTab($core); |
---|
55 | rateItTabs::detailTab($core,$requests); |
---|
56 | rateItTabs::postTab($core,$requests,$params,$combos); |
---|
57 | rateItTabs::commentTab($core,$requests); |
---|
58 | rateItTabs::categoryTab($core,$requests); |
---|
59 | rateItTabs::tagTab($core,$requests); |
---|
60 | rateItTabs::galleryTab($core,$requests); |
---|
61 | |
---|
62 | |
---|
63 | # --BEHAVIOR-- adminRateItTabs |
---|
64 | $core->callBehavior('adminRateItTabs',$core); |
---|
65 | |
---|
66 | |
---|
67 | rateItTabs::settingsTab($core,$requests,$combos); |
---|
68 | |
---|
69 | echo dcPage::helpBlock('rateIt'); ?> |
---|
70 | |
---|
71 | <hr class="clear"/> |
---|
72 | <p class="right"> |
---|
73 | rateIt - <?php echo $core->plugins->moduleInfo('rateIt','version'); ?> |
---|
74 | <img alt="RateIt" src="index.php?pf=rateIt/icon.png" /> |
---|
75 | </p> |
---|
76 | </body> |
---|
77 | </html> |
---|