Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: gihanshp on Sep 16th, 2012  |  syntax: PHP  |  size: 0.48 KB  |  hits: 120  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }