Changeset 2774
- Timestamp:
- 11/20/10 19:00:21 (13 years ago)
- Location:
- plugins/rateIt
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/rateIt/_define.php
r2584 r2774 17 17 /* Description*/ "Rating system for your blogs", 18 18 /* Author */ "JC Denis", 19 /* Version */ '2.0- alpha6',19 /* Version */ '2.0-beta1', 20 20 /* Permissions */ 'admin' 21 21 ); 22 /* date */ #2010 082822 /* date */ #20101120 23 23 ?> -
plugins/rateIt/_install.php
r2584 r2774 20 20 { 21 21 # Check DC version 22 if (version_compare( DC_VERSION,'2.2-alpha','<'))22 if (version_compare(str_replace("-r","-p",DC_VERSION),'2.2-alpha','<')) 23 23 { 24 throw new Exception(' Plugin called rateIt requires Dotclear 2.2 or higher.');24 throw new Exception('rateIt requires Dotclear 2.2'); 25 25 } 26 26 # Old addons (now included in rateIt) … … 60 60 61 61 # Settings 62 $core->blog->settings->addNamespace('rateit'); 62 63 $s = $core->blog->settings->rateit; 63 64 -
plugins/rateIt/_prepend.php
r2584 r2774 12 12 13 13 if (!defined('DC_RC_PATH')){return;} 14 if (version_compare( DC_VERSION,'2.2-alpha','<')){return;}14 if (version_compare(str_replace("-r","-p",DC_VERSION),'2.2-alpha','<')){return;} 15 15 16 16 global $__autoload, $core; -
plugins/rateIt/_public.php
r2427 r2774 427 427 $r = ''; 428 428 if (isset($attr['totaltext']) && $attr['totaltext'] == 1) { 429 430 $none = 'no rate'; 431 $one = 'one rate'; 432 $more = '%d rates'; 433 434 if (isset($attr['none'])) { 435 $none = addslashes($attr['none']); 436 } 437 if (isset($attr['one'])) { 438 $one = addslashes($attr['one']); 439 } 440 if (isset($attr['more'])) { 441 $more = addslashes($attr['more']); 442 } 443 429 444 $r = 430 445 "<?php \n". 431 446 "if (\$_ctx->rateIt->total == 0) { \n". 432 " \$total = sprintf(__(' no rate'),\$_ctx->rateIt->total); \n".447 " \$total = sprintf(__('".$none."'),\$_ctx->rateIt->total); \n". 433 448 "} elseif (\$_ctx->rateIt->total == 1) {\n". 434 " \$total = sprintf(__(' one rate'),\$_ctx->rateIt->total); \n".449 " \$total = sprintf(__('".$one."'),\$_ctx->rateIt->total); \n". 435 450 "} else { \n". 436 " \$total = sprintf(__(' %d rates'),\$_ctx->rateIt->total); \n".451 " \$total = sprintf(__('".$more."'),\$_ctx->rateIt->total); \n". 437 452 "} \n". 438 453 "\$_ctx->rateIt->total = \$total; ?>\n"; -
plugins/rateIt/release.txt
r2584 r2774 4 4 - Not added public API 5 5 - Not completed modules behaviors (delete/edit category, tag...) 6 7 2.0-beta1 20101120 8 * Fixed install on nightly build 9 * Added plural on rateItTotal (closes #605) 6 10 7 11 2.0-alpha6 20100828
Note: See TracChangeset
for help on using the changeset viewer.