Example #1
0
}
?>
            su modello della comunit&agrave; di pratica<br/>
<?php 
// #######################
// Abbiamo lavorato molto su questo nuovo tema. Per favore, non rimuovere i credits.
// #######################
?>

            <a title="Porte Aperte sul Web" href="http://www.porteapertesulweb.it/"> <img src="<?php 
echo get_template_directory_uri() . '/images/logopab.png';
?>
" width="180" alt=""/></a>

        <br/><small> Versione 2015.<?php 
echo get_option('pasw2015_version') . is_pasw2015_child(true);
?>
<br/>
        Proudly powered by <a href="http://wordpress.org" title="Piattaforma CMS WordPress">WordPress</a> &bull;
        <a href="http://validator.w3.org/check/referer" title="HTML5 valido"><abbr title="HyperText Markup Language">HTML5</abbr></a> &bull;
        <a href="http://jigsaw.w3.org/css-validator/check/referer" title="CSS valido"><abbr title="Cascading Style Sheets">CSS</abbr></a>
        </small>
            </p>
        </div>
    </div>
</div>
<?php 
wp_footer();
?>
</body>
</html>
Example #2
0
function pasw2015_welcome()
{
    ?>
    <div class="wrap about-wrap">
        <h1>Benvenuto in Pasw 2015 <small><?php 
    echo get_option('pasw2015_version') . is_pasw2015_child(true);
    ?>
</small></h1>
        <div class="about-text">Pasw2015 è il nuovo tema realizzato dalla Comunità di Pratica Porte Aperte sul Web.
        <br/>Bello, accessibile e innovativo.</div>
        <div class="wp-badge">Pasw2015
        <?php 
    echo get_option('pasw2015_version') . '<br/>';
    $filename = get_theme_root() . '/pasw2015/style.css';
    if (file_exists($filename)) {
        echo date("d M Y", filemtime($filename));
    }
    ?>
            <br/><br/><br/>
            <a class="add-new-h2" target="_blank" href="https://github.com/PorteAperteSulWeb/pasw2015/wiki">Documentazione</a>
            <br/><br/>
            <a class="add-new-h2" target="_blank" href="https://github.com/PorteAperteSulWeb/pasw2015/issues/">Segnala Problema</a>
            <br/><br/>
            <a class="add-new-h2" target="_blank" href="https://github.com/PorteAperteSulWeb/pasw2015/issues/">Proponi Idea</a>
            <br/><br/>
            <a class="add-new-h2" target="_blank" href="https://github.com/PorteAperteSulWeb/pasw2015/releases">Changelog</a>
            <br/><br/>
        </div>

<ul class="wp-people-group ">
    <li class="wp-person">
        <a href=""><img src="http://www.gravatar.com/avatar/18434072beb69131948d13ec49b43bc3.jpg?s=60" class="gravatar"></a>
        <a class="web" href="">Alberto Ardizzone</a>
        <span class="title">-</span>
    </li>
    <li class="wp-person">
        <a href=""><img src="http://www.gravatar.com/avatar/9474c75c8be90627711a1e69d48f1797.jpg?s=60" class="gravatar"></a>
        <a class="web" href="">Andrea Smith</a>
        <span class="title">-</span>
    </li>
     <li class="wp-person">
        <a href=""><img src="http://www.gravatar.com/avatar/e3ba6cb4b821a6b5b68885bd14dc907b.jpg?s=60" class="gravatar"></a>
        <a class="web" href="">Christian Ghellere</a>
        <span class="title">Brendola <small>(VI)</small></span>
    </li>
    <li class="wp-person">
        <a href=""><img src="http://www.gravatar.com/avatar/a6486b6230464a36ff431d3ef655e1e8.jpg?s=60" class="gravatar"></a>
        <a class="web" href="">Guido Spanti</a>
        <span class="title">-</span>
    </li>
    <li class="wp-person">
        <a href=""><img src="http://www.gravatar.com/avatar/f73d67c77f89c70ef303588aeab44ceb.jpg?s=60" class="gravatar"></a>
        <a class="web" href="">Ignazio Scimone</a>
        <span class="title">-</span>
    </li>
    <li class="wp-person">
        <a href="http://marcomilesi.ml"><img src="http://www.gravatar.com/avatar/c70b8e378aa035f77ab7a3ddee83b892.jpg?s=60" class="gravatar"></a>
        <a class="web" href="http://marcomilesi.ml">Marco Milesi</a>
        <span class="title">San Pellegrino Terme <small>(BG)</small></span>
    </li>
    <li class="wp-person">
        <a href=""><img src="http://www.gravatar.com/avatar/a5294e8762346dbbfa62e6fee71b3614.jpg?s=60" class="gravatar"></a>
        <a class="web" href="">Renata Durighello</a>
        <span class="title">-</span>
    </li>
    <li class="wp-person">
        <a href=""><img src="http://www.gravatar.com/avatar/f5c122f213686878dd4b39f7d9ae34c6.jpg?s=60" class="gravatar"></a>
        <a class="web" href="">Riccardo Boccaccio</a>
        <span class="title">-</span>
    </li>
</ul>
<p class="wp-credits-list">
Anna Ladu, Antonello Facchetti, Candida Zappacosta, Caterina Toccafondi, Enzo Costantini, Giorgio Galli, Lillo Sciascia, Paolo Mauri, Sergio Cortese
</p>
<center>
<a href="http://www.porteapertesulweb.it" target="_blank" alt="Porte Aperte sul Web">
<img src="<?php 
    echo site_url() . '/wp-content/themes/pasw2015/images/logopab.png';
    ?>
" />
</a>
</center>
    </div>
<?php 
}
Example #3
0
function version_child()
{
    $r = '';
    if (get_option('pasw_responsive_layout')) {
        $r = '+R';
    }
    if (is_pasw2015_child()) {
        return apply_filters('pasw2015childedition', 'C') . $r;
    } else {
        return '' . $r;
    }
}
Example #4
0
*/
?>

<div id="curve_chart" style="width: 100%; height: 300px"></div>
 <script type="text/javascript"
          src="https://www.google.com/jsapi?autoload={
            'modules':[{
              'name':'visualization',
              'version':'1',
              'packages':['corechart']
            }]
          }"></script>

<?php 
require_once 'gapi.class.php';
if (is_pasw2015_child(false) && get_option('pasw_ga_user')) {
    $user = get_option('pasw_ga_user');
    $path = get_template_directory() . '/ga-oauthkeyfile.p12';
} else {
    $user = '******';
    $path = dirname(__FILE__) . '/oauthkeyfile.p12';
}
$giorni_anno = 365;
$giorni_mese = 30;
$giorni_settimana = 7;
$giorni_giorno = 1;
$data_ricerca_anno = date("Y-m-d", time() - 86400 * $giorni_anno);
$data_ricerca_mese = date("Y-m-d", time() - 86400 * $giorni_mese);
$data_ricerca_settimana = date("Y-m-d", time() - 86400 * $giorni_settimana);
$data_ricerca_giorno = date("Y-m-d", time() - 86400 * $giorni_giorno);
$oggi = date("Y-m-d");
function pasw2015_impostazioni()
{
    ?>
    <div class="wrap">

        <h2><b>P</b>orte <b>A</b>perte <b>s</b>ul <b>W</b>eb &bull; Impostazioni</h2>

            <?php 
    require get_template_directory() . '/include/impostazioni-pasw2015-saver.php';
    ?>

            <form method="post" name="options" target="_self">
            <?php 
    wp_nonce_field('update-options');
    ?>

        <div id="welcome-panel" class="welcome-panel">
            <div class="welcome-panel-content">
                <div class="welcome-panel-column-container">
                    <div class="welcome-panel-column">
                        <h4>Stile</h4>

						<input id="responsive" type="checkbox" name="pasw_responsive_layout_n"
                        <?php 
    $get_pasw_responsive_layout = get_option('pasw_responsive_layout');
    if ($get_pasw_responsive_layout == '1') {
        echo ' checked="checked" ';
    }
    ?>
><label for="responsive">responsive (beta)</label><br/>
						
                        <input id="fluid" type="checkbox" name="pasw_fluid_layout_n"
                        <?php 
    $get_pasw_fluid_layout = get_option('pasw_fluid_layout');
    if ($get_pasw_fluid_layout == '1') {
        echo ' checked="checked" ';
    }
    ?>
><label for="fluid">layout allargato</label><br/>

                        <input id="social" type="checkbox" name="pasw_social_n"
                        <?php 
    $get_pasw_social = get_option('pasw_social');
    if ($get_pasw_social == '1') {
        echo ' checked="checked" ';
    }
    ?>
><label for="social">Abilita Pulsanti Sociali negli articoli</label>

                        <h4>Modalità Sottopagine</h4>
                        <select name="pasw_submenu_n" >
                            <option value="3" <?php 
    if (get_option('pasw_submenu') == '3') {
        echo 'selected="selected"';
    }
    ?>
>Disabilitato</option>
                            <option value="0" <?php 
    if (get_option('pasw_submenu') == '0') {
        echo 'selected="selected"';
    }
    ?>
>Verticale Sinistra</option>
                            <option value="1" <?php 
    if (get_option('pasw_submenu') == '1') {
        echo 'selected="selected"';
    }
    ?>
>Verticale Destra</option>
                            <option value="2" <?php 
    if (get_option('pasw_submenu') == '2') {
        echo 'selected="selected"';
    }
    ?>
>Orizzontale</option>
                            <option value="4" <?php 
    if (get_option('pasw_submenu') == '4') {
        echo 'selected="selected"';
    }
    ?>
>On Sidebar</option>
                        </select>
                        
                        <h4>Logo</h4>
                        <label for="upload_image">
                            <input id="pasw_logo_n" type="text" size="36" name="pasw_logo_n" value="<?php 
    if (get_option('pasw_logo') != '') {
        echo get_option('pasw_logo');
    } else {
        echo 'http://';
    }
    ?>
" />
                            <input id="pasw_logo_upload" class="button" type="button" value="Carica" />
                        </label>
                        
                        <h4>Menù Principale</h4>

                        <input id="loglink" type="checkbox" name="pasw_menu_login_n"
                        <?php 
    $get_pasw_menu_login = get_option('pasw_menu_login');
    if ($get_pasw_menu_login == '0') {
        echo ' checked="checked" ';
    }
    ?>
><label for="loglink">Abilita link Login nel Menù</label>
                        <br/>
                        <input id="secondomenu" type="checkbox" name="pasw_secondo_menu_n"
                        <?php 
    $get_pasw_secondo_menu = get_option('pasw_secondo_menu');
    if ($get_pasw_secondo_menu == '1') {
        echo ' checked="checked" ';
    }
    ?>
><label for="secondomenu">Abilita Secondo Menù</label>

                        <br/>
                        <input id="fixedmenu" type="checkbox" name="pasw_fixedmenu_n"
                        <?php 
    $get_pasw_fixedmenu = get_option('pasw_fixedmenu');
    if ($get_pasw_fixedmenu == '1') {
        echo ' checked="checked" ';
    }
    ?>
><label for="fixedmenu">Fixed menu</label>

                    </div>
                    <div class="welcome-panel-column">
                        <h4>Informazioni Autore</h4>

                        <label for="author">Autore del sito:</label>
                        <input id="author" type="text" name="pasw_autore_n" value="<?php 
    echo get_option('pasw_autore');
    ?>
" size="40" placeholder="Mario Rossi">
                        <br>
                        <label for="author">URL Autore del sito:</label>
                        <input id="authorlink" type="text" name="pasw_autorelink_n" value="<?php 
    echo get_option('pasw_autorelink');
    ?>
" size="40" placeholder="http://">
                        
                        <h4>Informazioni Ente</h4>

                        <label for="address">indirizzo:</label>
                        <input id="address" type="text" name="pasw_indirizzo_scuola_n" value="<?php 
    echo stripslashes(get_option('pasw_indirizzo_scuola'));
    ?>
" size="40" placeholder="Via Papa Giovanni XXIII, 1">

                        <br/><label for="phone">numero di telefono:</label>
                        <input id="phone" type="text" name="pasw_recapito_scuola_n" value="<?php 
    echo stripslashes(get_option('pasw_recapito_scuola'));
    ?>
" size="40" placeholder="tel. 0345/ - fax 0345/">

                        <br/><label for="email">e-mail:</label><br />
                        <input id="email" type="text" name="pasw_email_scuola_n" value="<?php 
    echo stripslashes(get_option('pasw_email_scuola'));
    ?>
" size="40" placeholder="*****@*****.**">
						
			<br/><label for="pec">pec:</label><br />
                        <input id="email" type="text" name="pasw_pec_scuola_n" value="<?php 
    echo stripslashes(get_option('pasw_pec_scuola'));
    ?>
" size="40" placeholder="*****@*****.**">
                        
            		<br/><label for="cfpiva">C.Fisc / P.Iva:</label>
                        <input id="email" type="text" name="pasw_cfpiva_scuola_n" value="<?php 
    echo stripslashes(get_option('pasw_cfpiva_scuola'));
    ?>
" size="40" placeholder="c.f. xxxxxxxxxxx">
                    </div>
                    <div class="welcome-panel-column welcome-panel-last">
                        <h4>Homepage</h4>
                        <p>La prima pagina di Pasw2015 è composta da 3 fasce orizzontali.</p>
                        <ul>
                            <li><a href="<?php 
    echo get_edit_post_link(get_option('page_on_front'));
    ?>
" class="welcome-icon welcome-view-site">Modifica 1a Fascia (testo homepage)</a></li>
                            <li><a href="widgets.php" class="welcome-icon welcome-view-site">Modifica 2a/3a Fascia (widget)</a></li>
                        </ul>
                        
                        <h4>Varie</h4>
                        <ul>
                            <li><a href="options-general.php" class="welcome-icon welcome-edit-page">Modifica il titolo o la descrizione del sito</a></li>
                            <li><a href="themes.php?page=custom-header" class="welcome-icon welcome-view-site">Cambia immagine o colore della testata</a></li>
                            <li><a href="customize.php" class="welcome-icon welcome-view-site">Cambia icona del sito da <b>Identità del Sito</b></a></li>
                            <li><a href="themes.php?page=custom-background" class="welcome-icon welcome-view-site">Cambia immagine o colore di sfondo</a></li>
                        </ul>
                    </div>
                <div class="clear"></div>
                <h4>Loghi Footer</h4>
                        <?php 
    $content = html_entity_decode(get_option('pasw_loghi_footer'));
    $editor_settings = array('textarea_rows' => 8, 'teeny' => TRUE, 'tinymce' => TRUE);
    wp_editor($content, 'pasw_loghi_footer_n', $editor_settings);
    ?>
                <h4>Testo Footer</h4>
                        <?php 
    $content = html_entity_decode(get_option('pasw_testo_footer'));
    $editor_settings = array('textarea_rows' => 2, 'media_buttons' => FALSE, 'teeny' => TRUE, 'tinymce' => TRUE);
    wp_editor($content, 'pasw_testo_footer_n', $editor_settings);
    ?>
            </div>
        </div>
            <br><hr><br>
            <div class="welcome-panel-content">
                <h4>Google Analytics</h4>

                <div class="welcome-panel-column-container">
                    <div class="welcome-panel-column">
                        <h4>Codice di Monitoraggio</h4>

                        <label for="ga-id">ID monitoraggio:</label>
                        <input id="ga-id" type="text" name="pasw_ga_id_n" value="<?php 
    echo get_option('pasw_ga_id');
    ?>
" class="regular-text" placeholder="UA-00000000-0">
                        
                        <br>
                        <input id="ga-anonymous" type="checkbox" name="pasw_ga_anonymous_n"
                        <?php 
    $get_pasw_ga_anonymous = get_option('pasw_ga_anonymous');
    if ($get_pasw_ga_anonymous == '1') {
        echo ' checked="checked" ';
    }
    ?>
><label for="ga-anonymous">Anonimizza gli indirizzi IP</label>

                    </div>
                    <div class="welcome-panel-column">
                        <h4>Pagina Statistiche</h4>

                        <label for="ga-profile-id">ID Profilo (es. 00000000):</label>
                        <input id="ga-profile-id" type="text" name="pasw_ga_profile_id_n" value="<?php 
    echo get_option('pasw_ga_profile_id');
    ?>
" class="regular-text">
                        
                        <label for="ga-user">Username:</label>
                        <input id="ga-user-n" type="text" name="pasw_ga_user_n" value="<?php 
    echo get_option('pasw_ga_user');
    ?>
" class="regular-text" placeholder="*****@*****.**"><small>(lascia vuoto se vuoi utilizzare il sistema di autenticazione PASW)</small>
                        
                        <br>
                        <?php 
    if (get_option('pasw_ga_password')) {
        ?>
                        <label for="ga-password">Password:</label>
                        <input id="ga-password-n" type="text" name="pasw_ga_password_n" value="<?php 
        if (get_option('pasw_ga_password')) {
            echo '#OK#';
        }
        ?>
" class="regular-text">
                        <br/><small style="background-color:yellow;">Elimina la Password per passare al nuovo sistema di autenticazione. Fallo al più presto, per nuove funzioni e maggior sicurezza.</small>
    
                        <?php 
    } else {
        if (is_pasw2015_child(false) && get_option('pasw_ga_user')) {
            echo 'CHILD RILEVATO<br>USERNAME RILEVATO<br>><b>Autenticazione PERSONALE attiva</b>';
        } else {
            echo 'CHILD NON RILEVATO<br>USERNAME NON RILEVATO<br>><b>Autenticazione PASW attiva</b>';
        }
        ?>
                        
                        <?php 
    }
    ?>

                    </div>
                    <div class="welcome-panel-column welcome-panel-last">
                        <center> <br><br>
                        <small><a class="add-new-h2" href="https://github.com/PorteAperteSulWeb/pasw2015/wiki/Configurare-Google-Analytics" target="_blank">Guida alla Configurazione</a></small>
                        </center>
                    </div>
                </div>
            </div>
        </div>

    </div>
        <p class="submit"><input type="submit" class="button-primary" name="Submit" value="Salva Impostazioni" /></p>
        </form>

<?php 
}