Heray-Was-Here
Server : Apache
System : Linux ip-172-26-6-158 5.10.0-35-cloud-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User : daemon ( 1)
PHP Version : 8.1.10
Disable Function : NONE
Directory :  /bitnami/wordpress/wp-content/plugins/testify/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /bitnami/wordpress/wp-content/plugins/testify/includes/testify_qmark_customize_control.php
<?php
/**
 * This file includes code based on and/or copied from WordPress
 * See license.txt for copyright and licensing details
 *
 * This file modified by Jonathan Hall, Dominika Rauk and/or others; last modified 2020-08-28
 *
 */

if (!defined('ABSPATH')) die();

// Code based on WordPress wp-includes/class-wp-customize-control.php
class Testify_Qmark_Customize_Control extends WP_Customize_Control {
    
	protected function render_content() {
		if (!empty($this->label)) {
			echo('<span class="customize-control-title">'.esc_html($this->label).'</span>');
		}
		if (!empty($this->description)) {
			echo('<span class="description customize-control-description">'.esc_html($this->description).'</span>');
		}
		$val = $this->value();
		echo('<input type="hidden" '.$this->input_attrs().' '.$this->get_link().' />
			  <span class="testify-qmark-option'.(empty($val) ? ' active' : '').'" onclick="jQuery(this).addClass(\'active\').siblings().removeClass(\'active\').siblings(\'input\').val(0).change();">'.esc_html__('None', 'testify-testify').'</span>');
		$qmarkId = 1;
		$qmarkFilePre = dirname(__FILE__).'/../img/qmark';
		while( file_exists($qmarkFilePre.$qmarkId.'.svg') ) {
			$qmarkSvg = file_get_contents($qmarkFilePre.$qmarkId.'.svg');
			echo('<span class="testify-qmark-option'.($val == $qmarkId ? ' active' : '').'" onclick="jQuery(this).addClass(\'active\').siblings().removeClass(\'active\').siblings(\'input\').val('.((int) $qmarkId).').change();">'
					// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- this is known SVG code from a file that is part of this plugin
					.str_replace('{color}', '#666', $qmarkSvg).'</span>');
			++$qmarkId;
		}
	}
}

Hry