diff --git a/site/templates/layout/func.php b/site/templates/layout/func.php index a1768db..e8aff0d 100644 --- a/site/templates/layout/func.php +++ b/site/templates/layout/func.php @@ -84,7 +84,7 @@ function getSeccions($seccions) $saida .= renderOpinions($seccion); break; case 'texto': - $saida .= renderTexto($seccion); + $saida .= renderTexto($seccion, true); break; case 'galeria': $saida .= renderGaleria($seccion); @@ -257,7 +257,7 @@ function renderGaleria($seccion) { $saida = ''; - $saida .= '
' . "\n"; + $saida .= '
' . "\n"; $saida .= '

' . (($seccion->titular) ? $seccion->titular : 'Galeria') . '

' . "\n"; $saida .= '
' . "\n"; foreach($seccion->imaxes as $imaxe) @@ -359,27 +359,16 @@ function renderImaxeTexto($seccion) $saida .= $botons . "\n"; break; case 'esquerda': - $saida .= '
' . "\n"; - $saida .= '
' . "\n"; - $saida .= '
' . "\n"; - $saida .= $imaxe . "\n"; - $saida .= '
' . "\n"; - $saida .= '
' . "\n"; - $saida .= $texto . "\n"; - $saida .= $botons . "\n"; - $saida .= '
' . "\n"; - $saida .= '
' . "\n"; - break; case 'dereita': $saida .= '
' . "\n"; - $saida .= '
' . "\n"; - $saida .= '
' . "\n"; + $saida .= '
' . "\n"; + $saida .= '
' . "\n"; + $saida .= $imaxe . "\n"; + $saida .= '
' . "\n"; + $saida .= '
' . "\n"; $saida .= $texto . "\n"; $saida .= $botons . "\n"; $saida .= '
' . "\n"; - $saida .= '
' . "\n"; - $saida .= $imaxe . "\n"; - $saida .= '
' . "\n"; $saida .= '
' . "\n"; break; } @@ -410,17 +399,17 @@ function renderImaxe($seccion) * @return string */ -function renderTexto($seccion) +function renderTexto($seccion, $centrado = false) { $saida = ''; if($seccion->titular) { - $saida .= '
' . "\n"; + $saida .= '
' . "\n"; $saida .= '

' . $seccion->titular . '

' . "\n"; $saida .= '
' . "\n"; } - $saida .= '
' . "\n"; + $saida .= '
' . "\n"; $saida .= $seccion->artigo . "\n"; $saida .= '
' . "\n"; @@ -530,7 +519,7 @@ function renderElemento($seccion, $posicion = 0) $saida .= ''; break; } - $saida .= '
' . "\n"; + $saida .= '
' . "\n"; $saida .= '
' . "\n"; $saida .= renderTexto($seccion); if($seccion->botons && $seccion->botons->isEmpty()) diff --git a/site/templates/layout/partial/main_foot.php b/site/templates/layout/partial/main_foot.php index 6f33bb3..22f18c2 100644 --- a/site/templates/layout/partial/main_foot.php +++ b/site/templates/layout/partial/main_foot.php @@ -10,8 +10,8 @@ © 2022 .
Todos los derechos reservados.
Logotipo de la Xunta de Galicia