Closed TeoAlex closed 1 year ago
@TeoAlex please propose a solution before starting this issue.
My initial thought was to add the stars in a global variable and use that wherever needed.
define( 'WPMTST_STAR_SOLID', '<svg class="star_solid" aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" vie....' )
Other solution proposed by @razvanaldea89 is to add a static method to Strong_Testimonials_Helper
class to retreive the stars.
@razvanaldea89 solution
Maybe make the rating stars SVGs values into global variables. Improves code readability and makes the stars SVG code easyer to change.