Changes in [2101:4f5f79f9f0c9:2102:fba83bbd6ee1]
- Files:
-
- 17 edited
-
admin/_charte.php (modified) (1 diff)
-
admin/media.php (modified) (1 diff)
-
admin/media_item.php (modified) (1 diff)
-
admin/style/default.css (modified) (7 diffs)
-
inc/core/class.dc.media.php (modified) (1 diff)
-
inc/core/class.dc.modules.php (modified) (1 diff)
-
plugins/akismet/_prepend.php (modified) (1 diff)
-
plugins/antispam/_prepend.php (modified) (2 diffs)
-
plugins/blogroll/_prepend.php (modified) (1 diff)
-
plugins/buildtools/_prepend.php (modified) (1 diff)
-
plugins/daInstaller/_prepend.php (modified) (1 diff)
-
plugins/fairTrackbacks/_prepend.php (modified) (2 diffs)
-
plugins/importExport/_prepend.php (modified) (2 diffs)
-
plugins/importExport/index.php (modified) (1 diff)
-
plugins/maintenance/_prepend.php (modified) (1 diff)
-
plugins/pages/_prepend.php (modified) (1 diff)
-
plugins/tags/_prepend.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
admin/_charte.php
r2038 r2096 334 334 <p class="nav_prevnext"><a title="Titre de l'élément précédente" href="post.php?id=4145">« Élément précédent</a> | <a title="Titre de l'élément suivant" href="#">Élément suivant »</a></p> 335 335 336 <h2><span class="page-title">Les tableaux</span></h2> 337 <p>Il existe deux mises en forme type de tableaux selon que l'on cherche à faire un tableau ordinaire 338 ou un tableau dont on peut déplacer les lignes par glisser déposer (voir plus bas). Cependant certaines règles 339 sont communes à tout les tableaux.</p> 340 341 <h3 id="communes">Règles communes</h3> 342 <h4>Largeur du tableau</h4> 343 <p>Sauf pour des tableaux particuliers (absents dans l'admin mais qui pourraient être nécessaires 344 à un plugin,les tableaux occupent toute la largeur de la page. Afin que les tableaux soient consultables 345 sur un mobile en navigant horizontalement, on englobe le tableau dans une <code>div class="table-outer"</code>, 346 qui servira de « conteneur ».</p> 347 <h4>Accessibilité</h4> 348 <p>Les éléments caption, th, scope sont nécessaires à l'accessibilité. Ne les oubliez pas ! ». 349 On peut utiliser la <code>class="hidden"</code> sur l'élément <code>caption</code> (qui accueille 350 le titre du tableau) si vous ne souhaitez pas qu'il soit affiché sur la page.</p> 351 <h4>Les classes</h4> 352 <p>Des classes particulières peuvent être attribuées aux lignes :</p> 353 <ul> 354 <li><code>line</code> (systématique) : pour les traits horizontaux et le fond gris léger 355 au survol ;</li> 356 <li><code>offline</code> : pour un noir estompé (gris quoi).</li> 357 </ul> 358 <p>Des classes particulières peuvent être appliquées aux cellules :</p> 359 <ul> 360 <li><code>nowrap</code> : pas de retour à la ligne dans la cellule, quelle que soit la 361 largeur de la page ;</li> 362 <li><code>maximal</code> : la cellule prendra toute la largeur restante disponible ;</li> 363 <li><code>count</code> : le contenu de la cellule sera aligné à droite avec un petit retrait.</li> 364 </ul> 365 <h3 id="ordinaires">Tableau classique</h3> 366 <div class="table-outer"> 367 <table> 368 <caption class="hidden">Liste des entrées</caption> 369 <tr> 370 <th colspan="2" class="first">Titre</th> 371 <th scope="col">Date</th> 372 <th scope="col">Catégorie</th> 373 <th scope="col">Auteur</th> 374 <th scope="col">Commentaires</th> 375 <th scope="col">Rétroliens</th> 376 <th scope="col">État</th> 377 </tr> 378 <tr class="line"> 379 <td class="nowrap"><input type="checkbox" name="name1" value="value1" /></td> 380 <td class="maximal" scope="row"><a href="#">Mon cher Franck</a></td> 381 <td class="nowrap count">06/08/2013 19:16</td> 382 <td class="nowrap"><a href="#">Les aventures du clafoutis</a></td> 383 <td class="nowrap">kozlika</td><td class="nowrap count">4</td> 384 <td class="nowrap count">0</td><td class="nowrap status"><img alt="Publié" title="Publié" src="images/check-on.png" /> <img alt="Sélectionné" title="Sélectionné" src="images/selected.png" /> </td> 385 </tr> 386 <tr class="line offline"> 387 <td class="nowrap"><input type="checkbox" name="name2" value="value2" /></td> 388 <td class="maximal" scope="row"><a href="#">Dotclear 2.3.0</a></td> 389 <td class="nowrap count">16/05/2011 22:29</td> 390 <td class="nowrap"><a href="#">Les aventures du clafoutis</a></td> 391 <td class="nowrap">kozlika</td><td class="nowrap count">5</td> 392 <td class="nowrap count">0</td><td class="nowrap status"><img alt="Non publié" title="Non publié" src="images/check-off.png" /> <img alt="Sélectionné" title="Sélectionné" src="images/selected.png" /> </td> 393 </tr> 394 <tr class="line"> 395 <td class="nowrap"><input type="checkbox" name="entries[]" value="2148" /></td> 396 <td class="maximal" scope="row"><a href="#">Causons opéra au Tamm Bara</a></td> 397 <td class="nowrap count">24/11/2009 23:10</td> 398 <td class="nowrap"><a href="#">Les aventures du clafoutis</a></td> 399 <td class="nowrap">kozlika</td> 400 <td class="nowrap count">4</td><td class="nowrap count">1</td> 401 <td class="nowrap status"><img alt="Publié" title="Publié" src="images/check-on.png" /> </td> 402 </tr> 403 <tr class="line"> 404 <td class="nowrap"><input type="checkbox" name="entries[]" value="2136" /></td> 405 <td class="maximal" scope="row"><a href="#">Souffler six bougies</a></td> 406 <td class="nowrap count">14/08/2009 00:00</td><td class="nowrap"><a href="#">Les aventures du clafoutis</a></td> 407 <td class="nowrap">kozlika</td> 408 <td class="nowrap count">4</td><td class="nowrap count">2</td><td class="nowrap status"><img alt="Publié" title="Publié" src="images/check-on.png" /> </td> 409 </tr> 410 <tr class="line"> 411 <td class="nowrap"><input type="checkbox" name="entries[]" value="2129" /></td> 412 <td class="maximal" scope="row"><a href="#">Dotclear et grenadine, troisième édition</a></td> 413 <td class="nowrap count">15/06/2009 07:39</td> 414 <td class="nowrap"><a href="#">Les aventures du clafoutis</a></td> 415 <td class="nowrap">kozlika</td> 416 <td class="nowrap count">9</td> 417 <td class="nowrap count">1</td> 418 <td class="nowrap status"><img alt="Publié" title="Publié" src="images/check-on.png" /> </td> 419 </tr> 420 <tr class="line"> 421 <td class="nowrap"><input type="checkbox" name="entries[]" value="2111" /></td> 422 <td class="maximal" scope="row"><a href="#">L'abc dotclear est né</a></td> 423 <td class="nowrap count">19/03/2009 10:31</td><td class="nowrap"><a href="#">Les aventures du clafoutis</a></td> 424 <td class="nowrap">kozlika</td> 425 <td class="nowrap count">1</td><td class="nowrap count">0</td> 426 <td class="nowrap status"><img alt="Publié" title="Publié" src="images/check-on.png" /> </td> 427 </tr> 428 </table> 429 </div> 430 431 336 432 </div><!-- /content --> 337 433 </div><!-- /main --> -
admin/media.php
r2090 r2099 500 500 } 501 501 502 $maxchars = 36; 503 if (strlen($fname) > $maxchars) { 504 $fname = substr($fname, 0, $maxchars-4).'...'.($f->d ? '' : files::getExtension($fname)); 505 } 502 506 $res = 503 507 '<div class="'.$class.'"><p><a class="media-icon media-link" href="'.$link.'">'. -
admin/media_item.php
r2094 r2098 62 62 foreach ($core->media->getDBDirs() as $v) { 63 63 $dirs_combo['/'.$v] = $v; 64 } 65 # Add parent and direct childs directories if any 66 $core->media->getFSDir(); 67 foreach ($core->media->dir['dirs'] as $k => $v) { 68 $dirs_combo['/'.$v->relname] = $v->relname; 64 69 } 65 70 ksort($dirs_combo); -
admin/style/default.css
r2101 r2102 415 415 font: 100% "Andale Mono","Courier New",monospace; 416 416 } 417 code { 418 background: #FAFAD1; 419 } 417 420 pre { 418 421 white-space: pre; … … 1740 1743 vertical-align: top; 1741 1744 min-height: 140px; 1745 word-wrap: break-word; 1742 1746 } 1743 1747 .media-item p { … … 2352 2356 width: 100%; 2353 2357 height: 4px; 2354 background: # d99;2358 background: #EBEB47; 2355 2359 } 2356 2360 #debug div { … … 2363 2367 #debug:hover { 2364 2368 height: auto; 2369 padding: 2px 1em; 2370 z-index: 100; 2365 2371 } 2366 2372 #debug:hover div { … … 2468 2474 #content { 2469 2475 margin: 0; 2470 padding: 0 .5em ;2476 padding: 0 .5em !important; 2471 2477 } 2472 2478 #collapser { … … 2476 2482 margin: 0; 2477 2483 padding: 6px 0; 2484 } 2485 #dashboard-boxes .box.medium, 2486 #dashboard-boxes .box.small, 2487 #dashboard-boxes .box.large { 2488 width: 90%; 2489 margin: 10px auto; 2478 2490 } 2479 2491 } … … 2495 2507 #icons p { 2496 2508 width: 150px; 2497 }2498 #dashboard-boxes .box.small2499 #dashboard-boxes .box.medium {2500 margin: 10px 0;2501 width: 280px;2502 2509 } 2503 2510 #content.with-help #help-button { -
inc/core/class.dc.media.php
r1855 r2098 370 370 371 371 } 372 372 373 /** 374 Gets current working directory content (using filesystem) 375 376 */ 377 public function getFSDir() 378 { 379 parent::getDir(); 380 } 381 373 382 /** 374 383 Gets current working directory content. -
inc/core/class.dc.modules.php
r1196 r2095 118 118 if (file_exists($m['root'].'/_prepend.php')) 119 119 { 120 $r = require $m['root'].'/_prepend.php';120 $r = $this->loadModuleFile($m['root'].'/_prepend.php'); 121 121 122 122 # If _prepend.php file returns null (ie. it has a void return statement) -
plugins/akismet/_prepend.php
r1179 r2095 12 12 if (!defined('DC_RC_PATH')) { return; } 13 13 14 global $__autoload, $core;15 14 $__autoload['dcFilterAkismet'] = dirname(__FILE__).'/class.dc.filter.akismet.php'; 16 15 $core->spamfilters[] = 'dcFilterAkismet'; 17 ?> -
plugins/antispam/_prepend.php
r1179 r2095 11 11 # -- END LICENSE BLOCK ----------------------------------------- 12 12 if (!defined('DC_RC_PATH')) { return; } 13 14 global $__autoload, $core;15 13 16 14 $__autoload['dcSpamFilter'] = dirname(__FILE__).'/inc/class.dc.spamfilter.php'; … … 28 26 $core->url->register('spamfeed','spamfeed','^spamfeed/(.+)$',array('dcAntispamURL','spamFeed')); 29 27 $core->url->register('hamfeed','hamfeed','^hamfeed/(.+)$',array('dcAntispamURL','hamFeed')); 30 ?> -
plugins/blogroll/_prepend.php
r1179 r2095 12 12 if (!defined('DC_RC_PATH')) { return; } 13 13 14 $GLOBALS['__autoload']['dcBlogroll'] = dirname(__FILE__).'/class.dc.blogroll.php'; 15 ?> 14 $__autoload['dcBlogroll'] = dirname(__FILE__).'/class.dc.blogroll.php'; -
plugins/buildtools/_prepend.php
r1977 r2095 1 1 <?php 2 2 3 global $__autoload;4 5 3 $__autoload['dcMaintenanceBuildtools'] = dirname(__FILE__).'/class.dc.maintenance.buildtools.php'; -
plugins/daInstaller/_prepend.php
r1046 r2095 12 12 $__autoload['daModulesList'] = dirname(__FILE__).'/inc/lib.da.installer.ui.php'; 13 13 $__autoload['daModulesUpdateList'] = dirname(__FILE__).'/inc/lib.da.installer.ui.php'; 14 15 ?> -
plugins/fairTrackbacks/_prepend.php
r1179 r2095 12 12 if (!defined('DC_RC_PATH')) { return; } 13 13 14 global $__autoload;15 16 14 if (!defined('DC_FAIRTRACKBACKS_FORCE')) { 17 15 define('DC_FAIRTRACKBACKS_FORCE',false); … … 22 20 $core->spamfilters[] = 'dcFilterFairTrackbacks'; 23 21 } 24 ?> -
plugins/importExport/_prepend.php
r2044 r2095 11 11 # -- END LICENSE BLOCK ----------------------------------------- 12 12 if (!defined('DC_RC_PATH')) { return; } 13 14 global $__autoload;15 13 16 14 $__autoload['dcIeModule'] = dirname(__FILE__).'/inc/class.dc.ieModule.php'; … … 28 26 $__autoload['flatExport'] = dirname(__FILE__).'/inc/flat/class.flat.export.php'; 29 27 30 $ this->core->addBehavior('importExportModules','registerIeModules');28 $core->addBehavior('importExportModules','registerIeModules'); 31 29 32 function registerIeModules($modules )30 function registerIeModules($modules, $core) 33 31 { 34 $modules['import'] = array_merge($modules['import'], array('dcImportFlat'));35 $modules['import'] = array_merge($modules['import'], array('dcImportFeed'));32 $modules['import'] = array_merge($modules['import'], array('dcImportFlat')); 33 $modules['import'] = array_merge($modules['import'], array('dcImportFeed')); 36 34 37 $modules['export'] = array_merge($modules['export'], array('dcExportFlat'));35 $modules['export'] = array_merge($modules['export'], array('dcExportFlat')); 38 36 39 if ($ GLOBALS['core']->auth->isSuperAdmin()) {40 $modules['import'] = array_merge($modules['import'], array('dcImportDC1'));41 $modules['import'] = array_merge($modules['import'], array('dcImportWP'));37 if ($core->auth->isSuperAdmin()) { 38 $modules['import'] = array_merge($modules['import'], array('dcImportDC1')); 39 $modules['import'] = array_merge($modules['import'], array('dcImportWP')); 42 40 } 43 41 } -
plugins/importExport/index.php
r2045 r2095 31 31 32 32 # --BEHAVIOR-- importExportModules 33 $core->callBehavior('importExportModules', $modules);33 $core->callBehavior('importExportModules', $modules, $core); 34 34 35 35 $type = null; -
plugins/maintenance/_prepend.php
r2044 r2095 11 11 # -- END LICENSE BLOCK ----------------------------------------- 12 12 if (!defined('DC_RC_PATH')) { return; } 13 14 global $__autoload;15 13 16 14 $__autoload['dcMaintenance'] = dirname(__FILE__).'/inc/class.dc.maintenance.php'; -
plugins/pages/_prepend.php
r2055 r2095 12 12 if (!defined('DC_RC_PATH')) { return; } 13 13 14 global $core, $__autoload;15 16 14 $__autoload['dcPagesActionsPage'] = dirname(__FILE__).'/class.actionpage.php'; 17 15 $__autoload['adminPageList'] = dirname(__FILE__).'/class.listpage.php'; 18 16 19 $core->url->register('pages', 'pages','^pages/(.+)$',array('urlPages','pages'));20 $core->url->register('pagespreview', 'pagespreview','^pagespreview/(.+)$',array('urlPages','pagespreview'));17 $core->url->register('pages', 'pages', '^pages/(.+)$', array('urlPages', 'pages')); 18 $core->url->register('pagespreview', 'pagespreview', '^pagespreview/(.+)$', array('urlPages', 'pagespreview')); 21 19 22 $core->setPostType('page', 'plugin.php?p=pages&act=page&id=%d',$core->url->getURLFor('pages','%s'),'Pages');20 $core->setPostType('page', 'plugin.php?p=pages&act=page&id=%d', $core->url->getURLFor('pages', '%s'), 'Pages'); 23 21 24 22 # We should put this as settings later 25 23 $GLOBALS['page_url_format'] = '{t}'; 26 ?> -
plugins/tags/_prepend.php
r1179 r2095 12 12 if (!defined('DC_RC_PATH')) { return; } 13 13 14 $GLOBALS['core']->url->register('tag','tag','^tag/(.+)$',array('urlTags','tag')); 15 $GLOBALS['core']->url->register('tags','tags','^tags$',array('urlTags','tags')); 16 $GLOBALS['core']->url->register('tag_feed','feed/tag','^feed/tag/(.+)$',array('urlTags','tagFeed')); 17 ?> 14 $core->url->register('tag', 'tag', '^tag/(.+)$', array('urlTags', 'tag')); 15 $core->url->register('tags', 'tags', '^tags$', array('urlTags', 'tags')); 16 $core->url->register('tag_feed', 'feed/tag', '^feed/tag/(.+)$', array('urlTags', 'tagFeed'));
Note: See TracChangeset
for help on using the changeset viewer.
