Commit 4a9b658f authored by agata's avatar agata

rimosso tema path

parent 2fb29456
<?php
/**
* 404 Template
*
* 404 template is used when an invalid url is visited.
*
* @package Path
* @subpackage Template
* @since 0.1.0
*/
@header( 'HTTP/1.1 404 Not found', true, 404 );
get_header(); // Loads the header.php template. ?>
<?php do_atomic( 'before_content' ); // path_before_content ?>
<div id="content">
<?php do_atomic( 'open_content' ); // path_open_content ?>
<div class="hfeed">
<article id="post-0" class="<?php hybrid_entry_class(); ?>">
<header class="entry-header">
<h1 class="error-404-title entry-title"><?php _e( 'What happened!?', 'path' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p>
<?php printf( __( "You tried going to %s, which doesn't exist. You can try navigate or search.", 'path' ), '<code>' . home_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
</p>
<?php get_search_form(); // Loads the searchform.php template. ?>
<p>
<?php _e( "Or here are the latest posts, hope it helps.", 'path' ); ?>
</p>
<ul>
<?php wp_get_archives( array( 'limit' => 20, 'type' => 'postbypost' ) ); ?>
</ul>
</div><!-- .entry-content -->
</article><!-- .hentry -->
</div><!-- .hfeed -->
<?php do_atomic( 'close_content' ); // path_close_content ?>
<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
</div><!-- #content -->
<?php do_atomic( 'after_content' ); // path_after_content ?>
<?php get_footer(); // Loads the footer.php template. ?>
\ No newline at end of file
<?php
/*
* Theme Settings
*
* @package Path
* @subpackage Template
* @since 0.1.0
*/
add_action( 'admin_menu', 'path_theme_admin_setup' );
function path_theme_admin_setup() {
global $theme_settings_page;
/* Get the theme settings page name. */
$theme_settings_page = 'appearance_page_theme-settings';
/* Get the theme prefix. */
$prefix = hybrid_get_prefix();
/* Create a settings meta box only on the theme settings page. */
add_action( 'load-appearance_page_theme-settings', 'path_theme_settings_meta_boxes' );
/* Add a filter to validate/sanitize your settings. */
add_filter( "sanitize_option_{$prefix}_theme_settings", 'path_theme_validate_settings' );
}
/* Adds custom meta boxes to the theme settings page. */
function path_theme_settings_meta_boxes() {
/* Add a custom meta box. */
add_meta_box(
'path-theme-meta-box-logo', // Name/ID
__( 'Logo Upload', 'path' ), // Label
'path_theme_meta_box_logo', // Callback function
'appearance_page_theme-settings', // Page to load on, leave as is
'normal', // Which meta box holder?
'high' // High/low within the meta box holder
);
/* Add a custom meta box. */
add_meta_box(
'path-theme-meta-box-background', // Name/ID
__( 'Background', 'path' ), // Label
'path_theme_meta_box_background', // Callback function
'appearance_page_theme-settings', // Page to load on, leave as is
'normal', // Which meta box holder?
'high' // High/low within the meta box holder
);
/* Add a custom meta box. */
add_meta_box(
'path-theme-meta-box-layout', // Name/ID
__( 'Layout', 'path' ), // Label
'path_theme_meta_box_layout', // Callback function
'appearance_page_theme-settings', // Page to load on, leave as is
'normal', // Which meta box holder?
'high' // High/low within the meta box holder
);
/* Add additional add_meta_box() calls here. */
}
/* Function for displaying the logo meta box. */
function path_theme_meta_box_logo() { ?>
<table class="form-table">
<!-- Logo -->
<tr>
<th>
<label for="<?php echo hybrid_settings_field_id( 'path_custom_logo' ); ?>"><?php _e( 'Custom logo:', 'path' ); ?></label>
</th>
<td>
<p><?php printf( __( 'Want to replace or remove default logo? <a href="%s">Go to Appearance &gt;&gt; Header</a>. ', 'path' ), admin_url( 'themes.php?page=custom-header' ) ); ?></p>
</td>
</tr>
<!-- End custom form elements. -->
</table><!-- .form-table --><?php
}
/* Function for displaying the background meta box. */
function path_theme_meta_box_background() { ?>
<table class="form-table">
<!-- Background -->
<tr>
<th>
<label for="<?php echo hybrid_settings_field_id( 'path_custom_background' ); ?>"><?php _e( 'Custom background:', 'path' ); ?></label>
</th>
<td>
<p><?php printf( __( 'Want to replace or remove default background? <a href="%s">Go to Appearance &gt;&gt; Background</a>. ', 'path' ), admin_url( 'themes.php?page=custom-background' ) ); ?></p>
</td>
</tr>
<!-- End custom form elements. -->
</table><!-- .form-table --><?php
}
/* Function for displaying the layout meta box. */
function path_theme_meta_box_layout() {
/* Get theme layouts. */
$path_supported_layouts = get_theme_support( 'theme-layouts' );
$path_layouts = $path_supported_layouts[0]; // Array of all layouts without the 'layout-' prefix. ?>
<table class="form-table">
<!-- Global Layout -->
<tr>
<th>
<label for="<?php echo esc_attr( hybrid_settings_field_id( 'path_global_layout' ) ); ?>"><?php _e( 'Global Layout:', 'path' ); ?></label>
</th>
<td>
<select id="<?php echo esc_attr( hybrid_settings_field_id( 'path_global_layout' ) ); ?>" name="<?php echo esc_attr( hybrid_settings_field_name( 'path_global_layout' ) ); ?>">
<option value="layout-default" <?php selected( hybrid_get_setting( 'path_global_layout' ), 'layout-default' ); ?>> <?php echo esc_html( theme_layouts_get_string( 'default' ) ); ?> </option>
<?php
foreach ( $path_layouts as $path_layout ) { ?>
<option value="<?php echo esc_attr( "layout-{$path_layout}" ); ?>" <?php selected( hybrid_get_setting( 'path_global_layout' ), "layout-{$path_layout}" ); ?>> <?php echo esc_html( theme_layouts_get_string( $path_layout ) ); ?> </option>
<?php } ?>
</select>
<p><span class="description"><?php _e( 'Set the layout for the entire site. The default layout is 2 columns with content on the left. You can overwrite this value in individual post or page. Note! Three column layouts will only work if you use Primary and Secondary Widget areas and browser window is wide enough.', 'path' ); ?></span></p>
</td>
</tr>
<!-- End custom form elements. -->
</table><!-- .form-table -->
<?php }
/* Validate theme settings. */
function path_theme_validate_settings( $input ) {
$input['path_global_layout'] = wp_filter_nohtml_kses( $input['path_global_layout'] );
/* Return the array of theme settings. */
return $input;
}
?>
\ No newline at end of file
<?php
/**
* Attachment Template
*
* This is the default image attachment template.
*
* @package Path
* @subpackage Template
* @since 0.1.0
*/
get_header(); // Loads the header.php template. ?>
<?php do_atomic( 'before_content' ); // path_before_content ?>
<div id="content">
<?php do_atomic( 'open_content' ); // path_open_content ?>
<div class="hfeed">
<?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php do_atomic( 'before_entry' ); // path_before_entry ?>
<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php do_atomic( 'open_entry' ); // path_open_entry ?>
<header class="entry-header">
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php echo wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) ); ?>
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'path' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'path' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( 'Published on [entry-published] [entry-edit-link before="| "]', 'path' ) . '</div>' ); ?>
</footer><!-- .entry-footer -->
<?php do_atomic( 'close_entry' ); // path_close_entry ?>
</article><!-- .hentry -->
<?php do_atomic( 'after_entry' ); // path_after_entry ?>
<div class="attachment-meta">
<?php $gallery = do_shortcode( sprintf( '[gallery id="%1$s" exclude="%2$s" columns="8"]', $post->post_parent, get_the_ID() ) ); ?>
<?php if ( !empty( $gallery ) ) { ?>
<div class="image-gallery">
<h3><?php _e( 'Gallery', 'path' ); ?></h3>
<?php echo $gallery; ?>
</div>
<?php } ?>
</div><!-- .attachment-meta -->
<?php get_sidebar( 'after-singular' ); // Loads the sidebar-after-singular.php template. ?>
<?php do_atomic( 'after_singular' ); // path_after_singular ?>
<?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>
<?php endwhile; ?>
<?php endif; ?>
</div><!-- .hfeed -->
<?php do_atomic( 'close_content' ); // path_close_content ?>
<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
</div><!-- #content -->
<?php do_atomic( 'after_content' ); // path_after_content ?>
<?php get_footer(); // Loads the footer.php template. ?>
\ No newline at end of file
19.8.2013 - version 0.2.1
* Updated Hybrid Core to version 1.6.
* Menu + sign updated for sub menus. Not using image anymore.
* Chat post format updated.
* .pot file added.
* Finnish translations added.
* style.min.css added.
4.1.2013 - version 0.2
* Updated Hybrid Core to version 1.5.
* Remove global layout from theme settings. Note! This might mean that you have to set global layout again under Appearance >> Customize.
23.10.2012 - version 0.1.4
* Updated Hybrid Core to version 1.4.3.
* Most viewed widget added.
* Customize support for 1 column layout.
* Gravity Form CSS HTML5 input types added.
* Blockquote height: 100% removed. It was for IE7 and I have dropped suport for that.
5.9.2012 - version 0.1.3
* Oh what a rookie mistake. .gitmodules file removed.
2.9.2012 - version 0.1.2
* Hybrid Core updated to 1.4.2.
* Added Polish translations.
* Slider image padding taken off from left and right.
* Dequeue Pullquote Shortcode plugin styles and add them in style.css.
31.7.2012 - version 0.1.1
* Better code in theme customize and settings page when choosing global layout.
* Arrows fixed back to normal. They were replaced by ?-mark when compressing style.css.
* @link: http://stackoverflow.com/questions/2701192/ascii-character-for-up-down-triangle-arrow-to-display-in-html
18.6.2012 - version 0.1
* Everything is brand new.
\ No newline at end of file
<?php
/**
* Comment Template
*
* The comment template displays an individual comment. This can be overwritten by templates specific
* to the comment type (comment.php, comment-{$comment_type}.php, comment-pingback.php,
* comment-trackback.php) in a child theme.
*
* @package Path
* @subpackage Template
* @since 0.1.0
*/
global $post, $comment;
?>
<li id="comment-<?php comment_ID(); ?>" class="<?php hybrid_comment_class(); ?>">
<?php do_atomic( 'before_comment' ); // path_before_comment ?>
<div class="comment-wrap">
<?php do_atomic( 'open_comment' ); // path_open_comment ?>
<?php echo hybrid_avatar(); ?>
<?php echo apply_atomic_shortcode( 'comment_meta', '<div class="comment-meta">[comment-author] [comment-published] [comment-permalink before="| "] [comment-edit-link before="| "] [comment-reply-link before="| "]</div>' ); ?>
<div class="comment-content comment-text">
<?php if ( '0' == $comment->comment_approved ) : ?>
<?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert moderation">' . __( 'Your comment is awaiting moderation.', 'path' ) . '</p>' ); ?>
<?php endif; ?>
<?php comment_text( $comment->comment_ID ); ?>
</div><!-- .comment-content .comment-text -->
<?php do_atomic( 'close_comment' ); // path_close_comment ?>
</div><!-- .comment-wrap -->
<?php do_atomic( 'after_comment' ); // path_after_comment ?>
<?php /* No closing </li> is needed. WordPress will know where to add it. */ ?>
\ No newline at end of file
<?php
/**
* Comments Template
*
* Lists comments and calls the comment form. Individual comments have their own templates. The
* hierarchy for these templates is $comment_type.php, comment.php.
*
* @package Path
* @subpackage Template
* @since 0.1.0
*/
/* If a post password is required or no comments are given and comments/pings are closed, return. */
if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
return;
?>
<div id="comments-template">
<div class="comments-wrap">
<div id="comments">
<?php if ( have_comments() ) : ?>
<h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', 'path' ), __( 'One Response', 'path' ), __( '% Responses', 'path' ) ); ?></h3>
<?php if ( get_option( 'page_comments' ) ) : ?>
<div class="comments-nav">
<?php previous_comments_link(); ?>
<span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', 'path' ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
<?php next_comments_link(); ?>
</div><!-- .comments-nav -->
<?php endif; ?>
<?php do_atomic( 'before_comment_list' );// path_before_comment_list ?>
<ol class="comment-list">
<?php wp_list_comments( hybrid_list_comments_args() ); ?>
</ol><!-- .comment-list -->
<?php do_atomic( 'after_comment_list' ); // path_after_comment_list ?>
<?php endif; ?>
<?php if ( pings_open() && !comments_open() ) : ?>
<p class="comments-closed pings-open">
<?php printf( __( 'Comments are closed, but <a href="%s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'path' ), esc_url( get_trackback_url() ) ); ?>
</p><!-- .comments-closed .pings-open -->
<?php elseif ( !comments_open() ) : ?>
<p class="comments-closed">
<?php _e( 'Comments are closed.', 'path' ); ?>
</p><!-- .comments-closed -->
<?php endif; ?>
</div><!-- #comments -->
<?php comment_form(); // Loads the comment form. ?>
</div><!-- .comments-wrap -->
</div><!-- #comments-template -->
\ No newline at end of file
<?php
/**
* Aside Content Template
*
* Template used for 'aside' post format.
*
* @package Path
* @subpackage Template
* @since 0.1.0
*/
do_atomic( 'before_entry' ); // path_before_entry ?>
<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php do_atomic( 'open_entry' ); // path_open_entry ?>
<?php if ( is_singular() ) { ?>
<header class="entry-header">
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[post-format-link] published on [entry-published] [entry-edit-link before="| "]', 'path' ) . '</div>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'path' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'path' ) . '</div>' ); ?>
</footer><!-- .entry-footer -->
<?php } else { ?>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'path' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[post-format-link] published on [entry-published] [entry-permalink before="| "] [entry-comments-link before="| "] [entry-edit-link before="| "]', 'path' ) . '</div>' ); ?>
</footer><!-- .entry-footer -->
<?php } ?>
<?php do_atomic( 'close_entry' ); // path_close_entry ?>
</article><!-- .hentry -->
<?php do_atomic( 'after_entry' ); // path_after_entry ?>
\ No newline at end of file
<?php
/**
* Audio Content Template
*
* Template used for 'audio' post format.
*
* @package Path
* @subpackage Template
* @since 0.1.0
*/
do_atomic( 'before_entry' ); // path_before_entry ?>
<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php do_atomic( 'open_entry' ); // path_open_entry ?>
<?php if ( is_singular() ) { ?>
<header class="entry-header">
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[post-format-link] published on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'path' ) . '</div>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'path' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'path' ) . '</div>' ); ?>
</footer><!-- .entry-footer -->
<?php } else { ?>
<div class="entry-content">