app/Resources/views/Includes/sidebar.html.php line 54

Open in your IDE?
  1. <?php
  2. /**
  3.  * @var \Pimcore\Templating\PhpEngine $this
  4.  * @var \Pimcore\Templating\PhpEngine $view
  5.  * @var \Pimcore\Templating\GlobalVariables $app
  6.  */
  7. ?>
  8. <?php
  9. if($this->editmode) {
  10.         // add some wrapping HTML to make it looking nicer in the editmode
  11.     ?>
  12.     <!DOCTYPE html>
  13.     <html>
  14.     <head>
  15.         <meta charset="utf-8">
  16.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  17.         <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">
  18.         <link href="/static/css/global.css" rel="stylesheet">
  19.         <link href="/static/css/editmode.css?_dc=<?= time(); ?>" rel="stylesheet">
  20.     </head>
  21.     <body>
  22.         <div style="max-width: 300px;">
  23.             <div class="sidebar">
  24. <?php ?>
  25. <div class="teasers">
  26.     <?php while($this->block("teasers")->loop()) { ?>
  27.         <?= $this->snippet("teaser"); ?>
  28.     <?php ?>
  29. </div>
  30. <?php if($this->editmode) { ?>
  31.     <br />
  32.     <hr />
  33.     <div class="alert alert-info" style="margin-top: 30px">
  34.         <h3>How many blog articles should be listed (set 0 to hide the box):</h3>
  35.         <br />
  36.         <?= $this->select("blogArticles", [
  37.             "width" => 70,
  38.             "store" => [[1,1],[2,2],[3,3]]
  39.         ]); ?>
  40.     </div>
  41. <?php } else {
  42.         $count $this->select("blogArticles")->getData();
  43.         if($count) {
  44.             echo $this->action("sidebarBox""Blog"null, [
  45.                 'items' => (int) $count
  46.             ]);
  47.         }
  48.     }
  49. ?>
  50. <?php if($this->editmode) { ?>
  51.             </div>
  52.         </div>
  53.     </body>
  54.     </html>
  55. <?php ?>