Skip to content

Commit

Permalink
fix: logo focus
Browse files Browse the repository at this point in the history
* correzione tags argomenti e didattica home page

* modifica contenitore logo e correzione focus

* corretto focus del link alla home page nel footer

* modifica contenitore logo e correzione focus

* corretto focus del link alla home page nel footer
  • Loading branch information
rcoopcsc authored Sep 4, 2024
1 parent 45ffbac commit 50f3419
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 27 deletions.
7 changes: 3 additions & 4 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
alt="Finanziato dall' Unione Europea - Next generation EU"
>
<div class="logo-footer">
<a href="<?php echo home_url(); ?>" aria-label="Vai alla homepage" title="Vai alla homepage" class="logo-header">
<?php get_template_part("template-parts/common/logo", null, array( 'ignora_stemma_scuola' => true )); ?>

<h2 class="h1">
<a href="<?php echo home_url(); ?>">
<h2 class="h1">
<span><?php echo dsi_get_option("tipologia_scuola"); ?></span>
<span><strong><?php echo dsi_get_option("nome_scuola"); ?></strong></span>
<span><?php echo dsi_get_option("luogo_scuola"); ?></span>
</a>
</h2>
</a>
</div><!-- /logo-footer -->
</div><!-- /col -->
</div><!-- /row -->
Expand Down
25 changes: 10 additions & 15 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@


<?php $active_page = dsi_get_current_group(); ?>

<div id="main-wrapper" class="push_container">
<?php get_template_part("template-parts/common/skiplink"); ?>
<header id="main-header" class="bg-white">
Expand All @@ -82,16 +81,14 @@
</button>
<!-- Left menu element-->
<div class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left perfect-scrollbar">
<div class="logo-header">
<a href="<?php echo home_url(); ?>" aria-label="Vai alla homepage" title="Vai alla homepage" class="logo-header">
<?php get_template_part("template-parts/common/logo"); ?>
<div class="h1">
<a href="<?php echo home_url(); ?>">
<span><?php echo dsi_get_option("tipologia_scuola"); ?></span>
<span><strong><?php echo dsi_get_option("nome_scuola"); ?></strong></span>
<span class="d-none d-lg-block"><?php echo dsi_get_option("luogo_scuola"); ?></span>
</a>
</div>
</div><!-- /logo-header -->
</a><!-- /logo-header -->
<div class="nav-list-mobile dl-menuwrapper">
<nav aria-label="Principale">
<ul class="dl-menu nav-list nav-list-primary" data-element="menu">
Expand Down Expand Up @@ -225,16 +222,14 @@
</div>
</div>
<!-- End Left menu element-->
<div class="logo-header">
<?php get_template_part("template-parts/common/logo"); ?>
<div class="h1">
<a href="<?php echo home_url(); ?>" aria-label="Vai alla homepage" title="vai alla homepage" >
<span><?php echo dsi_get_option("tipologia_scuola"); ?></span>
<span><strong><?php echo dsi_get_option("nome_scuola"); ?></strong></span>
<span class="d-none d-lg-block"><?php echo dsi_get_option("luogo_scuola"); ?></span>
</a>
</div>
</div><!-- /logo-header -->
<a href="<?php echo home_url(); ?>" aria-label="Vai alla homepage" title="Vai alla homepage" class="logo-header">
<?php get_template_part("template-parts/common/logo"); ?>
<div class="h1">
<span><?php echo dsi_get_option("tipologia_scuola"); ?></span>
<span><strong><?php echo dsi_get_option("nome_scuola"); ?></strong></span>
<span class="d-none d-lg-block"><?php echo dsi_get_option("luogo_scuola"); ?></span>
</div>
</a><!-- /logo-header -->
<div class="sticky-main-nav">

</div><!-- /sticky-main-nav -->
Expand Down
2 changes: 0 additions & 2 deletions template-parts/common/logo.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion template-parts/hero/argomenti.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="row variable-gutters">
<div class="col-md-5">
<div class="hero-title text-left">
<h1 class="p-0 mb-2"><?php _e("Argomenti", "design_scuole_italia"); ?></h1>
<h2 class="p-0 mb-2"><?php _e("Argomenti", "design_scuole_italia"); ?></h2>
<?php if (isset($testo_argomenti) && $testo_argomenti != "") { ?><p class="h4 font-weight-normal"><?php echo $testo_argomenti; ?></p><?php } ?>
</div><!-- /hero-title -->
</div><!-- /col-md-5 -->
Expand Down
2 changes: 1 addition & 1 deletion template-parts/hero/servizi.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="row variable-gutters">
<div class="col-md-5">
<div class="hero-title text-left">
<h1 class="p-0 mb-2"><?php _e("Servizi", "design_scuole_italia"); ?></h1>
<h2 class="p-0 mb-2"><?php _e("Servizi", "design_scuole_italia"); ?></h2>
<?php if ($testo_servizi) { ?>
<p class="h4 font-weight-normal"><?php echo $testo_servizi; ?></p>
<?php } ?>
Expand Down
4 changes: 2 additions & 2 deletions template-parts/home/didattica-cicli-indirizzi.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<div class="col">
<div class="responsive-tabs-wrapper padding-top-200">
<div class="title-large">
<h1 class="h3"><?php _e("La didattica", "design_scuole_italia"); ?></h1>
<h2 class="h4 text-white label-didattica"><?php _e("la nostra offerta formativa", "design_scuole_italia"); ?></h2>
<h2 class="h3"><?php _e("La didattica", "design_scuole_italia"); ?></h2>
<p class="h4 text-white label-didattica"><?php _e("la nostra offerta formativa", "design_scuole_italia"); ?></p>
</div><!-- /title-large -->
<div class="title-small">
<div class="h5"><?php _e("L'Istituto", "design_scuole_italia"); ?></div>
Expand Down
4 changes: 2 additions & 2 deletions template-parts/home/didattica-cicli.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<div class="col">
<div class="responsive-tabs-wrapper padding-top-200">
<div class="title-large">
<h1 class="h3"><?php _e("La didattica", "design_scuole_italia"); ?></h1>
<h2 class="h4 text-white label-didattica"><?php _e("La nostra offerta formativa", "design_scuole_italia"); ?></h2>
<h2 class="h3"><?php _e("La didattica", "design_scuole_italia"); ?></h2>
<p class="h4 text-white label-didattica"><?php _e("La nostra offerta formativa", "design_scuole_italia"); ?></p>
</div><!-- /title-large -->
<div class="title-small">
<div class="h5"><?php
Expand Down

0 comments on commit 50f3419

Please sign in to comment.