mirror of
https://ghproxy.net/https://github.com/AlxMedia/blogrow.git
synced 2025-08-27 01:46:10 +08:00
Start of 1.0.1
This commit is contained in:
parent
f09a68d298
commit
4f20a97d9d
20 changed files with 4528 additions and 157 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<div class="page-image">
|
||||
<div class="image-container">
|
||||
<?php the_post_thumbnail('thumb-large'); ?>
|
||||
<?php the_post_thumbnail('blogrow-large'); ?>
|
||||
<?php
|
||||
$caption = get_post(get_post_thumbnail_id())->post_excerpt;
|
||||
$description = get_post(get_post_thumbnail_id())->post_content;
|
||||
|
|
|
@ -18,29 +18,7 @@
|
|||
|
||||
<div class="post-format">
|
||||
<?php $images = alx_post_images(); if ( !empty($images) ): ?>
|
||||
<script type="text/javascript">
|
||||
// Check if first slider image is loaded, and load flexslider on document ready
|
||||
jQuery(document).ready(function(){
|
||||
var firstImage = jQuery('#flexslider-<?php echo the_ID(); ?>').find('img').filter(':first'),
|
||||
checkforloaded = setInterval(function() {
|
||||
var image = firstImage.get(0);
|
||||
if (image.complete || image.readyState == 'complete' || image.readyState == 4) {
|
||||
clearInterval(checkforloaded);
|
||||
jQuery('#flexslider-<?php echo the_ID(); ?>').flexslider({
|
||||
animation: "fade",
|
||||
slideshow: false,
|
||||
directionNav: true,
|
||||
controlNav: false,
|
||||
pauseOnHover: true,
|
||||
slideshowSpeed: 7000,
|
||||
animationSpeed: 600,
|
||||
smoothHeight: true,
|
||||
touch: false
|
||||
});
|
||||
}
|
||||
}, 20);
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="flex-container">
|
||||
<div class="flexslider" id="flexslider-<?php the_ID(); ?>">
|
||||
<ul class="slides">
|
||||
|
@ -67,7 +45,7 @@
|
|||
<div class="post-format">
|
||||
<div class="image-container">
|
||||
<?php if ( has_post_thumbnail() ) {
|
||||
the_post_thumbnail('thumb-large');
|
||||
the_post_thumbnail('blogrow-large');
|
||||
$caption = get_post(get_post_thumbnail_id())->post_excerpt;
|
||||
if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>';
|
||||
} ?>
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
<article <?php post_class(); ?>>
|
||||
|
||||
<div class="related-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('thumb-medium'); ?>
|
||||
<?php the_post_thumbnail('blogrow-medium'); ?>
|
||||
<?php else: ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
@ -26,7 +26,7 @@
|
|||
<div class="related-inner">
|
||||
|
||||
<h4 class="related-title">
|
||||
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
|
||||
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
|
||||
</h4><!--/.related-title-->
|
||||
|
||||
<div class="related-date"><?php the_time('j M, Y'); ?></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue