gihanshp

Untitled

Sep 16th, 2012
201
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Slider_Control extends WP_Customize_Control{
  2.     public $type = 'slider';
  3.    
  4.     public function render_content(){
  5.         ?>
  6.         <label>
  7.             <span class="customize-control-title"><?php esc_html($this->label); ?>  </span>
  8.             <p>Value: <?php echo $this->value; ?></p>
  9.             <input type="hidden" value="<?php echo $this->value; ?>" />
  10.         </label>
  11.         <div class="slider"></div>
  12.         <script type="text/javascript">
  13.             jQuery(function(){
  14.                 jQuery('.slider').slider();
  15.             });
  16.         </script>
  17.         <?php
  18.     }
  19. }
RAW Paste Data