array( 'url' => $image_url, 'label' => $text_label ), * $value => array( 'url' => $image_url, 'label' => $text_label ), * )` * * @author Justin Tadlock * @copyright Copyright (c) 2008 - 2015, Justin Tadlock * @link http://themehybrid.com/hybrid-core * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @package customizer-controls */ if ( ! class_exists( 'WP_Customize_Control' ) ) { return; } /** * Radio image customize control. * * @since 1.1.24 * @access public */ class Avantex_Customize_Control_Radio_Image extends WP_Customize_Control { /** * The type of customize control being rendered. * * @since 1.1.24 * @var string */ public $type = 'radio-image'; /** * Displays the control content. * * @since 1.1.24 * @access public * @return void */ public function render_content() { /* If no choices are provided, bail. */ if ( empty( $this->choices ) ) { return; } ?> label ) ) : ?> label ); ?> description ) ) : ?> description; ?>
id}" ); ?>"> choices as $value => $args ) : ?> id}" ); ?>" id="id}-{$value}" ); ?>" link(); ?> value(), $value ); ?> />