https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /home/dh_edsupp/respectfullyfuneral.com/wp-content/plugins/testimonial-widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/dh_edsupp/respectfullyfuneral.com/wp-content/plugins/testimonial-widgets/functions-rating.php
<?php
function wpttst_star_rating_form( $field, $value, $class, $echo = true, $field_array = '' ) {
 $value = (int) $value;
if ( $field && is_array( $field ) && isset( $field['name'] ) ) {
$name = $field['name'];
if ( $field_array ) {
 $name = $field_array . '[' . $name . ']';
}
} else {
$name = 'rating';
}
ob_start(); ?>
<div class="strong-rating-wrapper field-wrap <?php echo esc_attr( $class ); ?>"><!-- cheap trick to collapse whitespace around inline-blocks
--><fieldset contenteditable=false
 id="wpttst_<?php echo esc_attr( $field['name'] ); ?>"
 name="<?php echo esc_attr( $field['name'] ); ?>"
 class="strong-rating"
 data-field-type="rating"
 tabindex="0">
 <legend><?php esc_html_e('rating fields', 'strong-testimonials' ) ?></legend><!--
--><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star1" name="<?php echo esc_attr( $name ); ?>" value="1" <?php checked( $value, 1 ); ?> /><!--
--><label for="<?php echo esc_attr( $field['name'] ); ?>-star1" title="1 star"></label><!--
--><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star2" name="<?php echo esc_attr( $name ); ?>" value="2" <?php checked( $value, 2 ); ?> /><!--
--><label for="<?php echo esc_attr( $field['name'] ); ?>-star2" title="2 stars"></label><!--
--><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star3" name="<?php echo esc_attr( $name ); ?>" value="3" <?php checked( $value, 3 ); ?> /><!--
--><label for="<?php echo esc_attr( $field['name'] ); ?>-star3" title="3 stars"></label><!--
--><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star4" name="<?php echo esc_attr( $name ); ?>" value="4" <?php checked( $value, 4 ); ?> /><!--
--><label for="<?php echo esc_attr( $field['name'] ); ?>-star4" title="4 stars"></label><!--
--><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star5" name="<?php echo esc_attr( $name ); ?>" value="5" <?php checked( $value, 5 ); ?> /><!--
--><label for="<?php echo esc_attr( $field['name'] ); ?>-star5" title="5 stars"></label><!--
--></fieldset><!--
--></div>
<?php
$html = ob_get_contents();
ob_end_clean();
$html = preg_replace( '/<!--(.|\s)*?-->/', '', $html );
if ( $echo ) {
$allowed_html = array(
'div' => array(
'class' => array(),
),
'fieldset' => array(
'contenteditable' => array(),
'id' => array(),
'name' => array(),
'class' => array(),
'data-field-type' => array(),
'tabindex' => array(),
),
'input' => array(
'type' => array(),
'id' => array(),
'name' => array(),
'value' => array(),
'checked' => array(),
),
'label' => array(
'for' => array(),
'title' => array(),
),
'legend' => array(
'value' => array(),
)
);
echo wp_kses($html, $allowed_html);
return true;
}
 return $html;
}
function wpttst_star_rating_display( $value = 0, $class = 'in-view', $echo = true ) {
 $value = (int) $value;
ob_start(); ?>
<span class="strong-rating-wrapper <?php echo esc_attr( $class ); ?>">
<span class="strong-rating"><!-- cheap trick to collapse whitespace around inline-blocks
--><span class="star<?php echo ( 0 == $value ) ? ' current' : '' ; ?> nodisplay" ></span><!--
--><span class="star<?php echo ( 1 == $value ) ? ' current' : '' ; ?>"></span><!--
--><span class="star<?php echo ( 2 == $value ) ? ' current' : '' ; ?>"></span><!--
--><span class="star<?php echo ( 3 == $value ) ? ' current' : '' ; ?>"></span><!--
--><span class="star<?php echo ( 4 == $value ) ? ' current' : '' ; ?>"></span><!--
--><span class="star<?php echo ( 5 == $value ) ? ' current' : '' ; ?>"></span><!--
--></span>
</span>
<?php
$html = ob_get_contents();
ob_end_clean();
$html = preg_replace( '/<!--(.|\s)*?-->/', '', $html );
if ( $echo ) {
$allowed_html = array(
'span' => array(
'class' => array()
 ),
);
 echo wp_kses($html, $allowed_html);
 return true;
}
 return $html;
}

https://t.me/RX1948 - 2025