Skip to content

Commit

Permalink
solving issues with shortcode
Browse files Browse the repository at this point in the history
Applying Tmeister#28. Thanks webzunft
  • Loading branch information
fharper committed Dec 5, 2023
1 parent 3fb67e3 commit 81565b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/includes/class.shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,18 @@ function idea_factory_sc($atts, $content = null) {

$has_voted = idea_factory_has_public_voted( $id );

} else {

$has_voted = false;
}

$total_votes = idea_factory_get_votes( $id );
$status = idea_factory_get_status( $id );

$status_class = $status ? sprintf('idea-factory--entry__%s', $status ) : false;

$public_can_vote = idea_factory_get_option('if_public_voting','if_settings_main');

?>
<section class="idea-factory--entry-wrap <?php echo sanitize_html_class( $status_class );?> <?php echo $has_voted ? 'idea-factory--hasvoted' : false;?>">

Expand Down

0 comments on commit 81565b6

Please sign in to comment.