Skip to content
Snippets Groups Projects
Commit d11ab2e1 authored by lucha's avatar lucha Committed by lechuck
Browse files

Added theme Path

parent a2c48490
Branches
Tags
No related merge requests found
Showing
with 1389 additions and 0 deletions
<?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
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">
<?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
/**
* Gallery Content Template
*
* Template used for 'gallery' 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 { ?>
<header class="entry-header">
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
</header><!-- .entry-header -->
<?php echo do_shortcode( '[gallery numberposts="3" orderby="rand"]' ); ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'path' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->
<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
/**
* Image Content Template
*
* Template used for 'image' 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">
<?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
/**
* Link Content Template
*
* Template used for 'link' 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 { ?>
<?php if ( get_the_title() ) { ?>
<?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'path-thumbnail' ) ); ?>
<header class="entry-header">
<h2 class="entry-title"><a href="<?php echo esc_url( path_url_grabber() ); ?>" title="<?php the_title_attribute(); ?>"><?php printf( '%s <span class="meta-nav">&rarr;</span>', the_title( '', '', false ) ); ?></a></h2>
</header><!-- .entry-header -->
<?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 -->
<?php } ?>
<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
/**
* Page Content Template
*
* Template used for 'page' post type.
*
* @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]' ); ?>
</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-edit-link]</div>' ); ?>
</footer><!-- .entry-footer -->
<?php } else { ?>
<?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'path-thumbnail' ) ); ?>
<header class="entry-header">
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
</header><!-- .entry-header -->
<div class="entry-summary">
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'path' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->
<?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
/**
* Quote Content Template
*
* Template used for 'quote' 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 ?>
<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 if ( is_singular() )
echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[post-format-link] published on [entry-published] [entry-edit-link before="| "]<br />[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'path' ) . '</div>' );
else
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 do_atomic( 'close_entry' ); // path_close_entry ?>
</article><!-- .hentry -->
<?php do_atomic( 'after_entry' ); // path_after_entry ?>
\ No newline at end of file
<?php
/**
* Status Content Template
*
* Template used for 'status' 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 ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php echo get_avatar( get_the_author_meta( 'email' ) ); ?></a>
<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 if ( is_singular() )
echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[post-format-link] updated on [entry-published] [entry-edit-link before="| "]<br />[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'path' ) . '</div>' );
else
echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[post-format-link] updated on [entry-published] [entry-permalink before="| "] [entry-comments-link before="| "] [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 ?>
\ No newline at end of file
<?php
/**
* Video Content Template
*
* Template used for 'video' 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">
<?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">' . __( '[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
/**
* Content Template
*
* Template used to show post content when a more specific template cannot be found.
*
* @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">' . __( 'Published by [entry-author] 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 { ?>
<?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'thumbnail' ) ); ?>
<header class="entry-header">
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'Published by [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'path' ) . '</div>' ); ?>
</header><!-- .entry-header -->
<div class="entry-summary">
<?php the_excerpt(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'path' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->
<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 } ?>
<?php do_atomic( 'close_entry' ); // path_close_entry ?>
</article><!-- .hentry -->
<?php do_atomic( 'after_entry' ); // path_after_entry ?>
\ No newline at end of file
/* One column. */
.layout-1c #sidebar-primary,
.layout-1c #sidebar-secondary{
display:none;
}
\ No newline at end of file
html .mceContentBody {
color: #666;
font: normal normal normal 1em/1.5em Georgia, Palatino, "Palatino Linotype", "Book Antiqua", serif;
padding: 0 2%;
}
a,
a:visited {
color: #ca4842;
text-decoration: none;
}
a:focus,
a:active,
a:hover {
color: #b7322c;
text-decoration: underline;
}
img,
object,
embed {
max-width: 100%;
height: auto;
}
img {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #e9edf1;
padding: 4px;
}
/* Headers */
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Oswald', Georgia, sans-serif;
font-style: normal;
font-weight: normal;
margin-top: 0;
}
h1 {
font-size: 1.75em; /* 28px / 16px = 1.75 */
line-height: 1.1;
}
h2 {
font-size:1.5em;
line-height: 1.2;
}
h3 {
font-size:1.17em;
}
h4 {
font-size: 1.0625em; /* 17px / 16px = 1.0625 */
}
h5 {
font-size: 1em;
}
h6 {
font-size: 0.9375em; /* 15px / 16px = 0.9375 */
}
ul {
list-style-type: circle;
}
.alignleft,
.left {
float: left;
margin: 1em 1.25em 0.5em 0;
}
.alignright,
.right {
float: right;
margin: 1em 0 0.5em 1.25em;
}
.aligncenter,
.center {
display: block;
margin: 1em auto;
}
blockquote {
background: #e9edf1;
border: 1px solid #e5e5e5;
border-left: 0.375em solid #70a0b2;
color: #666;
font-style: italic;
margin: 1em 0;
padding: 1% 2%;
}
blockquote blockquote {
padding: 0.5% 2%;
}
.pullquote {
border-bottom: 1px solid #666666;
border-top: 1px solid #666666;
color: #666666;
float: right;
font-size: 1.125em; /* 18 px / 16 px = 1.125. */
font-style: italic;
line-height: 1.66666667em; /* 30 px / 18 px = 1.66666667 */
margin: 0.555555556em 0 0.555555556em 1.11111111;
padding: 0.555555556em;
text-align: center;
width: 200px;
}
code {
background: #f7f7f7;
color: #555;
padding: 0 0.1875em;
}
pre {
background: #f7f7f7;
border: 1px solid #e5e5e5;
color: #555;
font-size: .9375em;
padding: 3%;
}
pre code {
padding: 0;
}
/* Acronyms and abbreviations */
acronym,
abbr {
border-bottom: 1px dotted #999;
}
/* Tables */
table {
background: #fff;
margin: 0 0 1em 0;
width: 100%;
}
th {
background: #70a0b2;
border-top: 1px solid #f2f2f2;
border-bottom: 1px solid #f2f2f2;
border-right: 1px solid #f2f2f2;
color: #fff;
padding: .5em 2%;
text-align: left;
}
td,
tbody th {
border-bottom: 1px solid #f2f2f2;
border-left: 1px solid #f2f2f2;
border-right: 1px solid #f2f2f2;
font-size: .9375em;
padding: .5em 2%;
}
tr:hover td {
background: #e9edf1;
}
tr:hover th {
background: #e9edf1;
color: #666;
}
thead th,
tfoot th,
thead tr:hover th,
tfoot tr:hover th {
background: #e9edf1;
color: #666;
}
hr {
background: #e9edf1;
height: 1px;
}
/* Captions */
.wp-caption {
max-width: 100%;
overflow: visible;
padding: 0;
}
.wp-caption img {
margin: 0;
width: 100%;
}
.wp-caption-text {
background: #e9edf1;
border-bottom: 1px solid #e5e5e5;
color: #555;
font: normal normal normal 0.875em/1.6 "Helvetica Neue", Helvetica, sans-serif;
margin: -0.357142857em 0 0 0; /* 5px / 14px = 0.357142857 */
max-width: 100%;
padding: 0.571428571em 0.714285714em;
text-align: center;
}
\ No newline at end of file
/*
* jQuery FlexSlider v2.0
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the GPLv2 license.
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Contributing author: Tyler Smith (@mbmufffin)
*/
/* Browser Resets */
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus {
outline: none;
}
.slides,
.flex-control-nav,
.flex-direction-nav {
margin: 0;
padding: 0;
list-style: none;
}
/* =FlexSlider Necessary Styles
-------------------------------------------------------------- */
.flexslider {
margin: 0;
padding: 0;
}
.flexslider .slides > li {
display: none;
/* -webkit-backface-visibility: hidden; Hide the slides before the JS is loaded. Avoids image jumping. */
}
.flexslider .slides img {
width: 100%;
display: block;
}
.flex-pauseplay span {
text-transform: capitalize;
}
/* Clearfix for the .slides element */
.slides:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
html[xmlns] .slides {
display: block;
}
* html .slides {
height: 1%;
}
/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
* include js that eliminates this class on page load */
.no-js .slides > li:first-child {
display: block;
}
/* =FlexSlider Default Theme
-------------------------------------------------------------- */
.flexslider {
position: relative;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-o-border-radius: 4px;
border-radius: 4px;
zoom: 1;
}
.flex-viewport {
max-height: 2000px;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
transition: all 1s ease;
}
.loading .flex-viewport {
max-height: 300px;
}
.flexslider .slides {
zoom: 1;
}
.carousel li {
margin-right: 5px;
}
/* =My slider styles
-------------------------------------------------------------- */
.page-template-path-slider #main .wrap,
.home #main .wrap,
.blog #main .wrap {
margin-bottom: 1em;
}
#slider-content.flexslider {
margin: 0 0 1em;
}
#slider-content .hentry {
border-bottom: none;
padding-bottom: 0;
}
#slider-content .slider-images {
padding: 1em 0;
}
#slider-content img {
border: none;
}
/* Control Nav */
.flex-control-nav {
width: 100%;
position: absolute;
bottom: -1em;
text-align: center;
}
.flex-control-nav li {
display: inline-block;
margin: 0 6px;
zoom: 1;
*display: inline;
}
.flex-control-paging li a {
background: url(images/bg_direction_nav.png) no-repeat 0 -90px;
cursor: pointer;
display: block;
text-indent: -9999px;
width: 11px;
height: 11px;
-webkit-transition: all 0s ease-out;
-moz-transition: all 0s ease-out;
-ms-transition: all 0s ease-out;
-o-transition: all 0s ease-out;
transition: all 0s ease-out;
}
.flex-control-paging li a:hover,
.flex-control-paging li a.flex-active {
background-position: 0 -101px;
}
/* Direction Nav. */
.flex-direction-nav a {
background: url(images/bg_direction_nav.png) no-repeat 0 0;
cursor: pointer;
display: block;
margin: -20px 0 0;
position: absolute;
top: 22%;
text-indent: -9999px;
opacity: 1;
-webkit-transition: all .3s ease;
width: 40px;
height: 40px;
}
.flex-direction-nav .flex-next {
background-position: 0 -50px;
right: 0.5em
}
.flex-direction-nav .flex-prev {
left: 0.5em;
}
.flexslider:hover .flex-next {
opacity: 1;
right: 0.5em;
}
.flexslider:hover .flex-prev {
opacity: 1;
left: 0.5em;
}
.flex-direction-nav .disabled {
opacity: .3!important;
filter:alpha(opacity=30);
cursor: default;
}
@media only screen and (min-width: 30em) {
.flex-direction-nav a {
top: 29%;
}
}
@media only screen and (min-width: 40em) {
.flex-direction-nav a {
top: 35%;
}
}
@media only screen and (min-width: 49em) {
/* Direction Nav. */
.flex-direction-nav a {
top: 50%;
}
.flex-direction-nav .flex-prev {
opacity: 0;
}
.flex-direction-nav .flex-next {
opacity: 0;
}
.flex-direction-nav .flex-next {
right: -2em;
}
.flex-direction-nav .flex-prev {
left: -2em;
}
.page-template-path-slider #main .wrap,
.home #main .wrap,
.blog #main .wrap {
margin-bottom: 2em;
}
#slider-content .slider-images {
float: left;
width: 46%;
}
#slider-content img {
padding: 4px 0;
}
#slider-content .slider-title {
float: right;
padding: 1em 0;
width: 50%;
}
}
@media only screen and (min-width: 60em) {
#slider-content .slider-images {
width: 64%;
}
#slider-content .slider-title {
width: 32%;
}
}
\ No newline at end of file
wp-content/themes/path/css/flexslider/images/bg_direction_nav.png

2.84 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment