diff --git a/site/assets/files/1078/cabecera_004.0x260.jpg b/site/assets/files/1078/cabecera_004.0x260.jpg new file mode 100644 index 0000000..5bc9a68 Binary files /dev/null and b/site/assets/files/1078/cabecera_004.0x260.jpg differ diff --git a/site/assets/files/1078/cabecera_004.jpg b/site/assets/files/1078/cabecera_004.jpg new file mode 100644 index 0000000..bd9b991 Binary files /dev/null and b/site/assets/files/1078/cabecera_004.jpg differ diff --git a/site/assets/files/1082/6e0e6f99-047e-40f8-8859-91f0155f3442.0x260.jpeg b/site/assets/files/1082/6e0e6f99-047e-40f8-8859-91f0155f3442.0x260.jpeg new file mode 100644 index 0000000..770d52e Binary files /dev/null and b/site/assets/files/1082/6e0e6f99-047e-40f8-8859-91f0155f3442.0x260.jpeg differ diff --git a/site/assets/files/1082/6e0e6f99-047e-40f8-8859-91f0155f3442.jpeg b/site/assets/files/1082/6e0e6f99-047e-40f8-8859-91f0155f3442.jpeg new file mode 100644 index 0000000..b31da04 Binary files /dev/null and b/site/assets/files/1082/6e0e6f99-047e-40f8-8859-91f0155f3442.jpeg differ diff --git a/site/assets/files/1084/78229d9b-5703-4da6-9509-5873c0b5aded.0x260.jpeg b/site/assets/files/1084/78229d9b-5703-4da6-9509-5873c0b5aded.0x260.jpeg new file mode 100644 index 0000000..9de6da7 Binary files /dev/null and b/site/assets/files/1084/78229d9b-5703-4da6-9509-5873c0b5aded.0x260.jpeg differ diff --git a/site/assets/files/1084/78229d9b-5703-4da6-9509-5873c0b5aded.jpeg b/site/assets/files/1084/78229d9b-5703-4da6-9509-5873c0b5aded.jpeg new file mode 100644 index 0000000..2616e75 Binary files /dev/null and b/site/assets/files/1084/78229d9b-5703-4da6-9509-5873c0b5aded.jpeg differ diff --git a/site/assets/files/1086/8fd6e5cc-031a-4b42-94b7-65b717ad570f.0x260.jpeg b/site/assets/files/1086/8fd6e5cc-031a-4b42-94b7-65b717ad570f.0x260.jpeg new file mode 100644 index 0000000..01c3d30 Binary files /dev/null and b/site/assets/files/1086/8fd6e5cc-031a-4b42-94b7-65b717ad570f.0x260.jpeg differ diff --git a/site/assets/files/1086/8fd6e5cc-031a-4b42-94b7-65b717ad570f.jpeg b/site/assets/files/1086/8fd6e5cc-031a-4b42-94b7-65b717ad570f.jpeg new file mode 100644 index 0000000..6f54277 Binary files /dev/null and b/site/assets/files/1086/8fd6e5cc-031a-4b42-94b7-65b717ad570f.jpeg differ diff --git a/site/assets/files/1090/a27b7331-bb65-452b-b7ef-6f5850ab353f.0x260.jpeg b/site/assets/files/1090/a27b7331-bb65-452b-b7ef-6f5850ab353f.0x260.jpeg new file mode 100644 index 0000000..5decd52 Binary files /dev/null and b/site/assets/files/1090/a27b7331-bb65-452b-b7ef-6f5850ab353f.0x260.jpeg differ diff --git a/site/assets/files/1090/a27b7331-bb65-452b-b7ef-6f5850ab353f.jpeg b/site/assets/files/1090/a27b7331-bb65-452b-b7ef-6f5850ab353f.jpeg new file mode 100644 index 0000000..9bbb071 Binary files /dev/null and b/site/assets/files/1090/a27b7331-bb65-452b-b7ef-6f5850ab353f.jpeg differ diff --git a/site/assets/files/1092/6e0e6f99-047e-40f8-8859-91f0155f3442.0x260.jpeg b/site/assets/files/1092/6e0e6f99-047e-40f8-8859-91f0155f3442.0x260.jpeg new file mode 100644 index 0000000..770d52e Binary files /dev/null and b/site/assets/files/1092/6e0e6f99-047e-40f8-8859-91f0155f3442.0x260.jpeg differ diff --git a/site/assets/files/1092/6e0e6f99-047e-40f8-8859-91f0155f3442.jpeg b/site/assets/files/1092/6e0e6f99-047e-40f8-8859-91f0155f3442.jpeg new file mode 100644 index 0000000..b31da04 Binary files /dev/null and b/site/assets/files/1092/6e0e6f99-047e-40f8-8859-91f0155f3442.jpeg differ diff --git a/site/assets/files/1092/78229d9b-5703-4da6-9509-5873c0b5aded.0x260.jpeg b/site/assets/files/1092/78229d9b-5703-4da6-9509-5873c0b5aded.0x260.jpeg new file mode 100644 index 0000000..9de6da7 Binary files /dev/null and b/site/assets/files/1092/78229d9b-5703-4da6-9509-5873c0b5aded.0x260.jpeg differ diff --git a/site/assets/files/1092/78229d9b-5703-4da6-9509-5873c0b5aded.jpeg b/site/assets/files/1092/78229d9b-5703-4da6-9509-5873c0b5aded.jpeg new file mode 100644 index 0000000..2616e75 Binary files /dev/null and b/site/assets/files/1092/78229d9b-5703-4da6-9509-5873c0b5aded.jpeg differ diff --git a/site/assets/files/1092/8fd6e5cc-031a-4b42-94b7-65b717ad570f.0x260.jpeg b/site/assets/files/1092/8fd6e5cc-031a-4b42-94b7-65b717ad570f.0x260.jpeg new file mode 100644 index 0000000..01c3d30 Binary files /dev/null and b/site/assets/files/1092/8fd6e5cc-031a-4b42-94b7-65b717ad570f.0x260.jpeg differ diff --git a/site/assets/files/1092/8fd6e5cc-031a-4b42-94b7-65b717ad570f.jpeg b/site/assets/files/1092/8fd6e5cc-031a-4b42-94b7-65b717ad570f.jpeg new file mode 100644 index 0000000..6f54277 Binary files /dev/null and b/site/assets/files/1092/8fd6e5cc-031a-4b42-94b7-65b717ad570f.jpeg differ diff --git a/site/assets/files/1092/a27b7331-bb65-452b-b7ef-6f5850ab353f.0x260.jpeg b/site/assets/files/1092/a27b7331-bb65-452b-b7ef-6f5850ab353f.0x260.jpeg new file mode 100644 index 0000000..5decd52 Binary files /dev/null and b/site/assets/files/1092/a27b7331-bb65-452b-b7ef-6f5850ab353f.0x260.jpeg differ diff --git a/site/assets/files/1092/a27b7331-bb65-452b-b7ef-6f5850ab353f.jpeg b/site/assets/files/1092/a27b7331-bb65-452b-b7ef-6f5850ab353f.jpeg new file mode 100644 index 0000000..9bbb071 Binary files /dev/null and b/site/assets/files/1092/a27b7331-bb65-452b-b7ef-6f5850ab353f.jpeg differ diff --git a/site/assets/files/1092/d03e15bd-b46a-4894-8614-8c749a432b47.0x260.jpeg b/site/assets/files/1092/d03e15bd-b46a-4894-8614-8c749a432b47.0x260.jpeg new file mode 100644 index 0000000..0f95a3a Binary files /dev/null and b/site/assets/files/1092/d03e15bd-b46a-4894-8614-8c749a432b47.0x260.jpeg differ diff --git a/site/assets/files/1092/d03e15bd-b46a-4894-8614-8c749a432b47.jpeg b/site/assets/files/1092/d03e15bd-b46a-4894-8614-8c749a432b47.jpeg new file mode 100644 index 0000000..d2fe6b3 Binary files /dev/null and b/site/assets/files/1092/d03e15bd-b46a-4894-8614-8c749a432b47.jpeg differ diff --git a/site/templates/_func.php b/site/templates/_func.php index 0aeddba..ab09b83 100644 --- a/site/templates/_func.php +++ b/site/templates/_func.php @@ -29,9 +29,11 @@ function getSeccions($seccions) case 'galeria': $saida .= renderGaleria($seccion->titular, $seccion->galeria); break; - case 'texto_imaxe_lateral': + case 'imaxe_texto_lateral': $saida .= renderTextoImaxe($seccion->titular, $seccion->artigo, $seccion->imaxe, $seccion->posicion_imaxe->value); break; + case 'reixa': + $saida .= renderReixa($seccion->titular, $seccion->reixa); } break; case 'repeater_mensaxe_mantemento': @@ -92,7 +94,7 @@ function renderMigasPan($paxina, $separador = '' . "\n"; - $saida .= ' ' . $separador . ' '; + $saida .= ' ' . $separador . ' '; foreach($paxina->parents() as $pai) { $saida .= '' . $pai->title . ' ' . $separador . ' '; @@ -102,7 +104,7 @@ function renderMigasPan($paxina, $separador = 'editURL . '"> ' . _x('Edit', 'Edit page') . ' ]'; endif; $saida .= "\n"; - $saida .= ' '; + $saida .= ' '; return $saida; } @@ -111,9 +113,14 @@ function renderTexto($titulo, $texto) { $saida = ''; - $saida .= '
' . "\n"; - $saida .= $texto . "\n"; - $saida .= '
' . "\n"; + $saida .= '
' . "\n"; + $saida .= ' ' . $texto . "\n"; + $saida .= '
' . "\n"; + + if($titulo) + { + $saida = '
' . "\n" . '

' . $titulo . '

' . "\n" . $texto . "\n" . '
'; + } return $saida; } @@ -152,30 +159,53 @@ function renderGaleria($titulo, $galeria) return $saida; } +function renderReixa($titulo, $reixa) +{ + $saida = ''; + + $saida .= '
' . "\n"; + $saida .= '

'; + if($titulo) + { + $saida .= $titulo; + } + else + { + $saida .= 'Reixa de imaxes'; + } + $saida .= '

' . "\n"; + $saida .= '
' . "\n"; + foreach($reixa as $imaxe) + { + $saida .= '
' . "\n"; + $saida .= ' ' . $imaxe->description . '' . "\n"; + $saida .= '
' . $imaxe->description . '
' . "\n"; + $saida .= '
' . "\n"; + } + $saida .= '
' . "\n"; + $saida .= '
'; + + return $saida; +} + function renderTextoImaxe($titulo, $texto, $imaxe, $posicion) { $saida = ''; - switch ($posicion) + $saida .= '
' . "\n"; + $saida .= '
' . "\n"; + $saida .= ' ' . $imaxe->description . '' . "\n"; + $saida .= '
' . $imaxe->description . '
' . "\n"; + $saida .= '
' . "\n"; + if($texto) { - case 'esquerda': - $saida .= '
'; - $saida .= ''; - $saida .= '
' . $texto . '
'; - $saida .= '
'; - break; - case 'dereita': - $saida .= '
'; - $saida .= '
' . $texto . '
'; - $saida .= ''; - $saida .= '
'; - break; - case 'superior': - $saida .= '
'; - $saida .= ''; - $saida .= '
' . $texto . '
'; - $saida .= '
'; - break; + $saida .= ' ' . $texto . "\n"; + } + $saida .= '
' . "\n"; + + if($titulo) + { + $saida = '
' . "\n" . '

' . $titulo . '

' . "\n" . $saida . '
'; } return $saida; diff --git a/site/templates/css/style.css b/site/templates/css/style.css index bb524d7..c63c4e9 100644 --- a/site/templates/css/style.css +++ b/site/templates/css/style.css @@ -78,9 +78,6 @@ img figure { margin: 0; - - box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), - 0 6px 20px 0 rgba(0, 0, 0, 0.19); } figure figcaption @@ -92,7 +89,7 @@ figure figcaption font-size: 2.5rem; } -figure figcaption p +figure figcaption { text-align: center; } @@ -102,11 +99,9 @@ figure img display: block; width: 100%; - height: 100%; + height: auto; object-fit: cover; - padding: 10px; - background-color: rgb(var(--color_60)); } @@ -412,12 +407,39 @@ div.swiper-slide color: rgb(var(--color_10)); } +div.celda +{ + display: flex; + flex-direction: column; + gap: 20px; + justify-content: center; + + margin-bottom: 30px; +} + +div.celda.superior +{ + align-items: flex-start; + flex-direction: column; +} + +div.celda.superior p +{ + padding-block: 20px; +} + +div.reixa +{ + display: grid; + gap: 20px; + grid-template-columns: 1fr; +} + .contedor { width: 90%; - margin-left: auto; - margin-right: auto; + margin: 0 auto 20px; } .visually-hidden @@ -474,14 +496,6 @@ div.swiper-slide } } -@media (min-width:1024px) -{ - ul#paxinas li a - { - padding: 0; - } -} - @media (min-width: 1024px) { header#cabeceira div.contedor @@ -536,6 +550,11 @@ div.swiper-slide border-left: 0; } + ul#paxinas li a + { + padding: 0; + } + ul#paxinas li:hover, ul#paxinas li.activo { border-left: 0; @@ -546,6 +565,36 @@ div.swiper-slide text-decoration: underline dotted; } + div.celda.esquerda + { + flex-direction: row; + } + + div.celda.dereita + { + flex-direction: row-reverse; + } + + div.celda.esquerda > *, div.celda.dereita > * + { + width: 50%; + } + + div.celda.esquerda p + { + padding-left: 20px; + } + + div.celda.dereita p + { + padding-right: 20px; + } + + div.reixa + { + grid-template-columns: repeat(3, 1fr); + } + .contedor { width: 100%; diff --git a/site/templates/pagina.php b/site/templates/pagina.php index c8b43b9..ed34233 100644 --- a/site/templates/pagina.php +++ b/site/templates/pagina.php @@ -4,8 +4,6 @@ $menu = ''; $contido = ''; $mantemento = $inicio->mantemento; -$contido .= '
'; -$contido .= '

' . $page->title . '

'; if($mantemento && !$user->isLoggedin()) { @@ -13,11 +11,17 @@ if($mantemento && !$user->isLoggedin()) } else { + $menu = renderMenu($inicio->and($inicio->children), 0, 'paxinas'); - $contido .= renderMigasPan($page); + + $contido .= ' ' . renderMigasPan($page) . "\n"; + $contido .= '
' . "\n"; + $contido .= '
' . "\n"; + $contido .= '

' . ucfirst($page->title) . '

' . "\n"; if(count($page->seccions)) { - $contido .= getSeccions($page->seccions); + $contido .= ' ' . getSeccions($page->seccions) . "\n"; } -} -$contido .= '
'; \ No newline at end of file + $contido .= ' ' . "\n"; + $contido .= '
'; +} \ No newline at end of file diff --git a/site/templates/portada.php b/site/templates/portada.php index 16bf08d..2cc67c7 100644 --- a/site/templates/portada.php +++ b/site/templates/portada.php @@ -4,9 +4,11 @@ $menu = ''; $contido = ''; $mantemento = $inicio->mantemento; -$contido .= '
' . "\n"; -$contido .= '

' . ucfirst($inicio->title) . '

' . "\n"; -$contido .= ' ' . renderMigasPan($page) . "\n"; + +$contido .= ' ' . renderMigasPan($page) . "\n"; +$contido .= '
' . "\n"; +$contido .= '
' . "\n"; +$contido .= '

' . ucfirst($inicio->title) . '

' . "\n"; if($mantemento && !$user->isLoggedin()) { @@ -19,4 +21,5 @@ else $contido .= ' ' . getSeccions($inicio->seccions) . "\n"; } +$contido .= '
' . "\n"; $contido .= '
' . "\n"; \ No newline at end of file