' . esc_html( $text ) . ''; //wpmtst-btn wpmtst-btn-block wpmtst-btn-lg - former button classes } /** * @since 1.0.0 * Renders extension html * * @param string $title * * @param string $description * * @param string $icon (icon URL) * * @param bool $pro * @param string $link The URL to unlock the extension */ public function display_extension( $title, $description = '', $icon = '', $pro = false, $pro_color = '#5333ED', $extension_name = false ) { echo '
'; echo '
'; if ( '' != $icon ) { echo ''; } echo '
' . esc_html( $title ) . ( ( $pro ) ? '
PAID
' : '' ) . '
'; echo '
'; echo '

' . wp_kses_post( $description ) . '

'; echo $extension_name ? '
' . esc_html__( 'Upgrade', 'download-monitor' ) . '
' : ''; echo '
'; } /** * @since 1.0.0 * Displays h1 heading * * @param string $text * * @param string $position */ public function display_heading( $text, $position = 'center' ) { echo '

' . esc_html( $text ) . '

'; } /** * @since 1.0.0 * Displays h6 subheading * * @param string $text * * @param string $position */ public function display_subheading( $text, $position = 'center' ) { echo '
' . esc_html( $text ) . '
'; } /** * @since 1.0.0 * Renders testimonial block * * @param string $text * * @param string $icon * * @param string $name * * @param string $job (reviewer's job or company) */ public function display_testimonial( $text, $icon = '', $name = '', $job = '', $star_color = '' ) { echo '
'; if ( '' != $icon ) { echo ''; } echo '

' . esc_html( $text ) . '

'; $this->display_stars( $star_color ); if ( '' !== $name || '' !== $job ) { echo '

'; if ( '' !== $name ) { echo '' . esc_html( $name ) . '
'; } if ( '' !== $job ) { echo esc_html( $job ); } echo '

'; } echo '
'; } /** * @since 1.0.0 * Renders a UL list * * @param array $items - array of list items */ public function display_listing( $items ) { echo ''; } /** * @since 1.0.0 * Renders a UL list * * @param string $url - youtube.com url */ public function display_video( $url ) { parse_str( wp_parse_url( esc_url( $url ), PHP_URL_QUERY ), $video_vars ); echo '
'; } /** * @since 1.0.0 * Renders rating stars block * * @param string $color - code of the star color fill */ public function display_stars( $color ) { $color = ( '' === $color ) ? '#FFD700' : sanitize_hex_color( $color ); $id = wp_rand( 0, 9999999 ); $star = ' '; $svg_args = array( 'svg' => array( 'class' => true, 'aria-hidden' => true, 'aria-labelledby' => true, 'role' => true, 'xmlns' => true, 'width' => true, 'height' => true, 'viewbox' => true, // <= Must be lower case! 'id' => true, ), 'g' => array( 'fill' => true ), 'title' => array( 'title' => true ), 'path' => array( 'd' => true, 'fill' => true, ), 'style' => array( 'type' => true ), ); echo ''; echo '
' . wp_kses( $star . $star . $star . $star . $star, $svg_args ) . '
'; } /** * @since 1.0.0 * Columns wrapper start * * @param int $cols - # of columns the contained objects should be displayed as. (1/2/3) */ public function layout_start( $cols = 2, $class = '' ) { echo '
'; } /** * @since 1.0.0 * Columns wrapper end */ public function layout_end() { echo '
'; } /** * @since 1.0.0 * Renders empty space block * * @param int $height - height(px) of space */ public function display_empty_space( $height = 25 ) { echo '
'; } /** * Horizontal delimiter * * @return void * @since 1.0.0 */ public function horizontal_delimiter() { echo '
'; } } }