示例#1
0
 /**
  * @access private
  * @return string
  */
 function openTag()
 {
     $string = '';
     if ($this->_fieldContain) {
         $string .= '<div data-role="fieldcontain">';
     }
     $string .= parent::openTag();
     return $string;
 }
示例#2
0
 /**
  * @access private
  * @return string
  */
 function openTag()
 {
     $string = parent::openTag();
     if ($this->_img != '') {
         $string .= '<img src="' . $this->_img . '"' . ($this->_isThumb ? '' : ' class="ui-li-icon"') . '/>';
     }
     if ($this->_isThumb) {
         $string .= '<h3>';
     }
     if ($this->_href != '') {
         $string .= '<a href="' . $this->_href . '"';
         if ($this->_rel) {
             $string .= ' rel="' . $this->_rel . '"';
         }
         if ($this->_target) {
             $string .= ' target="' . $this->_target . '"';
         }
         $string .= '>';
     }
     $string .= $this->_title;
     if ($this->_href != '') {
         $string .= '</a>';
     }
     if ($this->_isThumb) {
         $string .= '</h3>';
     }
     if ($this->_subTitle != '') {
         $string .= '<p>' . $this->_subTitle . '</p>';
     }
     if ($this->_splitHref != '') {
         $string .= '<a href="' . $this->_splitHref . '"';
         if ($this->_splitRel) {
             $string .= ' rel="' . $this->_splitRel . '"';
         }
         if ($this->_splitTarget) {
             $string .= ' target="' . $this->_splitTarget . '"';
         }
         $string .= '></a>';
     }
     return $string;
 }
示例#3
0
 /**
  * @access private
  * @return string
  */
 function openTag()
 {
     $string = '';
     if ($this->_fieldContain) {
         $string .= '<div data-role="fieldcontain">';
     }
     if ($this->_label->text() != '' && $this->type() != 'radio' && $this->type() != 'checkbox') {
         $string .= $this->_label;
     }
     $string .= parent::openTag();
     return $string;
 }