diff options
Diffstat (limited to 'src/view')
| -rw-r--r-- | src/view/MainBuilder.php | 5 | ||||
| -rw-r--r-- | src/view/templates/modify_block.php | 23 | ||||
| -rw-r--r-- | src/view/templates/modify_page.php | 5 |
3 files changed, 28 insertions, 5 deletions
diff --git a/src/view/MainBuilder.php b/src/view/MainBuilder.php index 2510b08..e4f91f3 100644 --- a/src/view/MainBuilder.php +++ b/src/view/MainBuilder.php | |||
| @@ -71,6 +71,11 @@ class MainBuilder extends AbstractBuilder | |||
| 71 | // ceci pourrait être déplacé au début des blocs | 71 | // ceci pourrait être déplacé au début des blocs |
| 72 | $bloc_edit = ''; | 72 | $bloc_edit = ''; |
| 73 | foreach($node->getChildren() as $child_node){ | 73 | foreach($node->getChildren() as $child_node){ |
| 74 | // ordre des articles 'news' | ||
| 75 | if($child_node->getName() === 'news_block'){ | ||
| 76 | $order = $child_node->getNodeData()->getChronoOrder() ? 'chrono' : 'antichrono'; | ||
| 77 | } | ||
| 78 | |||
| 74 | ob_start(); | 79 | ob_start(); |
| 75 | require self::VIEWS_PATH . 'modify_block.php'; | 80 | require self::VIEWS_PATH . 'modify_block.php'; |
| 76 | $bloc_edit .= ob_get_clean(); | 81 | $bloc_edit .= ob_get_clean(); |
diff --git a/src/view/templates/modify_block.php b/src/view/templates/modify_block.php index 22a2932..b44327f 100644 --- a/src/view/templates/modify_block.php +++ b/src/view/templates/modify_block.php | |||
| @@ -19,13 +19,26 @@ | |||
| 19 | </div> | 19 | </div> |
| 20 | </div> | 20 | </div> |
| 21 | <?php | 21 | <?php |
| 22 | if($child_node->getName() === 'news_block'){ | ||
| 23 | ?> | ||
| 24 | <div class="news_order"> | ||
| 25 | <label>Ordre des articles</label> | ||
| 26 | <select id="articles_order_select_<?= $child_node->getId() ?>" onchange="articlesOrderSelect(<?= $child_node->getId() ?>)"> | ||
| 27 | <option value="antichrono" <?= $order === 'antichrono' ? 'selected' : '' ?>>Antichronologique</option> | ||
| 28 | <option value="chrono" <?= $order === 'chrono' ? 'selected' : '' ?>>Chronologique</option> | ||
| 29 | </select> | ||
| 30 | </div> | ||
| 31 | <?php | ||
| 32 | } | ||
| 22 | if($child_node->getNodeData()->getPresentation() !== null){ | 33 | if($child_node->getNodeData()->getPresentation() !== null){ |
| 23 | ?> | 34 | ?> |
| 24 | <div class="grid_options"><p> | 35 | <div class="grid_options"> |
| 25 | <label for="presentation_select_<?= $child_node->getId() ?>">Présentation</label> | 36 | <div> |
| 26 | <select id="presentation_select_<?= $child_node->getId() ?>" onchange="changePresentation(<?= $child_node->getId() ?>)"> | 37 | <label for="presentation_select_<?= $child_node->getId() ?>">Présentation</label> |
| 27 | <?= $this->makePresentationOptions($child_node->getNodeData()->getPresentation()) ?> | 38 | <select id="presentation_select_<?= $child_node->getId() ?>" onchange="changePresentation(<?= $child_node->getId() ?>)"> |
| 28 | </select> | 39 | <?= $this->makePresentationOptions($child_node->getNodeData()->getPresentation()) ?> |
| 40 | </select> | ||
| 41 | </div> | ||
| 29 | <div id="cols_min_width_edit_<?= $child_node->getId() ?>" class="<?= ($child_node->getNodeData()->getPresentation() === 'grid' ? '' : 'hidden') ?>"> | 42 | <div id="cols_min_width_edit_<?= $child_node->getId() ?>" class="<?= ($child_node->getNodeData()->getPresentation() === 'grid' ? '' : 'hidden') ?>"> |
| 30 | <label for="cols_min_width_select_<?= $child_node->getId() ?>">Largeur minimum </label> | 43 | <label for="cols_min_width_select_<?= $child_node->getId() ?>">Largeur minimum </label> |
| 31 | <input type="number" id="cols_min_width_select_<?= $child_node->getId() ?>" onchange="changeColsMinWidth(<?= $child_node->getId() ?>)" min="150" max="400" value="<?= $child_node->getNodeData()->getColsMinWidth() ?>"> pixels | 44 | <input type="number" id="cols_min_width_select_<?= $child_node->getId() ?>" onchange="changeColsMinWidth(<?= $child_node->getId() ?>)" min="150" max="400" value="<?= $child_node->getNodeData()->getColsMinWidth() ?>"> pixels |
diff --git a/src/view/templates/modify_page.php b/src/view/templates/modify_page.php index 5ab1a95..fbcbf20 100644 --- a/src/view/templates/modify_page.php +++ b/src/view/templates/modify_page.php | |||
| @@ -44,6 +44,11 @@ | |||
| 44 | <input type="hidden" name="bloc_title_hidden"> | 44 | <input type="hidden" name="bloc_title_hidden"> |
| 45 | <input type="submit" value="Valider"></p> | 45 | <input type="submit" value="Valider"></p> |
| 46 | </form> | 46 | </form> |
| 47 | <div class="explanations"> | ||
| 48 | <p><b>Articles libres</b>: textes riches générés par l'éditeur et librement positionnables</p> | ||
| 49 | <p><b>Actualilés</b>: contenus structurés avec titre, aperçu, date et possédant une page dédiée</p> | ||
| 50 | <p><b>Galerie</b>: photos parcourables en mode plein écran (cette fonctionalité n'est pas encore disponible)</p> | ||
| 51 | </div> | ||
| 47 | </div> | 52 | </div> |
| 48 | <div class="modify_block"> | 53 | <div class="modify_block"> |
| 49 | <p>Modifier un bloc</p> | 54 | <p>Modifier un bloc</p> |
