Changeset 3325
- Timestamp:
- 01/13/15 17:37:37 (8 years ago)
- Location:
- plugins/cinecturlink2
- Files:
-
- 15 added
- 4 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/cinecturlink2/CHANGELOG
r3247 r3325 1 cinecturlink2 0.8 - 12-01-2014 Pierre Van Glabeke 2 =========================================================== 3 * Dotclear 2.7 requis 4 * Compatibilité dc2.7 (widget + templates) 5 * Ajout aide, modification localisation 6 1 7 cinecturlink2 0.7 - 2013-11-03 2 8 =========================================================== -
plugins/cinecturlink2/_admin.php
r3247 r3325 21 21 22 22 # Admin menu 23 $_menu[' Plugins']->addItem(23 $_menu['Blog']->addItem( 24 24 __('My cinecturlink'), 25 25 'plugin.php?p=cinecturlink2', -
plugins/cinecturlink2/_config.php
r3247 r3325 96 96 form::field('cinecturlink2_widthmax', 10, 4, $cinecturlink2_widthmax, 'maximal').'</label></p> 97 97 98 <p><label for="cinecturlink2_folder">'.__('Public folder of images (under public folder of blog):').' '.98 <p><label class="classic required" for="cinecturlink2_folder"><abbr title="'.__('Required field').'">*</abbr> '.__('Public folder of images (under public folder of blog):').' '. 99 99 form::field('cinecturlink2_folder', 60, 64, $cinecturlink2_folder, 'maximal').'</label></p> 100 100 … … 106 106 <p><label class="classic" for="cinecturlink2_triggeronrandom">'. 107 107 form::checkbox('cinecturlink2_triggeronrandom', 1, $cinecturlink2_triggeronrandom). 108 __('Update cache when use "Random" or "Number of view" order on widget ( Need reload of widgets on change)').'</label></p>109 <p class="form-note ">'.__('This increases the random effect, but updates the cache of the blog whenever the widget is displayed, which reduces the perfomances of your blog.').'</p>108 __('Update cache when use "Random" or "Number of view" order on widget (need reload of widgets on change)').'</label></p> 109 <p class="form-note warn">'.__('This increases the random effect, but updates the cache of the blog whenever the widget is displayed, which reduces the perfomances of your blog.').'</p> 110 110 111 </div> 111 </div>'; 112 112 113 <div class="fieldset"> 113 echo ' 114 <div class="fieldset">'; 115 116 if ($core->blog->settings->cinecturlink2->cinecturlink2_public_active) { 117 echo '<p><a class="onblog_link" href="'.$core->blog->url.$core->url->getBase('cinecturlink2').'" title="'.__('View the public page').'">'.__('View the public page').'</a></p>'; 118 } 119 120 echo ' 114 121 <h4>'.__('Public page').'</h4> 115 122 … … 117 124 form::checkbox('cinecturlink2_public_active', 1, $cinecturlink2_public_active). 118 125 __('Enable public page').'</label></p> 119 <p class="form-note">'.sprintf(__('Public page has url: %s'),'<a href="'.$core->blog->url.$core->url->getBase('cinecturlink2').'" title="public page">'.$core->blog->url.$core->url->getBase('cinecturlink2').'</a>').'</p>120 126 121 127 <p><label for="cinecturlink2_public_title">'.__('Title of the public page:').' '. … … 128 134 form::field('cinecturlink2_public_nbrpp', 5, 10, $cinecturlink2_public_nbrpp, 'maximal').'</label></p> 129 135 130 </div> 136 </div>'; 131 137 132 <div class="fieldset"> 133 <h4>'.__('Informations').'</h4> 134 135 <ul> 136 <li>'.__('Once the extension has been configured and your links have been created, you can place one of the cinecturlink widgets in the sidebar.').'</li> 137 <li>'.sprintf(__('In order to open links in new window you can use plugin %s.'),'<a href="http://plugins.dotaddict.org/dc2/details/externalLinks">External Links</a>').'</li> 138 <li>'.sprintf(__('In order to change URL of public page you can use plugin %s.'),'<a href="http://lab.dotclear.org/wiki/plugin/myUrlHandlers">My URL handlers</a>').'</li> 139 <li>'.sprintf(__('You can add public pages of cinecturlink to the plugin %s.'),'<a href="http://plugins.dotaddict.org/dc2/details/sitemaps">sitemaps</a>').'</li> 140 <li>'.sprintf(__('The plugin Cinecturlink2 is compatible with plugin %s.'),'<a href="http://plugins.dotaddict.org/dc2/details/rateIt">Rate it</a>').'</li> 141 <li>'.sprintf(__('The plugin Cinecturlink2 is compatible with plugin %s.'),'<a href="http://plugins.dotaddict.org/dc2/details/activityReport">Activity report</a>').'</li> 142 </ul> 143 144 </div>'; 138 dcPage::helpBlock('cinecturlink2'); -
plugins/cinecturlink2/_define.php
r3247 r3325 30 30 "Widgets and pages about books, musics, films, blogs you are interested in", 31 31 /* Author */ 32 "Jean-Christian Denis ",32 "Jean-Christian Denis, Pierre Van Glabeke", 33 33 /* Version */ 34 '0. 7',34 '0.8', 35 35 /* Properties */ 36 36 array( 37 37 'permissions' => 'contentadmin', 38 38 'type' => 'plugin', 39 'dc_min' => '2. 6',40 'support' => 'http:// jcd.lv/q=cinecturlink2',39 'dc_min' => '2.7', 40 'support' => 'http://forum.dotclear.org/viewtopic.php?id=40893', 41 41 'details' => 'http://plugins.dotaddict.org/dc2/details/cinecturlink2' 42 42 ) -
plugins/cinecturlink2/_install.php
r3247 r3325 29 29 } 30 30 31 32 if (!method_exists('dcUtils', 'versionsCompare') 33 34 35 36 37 31 # Check Dotclear version 32 # if (!method_exists('dcUtils', 'versionsCompare') 33 # || dcUtils::versionsCompare(DC_VERSION, '2.6', '>', false)) { 34 # throw new Exception(sprintf( 35 # '%s requires Dotclear %s', 'cinecturlink2', '2.6' 36 # )); 37 # } 38 38 39 39 # Tables -
plugins/cinecturlink2/_public.php
r3247 r3325 111 111 } 112 112 113 $core->tpl->setPath( 114 $core->tpl->getPath(), 115 dirname(__FILE__).'/default-templates/' 116 ); 113 $tplset = $core->themes->moduleInfo($core->blog->settings->system->theme,'tplset'); 114 if (!empty($tplset) && is_dir(dirname(__FILE__).'/default-templates/'.$tplset)) { 115 $core->tpl->setPath($core->tpl->getPath(), dirname(__FILE__).'/default-templates/'.$tplset); 116 } else { 117 $core->tpl->setPath($core->tpl->getPath(), dirname(__FILE__).'/default-templates/'.DC_DEFAULT_TPLSET); 118 } 117 119 118 120 $params = array(); … … 145 147 $_ctx->c2_page_params = $params; 146 148 147 header('X-Robots-Tag: '.context::robotsPolicy($core->blog->settings->system->robots_policy, 149 header('X-Robots-Tag: '.context::robotsPolicy($core->blog->settings->system->robots_policy,'')); 148 150 self::serveDocument('cinecturlink2-'.$f.'.xml', $mime); 149 151 } -
plugins/cinecturlink2/_widgets.php
r3247 r3325 56 56 $w->create( 57 57 'cinecturlink2links', 58 __(' My cinecturlink'),58 __('Cineturlink: my cinecturlink'), 59 59 array('cinecturlink2Widget', 'publicLinks'), 60 60 'null', … … 135 135 ) 136 136 ); 137 $w->cinecturlink2links->setting('content_only',__('Content only'),0,'check'); 138 $w->cinecturlink2links->setting('class',__('CSS class:'),''); 139 $w->cinecturlink2links->setting('offline',__('Offline'),0,'check'); 137 140 } 138 141 … … 141 144 $w->create( 142 145 'cinecturlink2cats', 143 __(' List of categories of cinecturlink'),146 __('Cinecturlink: list of categories'), 144 147 array('cinecturlink2Widget', 'publicCats'), 145 148 null, … … 169 172 ) 170 173 ); 174 $w->cinecturlink2cats->setting('content_only',__('Content only'),0,'check'); 175 $w->cinecturlink2cats->setting('class',__('CSS class:'),''); 176 $w->cinecturlink2cats->setting('offline',__('Offline'),0,'check'); 171 177 } 172 178 … … 175 181 global $core; 176 182 177 $core->blog->settings->addNamespace('cinecturlink2'); 183 if ($w->offline) 184 return; 185 186 $core->blog->settings->addNamespace('cinecturlink2'); 178 187 179 188 if (!$core->blog->settings->cinecturlink2->cinecturlink2_active … … 283 292 } 284 293 285 return 286 '<div class="cinecturlink2list">'. 287 ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 288 implode(' ',$entries). 289 ($w->showpagelink && $core->blog->settings->cinecturlink2->cinecturlink2_public_active ? 290 '<p><a href="'.$core->blog->url.$core->url->getBase('cinecturlink2').'" title="'.__('view all links').'">'.__('More links').'</a></p>' : '' 291 ). 292 '</div>'; 294 $res = 295 ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : ''). 296 implode(' ',$entries). 297 ($w->showpagelink && $core->blog->settings->cinecturlink2->cinecturlink2_public_active ? 298 '<p><strong><a href="'.$core->blog->url.$core->url->getBase('cinecturlink2').'" title="'.__('More links').'">'.__('More links').'</a></strong></p>' : '' 299 ) 300 ; 301 302 return $w->renderDiv($w->content_only,'cinecturlink2list '.$w->class,'',$res); 293 303 } 294 304 … … 296 306 { 297 307 global $core; 308 309 if ($w->offline) 310 return; 298 311 299 312 $core->blog->settings->addNamespace('cinecturlink2'); … … 316 329 } 317 330 318 $res = 319 '<li ><a href="'.331 $res = 332 '<li style="display:none;"><a href="'. 320 333 $core->blog->url.$core->url->getBase('cinecturlink2'). 321 '" title="'.__(' view all links').'">'.__('all links').334 '" title="'.__('View all links').'">'.__('View all links'). 322 335 '</a>'; 323 336 if ($w->shownumlink) { … … 330 343 '<li><a href="'. 331 344 $core->blog->url.$core->url->getBase('cinecturlink2').'/'.$core->blog->settings->cinecturlink2->cinecturlink2_public_caturl.'/'.urlencode($rs->cat_title). 332 '" title="'.__(' view links of this category').'">'.345 '" title="'.__('View links of this category').'">'. 333 346 html::escapeHTML($rs->cat_title). 334 347 '</a>'; … … 339 352 } 340 353 341 return 342 '<div class="cinecturlink2cat">'. 343 ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 344 '<ul>'.$res.'</ul>'. 345 '</div>'; 354 $res = 355 ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : ''). 356 '<ul>'.$res.'</ul>'. 357 '<p><strong><a href="'.$core->blog->url.$core->url->getBase('cinecturlink2').'" title="'.__('View all links').'">'.__('View all links').'</a></strong></p>'; 358 359 return $w->renderDiv($w->content_only,'cinecturlink2cat '.$w->class,'',$res); 346 360 } 347 361 } -
plugins/cinecturlink2/inc/class.cinecturlink2.php
r3247 r3325 341 341 } 342 342 if ($cur->cat_desc == '') { 343 throw new Exception(__(' No category description'));343 throw new Exception(__('You must provide a description.')); 344 344 } 345 345 -
plugins/cinecturlink2/index.php
r3247 r3325 309 309 $langs_combo = l10n::getISOcodes(true); 310 310 $links_action_combo = array( 311 __(' delete') => 'delete_links',312 __(' change category') => 'moveto_change_links_category',313 __(' change my rating') => 'moveto_change_links_note'311 __('Delete') => 'delete_links', 312 __('Change category') => 'moveto_change_links_category', 313 __('Change my rating') => 'moveto_change_links_note' 314 314 ); 315 315 $notes_combo = array(); … … 392 392 form::combo('upd_category', $categories_combo, '', 'maximal').' 393 393 </label></p><p> 394 <input type="submit" name="updlinkcat" value=" ok" />'.394 <input type="submit" name="updlinkcat" value="'.__('Save').'" />'. 395 395 form::hidden(array('action'), 'change_links_category'). 396 396 $core->formNonce().' … … 433 433 form::combo('upd_note',$notes_combo, 10, 'maximal').' 434 434 </label></p><p> 435 <input type="submit" name="updlinknote" value=" ok" />'.435 <input type="submit" name="updlinknote" value="'.__('Save').'" />'. 436 436 form::hidden(array('action'), 'change_links_note'). 437 437 $core->formNonce().' … … 494 494 <p class="col right">'.__('Selected links action:').' '. 495 495 form::combo(array('action'),$links_action_combo).' 496 <input type="submit" value="'.__(' ok').'" />'.496 <input type="submit" value="'.__('Save').'" />'. 497 497 form::hidden(array('sortby'),$sortby). 498 498 form::hidden(array('order'),$order). … … 535 535 <div class="col70"> 536 536 537 <p><label for="new_title">'.__('Title:').' '.537 <p><label class="classic required" for="new_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '. 538 538 form::field('new_title', 60, 255, $new_title, 'maximal'). 539 539 '</label></p> 540 540 541 <p><label for="new_desc">'.__('Description:').' '.541 <p><label class="classic required" for="new_desc"><abbr title="'.__('Required field').'">*</abbr> '.__('Description:').' '. 542 542 form::field('new_desc', 60, 255, $new_desc, 'maximal'). 543 543 '</label></p> 544 544 545 <p><label for="new_author">'.__('Author:').' '.545 <p><label class="classic required" for="new_author"><abbr title="'.__('Required field').'">*</abbr> '.__('Author:').' '. 546 546 form::field('new_author', 60, 255, $new_author, 'maximal'). 547 547 '</label></p> … … 553 553 '</p> 554 554 555 <p><label for="new_image">'.__('Image URL:').' '.555 <p><label class="classic required" for="new_image"><abbr title="'.__('Required field').'">*</abbr> '.__('Image URL:').' '. 556 556 form::field('new_image', 60, 255, $new_image, 'maximal').'</label>'. 557 557 '<a class="modal" href="http://amazon.com" id="newimagesearch">'. … … 594 594 form::hidden(array('action'),'create_link'). 595 595 $core->formNonce().' 596 <input type="submit" name="newlink" value="'.($upd_link_id ? __(' update link') : __('create link')).'" />596 <input type="submit" name="newlink" value="'.($upd_link_id ? __('Update link') : __('Create link')).'" /> 597 597 </p> 598 598 </form> … … 609 609 <form method="post" action="'.$p_url.'#cats"> 610 610 <table class="maximal dragable"> 611 <thead><tr><th colspan="2"> #</th><th>'.__('name').'</th><th>'.__('description').'</th></tr></thead>611 <thead><tr><th colspan="2">'.__('Order').'</th><th>'.__('Name').'</th><th>'.__('Description').'</th></tr></thead> 612 612 <tbody id="links-list-cat">'; 613 613 … … 636 636 form::hidden(array('action'), 'update_categories'). 637 637 $core->formNonce().' 638 <input type="submit" name="updcats" value="'.__(' update categories').'" />638 <input type="submit" name="updcats" value="'.__('Update categories').'" /> 639 639 </p> 640 640 </form>'; … … 649 649 <form method="post" action="'.$p_url.'#newcat"> 650 650 651 <p><label for="new_cattitle">'.__('Title:').' '.651 <p><label class="classic required" for="new_cattitle"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '. 652 652 form::field('new_cattitle', 60, 64, $new_cattitle, 'maximal'). 653 653 '</label></p> 654 654 655 <p><label for="new_catdesc">'.__('Description:').' '.655 <p><label class="classic required" for="new_catdesc"><abbr title="'.__('Required field').'">*</abbr> '.__('Description:').' '. 656 656 form::field('new_catdesc', 60, 64, $new_catdesc, 'maximal'). 657 657 '</label></p> … … 660 660 form::hidden(array('action'), 'create_category'). 661 661 $core->formNonce().' 662 <input type="submit" name="newcat" value="'.__(' save').'" />662 <input type="submit" name="newcat" value="'.__('Save').'" /> 663 663 </p> 664 664 </form> -
plugins/cinecturlink2/locales/fr/main.po
r3247 r3325 7 7 msgstr "" 8 8 "Content-Type: text/plain; charset=UTF-8\n" 9 "Project-Id-Version: cinecturlink2 0. 7\n"9 "Project-Id-Version: cinecturlink2 0.8\n" 10 10 "POT-Creation-Date: \n" 11 11 "PO-Revision-Date: 2013-11-04T19:43:18+00:00\n" … … 33 33 #: _config.php:93 34 34 msgid "Enable extension" 35 msgstr "Activer l 'extension"35 msgstr "Activer le plugin" 36 36 37 37 #: _config.php:95 38 38 msgid "Maximum width of images (in pixel):" 39 msgstr "Largeur maxim umdes images (en pixels) :"39 msgstr "Largeur maximale des images (en pixels) :" 40 40 41 41 #: _config.php:98 42 42 msgid "Public folder of images (under public folder of blog):" 43 msgstr "Dossier publi quedes images (dans le répertoire \"public\" du blog) :"43 msgstr "Dossier public des images (dans le répertoire \"public\" du blog) :" 44 44 45 45 #: _config.php:108 46 msgid "Update cache when use \"Random\" or \"Number of view\" order on widget ( Need reload of widgets on change)"47 msgstr "Mettre à jour le cache lors de l'utilisation de l'ordre \"Aléatoire\" ou \"Nombre d'affichages\" dans le widget ( Nécessite le rechargement du widget)"46 msgid "Update cache when use \"Random\" or \"Number of view\" order on widget (need reload of widgets on change)" 47 msgstr "Mettre à jour le cache lors de l'utilisation de l'ordre \"Aléatoire\" ou \"Nombre d'affichages\" dans le widget (nécessite le rechargement du widget)" 48 48 49 49 #: _config.php:109 … … 59 59 msgstr "Activer la page publique" 60 60 61 #: _config.php:11962 msgid "Public page has url: %s"63 msgstr "La page publique à l'URL: %s"64 65 61 #: _config.php:121 66 62 msgid "Title of the public page:" … … 73 69 #: _config.php:127 74 70 msgid "Limit number of entries per page on pulic page to:" 75 msgstr "Limiter le nombre d'entrée par page sur la page public à :" 76 77 #: _config.php:133 78 msgid "Informations" 79 msgstr "Informations" 80 81 #: _config.php:136 82 msgid "Once the extension has been configured and your links have been created, you can place one of the cinecturlink widgets in the sidebar." 83 msgstr "Une fois l'extension configurée et vos liens créés, vous pouvez placer un des widgets cinecturlink dans la barre latérale." 84 85 #: _config.php:137 86 msgid "In order to open links in new window you can use plugin %s." 87 msgstr "Afin d'ouvrir les liens dans une nouvelle page vous pouvez utiliser l'extension %s." 88 89 #: _config.php:138 90 msgid "In order to change URL of public page you can use plugin %s." 91 msgstr "Afin de changer l'URL de la page publique vous pouvez utiliser l'extension %s." 92 93 #: _config.php:139 94 msgid "You can add public pages of cinecturlink to the plugin %s." 95 msgstr "Vous pouvez ajouter les pages publiques de cinecturlink à l'extension %s." 96 97 #: _config.php:140 98 #: _config.php:141 99 msgid "The plugin Cinecturlink2 is compatible with plugin %s." 100 msgstr "L'extension Cinecturlink2 est compatible avec l'extension %s." 71 msgstr "Limiter le nombre d'entrées par page sur la page publique à :" 101 72 102 73 #: _widgets.php:45 … … 120 91 #: _widgets.php:61 121 92 msgid "Show selection of cinecturlinks" 122 msgstr "Afficher une s election de cinecturlink"93 msgstr "Afficher une sélection de cinecturlink" 123 94 124 95 #: _widgets.php:85 125 96 msgid "Sort: (only for date, note and title)" 126 msgstr "Ordre : (seulement pour date, note et titre)"97 msgstr "Ordre : (seulement pour date, note et titre)" 127 98 128 99 #: _widgets.php:92 … … 167 138 #: default-templates/cinecturlink2.html:56 168 139 #: default-templates/cinecturlink2.html:56 169 msgid " view all links"170 msgstr " voir tous les liens"140 msgid "View all links" 141 msgstr "Voir tous les liens" 171 142 172 143 #: _widgets.php:290 … … 179 150 180 151 #: _widgets.php:332 181 msgid " view links of this category"182 msgstr " voir les liens de cette catégorie"152 msgid "View links of this category" 153 msgstr "Voir les liens de cette catégorie" 183 154 184 155 #: default-templates/cinecturlink2.html:31 … … 289 260 msgstr "Vous devez fournir un titre." 290 261 262 msgid "You must provide a description." 263 msgstr "Vous devez fournir une description." 264 291 265 #: index.php:103 292 266 msgid "Category with same name already exists." … … 295 269 #: index.php:113 296 270 msgid "Category successfully created." 297 msgstr "Catégor ycréée."271 msgstr "Catégorie créée." 298 272 299 273 #: index.php:128 … … 320 294 #: index.php:218 321 295 msgid "Link successfully created." 322 msgstr "Lien cré e."296 msgstr "Lien créé." 323 297 324 298 #: index.php:227 … … 331 305 332 306 #: index.php:312 333 msgid " change category"334 msgstr " lodifier la catégorie"307 msgid "Change category" 308 msgstr "Modifier la catégorie" 335 309 336 310 #: index.php:313 337 msgid " change my rating"311 msgid "Change my rating" 338 312 msgstr "Modifier mon évaluation" 339 313 … … 353 327 #: index.php:391 354 328 msgid "Select a category:" 355 msgstr "S electionner une catégorie :"329 msgstr "Sélectionner une catégorie :" 356 330 357 331 #: index.php:409 … … 393 367 #: index.php:563 394 368 msgid "There is no image in cinecturlink media path." 395 msgstr "Il n'y a pas d'image dans le chemin des média cinecturlink."369 msgstr "Il n'y a pas d'image dans le dossier des média cinecturlink dans la médiathèque." 396 370 397 371 #: index.php:567 398 372 msgid "or select from repository:" 399 msgstr "ou s electionner depuis le dépôt :"373 msgstr "ou sélectionner depuis le dépôt :" 400 374 401 375 #: index.php:570 402 376 msgid "Go to media manager to add image to cinecturlink path." 403 msgstr "Aller dans l e gestionnaire de médiapour ajouter des images au chemin des cinecturlink."377 msgstr "Aller dans la médiathèque pour ajouter des images au chemin des cinecturlink." 404 378 405 379 #: index.php:586 … … 408 382 409 383 #: index.php:596 410 msgid " update link"411 msgstr " mettre à jour ce lien"384 msgid "Update link" 385 msgstr "Mettre à jour ce lien" 412 386 413 387 #: index.php:596 414 msgid " create link"415 msgstr " créer ce lien"388 msgid "Create link" 389 msgstr "Créer ce lien" 416 390 417 391 #: index.php:605 … … 420 394 421 395 #: index.php:611 422 msgid " name"423 msgstr " nom"396 msgid "Name" 397 msgstr "Nom" 424 398 425 399 #: index.php:611 426 msgid " description"427 msgstr " description"400 msgid "Description" 401 msgstr "Description" 428 402 429 403 #: index.php:633 … … 432 406 433 407 #: index.php:638 434 msgid "update categories" 435 msgstr "mettre à jour les catégories" 436 408 msgid "Update categories" 409 msgstr "Mettre à jour les catégories" 410 411 msgid "View the public page" 412 msgstr "Voir la page publique" 413 414 msgid "Order" 415 msgstr "Trier" 416 417 msgid "Cinecturlink: list of categories" 418 msgstr "Cinecturlink : liste des catégories" 419 420 msgid "Cineturlink: my cinecturlink" 421 msgstr "Cineturlink : mes cinecturlink" 422 423 msgid "" 424 msgstr "" 425 426 msgid "" 427 msgstr "" 428
Note: See TracChangeset
for help on using the changeset viewer.