-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #344 from publishpress/feature/release-2.7.1
Feature/release 2.7.1
- Loading branch information
Showing
23 changed files
with
4,791 additions
and
549 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,78 @@ | ||
<?php | ||
/** | ||
* The template for series taxonomy | ||
* | ||
* You can customize this template by havinga copy of this file in root child theme's folder | ||
* | ||
* @package PublishPress | ||
*/ | ||
|
||
get_header(); | ||
|
||
$description = get_the_archive_description(); | ||
|
||
// CSS wrapper class for the design | ||
$series_options = get_option('org_series_options'); | ||
$series_layout_class = ''; | ||
$series_layout_class .= isset($series_options['series_overview_page_layout']) ? 'pps-layout-' . $series_options['series_overview_page_layout'] : 'pps-layout-default'; | ||
$series_layout_class .= isset($series_options['series_overview_page_columns']) ? ' pps-columns-' . $series_options['series_overview_page_columns'] : ''; | ||
?> | ||
<section id="primary" class="site-content"> | ||
<div id="content" role="main"> | ||
|
||
<header class="page-header"> | ||
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?> | ||
<?php if ( $description ) : ?> | ||
<div class="archive-description"><?php echo wp_kses_post( wpautop( $description ) ); ?></div> | ||
<?php endif; ?> | ||
</header><!-- .page-header --> | ||
|
||
<?php if ( have_posts() ) : ?> | ||
|
||
<div id="pps-taxonomy-series-overview"> | ||
<div class="<?php echo $series_layout_class ?>"> | ||
<?php while ( have_posts() ) : ?> | ||
<?php the_post(); ?> | ||
<article class="pps-taxonomy-series__post<?php echo !has_post_thumbnail() ? ' pps-taxonomy-series__no-image' : '' ?>"> | ||
|
||
<?php if ( has_post_thumbnail() ) { ?> | ||
<div class="pps-taxonomy-series__thumbnail"> | ||
<?php the_post_thumbnail(); ?> | ||
</div><!-- .pps-taxonomy-series__thumbnail --> | ||
<?php } ?> | ||
|
||
<div class="pps-taxonomy-series__wrapper"> | ||
<?php | ||
the_title( | ||
sprintf( '<h2 class="pps-taxonomy-series__title"><a href="%s">', esc_url( get_permalink() ) ), | ||
'</a></h2>' | ||
); | ||
?> | ||
<div class="pps-taxonomy-series__content"> | ||
<?php the_excerpt(); ?> | ||
</div> | ||
</div><!-- .pps-taxonomy-series__content --> | ||
|
||
</article><!-- .pps-taxonomy-series__post --> | ||
<?php endwhile; ?> | ||
</div> | ||
|
||
<div class="pps-taxonomy-series__pagination"> | ||
<?php the_posts_pagination(); ?> | ||
</div><!-- .pps-taxonomy-series__pagination --> | ||
|
||
</div><!-- #pps-taxonomy-series-overview --> | ||
|
||
<?php else : ?> | ||
<p><?php esc_html_e( 'Sorry, no results found.', 'organize-series' ); ?></p> | ||
<?php endif; ?> | ||
|
||
</div><!-- #content --> | ||
</section><!-- #primary --> | ||
|
||
<?php | ||
if(pp_series_locate_template( array( 'sidebar.php' ) )){ | ||
get_sidebar(); | ||
} | ||
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
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 |
---|---|---|
|
@@ -34,4 +34,4 @@ function ($settings) { | |
|
||
} | ||
|
||
} | ||
} |
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,8 @@ | ||
<?php | ||
if (!function_exists('pp_series_core_activation')) { | ||
//activation functions/codes | ||
function pp_series_core_activation() | ||
{ | ||
pp_series_upgrade_function(); | ||
} | ||
} |
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,31 +1,37 @@ | ||
jQuery(document).ready(function($) { | ||
//Thickbox | ||
$(document).on('click','input[name="option_reset"]', function(){ | ||
tb_show('Are you sure you want to Reset?','TB_inline?height=155&width=300&inlineId=TBcontent'); | ||
return false; | ||
}); | ||
|
||
$(document).on('click','input[name="option_reset"]', function(){ | ||
tb_show('Are you sure you want to Reset?','TB_inline?height=155&width=300&inlineId=TBcontent'); | ||
return false; | ||
}); | ||
$('input#TBcancel').click(function(){ | ||
tb_remove(); | ||
}); | ||
|
||
$('input#TBcancel').click(function(){ | ||
tb_remove(); | ||
}); | ||
$('input#TBsubmit').click(function(){ | ||
$('input.reset_option', '#series_options' ).val('1'); | ||
document.series_options.submit(); | ||
}); | ||
|
||
$('input#TBsubmit').click(function(){ | ||
$('input.reset_option', '#series_options' ).val('1'); | ||
document.series_options.submit(); | ||
}); | ||
}); | ||
|
||
jQuery(document).ready(function($) { | ||
$('#custom_css').click(function(e) { | ||
var is_checked = $('input#custom_css').is(':checked'); | ||
|
||
if (is_checked) { | ||
$("input[class='css_style']").attr('disabled', false); | ||
} | ||
|
||
if (!is_checked) { | ||
$("input[class='css_style']").attr('disabled', true); | ||
} | ||
}); | ||
}); | ||
|
||
// Toggle a columns setting based on layout value | ||
$('#series_overview_page_layout').change(function(){ | ||
if($(this).val() == 'grid'){ | ||
$('.ppseries-settings-table').find('tr.pps-row-columns').show(); | ||
} else { | ||
$('.ppseries-settings-table').find('tr.pps-row-columns').hide(); | ||
} | ||
}); | ||
}); |
Binary file not shown.
Oops, something went wrong.