<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Lore Pirri</title>
    <description>Nerd, viaggiatore, e software engineer. Annoto cose che non voglio dimenticare.
</description>
    <link>https://lorepirri.com/indice.html</link>
    <atom:link href="https://lorepirri.com/feed-it.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Fri, 07 Apr 2023 20:40:03 +0000</pubDate>
    <lastBuildDate>Fri, 07 Apr 2023 20:40:03 +0000</lastBuildDate>
    <generator>Jekyll v3.6.3</generator>
    
    
      <item>
        <title>OnePress: aggiungere un menu nel footer</title>
        <description>&lt;p&gt;&lt;em&gt;Aggiornato il 14 Agosto 2018&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;OnePress e’ un tema &lt;em&gt;one-page&lt;/em&gt; per &lt;a href=&quot;https://wordpress.org/&quot; target=&quot;_blank&quot;&gt;WordPress&lt;/a&gt;. I creatori &lt;a href=&quot;https://www.famethemes.com/&quot; target=&quot;_blank&quot;&gt;FameThemes&lt;/a&gt; hanno fatto proprio un bel lavoro con il &lt;a href=&quot;https://www.famethemes.com/themes/onepress/&quot; target=&quot;_blank&quot;&gt;OnePress Theme&lt;/a&gt; e lo considero uno dei temi &lt;em&gt;one-page&lt;/em&gt; migliori che abbia trovato.&lt;/p&gt;

&lt;p&gt;Il tema non ha un secondo menu nel footer.&lt;/p&gt;

&lt;p&gt;Un menu nel footer potrebbe essere molto utile per mostrare il link a pagine come &lt;em&gt;privacy&lt;/em&gt;, &lt;em&gt;cookies policy&lt;/em&gt;, &lt;em&gt;impressum&lt;/em&gt;, &lt;em&gt;FAQs&lt;/em&gt;, ed altre pagine secondarie.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;In questo articolo vi mostrero’ come aggiungere un menu nel footer del tema OnePress per WordPress, usando la tecnica del child theme.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Se non avete ancora creato un child theme per il vostro tema OnePress, avrete bisogno di crearne uno adesso. Per quelli che non hanno mai sentito parlare di child theme per WordPress e di come siano utili per modificare un tema esistente, ho scritto un articolo su come &lt;a href=&quot;/onepress-wp-theme-cambiare-copyright.html&quot;&gt;cambiare il Copyright nel footer&lt;/a&gt; nel quale indico brevemente dove andare a cercare per capire cosa sia un child theme ed in particolare come installare un child theme per OnePress.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;TLTR;&lt;/code&gt;&lt;/strong&gt; &lt;em&gt;Potete saltare l’articolo e passare direttamente alla sezione &lt;a href=&quot;#tltr---riassumendo&quot;&gt;Riassumendo&lt;/a&gt; alla fine.&lt;/em&gt;&lt;/p&gt;

&lt;h1 id=&quot;onepress-plus-theme&quot;&gt;OnePress Plus Theme&lt;/h1&gt;

&lt;p&gt;Vi suggerisco caldamente di acquistare la versione completa &lt;a href=&quot;https://www.famethemes.com/plugins/onepress-plus/&quot; target=&quot;_blank&quot;&gt;OnePress Plus Theme&lt;/a&gt; in quanto ha molte funzionalita’ che saranno utili a voi o ai &lt;em&gt;vostri clienti&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/img/onepress-desktop.jpg&quot; alt=&quot;OnePress Plus Theme&quot; title=&quot;OnePress Plus Theme&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;installare-il-child-theme&quot;&gt;Installare il Child Theme&lt;/h1&gt;

&lt;p&gt;Per quelli che non hanno mai usato un child theme, qui di seguito traduco la &lt;a href=&quot;https://codex.wordpress.org/Child_Themes/&quot; target=&quot;_blank&quot;&gt;definizione ufficiale data da WordPress&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;“Un Child Theme e’ un tema che eredita le funzionalita’ e gli stili di un altro tema, chiamato tema genitore. Il metodo del Child Theme e’ il modo raccomandato per modificare un tema gia’ esistente.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Quindi se non avete gia’ creato un Child Theme per il vostro tema OnePress, dovrete crearne uno ora.&lt;/p&gt;

&lt;p&gt;Maggiori informazioni su come creare un &lt;a href=&quot;https://codex.wordpress.org/Child_Themes/&quot; target=&quot;_blank&quot;&gt;Child Theme&lt;/a&gt; da zero (in inglese), oppure potete scaricarne uno gia’ fatto qui &lt;a href=&quot;http://docs.famethemes.com/article/59-how-to-add-new-section-via-child-theme-in-onepress&quot; target=&quot;_blank&quot;&gt;OnePress Child Theme&lt;/a&gt;.&lt;/p&gt;

&lt;h1 id=&quot;aggiungere-il-menu&quot;&gt;Aggiungere il menu&lt;/h1&gt;

&lt;p&gt;OnePress ha un solo menu, definito come &lt;code class=&quot;highlighter-rouge&quot;&gt;Primary Navigation&lt;/code&gt;, dunque dobbiamo aggiungere un altra definizione per un altro menu di &lt;code class=&quot;highlighter-rouge&quot;&gt;Secondary Navigation&lt;/code&gt;, e poi definire dove andra’ visualizzato e come.&lt;/p&gt;

&lt;p&gt;Aggiungere un altro menu e’ facile, basta aggiungere in fondo al file &lt;code class=&quot;highlighter-rouge&quot;&gt;functions.php&lt;/code&gt; del vostro child theme questo codice:&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;// Add two menus: this theme uses wp_nav_menu() in two locations.  
&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;register_nav_menus&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;  
  &lt;span class=&quot;s1&quot;&gt;'primary'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'Primary Navigation'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress-child'&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;  
  &lt;span class=&quot;s1&quot;&gt;'secondary'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Secondary Navigation'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress-child'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;  
&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Nota:&lt;/strong&gt; se avete rinominato il vostro child theme, sostituite &lt;code class=&quot;highlighter-rouge&quot;&gt;onepress-child&lt;/code&gt; con lo slug del vostro tema.&lt;/p&gt;

&lt;p&gt;Vogliamo visualizzare il secondo menu nel footer, quindi come gia’ spiegato nell’articolo su &lt;a href=&quot;/onepress-wp-theme-cambiare-copyright.html&quot;&gt;cambiare il Copyright nel footer&lt;/a&gt;, dobbiamo sovrascrivere la funzione responsabile per visualizzare il footer della pagina.&lt;/p&gt;

&lt;p&gt;Dunque, dobbiamo aggiungere in fondo al file &lt;code class=&quot;highlighter-rouge&quot;&gt;functions.php&lt;/code&gt; del vostro child theme, questa la funzione, che ha gia’ il codice per visualizzare il secondo menu, contenuto tra i commenti &lt;code class=&quot;highlighter-rouge&quot;&gt;shows our custom menu&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;// Customize the footer area (show also the secondary menu)
if ( ! function_exists( 'onepress_footer_site_info' ) ) {
    /**
     * Add Copyright and Credit text to footer
     * @since 1.1.3
     */
    function onepress_footer_site_info()
    {
        ?&amp;gt;

        &lt;span class=&quot;c&quot;&gt;&amp;lt;!-- shows our custom menu --&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php if( has_nav_menu( 'secondary', 'onepress-child' ) ) {
            ?&amp;gt;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;footer-menu-container&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php
            wp_nav_menu( array( 'theme_location' =&amp;gt; 'secondary' ) );
            ?&amp;gt;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php
        } ?&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;c&quot;&gt;&amp;lt;!-- end: shows our custom menu --&amp;gt;&lt;/span&gt;

        &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Copyright %1$s %2$s %3$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;amp;copy;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Y'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;get_bloginfo&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()));&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;nt&quot;&gt;&amp;lt;span&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;sep&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;ni&quot;&gt;&amp;amp;ndash;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'%1$s theme by %2$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;lt;a href=&quot;'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'https://www.famethemes.com/themes/onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&quot;&amp;gt;OnePress&amp;lt;/a&amp;gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'FameThemes'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Notare che se voi aveste gia’ modificato il Copyright, allora dovrete aggiornare anche quella parte, oppure semplicemente copiate ed incollate questo codice all’interno della definizione della vostra funzione &lt;code class=&quot;highlighter-rouge&quot;&gt;onepress_footer_site_info()&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;&amp;lt;!-- shows our custom menu --&amp;gt;&lt;/span&gt;
&lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;has_nav_menu&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'secondary'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress-child'&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;footer-menu-container&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;wp_nav_menu&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'theme_location'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'secondary'&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;&amp;lt;!-- end: shows our custom menu --&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;styling-del-menu-con-css&quot;&gt;Styling del menu con CSS&lt;/h1&gt;

&lt;p&gt;A questo punto il secondo menu viene visualizzato dalla funzione standard &lt;code class=&quot;highlighter-rouge&quot;&gt;wp_nav_menu( ... );&lt;/code&gt; quindi il suo risultato, racchiuso nella classe &lt;code class=&quot;highlighter-rouge&quot;&gt;footer-menu-container&lt;/code&gt;, deve essere stilizzato per essere visualizzato in linea, e con un adeguato separatore tra le voci di menu.&lt;/p&gt;

&lt;p&gt;Per questo motivo, aggiungiamo il seguente codice alla fine del file &lt;code class=&quot;highlighter-rouge&quot;&gt;style.css&lt;/code&gt; del child theme:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-CSS&quot;&gt;.footer-menu-container { display: block; width:100%; margin-bottom: 12px; }
.footer-menu-container ul { display: inline; padding-left: 0px; }
.footer-menu-container li { list-style-type: none; display: inline; }

.footer-menu-container li:before {
	content: &quot;\007C&quot;;
	font-family: FontAwesome;
    margin-left: 6px;
	margin-right: 8px;
}

.footer-menu-container li:first-of-type:before {
	content: none;
	margin-right: 0;
}

.footer-menu-container li:last-of-type {
	margin-right: 0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;h1 id=&quot;wordpress-dashboard&quot;&gt;WordPress Dashboard&lt;/h1&gt;

&lt;p&gt;Andate sulla vostra &lt;em&gt;Dashboard&lt;/em&gt; di &lt;em&gt;WordPress&lt;/em&gt;, create un menu chiamato ad esempio ‘Footer Menu’ con un po’ di items, e posizionatelo in ‘Secondary Navigation’.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/img/onepress-footer-menu-dashboard.png&quot; alt=&quot;Footer creation&quot; title=&quot;Footer creation from the dashboard&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Dovreste ora avere un menu nel footer simile a questo:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/img/onepress-footer-menu-example.png&quot; alt=&quot;Footer menu example&quot; title=&quot;Footer menu example&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;tltr---riassumendo&quot;&gt;TLTR - Riassumendo&lt;/h1&gt;

&lt;p&gt;Per riassumere in pochi passi:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Creare un child theme per il vostro tema OnePress&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Aggiungere questo codice alla fine del file &lt;code class=&quot;highlighter-rouge&quot;&gt;functions.php&lt;/code&gt; del child theme&lt;/p&gt;

    &lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; // Add two menus: this theme uses wp_nav_menu() in two locations.  
 register_nav_menus( array(  
   'primary' =&amp;gt; __( 'Primary Navigation', 'onepress-child' ),  
   'secondary' =&amp;gt; __('Secondary Navigation', 'onepress-child')  
 ) );

 // Customize the footer area (show also the secondary menu)
 if ( ! function_exists( 'onepress_footer_site_info' ) ) {
     /**
      * Add Copyright and Credit text to footer
      * @since 1.1.3
      */
     function onepress_footer_site_info()
     {
         ?&amp;gt;

         &lt;span class=&quot;c&quot;&gt;&amp;lt;!-- shows our custom menu --&amp;gt;&lt;/span&gt;
         &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php if( has_nav_menu( 'secondary', 'onepress-child' ) ) {
             ?&amp;gt;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;footer-menu-container&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php
             wp_nav_menu( array( 'theme_location' =&amp;gt; 'secondary' ) );
             ?&amp;gt;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php
         } ?&amp;gt;&lt;/span&gt;
         &lt;span class=&quot;c&quot;&gt;&amp;lt;!-- end: shows our custom menu --&amp;gt;&lt;/span&gt;

         &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Copyright %1$s %2$s %3$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;amp;copy;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Y'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;get_bloginfo&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()));&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
         &lt;span class=&quot;nt&quot;&gt;&amp;lt;span&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;sep&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;ni&quot;&gt;&amp;amp;ndash;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
         &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'%1$s theme by %2$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;lt;a href=&quot;'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'https://www.famethemes.com/themes/onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&quot;&amp;gt;OnePress&amp;lt;/a&amp;gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'FameThemes'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
         &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt;
     &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
 &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Sostituite &lt;code class=&quot;highlighter-rouge&quot;&gt;onepress-child&lt;/code&gt; con lo slug del vostro tema., se avete rinominato il vostro child theme.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Aggiungere questo codice alla fine del file &lt;code class=&quot;highlighter-rouge&quot;&gt;style.css&lt;/code&gt; del child theme:&lt;/p&gt;

    &lt;pre&gt;&lt;code class=&quot;language-CSS&quot;&gt; .footer-menu-container { display: block; width:100%; margin-bottom: 12px; }
 .footer-menu-container ul { display: inline; padding-left: 0px; }
 .footer-menu-container li { list-style-type: none; display: inline; }

 .footer-menu-container li:before {
 	content: &quot;\007C&quot;;
 	font-family: FontAwesome;
     margin-left: 6px;
 	margin-right: 8px;
 }

 .footer-menu-container li:first-of-type:before {
 	content: none;
 	margin-right: 0;
 }

 .footer-menu-container li:last-of-type {
 	margin-right: 0;
 }
&lt;/code&gt;&lt;/pre&gt;
  &lt;/li&gt;
  &lt;li&gt;Fine. Andate sulla vostra &lt;em&gt;Dashboard&lt;/em&gt; di &lt;em&gt;WordPress&lt;/em&gt;, create un menu chiamato ad esempio ‘Footer Menu’ con un po’ di items, e posizionatelo in ‘Secondary Navigation’.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Se questo articolo vi e’ stato utile, per favore premete il tasto Mi Piace o Condividi! Se avete dei suggerimenti o avete trovato un errore, per favore Commentate qua sotto, oppure Contattatemi!&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Fri, 29 Sep 2017 00:00:00 +0000</pubDate>
        <link>https://lorepirri.com/onepress-wp-theme-aggiungere-footer-menu.html</link>
        <guid isPermaLink="true">https://lorepirri.com/onepress-wp-theme-aggiungere-footer-menu.html</guid>
        
        <category>onepress</category>
        
        <category>wordpress</category>
        
        <category>tema wordpress</category>
        
        <category>secondo menu</category>
        
        <category>footer menu</category>
        
        <category>footer</category>
        
        <category>menu</category>
        
        <category>php</category>
        
        
        <category>tech</category>
        
      </item>
    
      <item>
        <title>OnePress: cambiare il Copyright nel footer</title>
        <description>&lt;p&gt;OnePress e’ un tema &lt;em&gt;one-page&lt;/em&gt; per &lt;a href=&quot;https://wordpress.org/&quot; target=&quot;_blank&quot;&gt;WordPress&lt;/a&gt;. I creatori &lt;a href=&quot;https://www.famethemes.com/&quot; target=&quot;_blank&quot;&gt;FameThemes&lt;/a&gt; hanno fatto proprio un bel lavoro con il &lt;a href=&quot;https://www.famethemes.com/themes/onepress/&quot; target=&quot;_blank&quot;&gt;OnePress Theme&lt;/a&gt; e lo considero uno dei temi &lt;em&gt;one-page&lt;/em&gt; migliori che abbia trovato.&lt;/p&gt;

&lt;p&gt;Ho usato questo tema configurandolo per usare solo un’immagine di logo, e quindi il nome del sito non compariva nel messaggio di Copyright in fondo al footer.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;In questo articolo vi spieghero’ come risolvere questo problema facilmente, senza modificare alcun file del tema, ma usando la tecnica del child theme.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;TLTR;&lt;/code&gt;&lt;/strong&gt; &lt;em&gt;Potete saltare l’articolo e passare direttamente alla sezione &lt;a href=&quot;#tltr---riassumendo&quot;&gt;Riassumendo&lt;/a&gt; alla fine.&lt;/em&gt;&lt;/p&gt;

&lt;h1 id=&quot;onepress-plus-theme&quot;&gt;OnePress Plus Theme&lt;/h1&gt;

&lt;p&gt;Vi suggerisco caldamente di acquistare la versione completa &lt;a href=&quot;https://www.famethemes.com/plugins/onepress-plus/&quot; target=&quot;_blank&quot;&gt;OnePress Plus Theme&lt;/a&gt; in quanto ha molte funzionalita’ che saranno utili a voi o ai &lt;em&gt;vostri clienti&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/img/onepress-plus-desktop.jpg&quot; alt=&quot;alt text&quot; title=&quot;OnePress Plus Theme&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;installare-il-child-theme&quot;&gt;Installare il Child Theme&lt;/h1&gt;

&lt;p&gt;Per quelli che non hanno mai usato un child theme, qui di seguito traduco la &lt;a href=&quot;https://codex.wordpress.org/Child_Themes/&quot; target=&quot;_blank&quot;&gt;definizione ufficiale data da WordPress&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;“Un Child Theme e’ un tema che eredita le funzionalita’ e gli stili di un altro tema, chiamato tema genitore. Il metodo del Child Theme e’ il modo raccomandato per modificare un tema gia’ esistente.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Quindi se non avete gia’ creato un Child Theme per il vostro tema OnePress, dovrete crearne uno ora.&lt;/p&gt;

&lt;p&gt;Maggiori informazioni su come creare un &lt;a href=&quot;https://codex.wordpress.org/Child_Themes/&quot; target=&quot;_blank&quot;&gt;Child Theme&lt;/a&gt; da zero (in inglese), oppure potete scaricarne uno gia’ fatto qui &lt;a href=&quot;http://docs.famethemes.com/article/59-how-to-add-new-section-via-child-theme-in-onepress&quot; target=&quot;_blank&quot;&gt;OnePress Child Theme&lt;/a&gt;.&lt;/p&gt;

&lt;h1 id=&quot;cambiare-il-copyright&quot;&gt;Cambiare il Copyright&lt;/h1&gt;

&lt;p&gt;Ho letto il suggerimento della documentazione ufficiale del tema OnePress &lt;a href=&quot;http://docs.famethemes.com/article/59-how-to-add-new-section-via-child-theme-in-onepress&quot; target=&quot;_blank&quot;&gt;Aggiungi una nuova sezione&lt;/a&gt; (inglese) usando un child theme, ed invece ho modificato il Copyright nel footer, usando lo stesso metodo: sovrascrivere la funzione che visualizza le informazioni riguardo al footer (in questo caso).&lt;/p&gt;

&lt;p&gt;Tale funzione viene creata eventualmente, se non gia’ esistente, nel file
&lt;a href=&quot;https://github.com/FameThemes/onepress/blob/master/inc/template-tags.php&quot; target=&quot;_blank&quot;&gt;inc/template-tags.php&lt;/a&gt; e puo’ quindi essere sovrascritta creandone una con lo stesso nome nel file &lt;code class=&quot;highlighter-rouge&quot;&gt;functions.php&lt;/code&gt; del vostro child theme.&lt;/p&gt;

&lt;p&gt;In particolare, questa e’ la funzione che potete aggiungere in fondo al file &lt;code class=&quot;highlighter-rouge&quot;&gt;functions.php&lt;/code&gt; del vostro child theme&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;if ( ! function_exists( 'onepress_footer_site_info' ) ) {
    /**
     * Add Copyright and Credit text to footer
     * @since 1.1.3
     */
    function onepress_footer_site_info()
    {
        ?&amp;gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Copyright %1$s %2$s %3$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;amp;copy;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Y'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;get_bloginfo&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()));&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;nt&quot;&gt;&amp;lt;span&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;sep&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;ni&quot;&gt;&amp;amp;ndash;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'%1$s theme by %2$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;lt;a href=&quot;'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'https://www.famethemes.com/themes/onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&quot;&amp;gt;OnePress&amp;lt;/a&amp;gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'FameThemes'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Notare che ho rimosso la chiamata alla funzione &lt;code class=&quot;highlighter-rouge&quot;&gt;add_action()&lt;/code&gt; che normalmente verrebbe chiamata giusto dopo l’ultima parentesi graffa chiusa. Non vi e’ alcun bisogno di chiamarla nuovamente, in quanto verra’ comunque invocata nel file &lt;a href=&quot;https://github.com/FameThemes/onepress/blob/master/inc/template-tags.php&quot; target=&quot;_blank&quot;&gt;inc/template-tags.php&lt;/a&gt; del tema.&lt;/p&gt;

&lt;p&gt;Come si puo’ vedere nella funzione, il nome della ditta alla quale apparterrebbe il sito web e’ dato dal valore restituito dalla funzione &lt;code class=&quot;highlighter-rouge&quot;&gt;get_bloginfo()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Questo valore sarebbe vuoto, nel caso in cui si configurasse il tema usando solo un’immagine di logo (senza specificare nome e tagline).&lt;/p&gt;

&lt;p&gt;Per questa ragione, bisognerebbe cambiare la chiamata &lt;code class=&quot;highlighter-rouge&quot;&gt;get_bloginfo()&lt;/code&gt; con una stringa qualsiasi (tra virgolette), quindi ad esempio la linea&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Copyright %1$s %2$s %3$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;amp;copy;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Y'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;get_bloginfo&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()));&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;diventerebbe qualcosa come&lt;/p&gt;

&lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Copyright %1$s %2$s %3$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;amp;copy;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Y'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Lore Pirri. All Rights Reserved.'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;per ottenere qualcosa come “&lt;em&gt;Copyright © 2017 Lore Pirri. All Rights Reserved.&lt;/em&gt;” nel footer del vostro sito web.&lt;/p&gt;

&lt;h1 id=&quot;tltr---riassumendo&quot;&gt;TLTR - Riassumendo&lt;/h1&gt;

&lt;p&gt;Per riassumere in pochi passi:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Creare un child theme per il vostro tema OnePress&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Aggiungere questa funzione alla fine del file &lt;code class=&quot;highlighter-rouge&quot;&gt;functions.php&lt;/code&gt; del child theme&lt;/p&gt;

    &lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; if ( ! function_exists( 'onepress_footer_site_info' ) ) {
     /**
      * Add Copyright and Credit text to footer
      * @since 1.1.3
      */
     function onepress_footer_site_info()
     {
         ?&amp;gt;
         &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Copyright %1$s %2$s %3$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;amp;copy;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Y'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;get_bloginfo&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()));&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
         &lt;span class=&quot;nt&quot;&gt;&amp;lt;span&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;sep&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;ni&quot;&gt;&amp;amp;ndash;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
         &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'%1$s theme by %2$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;lt;a href=&quot;'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'https://www.famethemes.com/themes/onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&quot;&amp;gt;OnePress&amp;lt;/a&amp;gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'FameThemes'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
         &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt;
     &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
   &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Sostituire il codice &lt;code class=&quot;highlighter-rouge&quot;&gt;get_bloginfo()&lt;/code&gt; con del testo tra apici singoli, ad esempio &lt;code class=&quot;highlighter-rouge&quot;&gt;'Lore Pirri. All Rights Reserved.'&lt;/code&gt;.&lt;/p&gt;

    &lt;div class=&quot;language-php highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; &lt;span class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;esc_html__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Copyright %1$s %2$s %3$s'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'onepress'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'&amp;amp;copy;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Y'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;esc_attr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'Lore Pirri. All Rights Reserved.'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Fine.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Se questo articolo vi e’ stato utile, per favore premete il tasto Mi Piace o Condividi! Se avete dei suggerimenti o avete trovato un errore, per favore Commentate qua sotto, oppure Contattatemi!&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Mon, 25 Sep 2017 00:00:00 +0000</pubDate>
        <link>https://lorepirri.com/onepress-wp-theme-cambiare-copyright.html</link>
        <guid isPermaLink="true">https://lorepirri.com/onepress-wp-theme-cambiare-copyright.html</guid>
        
        <category>onepress</category>
        
        <category>wordpress</category>
        
        <category>tema wordpress</category>
        
        <category>php</category>
        
        
        <category>tech</category>
        
      </item>
    
      <item>
        <title>Gioco di Simon</title>
        <description>&lt;p&gt;&lt;img src=&quot;/assets/img/simon-game.png&quot; alt=&quot;Gioco di Simon&quot; title=&quot;Gioco di Simon&quot; class=&quot;center-image&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Questo e’ un progetto che ho fatto durante il &lt;a href=&quot;https://www.freecodecamp.org&quot; target=&quot;_blank&quot;&gt;freeCodeCamp&lt;/a&gt; per ottenere il mio &lt;a href=&quot;https://www.freecodecamp.org/lorepirri/front-end-certification&quot;&gt;FCC Front End Certificate&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Le specifiche complete sono sul &lt;a href=&quot;https://www.freecodecamp.org/challenges/build-a-simon-game&quot; target=&quot;_blank&quot;&gt;FCC Simon Game&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;obiettivo&quot;&gt;Obiettivo&lt;/h3&gt;
&lt;p&gt;Costruire un’applicazione CodePen.io simile in funzionalita’ a questo &lt;a href=&quot;https://codepen.io/FreeCodeCamp/full/obYBjE&quot; target=&quot;_blank&quot;&gt;demo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Soddisfare le User Stories di sotto. &lt;em&gt;Usare qualsiasi libreria o APIs che si voglia. Dare uno stile personale all’applicazione.&lt;/em&gt;&lt;/p&gt;

&lt;h3 id=&quot;user-stories&quot;&gt;User Stories&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;Mi viene presentata una successione di pulsanti premuti casualmente.&lt;/li&gt;
  &lt;li&gt;Ogni volta che premo la serie di pulsanti correttamente, mi viene presentata la stessa serie di pulsanti premuti piu’ un passo aggiuntivo.&lt;/li&gt;
  &lt;li&gt;Sento un suono che corrisponde ad ogni bottone, sia quando la serie di bottoni viene mostrata, e sia quando premo personalmente un pulsante.&lt;/li&gt;
  &lt;li&gt;Se premo il bottone sbagliato ne ricevo notifica, e la serie di bottoni ricomincia da capo a farmi vedere il pattern di pulsanti e posso ricominciare da capo.&lt;/li&gt;
  &lt;li&gt;Posso vedere quanti passi ci sono nella serie corrente.&lt;/li&gt;
  &lt;li&gt;Se voglio ricominciare, posso premere un pulsante ed il gioco ricominciera’ da capo al passo iniziale.&lt;/li&gt;
  &lt;li&gt;Posso giocare in modalita’ strict mode, nella quale se sbaglio un pulsante vengo notificato dell’errore ed il giorno ricomincia da capo con una nuova sequenza di pulsanti.&lt;/li&gt;
  &lt;li&gt;Posso vincere il gioco azzeccando una sequenza di pulsanti lunga 20 passi correttamente. Vengo notificato della mia vittoria ed il gioco comincia nuovamente.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;codepen&quot;&gt;CodePen&lt;/h3&gt;
&lt;p&gt;Questa e’ la mia solutione, usando React su CodePen.&lt;/p&gt;

&lt;p data-height=&quot;550&quot; data-theme-id=&quot;light&quot; data-slug-hash=&quot;XgejgW&quot; data-default-tab=&quot;js,result&quot; data-user=&quot;lorepirri&quot; data-embed-version=&quot;2&quot; data-pen-title=&quot;React Simon Game&quot; class=&quot;codepen&quot;&gt;See the Pen &lt;a href=&quot;https://codepen.io/lorepirri/pen/XgejgW/&quot;&gt;React Simon Game&lt;/a&gt; by Lorenzo (&lt;a href=&quot;https://codepen.io/lorepirri&quot;&gt;@lorepirri&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io&quot;&gt;CodePen&lt;/a&gt;.&lt;/p&gt;
&lt;script async=&quot;&quot; src=&quot;https://production-assets.codepen.io/assets/embed/ei.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Se questo articolo vi e’ stato utile, per favore premete il tasto Mi Piace o Condividi! Se avete dei suggerimenti o avete trovato un errore, per favore Commentate qua sotto, oppure Contattatemi!&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Mon, 03 Jul 2017 00:00:00 +0000</pubDate>
        <link>https://lorepirri.com/gioco-di-simon.html</link>
        <guid isPermaLink="true">https://lorepirri.com/gioco-di-simon.html</guid>
        
        <category>gioco di simon</category>
        
        <category>reactjs</category>
        
        <category>javascript</category>
        
        <category>freecodecamp</category>
        
        <category>codepen</category>
        
        
        <category>projects</category>
        
      </item>
    
      <item>
        <title>Gioco del Tris</title>
        <description>&lt;p&gt;&lt;img src=&quot;/assets/img/tic-tac-toe-game.png&quot; alt=&quot;Gioco del Tris&quot; title=&quot;Gioco del Tris&quot; class=&quot;center-image&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Questo e’ un progetto che ho fatto durante il &lt;a href=&quot;https://www.freecodecamp.org&quot; target=&quot;_blank&quot;&gt;freeCodeCamp&lt;/a&gt; per ottenere il mio &lt;a href=&quot;https://www.freecodecamp.org/lorepirri/front-end-certification&quot;&gt;FCC Front End Certificate&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Le specifiche complete sono sul &lt;a href=&quot;https://www.freecodecamp.org/challenges/build-a-tic-tac-toe-game&quot; target=&quot;_blank&quot;&gt;FCC Tic Tac Toe Game&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;obiettivo&quot;&gt;Obiettivo&lt;/h3&gt;
&lt;p&gt;Costruire un’applicazione CodePen.io simile in funzionalita’ a &lt;a href=&quot;https://codepen.io/FreeCodeCamp/full/KzXQgy/&quot; target=&quot;_blank&quot;&gt;questa&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Soddisfare le User Stories di sotto. &lt;em&gt;Usare qualsiasi libreria o APIs che si voglia. Dare uno stile personale all’applicazione.&lt;/em&gt;&lt;/p&gt;

&lt;h3 id=&quot;user-stories&quot;&gt;User Stories&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;Posso giocare il gioco del Tris contro il computer.&lt;/li&gt;
  &lt;li&gt;Il gioco si resetta appena uno dei due giocatori vince.&lt;/li&gt;
  &lt;li&gt;Posso scegliere se giocare con la X o con la O.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;codepen&quot;&gt;CodePen&lt;/h3&gt;
&lt;p&gt;Questa e’ la mia solutione, usando React su CodePen.&lt;/p&gt;

&lt;p data-height=&quot;400&quot; data-theme-id=&quot;light&quot; data-slug-hash=&quot;XgejgW&quot; data-default-tab=&quot;js,result&quot; data-user=&quot;lorepirri&quot; data-embed-version=&quot;2&quot; data-pen-title=&quot;React Tic Tac Toe Game&quot; class=&quot;codepen&quot;&gt;See the Pen &lt;a href=&quot;https://codepen.io/lorepirri/pen/XgejgW/&quot;&gt;React Tic Tac Toe Game&lt;/a&gt; by Lorenzo (&lt;a href=&quot;https://codepen.io/lorepirri&quot;&gt;@lorepirri&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io&quot;&gt;CodePen&lt;/a&gt;.&lt;/p&gt;
&lt;script async=&quot;&quot; src=&quot;https://production-assets.codepen.io/assets/embed/ei.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Se questo articolo vi e’ stato utile, per favore premete il tasto Mi Piace o Condividi! Se avete dei suggerimenti o avete trovato un errore, per favore Commentate qua sotto, oppure Contattatemi!&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Fri, 30 Jun 2017 00:00:00 +0000</pubDate>
        <link>https://lorepirri.com/gioco-del-tris.html</link>
        <guid isPermaLink="true">https://lorepirri.com/gioco-del-tris.html</guid>
        
        <category>gioco del tris</category>
        
        <category>reactjs</category>
        
        <category>javascript</category>
        
        <category>freecodecamp</category>
        
        <category>codepen</category>
        
        
        <category>projects</category>
        
      </item>
    
      <item>
        <title>Pomodoro Timer</title>
        <description>&lt;p&gt;&lt;img src=&quot;/assets/img/pomodoro-timer.png&quot; alt=&quot;Pomodoro Timer&quot; title=&quot;Pomodoro Timer&quot; class=&quot;center-image&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Questo e’ un progetto che ho fatto durante il &lt;a href=&quot;https://www.freecodecamp.org&quot; target=&quot;_blank&quot;&gt;freeCodeCamp&lt;/a&gt; per ottenere il mio &lt;a href=&quot;https://www.freecodecamp.org/lorepirri/front-end-certification&quot;&gt;FCC Front End Certificate&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Le specifiche complete sono sul &lt;a href=&quot;https://www.freecodecamp.org/challenges/build-a-pomodoro-clock&quot; target=&quot;_blank&quot;&gt;FCC Pomodoro Clock&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;obiettivo&quot;&gt;Obiettivo&lt;/h3&gt;
&lt;p&gt;Costruire un’applicazione CodePen.io simile in funzionalita’ a &lt;a href=&quot;https://codepen.io/FreeCodeCamp/full/aNyxXR/&quot; target=&quot;_blank&quot;&gt;questa&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Soddisfare le User Stories di sotto. &lt;em&gt;Usare qualsiasi libreria o APIs che si voglia. Dare uno stile personale all’applicazione.&lt;/em&gt;&lt;/p&gt;

&lt;h3 id=&quot;user-stories&quot;&gt;User Stories&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;Posso far partire un pomodoro di 25 minuti, e un allarme deve suonare dopo che sono trascorsi 25 minuti.&lt;/li&gt;
  &lt;li&gt;Posso resettare il timer per il prossimo pomodoro.&lt;/li&gt;
  &lt;li&gt;Posso personalizzare la lunghezza in minuti del pomodoro.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;codepen&quot;&gt;CodePen&lt;/h3&gt;
&lt;p&gt;Questa e’ la mia solutione, usando React su CodePen.&lt;/p&gt;

&lt;p data-height=&quot;500&quot; data-theme-id=&quot;light&quot; data-slug-hash=&quot;BZddjV&quot; data-default-tab=&quot;js,result&quot; data-user=&quot;lorepirri&quot; data-embed-version=&quot;2&quot; data-pen-title=&quot;React Pomodoro Clock&quot; class=&quot;codepen&quot;&gt;See the Pen &lt;a href=&quot;https://codepen.io/lorepirri/pen/BZddjV/&quot;&gt;React Pomodoro Clock&lt;/a&gt; by Lorenzo (&lt;a href=&quot;https://codepen.io/lorepirri&quot;&gt;@lorepirri&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io&quot;&gt;CodePen&lt;/a&gt;.&lt;/p&gt;
&lt;script async=&quot;&quot; src=&quot;https://production-assets.codepen.io/assets/embed/ei.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Se questo articolo vi e’ stato utile, per favore premete il tasto Mi Piace o Condividi! Se avete dei suggerimenti o avete trovato un errore, per favore Commentate qua sotto, oppure Contattatemi!&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Sat, 24 Jun 2017 00:00:00 +0000</pubDate>
        <link>https://lorepirri.com/timer-pomodoro.html</link>
        <guid isPermaLink="true">https://lorepirri.com/timer-pomodoro.html</guid>
        
        <category>pomodoro timer</category>
        
        <category>reactjs</category>
        
        <category>javascript</category>
        
        <category>freecodecamp</category>
        
        <category>codepen</category>
        
        
        <category>projects</category>
        
      </item>
    
      <item>
        <title>Calcolatrice Javascript</title>
        <description>&lt;p&gt;&lt;img src=&quot;/assets/img/javascript-calculator.png&quot; alt=&quot;Calcolatrice Javascript&quot; title=&quot;Calcolatrice Javascript&quot; class=&quot;center-image&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Questo e’ un progetto che ho fatto durante il &lt;a href=&quot;https://www.freecodecamp.org&quot; target=&quot;_blank&quot;&gt;freeCodeCamp&lt;/a&gt; per ottenere il mio &lt;a href=&quot;https://www.freecodecamp.org/lorepirri/front-end-certification&quot;&gt;FCC Front End Certificate&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Le specifiche complete sono sul &lt;a href=&quot;https://www.freecodecamp.org/challenges/build-a-javascript-calculator&quot; target=&quot;_blank&quot;&gt;FCC JavaScript Calculator&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;obiettivo&quot;&gt;Obiettivo&lt;/h3&gt;
&lt;p&gt;Costruire un’applicazione CodePen.io simile in funzionalita’ a &lt;a href=&quot;https://codepen.io/FreeCodeCamp/full/rLJZrA/&quot; target=&quot;_blank&quot;&gt;questa&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Soddisfare le User Stories di sotto. &lt;em&gt;Usare qualsiasi libreria o APIs che si voglia. Dare uno stile personale all’applicazione.&lt;/em&gt;&lt;/p&gt;

&lt;h3 id=&quot;user-stories&quot;&gt;User Stories&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;Posso aggiungere, sottrarre, moltiplicare, e dividere due numeri.&lt;/li&gt;
  &lt;li&gt;Posso azzerare la calcolatrice con un pulsante.&lt;/li&gt;
  &lt;li&gt;Posso accumulare operazioni matematiche fino a che non viene premuto il pulsante per l’uguale, ed il calcolatore mostra il risultato corretto.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;codepen&quot;&gt;CodePen&lt;/h3&gt;
&lt;p&gt;Questa e’ la mia solutione, usando React su CodePen.&lt;/p&gt;

&lt;p data-height=&quot;400&quot; data-theme-id=&quot;light&quot; data-slug-hash=&quot;KqqobJ&quot; data-default-tab=&quot;js,result&quot; data-user=&quot;lorepirri&quot; data-embed-version=&quot;2&quot; data-pen-title=&quot;React Calculator&quot; class=&quot;codepen&quot;&gt;See the Pen &lt;a href=&quot;https://codepen.io/lorepirri/pen/KqqobJ/&quot;&gt;React Calculator&lt;/a&gt; by Lorenzo (&lt;a href=&quot;https://codepen.io/lorepirri&quot;&gt;@lorepirri&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io&quot;&gt;CodePen&lt;/a&gt;.&lt;/p&gt;
&lt;script async=&quot;&quot; src=&quot;https://production-assets.codepen.io/assets/embed/ei.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Se questo articolo vi e’ stato utile, per favore premete il tasto Mi Piace o Condividi! Se avete dei suggerimenti o avete trovato un errore, per favore Commentate qua sotto, oppure Contattatemi!&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Fri, 23 Jun 2017 00:00:00 +0000</pubDate>
        <link>https://lorepirri.com/calcolatrice-javascript.html</link>
        <guid isPermaLink="true">https://lorepirri.com/calcolatrice-javascript.html</guid>
        
        <category>pomodoro timer</category>
        
        <category>reactjs</category>
        
        <category>javascript</category>
        
        <category>freecodecamp</category>
        
        <category>codepen</category>
        
        
        <category>projects</category>
        
      </item>
    
      <item>
        <title>Twitchtv JSON API</title>
        <description>&lt;p&gt;&lt;img src=&quot;/assets/img/twitch-tv-json-api.png&quot; alt=&quot;Twitchtv JSON API&quot; title=&quot;Twitchtv JSON API&quot; class=&quot;center-image&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Questo e’ un progetto che ho fatto durante il &lt;a href=&quot;https://www.freecodecamp.org&quot; target=&quot;_blank&quot;&gt;freeCodeCamp&lt;/a&gt; per ottenere il mio &lt;a href=&quot;https://www.freecodecamp.org/lorepirri/front-end-certification&quot;&gt;FCC Front End Certificate&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Le specifiche complete sono sul &lt;a href=&quot;https://www.freecodecamp.org/challenges/use-the-twitchtv-json-api&quot; target=&quot;_blank&quot;&gt;FCC Twitchtv JSON API&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;obiettivo&quot;&gt;Obiettivo&lt;/h3&gt;
&lt;p&gt;Costruire un’applicazione CodePen.io simile in funzionalita’ a questo &lt;a href=&quot;https://codepen.io/FreeCodeCamp/full/Myvqmo/&quot; target=&quot;_blank&quot;&gt;demo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Soddisfare le User Stories di sotto. &lt;em&gt;Usare qualsiasi libreria o APIs che si voglia. Dare uno stile personale all’applicazione.&lt;/em&gt;&lt;/p&gt;

&lt;h3 id=&quot;user-stories&quot;&gt;User Stories&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;Posso vedere se Free Code Camp sta trasmettendo su Twitch.tv.&lt;/li&gt;
  &lt;li&gt;Posso cliccare sullo stato utente ed essere rediretto al canale Twitch.tv di Free Code Camp.&lt;/li&gt;
  &lt;li&gt;Se un utente Twitch sta trasmettendo, posso vedere dettagli aggiuntivi riguardo a cio’ che stanno trasmettendo.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;codepen&quot;&gt;CodePen&lt;/h3&gt;
&lt;p&gt;Questa e’ la mia solutione, usando Bootstrap, jQuery, e Ajax su CodePen.&lt;/p&gt;

&lt;p data-height=&quot;265&quot; data-theme-id=&quot;light&quot; data-slug-hash=&quot;ZKbqYg&quot; data-default-tab=&quot;js,result&quot; data-user=&quot;lorepirri&quot; data-embed-version=&quot;2&quot; data-pen-title=&quot;freeCodeCamp Twitchtv JSON API&quot; class=&quot;codepen&quot;&gt;See the Pen &lt;a href=&quot;https://codepen.io/lorepirri/pen/ZKbqYg/&quot;&gt;freeCodeCamp Twitchtv JSON API&lt;/a&gt; by Lorenzo (&lt;a href=&quot;https://codepen.io/lorepirri&quot;&gt;@lorepirri&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io&quot;&gt;CodePen&lt;/a&gt;.&lt;/p&gt;
&lt;script async=&quot;&quot; src=&quot;https://production-assets.codepen.io/assets/embed/ei.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Se questo articolo vi e’ stato utile, per favore premete il tasto Mi Piace o Condividi! Se avete dei suggerimenti o avete trovato un errore, per favore Commentate qua sotto, oppure Contattatemi!&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Thu, 20 Apr 2017 00:00:00 +0000</pubDate>
        <link>https://lorepirri.com/twitch-tv-json-api-it.html</link>
        <guid isPermaLink="true">https://lorepirri.com/twitch-tv-json-api-it.html</guid>
        
        <category>twitchtv</category>
        
        <category>json</category>
        
        <category>api</category>
        
        <category>bootstrap</category>
        
        <category>jquery</category>
        
        <category>javascript</category>
        
        <category>freecodecamp</category>
        
        <category>codepen</category>
        
        
        <category>projects</category>
        
      </item>
    
      <item>
        <title>Visualizzatore Wikipedia</title>
        <description>&lt;p&gt;&lt;img src=&quot;/assets/img/wikipedia-viewer.png&quot; alt=&quot;Visualizzatore Wikipedia&quot; title=&quot;Visualizzatore Wikipedia&quot; class=&quot;center-image&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Questo e’ un progetto che ho fatto durante il &lt;a href=&quot;https://www.freecodecamp.org&quot; target=&quot;_blank&quot;&gt;freeCodeCamp&lt;/a&gt; per ottenere il mio &lt;a href=&quot;https://www.freecodecamp.org/lorepirri/front-end-certification&quot;&gt;FCC Front End Certificate&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Le specifiche complete sono sul &lt;a href=&quot;https://www.freecodecamp.org/challenges/build-a-wikipedia-viewer&quot; target=&quot;_blank&quot;&gt;FCC Wikipedia Viewer&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;obiettivo&quot;&gt;Obiettivo&lt;/h3&gt;
&lt;p&gt;Costruire un’applicazione CodePen.io simile in funzionalita’ a questo &lt;a href=&quot;https://codepen.io/FreeCodeCamp/full/wGqEga/&quot; target=&quot;_blank&quot;&gt;demo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Soddisfare le User Stories di sotto. &lt;em&gt;Usare qualsiasi libreria o APIs che si voglia. Dare uno stile personale all’applicazione.&lt;/em&gt;&lt;/p&gt;

&lt;h3 id=&quot;user-stories&quot;&gt;User Stories&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;Posso cercare argomenti su Wikipedia inserendo un termine di ricerca ed avere i risultati reali dal sito Wikipedia.&lt;/li&gt;
  &lt;li&gt;Posso cliccare su un bottone per vedere una pagina Wikipedia a caso.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;codepen&quot;&gt;CodePen&lt;/h3&gt;
&lt;p&gt;Questa e’ la mia solutione, usando Bootstrap, jQuery, e Ajax su CodePen.&lt;/p&gt;

&lt;p data-height=&quot;500&quot; data-theme-id=&quot;light&quot; data-slug-hash=&quot;YVyPdV&quot; data-default-tab=&quot;js,result&quot; data-user=&quot;lorepirri&quot; data-embed-version=&quot;2&quot; data-pen-title=&quot;Wikipedia Viewer&quot; class=&quot;codepen&quot;&gt;See the Pen &lt;a href=&quot;https://codepen.io/lorepirri/pen/YVyPdV/&quot;&gt;Wikipedia Viewer&lt;/a&gt; by Lorenzo (&lt;a href=&quot;https://codepen.io/lorepirri&quot;&gt;@lorepirri&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io&quot;&gt;CodePen&lt;/a&gt;.&lt;/p&gt;
&lt;script async=&quot;&quot; src=&quot;https://production-assets.codepen.io/assets/embed/ei.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Se questo articolo vi e’ stato utile, per favore premete il tasto Mi Piace o Condividi! Se avete dei suggerimenti o avete trovato un errore, per favore Commentate qua sotto, oppure Contattatemi!&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Mon, 17 Apr 2017 00:00:00 +0000</pubDate>
        <link>https://lorepirri.com/visualizzatore-wikipedia.html</link>
        <guid isPermaLink="true">https://lorepirri.com/visualizzatore-wikipedia.html</guid>
        
        <category>wikipedia</category>
        
        <category>viewer</category>
        
        <category>api</category>
        
        <category>bootstrap</category>
        
        <category>jquery</category>
        
        <category>javascript</category>
        
        <category>freecodecamp</category>
        
        <category>codepen</category>
        
        
        <category>projects</category>
        
      </item>
    
      <item>
        <title>Mostra il Meteo Locale</title>
        <description>&lt;p&gt;&lt;img src=&quot;/assets/img/show-local-weather.png&quot; alt=&quot;Mostra il Meteo Locale&quot; title=&quot;Mostra il Meteo Locale&quot; class=&quot;center-image&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Questo e’ un progetto che ho fatto durante il &lt;a href=&quot;https://www.freecodecamp.org&quot; target=&quot;_blank&quot;&gt;freeCodeCamp&lt;/a&gt; per ottenere il mio &lt;a href=&quot;https://www.freecodecamp.org/lorepirri/front-end-certification&quot;&gt;FCC Front End Certificate&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Le specifiche complete sono sul &lt;a href=&quot;https://www.freecodecamp.org/challenges/show-the-local-weather&quot; target=&quot;_blank&quot;&gt;FCC Show the Local Weather&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;obiettivo&quot;&gt;Obiettivo&lt;/h3&gt;
&lt;p&gt;Costruire un’applicazione CodePen.io simile in funzionalita’ a questo &lt;a href=&quot;http://codepen.io/FreeCodeCamp/full/bELRjV&quot; target=&quot;_blank&quot;&gt;demo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Soddisfare le User Stories di sotto. &lt;em&gt;Usare qualsiasi libreria o APIs che si voglia. Dare uno stile personale all’applicazione.&lt;/em&gt;&lt;/p&gt;

&lt;h3 id=&quot;user-stories&quot;&gt;User Stories&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;Posso vedere che tempo fa nel posto dove mi trovo.&lt;/li&gt;
  &lt;li&gt;Posso vedere un’icona o un immagine di sfondo differente (e.g. montagna innevata, deserto caldo) a seconda del tempo.&lt;/li&gt;
  &lt;li&gt;Posso premere un pulsante per cambiare da Fahrenheit a Celsius, e viceversa.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;codepen&quot;&gt;CodePen&lt;/h3&gt;
&lt;p&gt;Questa e’ la mia solutione, usando Bootstrap, jQuery, e Ajax su CodePen.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Nota&lt;/em&gt;: l’applicazione scarica i dati da &lt;a href=&quot;https://github.com/lorepirri/OpenWeatherMapProxy&quot; target=&quot;_blank&quot;&gt;OpenWeatherMapProxy&lt;/a&gt;: un proxy che ho scritto appositamente, e si relaziona direttamente con le API OpenWeatherMap che richiedono una &lt;em&gt;secret key&lt;/em&gt;.&lt;/p&gt;

&lt;p data-height=&quot;500&quot; data-theme-id=&quot;light&quot; data-slug-hash=&quot;QpeKVK&quot; data-default-tab=&quot;js,result&quot; data-user=&quot;lorepirri&quot; data-embed-version=&quot;2&quot; data-pen-title=&quot;Show the Local Weather&quot; class=&quot;codepen&quot;&gt;See the Pen &lt;a href=&quot;https://codepen.io/lorepirri/pen/QpeKVK/&quot;&gt;Show the Local Weather&lt;/a&gt; by Lorenzo (&lt;a href=&quot;https://codepen.io/lorepirri&quot;&gt;@lorepirri&lt;/a&gt;) on &lt;a href=&quot;https://codepen.io&quot;&gt;CodePen&lt;/a&gt;.&lt;/p&gt;
&lt;script async=&quot;&quot; src=&quot;https://production-assets.codepen.io/assets/embed/ei.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Se questo articolo vi e’ stato utile, per favore premete il tasto Mi Piace o Condividi! Se avete dei suggerimenti o avete trovato un errore, per favore Commentate qua sotto, oppure Contattatemi!&lt;/em&gt;&lt;/p&gt;

</description>
        <pubDate>Sat, 15 Apr 2017 00:00:00 +0000</pubDate>
        <link>https://lorepirri.com/mostra-meteo-locale.html</link>
        <guid isPermaLink="true">https://lorepirri.com/mostra-meteo-locale.html</guid>
        
        <category>meteo locale</category>
        
        <category>meteo</category>
        
        <category>api</category>
        
        <category>bootstrap</category>
        
        <category>jquery</category>
        
        <category>javascript</category>
        
        <category>freecodecamp</category>
        
        <category>codepen</category>
        
        
        <category>projects</category>
        
      </item>
    
      <item>
        <title>OpenWeatherMap Proxy</title>
        <description>&lt;p&gt;&lt;img src=&quot;/assets/img/openweathermap-proxy.png&quot; alt=&quot;OpenWeatherMap Proxy&quot; title=&quot;OpenWeatherMap Proxy&quot; class=&quot;center-image&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Questo e’ un progetto che ho fatto durante il &lt;a href=&quot;https://www.freecodecamp.org&quot; target=&quot;_blank&quot;&gt;freeCodeCamp&lt;/a&gt; per ottenere il mio &lt;a href=&quot;https://www.freecodecamp.org/lorepirri/front-end-certification&quot;&gt;FCC Front End Certificate&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;OpenWeatherMapProxy&lt;/em&gt; e’ proxy che ho scritto per risolvere la challenge freeCodeCamp &lt;a href=&quot;/mostra-meteo-locale.html&quot;&gt;Show Local Weather&lt;/a&gt;. Agisce come passthrough alle APIs di &lt;a href=&quot;http://openweathermap.org/current&quot; target=&quot;_blank&quot;&gt;OpenWeather Map&lt;/a&gt; che altrimenti richiederebbero una secret key, che dunque andrebbe esposta publicamente in un’applicazione front-end.&lt;/p&gt;

&lt;p&gt;Non ho ancora tradotto tutto il testo in Italiano, potete leggere tutto sull’articolo in Inglese &lt;a href=&quot;/openweathermap-proxy.html&quot;&gt;OpenWeatherMap Proxy&lt;/a&gt;.&lt;/p&gt;

</description>
        <pubDate>Fri, 14 Apr 2017 00:00:00 +0000</pubDate>
        <link>https://lorepirri.com/openweathermap-proxy-it.html</link>
        <guid isPermaLink="true">https://lorepirri.com/openweathermap-proxy-it.html</guid>
        
        <category>google-scripts</category>
        
        <category>openweathermap</category>
        
        <category>api</category>
        
        <category>show local weather</category>
        
        <category>javascript</category>
        
        <category>freecodecamp</category>
        
        <category>github</category>
        
        
        <category>projects</category>
        
      </item>
    
  </channel>
</rss>
