-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aggiornamento alla versione 0.7 con spostamento del canale di distribuzione
- Loading branch information
1 parent
03fe26c
commit 475f313
Showing
91 changed files
with
15,466 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php get_header(); ?> | ||
<?php get_sidebar(); ?> | ||
<div id="centrecontent" class="column"> | ||
<h2>404</h2> | ||
<p>Spiacenti: la pagina non esiste</p> | ||
<?php if ( function_exists('related_posts_404') ) { ?> | ||
<p> | ||
Prova con | ||
<ul> | ||
<?php related_posts_404(5, 10, '<li>', '</li>', '', '', false, true); ?> | ||
</ul></p><?php } ?> | ||
</div> | ||
<?php include(TEMPLATEPATH . '/rightsidebar.php'); ?> | ||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
Pasw2015 | ||
======== | ||
#Benvenuto in Pasw2015! | ||
Questo è il nuovo tema, ancora in versione beta, interamente realizzato dalla Comunità di Pratica Porte Aperte sul Web per i siti scolastici in WordPress. | ||
|
||
www.porteapertesulweb.it | ||
### Installazione | ||
Per procedere all'installazione del tema, seguire questi semplici passaggi: | ||
|
||
1. scaricare da https://github.com/PorteAperteSulWeb/pasw2015beta/releases l'ultima versione, cliccando su "Download Zip" | ||
2. estrarre il contenuto della cartella nel proprio computer | ||
3. **rinominare** il nome della cartella estratta in **pasw2015beta** | ||
4. caricare la nuova cartella, via ftp, in wp-content/themes/ | ||
5. controllare che i file php, css e le sottocartelle del tema siano contenute in wp-content/themes/**pasw2015beta** | ||
|
||
### Come iniziare | ||
|
||
### Supporto | ||
|
||
### Licenza | ||
|
||
### Crediti |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php get_header(); ?> | ||
<?php get_sidebar(); ?> | ||
<div id="centrecontent" class="column"> | ||
<!-- breadcrumbs --> | ||
<div id="path"> | ||
<?php | ||
if(function_exists('bcn_display')) | ||
{ | ||
bcn_display(); | ||
} | ||
?> | ||
</div> | ||
<!-- fine breadcrumbs --> | ||
<?php if (have_posts()) : ?> | ||
|
||
<h2 class="posttitle"><?php single_cat_title(); ?></h2> | ||
|
||
<div style="float:right;"> | ||
<ul> | ||
<select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'> | ||
<option value="">Filtra per mese</option> | ||
<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> | ||
</select> | ||
<select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'> | ||
<option value="">Filtra per anno</option> | ||
<?php wp_get_archives('type=yearly&format=option&show_post_count=1'); ?> | ||
</select> | ||
</ul> | ||
</div> | ||
|
||
<h3>Archivio</h3> | ||
<?php if( is_tax( 'tipologie' ) ) { echo '<div class="clear"></div>'; at_archive_buttons(); } ?> | ||
|
||
<?php while (have_posts()) : the_post(); ?> | ||
|
||
<div class="post-box-archive"> | ||
<span class="hdate"><?php the_time('j F y'); ?></span> | ||
|
||
<a href="<?php the_permalink(); ?>"> | ||
<?php | ||
if ( has_post_thumbnail() ) { | ||
the_post_thumbnail(array(100,100)); | ||
} | ||
?> | ||
</a> | ||
|
||
<h4 class="piccino"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> | ||
<div class="piccino"> | ||
<?php the_excerpt(); ?> | ||
</div> | ||
</div> | ||
<?php endwhile; ?> | ||
<?php else : ?> | ||
<h2><?php echo single_cat_title(); ?></h2> | ||
<p><?php _e('Spiacenti, ma non ci sono articoli per questa categoria.'); ?></p> | ||
<?php endif; ?> | ||
<div class="clear"></div> | ||
<div style="text-align:center;width:100%;"> | ||
<?php _sds_numeric_posts_nav( 'nav-below' ); ?> | ||
</div> | ||
</div> | ||
<?php include(TEMPLATEPATH . '/rightsidebar.php'); ?> | ||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<?php get_header(); ?> | ||
<?php get_sidebar(); ?> | ||
<div id="centrecontent" class="column"> | ||
<!-- breadcrumbs --> | ||
<div id="path"> | ||
<?php | ||
if(function_exists('bcn_display')) | ||
{ | ||
bcn_display(); | ||
} | ||
?> | ||
</div> | ||
<?php | ||
//verifica se ? una categoria | ||
if (isset($_GET['catid']) && !empty($_GET['catid'])) { | ||
$catid = $_GET['catid']; | ||
$categoryname = get_cat_name($catid) . " "; | ||
$category = "catid=".$catid; | ||
} | ||
?> | ||
<!-- fine breadcrumbs --> | ||
<?php if (is_category()) { ?> | ||
<?php } ?> | ||
<?php if (have_posts()) : ?> | ||
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> | ||
<?php /* If this is a category archive */ if (is_category()) { ?> | ||
<h2 class="pagetitle">Archivio per la categoria '<?php echo single_cat_title(); ?>'</h2> | ||
<?php /* If this is a daily archive */ } elseif (is_day()) { ?> | ||
<h2 class="pagetitle">Archivio <?php echo $categoryname ?>del <?php the_time('F jS, Y'); ?></h2> | ||
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?> | ||
<h2 class="pagetitle">Archivio <?php echo $categoryname ?> <?php the_time('F Y'); ?></h2> | ||
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?> | ||
<h2 class="pagetitle">Archivio <?php echo $categoryname ?> anno <?php the_time('Y'); ?></h2> | ||
<?php /* If this is a search */ } elseif (is_search()) { ?> | ||
<h2 class="pagetitle">Risultati della ricerca</h2> | ||
<?php /* If this is an author archive */ } elseif (is_author()) { ?> | ||
<h2 class="pagetitle">Archivio autore</h2> | ||
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> | ||
<h2 class="pagetitle">Archivi</h2> | ||
<?php /* If this is a tag archive */ } elseif (is_tag()){ ?> | ||
<h2 class="pagetitle">Archivi per argomento (tag) '<?php single_tag_title(); ?>'</h2> | ||
<?php } ?> | ||
<?php | ||
if( is_tax( 'tipologie' ) ) { at_archive_buttons(); } | ||
|
||
|
||
$ppp = get_option('posts_per_page'); | ||
//echo $ppp; | ||
if (!is_paged()) { | ||
$paginazione = '&numberposts=100'; | ||
// seconda pagina con offset | ||
} elseif($paged == 2) { | ||
$paginazione = '&offset=100'; | ||
// tutte le altre pagine con offset | ||
} else { | ||
$offset = $ppp*($paged-2)+100; | ||
$paginazione = '&offset='.$offset; | ||
} | ||
if (is_month()) { | ||
$mese = get_the_time('m'); | ||
$anno = get_the_time('Y'); | ||
$rand_posts = get_posts('monthnum='.$mese.'&year='.$anno.'&category='.$catid.$paginazione); | ||
//echo 'monthnum='.$mese.'&year='.$anno.'&category='.$catid.$paginazione; | ||
} elseif (is_year()) { | ||
$anno = get_the_time('Y'); | ||
$rand_posts = get_posts('year='.$anno.'&category='.$catid.$paginazione); | ||
//echo 'year='.$anno.'&category='.$catid.$paginazione; | ||
} else if (is_tag()) { | ||
$rand_posts = get_posts('tag='.get_query_var('tag').$paginazione); | ||
} else { | ||
$rand_posts = get_posts('category='.$catid.$paginazione); | ||
//echo 'category='.$catid.$paginazione; | ||
} | ||
|
||
foreach( $rand_posts as $post ) : | ||
|
||
//while (have_posts()) : the_post(); ?> | ||
|
||
<h3 class="piccino"><?php the_time('j M y'); ?> - | ||
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> | ||
<div class="piccolino"> | ||
<?php the_excerpt(); ?> | ||
</div> | ||
<?php endforeach; ?> | ||
<div class="nav"> | ||
<div class="alignleft"><?php next_posts_link('« Comunicazioni precedenti') ?></div> | ||
<div class="alignright"><?php previous_posts_link('Comunicazioni successive »') ?></div> | ||
</div> | ||
<div style="clear:both"></div> | ||
<?php endif; ?> | ||
</div> | ||
<?php include(TEMPLATEPATH . '/rightsidebar.php'); ?> | ||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
<?php // Do not delete these lines | ||
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) | ||
die ('Please do not load this page directly. Thanks!'); | ||
if ( post_password_required() ) | ||
{ | ||
?> | ||
<p><?php _e("Questo articolo � protetto da password. Digitare la password per vedere i commenti."); ?><p> | ||
<?php | ||
return; | ||
} | ||
?> | ||
<!-- You can start editing here. --> | ||
<?php | ||
global $post; | ||
global $nearlysprung; | ||
$thePostID = $post->ID; | ||
$commentsAtAll = comment_count_special($thePostID, 'comment'); | ||
if ($nearlysprung->option['splitpings'] != "yes") | ||
{ | ||
$pingsAtAll = 0; | ||
} | ||
else | ||
{ | ||
$pingsAtAll = comment_count_special($thePostID, 'pings'); | ||
} | ||
if ($commentsAtAll) : ?> | ||
<h2 id="comments"> | ||
<?php if ($commentsAtAll == 1) | ||
{ | ||
echo "1 commento"; | ||
} | ||
else | ||
{ | ||
echo "$commentsAtAll commenti"; | ||
} | ||
?> | ||
<?php if ( comments_open() ) : ?> | ||
<a href="#postcomment" title="<?php _e('Lascia il tuo commento'); ?>">»</a> | ||
<?php endif; ?> | ||
</h2> | ||
<ol id="commentlist"> | ||
<?php | ||
$options = 'avatar_size=40'; | ||
if ($nearlysprung->option['splitpings'] == "yes") | ||
{ | ||
$options = $options . '&type=comment'; | ||
} | ||
if ($nearlysprung->option['themecomments'] == "yes") | ||
{ | ||
$options = $options . '&callback=ns_comments'; | ||
} | ||
wp_list_comments($options); | ||
?> | ||
</ol> | ||
<div class="navigation-bottom"> | ||
<p class="small alignleft"> | ||
<?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed dei commenti a questo articolo')); ?> | ||
<?php if ( pings_open() ) : ?> | ||
· <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?></a> | ||
<?php endif; ?> | ||
</p> | ||
<p class="small alignright"> | ||
<?php paginate_comments_links(); ?> | ||
</p> | ||
</div> | ||
<?php else : // this is displayed if there are no comments so far ?> | ||
<?php if ('open' == $post-> comment_status) : ?> | ||
<?php /* No comments yet */ ?> | ||
|
||
<?php else : // comments are closed ?> | ||
<?php /* Comments are closed */ ?> | ||
|
||
<?php endif; ?> | ||
|
||
<?php endif; ?> | ||
<?php if ('open' == $post-> comment_status) : ?> | ||
<div id="respond"> | ||
<h3 id="postcomment"><?php comment_form_title('Lascia un commento', 'Rispondi a %s'); ?></h3> | ||
<?php if ( get_option('comment_registration') && !$user_ID ) : ?> | ||
|
||
<p><?php _e('Devi fare il'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"><?php _e('log in'); ?></a> <?php _e('per inserire un commento.'); ?></p> | ||
|
||
<?php else : ?> | ||
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> | ||
<p><?php comment_id_fields(); ?></p> | ||
|
||
<?php if ( $user_ID ) : ?> | ||
|
||
<p><?php _e('Accedi come'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Fai il log out') ?>"><?php _e('Logout'); ?> »</a></p> | ||
<?php else : ?> | ||
|
||
<p> | ||
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="30" tabindex="1" /> | ||
<label for="author"><?php _e('Nome'); ?> <?php if ($req) _e('(richiesto)'); ?></label> | ||
</p> | ||
|
||
<p> | ||
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" /> | ||
<label for="email"><?php _e('E-mail'); ?> <?php if ($req) _e('(richiesta)'); ?></label> | ||
</p> | ||
|
||
<p> | ||
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" /> | ||
<label for="url"><abbr title="<?php _e('Uniform Resource Identifier'); ?>"><?php _e('URI'); ?></abbr></label> | ||
</p> | ||
<?php endif; ?> | ||
<p> | ||
<textarea name="comment" id="comment" cols="70" rows="10" tabindex="4"></textarea> | ||
</p> | ||
|
||
<p> | ||
<input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Invia il commento'); ?>" /> | ||
<span id="cancel-comment-reply"> <?php cancel_comment_reply_link('Cancella il commento') ?></span> | ||
</p> | ||
<p> | ||
<?php do_action('comment_form', $post->ID); ?> | ||
</p> | ||
</form> | ||
<?php endif; // If registration required and not logged in ?> | ||
</div> | ||
<?php endif; // if you delete this the sky will fall on your head ?> | ||
<?php | ||
if ($pingsAtAll > 0) | ||
{ | ||
?> | ||
<h2 id="trackbackpings"> | ||
<?php | ||
echo $pingsAtAll; | ||
if ($pingsAtAll == 1) | ||
{ | ||
echo ' Trackback \ Ping'; | ||
} | ||
else | ||
{ | ||
echo ' Trackbacks \ Pings'; | ||
} | ||
if ( comments_open() ) : ?> | ||
<a href="#postcomment" title="<?php _e('Vai al modulo di inserimento'); ?>">»</a> | ||
<?php endif; ?> | ||
</h2> | ||
<ol id="commentlist"> | ||
<?php | ||
$options = 'type=pings'; | ||
if ($nearlysprung->option['themecomments'] == "yes") | ||
{ | ||
$options = $options . '&callback=ns_trackbacks'; | ||
} | ||
wp_list_comments($options); | ||
?> | ||
</ol> | ||
<?php | ||
} | ||
?> |
Binary file not shown.
Oops, something went wrong.