diff --git a/admin/includes/class.settings.php b/admin/includes/class.settings.php index 1b9194a..6d3d19a 100644 --- a/admin/includes/class.settings.php +++ b/admin/includes/class.settings.php @@ -302,6 +302,14 @@ function get_settings_fields() { 'type' => 'text', 'default' => '', 'sanitize_callback' => 'idea_factory_sanitize_int' + ), + array( + 'name' => 'if_positive_only', + 'label' => __( 'Positive Votes Only', 'idea-factory' ), + 'desc' => __( 'Check this box to only allow positive votes.', 'idea-factory' ), + 'type' => 'checkbox', + 'default' => '', + 'sanitize_callback' => 'idea_factory_sanitize_checkbox' ) ), 'if_settings_advanced' => array( @@ -378,9 +386,3 @@ function idea_factory_sanitize_int( $input ) { endif; $settings = new if_settings_api_wrap(); - - - - - - diff --git a/public/includes/helpers.php b/public/includes/helpers.php index de8e893..8cc566c 100644 --- a/public/includes/helpers.php +++ b/public/includes/helpers.php @@ -448,9 +448,15 @@ function idea_factory_vote_controls( $postid = '' ) { $postid = get_the_ID(); ?> - - + + +