Skip to content

Commit

Permalink
Merge pull request #18 from hivepress/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
hivepress authored Sep 28, 2023
2 parents 3bb92df + 11c380c commit 1cd96d0
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 9 deletions.
17 changes: 14 additions & 3 deletions assets/css/frontend.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.hp {

/*--------------------------------------------------------------
Ratings
--------------------------------------------------------------*/
Expand Down Expand Up @@ -31,7 +32,7 @@
i {
font-size: 14px;
line-height: 1;
color: rgba(0,0,0,0.15);
color: rgba(0, 0, 0, 0.15);

&:not(:first-child) {
margin-left: 2px;
Expand All @@ -49,7 +50,7 @@

&::after {
content: '\f005';
color: rgba(0,0,0,0.15);
color: rgba(0, 0, 0, 0.15);
position: absolute;
left: 0;
top: 0;
Expand All @@ -66,6 +67,7 @@
}
}
}

/*--------------------------------------------------------------
Reviews
--------------------------------------------------------------*/
Expand Down Expand Up @@ -118,6 +120,15 @@

&__author {
word-wrap: break-word;

a {

&,
&:hover {
color: inherit;
text-decoration: none;
}
}
}

&__created-date,
Expand Down Expand Up @@ -154,4 +165,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion assets/css/frontend.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion hivepress-reviews.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: HivePress Reviews
* Description: Allow users to rate and review listings.
* Version: 1.3.0
* Version: 1.4.0
* Author: HivePress
* Author URI: https://hivepress.io/
* Text Domain: hivepress-reviews
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: hivepress
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7785WBVGMNB44&source=url
Tags: hivepress, reviews, directory, listings, classifieds
Requires at least: 5.0
Tested up to: 6.0
Tested up to: 6.3
Requires PHP: 7.0
Stable tag: 1.3.0
Stable tag: 1.4.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down
19 changes: 18 additions & 1 deletion templates/review/view/review-author.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
<?php
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

$display = get_option( 'hp_user_enable_display' );
?>
<div class="hp-review__author"><?php echo esc_html( $review->get_author__display_name() ); ?></div>
<div class="hp-review__author">
<?php
if ( $display ) : ?>
<a href="<?php echo esc_url( hivepress()->router->get_url( 'user_view_page', [ 'username' => $review->get_author__username() ] ) ); ?>">
<?php
endif;

echo esc_html( $review->get_author__display_name() );

if ( $display ) :
?>
</a>
<?php
endif;
?>
</div>
14 changes: 13 additions & 1 deletion templates/review/view/review-image.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
<?php
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

$display = get_option( 'hp_user_enable_display' );
?>
<div class="hp-review__image">
<?php echo get_avatar( $review->get_author__id(), 150 ); ?>
<?php if ( $display ) : ?>
<a href="<?php echo esc_url( hivepress()->router->get_url( 'user_view_page', [ 'username' => $review->get_author__username() ] ) ); ?>">
<?php
endif;

echo get_avatar( $review->get_author__id(), 150 );

if ( $display ) :
?>
</a>
<?php endif; ?>
</div>

0 comments on commit 1cd96d0

Please sign in to comment.