} // nothing for 2.5 } public static function render() { if (self::$isJ30) { $return = JHtmlSidebar::render(); if (count(self::$entries) > 0) { $return .= '<div class="filter-custom hidden-phone">'; foreach (self::$entries as $entry) { switch ($entry['type']) { case 'calendar': $return .= '<div><center>' . JHtml::calendar($entry['options'], $entry['key'], $entry['key'], '%Y-%m-%d', array('class' => 'input input-medium', 'placeholder' => $entry['label'])) . '</center></div>'; break; case 'calendar_btn': $return .= '<center><div class="rsmem_calendar_btn"><button type="button" class="hasTip btn btn-warning pull-right" title="' . JText::_('JSEARCH_FILTER_CLEAR') . '" onclick="document.id(\'' . $entry['options']['to_btn'] . '\').value=\'\';document.id(\'' . $entry['options']['from_btn'] . '\').value=\'\';this.form.submit();"><i class="icon-remove"></i></button> <button type="submit" class="hasTip btn btn-info pull-right" title="' . $entry['key'] . '">' . $entry['label'] . '</button></div></center>'; break; } } $return .= '</div> <hr class="hr-condensed">'; } return $return; } else { return ''; } } } $jversion = new JVersion(); RSMembershipToolbarHelper::$isJ30 = $jversion->isCompatible('3.0');