templates/layouts/layout-portal.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ app.request.locale }}">
  3.     <head>
  4.         <!-- Required meta tags -->
  5.         <meta charset="utf-8">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0"">
  7.         <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate, max-age=0">
  8.         <meta http-equiv="Pragma" content="no-cache">
  9.         {% apply spaceless %}
  10.         {# add global stylesheets and scripts outside of any blocsk to add them to the helpers before any others assets are added #}
  11.         {# we use the view helper to have cache buster functionality #}
  12.         {% do pimcore_head_link().appendStylesheet('https://fonts.googleapis.com/css?family=Hind+Guntur:300,400,500,600,700&display=swap') %}
  13.         {% do pimcore_head_link().appendStylesheet('https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css',null,null,{integrity:"sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T",crossorigin:"anonymous"}) %}
  14.         {% do pimcore_head_link().appendStylesheet('https://use.fontawesome.com/releases/v5.9.0/css/all.css') %}
  15.         {% do pimcore_head_link().appendStylesheet(asset('static/lib/magnific/magnific.css'), 'screen') %}
  16.         {% do pimcore_head_link().appendStylesheet(asset('static/lib/autocompletejs/css/autoComplete.css'), 'screen') %}
  17.         {% do pimcore_head_link().appendStylesheet('https://use.fontawesome.com/releases/v5.7.0/css/all.css',null,null,{integrity:'sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ',crossorigin:'anonymous'}) %}
  18.         {% do pimcore_head_link().appendStylesheet(asset('static/css/global.css')) %}
  19.         {# Estilos Sidebar #}
  20.         {% do pimcore_head_link().appendStylesheet(asset('static/css/sidebar.css')) %}
  21.         {% do pimcore_head_link().appendStylesheet('https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css') %}
  22.         {% do pimcore_head_link().appendStylesheet(asset('static/css/react-overrides.css')) %}
  23.         {# Fin estilos Sidebar #}
  24.             {% if editmode %}
  25.         {% do pimcore_head_link().appendStylesheet(asset('static/css/editmode.css')) %}
  26.         {% endif %}
  27.         {% do pimcore_head_script().appendFile('https://code.jquery.com/jquery-3.3.1.slim.min.js',null,null,{ integrity:"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo",crossorigin:"anonymous"}) %}
  28.         {% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js',null,null,{ integrity:"sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1",crossorigin:"anonymous"}) %}
  29.         {% do pimcore_head_script().appendFile('https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js',null,null,{ integrity:"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM",crossorigin:"anonymous"}) %}
  30.         {% do pimcore_head_script().appendFile('https://cdn.jsdelivr.net/npm/axios@0.24.0/dist/axios.min.js',null,null,{ integrity:"sha256-rtaseLgkmpx8/wAw87kh7p93HLFoQWTz5nnhAjpNXGk=",crossorigin:"anonymous"}) %}
  31.         {% do pimcore_head_script().appendFile('//cdn.jsdelivr.net/npm/sweetalert2@11',null,null,null) %}
  32.         {% do pimcore_head_script().appendFile('https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js',null,null,null) %}
  33.         {% do pimcore_head_script().appendFile(asset('static/lib/magnific/magnific.js')) %}
  34.         {% do pimcore_head_script().appendFile(asset('static/lib/autocompletejs/js/autoComplete.min.js')) %}
  35.         {% do pimcore_head_script().appendFile(asset('static/js/search-autocomplete.js')) %}
  36.         {% do pimcore_head_script().appendFile(asset('static/js/main.js')) %}
  37.         {% do pimcore_head_script().appendFile(asset('static/js/sidebar.js')) %}
  38.             {% if not editmode %}
  39.         {% do pimcore_head_script().appendFile(asset('static/js/frontend.js')) %}
  40.         {% endif %}
  41.             {% if not document is defined or not document %}
  42.         {% set document = pimcore_document(1) %}
  43.         {% endif %}
  44.             {% if document is instanceof('\\Pimcore\\Model\\Document\\Link') %}
  45.             {# @var document \Pimcore\Model\Document\Link #}
  46.         {% set document = document.getObject() %}
  47.         {% endif %}
  48.             {% if document.getTitle() is not empty %}
  49.         {% do pimcore_head_title().set(document.getTitle()) %}
  50.         {% endif %}
  51.             {% if document.getDescription() is not empty %}
  52.         {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  53.         {% endif %}
  54.         {% do pimcore_head_title().append('Carpeta Ciudadana') %}
  55.         {% do pimcore_head_title().setSeparator(' : ') %}
  56.         {% set isPortal = ((isPortal is defined) and isPortal) %}
  57.         {% endapply %}
  58.         {# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
  59.             {% block layout_head_meta deferred %}
  60.             {{ pimcore_head_title() }}
  61.             {{ pimcore_head_meta() }}
  62.                 {% if pimcore_placeholder('canonical').count() %}
  63.             <link rel="canonical" href="{{ pimcore_placeholder('canonical') }}"/> {% endif %}
  64.         {% endblock %}
  65.         {% block head_stylesheets deferred %}
  66.             {{ pimcore_head_link() }}
  67.         {% endblock %}
  68.     </head>
  69.     <body>
  70.         <div
  71.             class="wrapper">
  72.             {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  73.             {% if not document is defined or not document %}
  74.                 {% set document = pimcore_document(1) %}
  75.             {% endif %}
  76.             {# get the document which should be used to start in navigation | default home #}
  77.             {% set navStartNode = document.getProperty('navigation_root') %}
  78.             {% if not navStartNode is instanceof('\\Pimcore\\Model\\Document') %}
  79.                 {% set navStartNode = pimcore_document(1) %}
  80.             {% endif %}
  81.             
  82.             <div class="sidebar">
  83.                 <div class="logo-details d-flex justify-content-center">
  84.                     <img src="/static/images/M.png" width="100px" height="100px" class='bx bxl-c-plus-plus icon'>
  85.                     <span class="tooltip"></span>
  86.                     <!--<div class="logo_name">
  87.                                                                             &nbsp; P C C
  88.                                                                         </div>-->
  89.                     <i class='bx bx-menu' id="btn"></i>
  90.                 </div>
  91.                 <hr style="height:2px;border-width:0;color:gray;background-color:white">
  92.                 <ul class="nav-list">
  93.                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  94.                         <li>
  95.                             <a href="/es/psp/admin/Catalogos">
  96.                                 <i class='bx bx-grid-alt'></i>
  97.                                 <span class="links_name">Administración de catálogos</span>
  98.                             </a>
  99.                             <span class="tooltip">Administración de catálogos</span>
  100.                         </li>
  101.                         <li>
  102.                             <a href="#">
  103.                                 <i class='bx bx-pie-chart-alt-2'></i>
  104.                                 <span class="links_name">Tablero de Control</span>
  105.                             </a>
  106.                             <span class="tooltip">Tablero de Control</span>
  107.                         </li>
  108.                         <li>
  109.                             <a href="#">
  110.                                 <i class='bx bx-user'></i>
  111.                                 <span class="links_name">Reportes</span>
  112.                             </a>
  113.                             <span class="tooltip">Reportes</span>
  114.                         </li>
  115.                         <li>
  116.                             <a href="#">
  117.                                 <i class='bx bx-folder'></i>
  118.                                 <span class="links_name">Visor de Documentos</span>
  119.                             </a>
  120.                             <span class="tooltip">Visor de Documentos</span>
  121.                         </li>
  122.                     {% endif %}
  123.                 </ul>
  124.                 <div class="profile">
  125.                     <div class="profile-details">
  126.                         <div class="name_job">
  127.                             {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  128.                                 <div class="name">{{ 'general.logged-in-as' | trans([app.user.firstname]) }}</div>
  129.                                 <a class="text-white" style="background: none;font-size:x-small;" href="{{ path('account-index') }}" class="name">{{ 'general.profile' | trans }}</a>
  130.                             {% endif %}
  131.                         </div>
  132.                     </div>
  133.                     
  134.                 </div>
  135.             </div>
  136.             <section class="home-section">
  137.                 {# <header>
  138.                     <div class="bg-white m-3 p-1 border border-gray shadow" style="border-radius: 8px;">
  139.                         <div class="row">
  140.                             <div
  141.                                 class="col d-none d-md-block justify-content-center" style="align-items: center;">
  142.                                 <a class="py-2 mb-2" href="{{ navStartNode }}">
  143.                                     <img id="logo" src="{{ asset('/static/images/edomex-logo1.png') }}" alt="PCC" width="170" height="100">
  144.                                 </a>
  145.                             </div>
  146.                             <div class="col">
  147.                                 <div class="row d-flex justify-content-center" style="align-items: center;">
  148.                                     <h2>PSP</h2>
  149.                                 </div>
  150.                                 <div class="row d-flex justify-content-center" style="align-items: center;">
  151.                                     <img id="logo" src="{{ asset('/static/images/linea.png') }}" alt="PCC" width="240" height="3">
  152.                                 </div>
  153.                                 <div class="row d-flex justify-content-center" style="align-items: center;">
  154.                                     <p>Portal del Servidor Público Carpeta Ciudadana</p>
  155.                                 </div>
  156.                             </div>
  157.                             <div
  158.                                 class="col d-none d-md-block  justify-content-center" style="align-items: center;">
  159.                                 <a class="py-2 mb-2" href="{{ navStartNode }}">
  160.                                     <img id="logo" src="{{ asset('/static/images/edomex-logo2.png') }}" alt="PCC" width="100" height="100">
  161.                                 </a>
  162.                             </div>
  163.                         </div>
  164.                     </div>
  165.                 </header> #}
  166.                 {{ pimcore_inc(document.getProperty('header')) }}
  167.                 <main role="main">
  168.                         {{ block('content') }}
  169.                     
  170.                     <a id="back-to-top" href="#" class="btn btn-primary btn-lg back-to-top" role="button" title="Click to return on the top" data-toggle="tooltip" data-placement="left">
  171.                         <span class="fa fa-arrow-up"></span>
  172.                     </a>
  173.                 </main>
  174.             </section>
  175.         </div>
  176.         {# output scripts added before #}
  177.         {% block headscripts deferred %}
  178.             {{ pimcore_head_script() }}
  179.         {% endblock %}
  180.         {% block inlinescripts deferred %}
  181.             {{ pimcore_inline_script() }}
  182.         {% endblock %}
  183.         
  184.         {% for label, messages in app.flashes %}
  185.             {% for message in messages %}
  186.                 {# <div class="alert alert-{{ label }} alert-dismissable">
  187.                                                                         <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  188.                                                                         {{ message }}
  189.                                                                     </div> #}
  190.                 <script>
  191.                     var title = 'Éxito';
  192. var icono = 'success';
  193. if ('{{ label }}' === 'danger') {
  194. title = 'Error';
  195. icono = 'error';
  196. }
  197. if ('{{ label }}' === 'warning') {
  198. title = 'Advertencia';
  199. icono = 'warning';
  200. }
  201. Swal.fire(title, '{{ message }}', icono)
  202.                 </script>
  203.             {% endfor %}
  204.         {% endfor %}
  205.     </body>
  206. </html>