Skip to content

Commit

Permalink
Merge pull request #15 from bootscore/Fix-product-star-rating
Browse files Browse the repository at this point in the history
Fix product star rating
  • Loading branch information
crftwrk authored Sep 6, 2022
2 parents 67cb96a + 33abc7f commit b2b53ac
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 53 deletions.
46 changes: 1 addition & 45 deletions css/swiper-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,48 +27,4 @@
.heroes-fade .swiper-pagination-bullet-active {
background: var(--bs-white);
}
/* Heroes END */

/* Products */
.products .card .star-rating,
.card .star-rating {
float: none;
margin: 1rem auto;
}

.product-card .star-rating {
float: right;
overflow: hidden;
position: relative;
height: 1em;
line-height: 1;
font-size: 1em;
width: 5.4em;
font-family: star;
}

.product-card .star-rating::before {
content: "\73\73\73\73\73";
color: var(--bs-gray);
float: left;
top: 0;
left: 0;
position: absolute;
}

.product-card .star-rating span {
overflow: hidden;
float: left;
top: 0;
left: 0;
position: absolute;
padding-top: 1.5em;
}

.product-card .star-rating span::before {
content: "\53\53\53\53\53";
top: 0;
position: absolute;
left: 0;
}
/* Products END */
/* Heroes END */
2 changes: 1 addition & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*Plugin Name: bS Swiper
Plugin URI: https://bootscore.me/plugins/bs-swiper/
Description: Plugin to show posts, pages, custom post types or WooCommerce products in a swiper.js carousel for bootScore theme. <a href="https://bootscore.me/documentation/bs-swiper/">Documentation</a> | <a href="https://bootscore.me/shop/products/free/bs5-swiper/">Changelog</a>
Version: 5.1.0.5
Version: 5.1.0.6
Author: bootScore
Author URI: https://bootscore.me
License: MIT License
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Contributors: Bastian Kreiter, torricelli

Requires at least: 4.5
Tested up to: 6.0
Tested up to: 6.0.2
Requires PHP: 5.6
Stable tag: 5.1.0.4
Stable tag: 5.1.0.6
License: MIT License
License URI: https://github.com/bootscore/bs-swiper/blob/main/LICENSE

Expand Down Expand Up @@ -108,6 +108,10 @@ Plugin to show posts, pages, custom post types or WooCommerce products in a swip

== Changelog ==

= 5.1.0.6 - September 06 2022 =

* [IMPROVEMENT] Fix product star rating

= 5.1.0.5 - July 27 2022 =

* [UPDATE] Swiper 8.3.2
Expand Down
4 changes: 2 additions & 2 deletions templates/sc-swiper-card-product.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @author Bastian Kreiter
* @package bS Product Slider
* @version 5.1.0.0
* @version 5.1.0.6
Product Slider Shortcode
[bs-swiper-card-product order="DESC" orderby="date" posts="12" category="theme, child-themes, free, plugins"]
Expand Down Expand Up @@ -41,7 +41,7 @@ function bootscore_product_slider($atts) {

<!-- Swiper -->

<div class="px-5 position-relative product-slider">
<div class="px-5 position-relative product-slider woocommerce">

<div class="cards swiper-container swiper position-static">

Expand Down
6 changes: 3 additions & 3 deletions update/plugin.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name" : "bS Swiper",
"version" : "5.1.0.5",
"download_url" : "https://github.com/bootscore/bs-swiper/releases/download/v5.1.0.5/bs-swiper-main.zip",
"version" : "5.1.0.6",
"download_url" : "https://github.com/bootscore/bs-swiper/releases/download/v5.1.0.6/bs-swiper-main.zip",
"sections" : {
"description" : "Update Swiper 8.3.2"
"description" : "Fix product star rating"
}
}

0 comments on commit b2b53ac

Please sign in to comment.