Пример #1
0
    /**
     * Enqueues specific tabs assets for the active pages
     *
     * @since 1.0.0
     * @access protected
     */
    protected function enqueue_active_assets()
    {
        parent::enqueue_active_assets();
        ?>
		<style type="text/css">
		#control-<?php 
        echo $this->id();
        ?>
 {
			border-color: <?php 
        echo $this->base_color();
        ?>
;
		}

		#
		<?php 
        echo $this->id();
        ?>
		span.uix-control-label {
			color: <?php 
        echo $this->base_color();
        ?>
;
		}
		</style>
		<?php 
    }
Пример #2
0
 /**
  * Gets the attributes for the control.
  *
  * @since  1.0.0
  * @access public
  */
 public function set_attributes()
 {
     parent::set_attributes();
     if (!empty($this->struct['toggle_all'])) {
         $this->attributes['data-toggle-all'] = 'true';
     }
 }
Пример #3
0
 /**
  * Gets the attributes for the control.
  *
  * @since  1.0.0
  * @access public
  */
 public function set_attributes()
 {
     parent::set_attributes();
     $this->attributes['rows'] = '5';
     $this->attributes['class'] = 'widefat';
     if (!empty($this->struct['rows'])) {
         $this->attributes['rows'] = $this->struct['rows'];
     }
 }
Пример #4
0
 /**
  * Gets the attributes for the control.
  *
  * @since  1.0.0
  * @access public
  */
 public function set_attributes()
 {
     parent::set_attributes();
     $this->attributes['type'] = $this->type;
     unset($this->attributes['id']);
 }
Пример #5
0
 /**
  * register scritps and styles
  *
  * @since 1.0.0
  * @access public
  */
 public function set_assets()
 {
     // Initilize core styles
     $this->assets['style']['post-relation'] = $this->url . 'assets/controls/post-relation/css/post-relation' . UIX_ASSET_DEBUG . '.css';
     $this->assets['script']['post-relation'] = array('src' => $this->url . 'assets/controls/post-relation/js/post-relation' . UIX_ASSET_DEBUG . '.js', 'in_footer' => true);
     $this->assets['script']['baldrick'] = array('src' => $this->url . 'assets/js/jquery.baldrick' . UIX_ASSET_DEBUG . '.js', 'deps' => array('jquery'));
     $this->assets['script']['uix-ajax'] = array('src' => $this->url . 'assets/js/ajax' . UIX_ASSET_DEBUG . '.js', 'deps' => array('baldrick'));
     $this->assets['style']['uix-ajax'] = $this->url . 'assets/css/ajax' . UIX_ASSET_DEBUG . '.css';
     parent::set_assets();
 }