Dotclear

source: plugins/rateIt/index.php @ 1421

Revision 1421, 4.3 KB checked in by JcDenis, 14 years ago (diff)

rateIt 0.9.4:

  • Fixed CSS features (validation, option, file length)
  • Fixed import/export behaviors
  • Added option to disable import/export in about:config
  • Added _uninstall.php support
Line 
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#
12# -- END LICENSE BLOCK ------------------------------------
13
14if (!defined('DC_CONTEXT_ADMIN')){return;}
15
16require_once dirname(__FILE__).'/inc/lib.rateit.index.php';
17
18$requests = rateItTabs::requests($core);
19$combos = rateItTabs::combos($core);
20$params = rateItTabs::params($core,$requests,$combos);
21
22?>
23<html>
24 <head>
25  <title><?php echo __('Rate it'); ?></title>
26  <?php echo dcPage::jsLoad('js/_posts_list.js').dcPage::jsToolBar().dcPage::jsPageTabs($requests->tab); ?>
27  <script type="text/javascript">
28    $(function() {
29          $('#post-options-title').toggleWithLegend($('#post-options-content'),{cookie:'dcx_rateit_admin_post_options'});
30          $('#post-entries-title').toggleWithLegend($('#post-entries-content'),{cookie:'dcx_rateit_admin_post_entries'});
31          $('#comment-options-title').toggleWithLegend($('#comment-options-content'),{cookie:'dcx_rateit_admin_comment_options'});
32          $('#comment-entries-title').toggleWithLegend($('#comment-entries-content'),{cookie:'dcx_rateit_admin_comment_entries'});
33          $('#gallery-options-title').toggleWithLegend($('#gallery-options-content'),{cookie:'dcx_rateit_admin_gallery_options'});
34          $('#gallery-gals-title').toggleWithLegend($('#gallery-gals-content'),{cookie:'dcx_rateit_admin_gals_entries'});
35          $('#gallery-galitems-title').toggleWithLegend($('#gallery-galitems-content'),{cookie:'dcx_rateit_galitems_gallery_entries'});
36    });
37  </script>
38<?php
39
40
41# --BEHAVIOR-- adminRateItHeader
42$core->callBehavior('adminRateItHeader',$core);
43
44
45?>
46 </head>
47<body>
48<h2 style="padding:8px 0 8px 34px;background:url(index.php?pf=rateIt/icon-b.png) no-repeat;">
49<?php echo html::escapeHTML($core->blog->name).' &rsaquo; '.__('Rate it'); ?></h2>
50
51<?php if ('' != $requests->msg) :  ?>
52 <p class="message"><?php echo $requests->msg; ?></p>
53<?php endif;
54
55rateItTabs::summaryTab($core);
56rateItTabs::detailTab($core,$requests);
57rateItTabs::postTab($core,$requests,$params,$combos);
58rateItTabs::commentTab($core,$requests);
59rateItTabs::categoryTab($core,$requests);
60rateItTabs::tagTab($core,$requests);
61rateItTabs::galleryTab($core,$requests);
62
63
64# --BEHAVIOR-- adminRateItTabs
65$core->callBehavior('adminRateItTabs',$core);
66
67
68rateItTabs::settingsTab($core,$requests,$combos);
69
70?>
71<div class="multi-part" id="about" title="<?php echo __('About'); ?>">
72<div class="two-cols">
73<div class="col">
74<h3>Version:</h3>
75<ul><li>rateIt <?php echo $core->plugins->moduleInfo('rateIt','version'); ?></li></ul>
76<h3>Support:</h3>
77<ul>
78<li><a href="http://dotclear.jcdenis.com/go/rateIt">Author's blog</a></li>
79<li><a href="http://dotclear.jcdenis.com/go/rateIt-support">Dotclear forum</a></li>
80<li><a href="http://lab.dotclear.org/wiki/plugin/rateIt">Dotclear lab</a></li>
81</ul>
82<h3>Copyrights:</h3>
83<ul>
84<li><strong>Files</strong><br />
85These files are parts of rateIt, a plugin for Dotclear 2.<br />
86Copyright (c) 2009 JC Denis and contributors<br />
87Licensed under the GPL version 2.0 license.<br />
88<a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html">http://www.gnu.org/licenses/old-licenses/gpl-2.0.html</a>
89</li>
90<li><strong>Images</strong><br />
91Some icons from Silk icon set 1.3 by Mark James at:<br />
92<a href="http://www.famfamfam.com/lab/icons/silk/">http://www.famfamfam.com/lab/icons/silk/</a><br />
93under a Creative Commons Attribution 2.5 License<br />
94<a href="http://creativecommons.org/licenses/by/2.5/">http://creativecommons.org/licenses/by/2.5/</a>.
95</li>
96</ul>
97<h3>Tools:</h3>
98<ul>
99<li>Traduced with Dotclear plugin Translater,</li>
100<li>Packaged with Dotclear plugin Packager.</li>
101<li>Used jQuery Star Rating Plugin v3.12 by <a href="http://www.fyneworks.com/jquery/star-rating/">Fyneworks</a></li>
102</ul>
103</div>
104<div class="col">
105<pre><?php readfile(dirname(__FILE__).'/release.txt'); ?></pre>
106</div>
107</div>
108</div>
109<hr class="clear"/>
110<p class="right">
111rateIt - <?php echo $core->plugins->moduleInfo('rateIt','version'); ?>&nbsp;
112<img alt="RateIt" src="index.php?pf=rateIt/icon.png" />
113</p>
114</body>
115</html>
Note: See TracBrowser for help on using the repository browser.

Sites map