$font, 'font-weight' => $font_weight, 'text-transform' => $text_transform, 'font-style' => $font_style, 'font-size' => $font_size, 'line-height' => $line_height, ) ); } if ( $layout == 'amount' ) { // Link if ( $link === 'post' ) { if ( get_post_type() == 'product' ) { $link_atts = ' href="' . apply_filters( 'the_permalink', get_permalink() ) . '#reviews"'; } else { $link_atts = ' href="' . get_comments_link() . '"'; } } elseif ( $link === 'custom' ) { $link_atts = us_generate_link_atts( $custom_link ); } else { $link_atts = ''; } if ( $color_link ) { $classes .= ' color_link_inherit'; } // Define no comments indication $comments_none = '0'; if ( ! $number ) { $classes .= ' with_word'; $comments_none = us_translate( 'No Comments' ); } $comments_number = get_comments_number(); // "Hide this element if no comments" if ( $hide_zero AND empty( $comments_number ) ) { return; } } // Output the element $output = '