Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creates an editor only button to refresh cache and recalculate a page. #202

Merged
merged 3 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions template-parts/content-post_type_shows.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@
$havedeadcount = lwtv_plugin()->get_list_characters( $show_id, 'dead' );

// Get the list of characters.
$chars_regular = lwtv_plugin()->get_chars_for_show( $show_id, $havecharcount, 'regular' );
$chars_recurring = lwtv_plugin()->get_chars_for_show( $show_id, $havecharcount, 'recurring' );
$chars_guest = lwtv_plugin()->get_chars_for_show( $show_id, $havecharcount, 'guest' );
$chars_regular = lwtv_plugin()->get_chars_for_show( $show_id, 'regular' );
$chars_recurring = lwtv_plugin()->get_chars_for_show( $show_id, 'recurring' );
$chars_guest = lwtv_plugin()->get_chars_for_show( $show_id, 'guest' );
$chars_total = count( $chars_recurring ) + count( $chars_regular ) + count( $chars_guest );

// If havecharcount and chars_total are different, rerun the call.
Expand Down
4 changes: 4 additions & 0 deletions template-parts/sidebar-post_type_actors.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<?php get_template_part( 'template-parts/suggestedit', 'form' ); ?>
</section>

<?php
lwtv_plugin()->get_admin_tools( $actor_id );
?>

<section id="join-slack" class="widget widget_joinslack">
<div class="widget-wrap">
<div class="card card-slack">
Expand Down
4 changes: 4 additions & 0 deletions template-parts/sidebar-post_type_characters.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<?php get_template_part( 'template-parts/suggestedit', 'form' ); ?>
</section>

<?php
lwtv_plugin()->get_admin_tools( $char_id );
?>

<section id="join-slack" class="widget widget_joinslack">
<div class="widget-wrap">
<div class="card card-slack">
Expand Down
5 changes: 5 additions & 0 deletions template-parts/sidebar-post_type_shows.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
$quality = ( get_post_meta( $show_id, 'lezshows_quality_rating', true ) && is_numeric( (int) get_post_meta( $show_id, 'lezshows_quality_rating', true ) ) ) ? min( (int) get_post_meta( $show_id, 'lezshows_quality_rating', true ), 5 ) : 0;
$screentime = ( get_post_meta( $show_id, 'lezshows_screentime_rating', true ) && is_numeric( (int) get_post_meta( $show_id, 'lezshows_screentime_rating', true ) ) ) ? min( (int) get_post_meta( $show_id, 'lezshows_screentime_rating', true ), 5 ) : 0;
$alt_names = ( get_post_meta( $show_id, 'lezshows_show_names', true ) ) ? get_post_meta( $show_id, 'lezshows_show_names', true ) : false;

?>

<section id="search" class="widget widget_search">
Expand All @@ -23,6 +24,10 @@
<?php get_template_part( 'template-parts/suggestedit', 'form' ); ?>
</section>

<?php
lwtv_plugin()->get_admin_tools( $show_id );
?>

<section id="ratings" class="widget widget_text">
<div class="card">
<div class="card-header">
Expand Down