Exemplo n.º 1
10
 protected function getInput()
 {
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     $params = JComponentHelper::getParams("com_jevents");
     $value = (int) $this->value;
     if ($value == -1) {
         if (version_compare(JVERSION, '3.0.0', "<")) {
             $default25 = (string) $this->element["default25"];
             if ($default25 != "") {
                 $this->value = $this->default = intval($default25);
             }
         } else {
             if (version_compare(JVERSION, '3.0.0', ">=")) {
                 $default30 = (string) $this->element["default30"];
                 if ($default30 != "") {
                     $this->value = $this->default = intval($default30);
                 }
             }
         }
     }
     if (!$params->get("bootstrapchosen", 1)) {
         $x = 1;
     }
     return parent::getInput();
 }
Exemplo n.º 2
0
 protected function getInput()
 {
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     if (class_exists("DateTimeZone")) {
         $zones = DateTimeZone::listIdentifiers();
         static $options;
         if (!isset($options)) {
             $options = array();
             $options[] = JHTML::_('select.option', '', '- ' . JText::_('SELECT_TIMEZONE') . ' -');
             foreach ($zones as $zone) {
                 if (strpos($zone, "/") === false && strpos($zone, "UTC") === false) {
                     continue;
                 }
                 if (strpos($zone, "Etc") === 0) {
                     continue;
                 }
                 $options[] = JHTML::_('select.option', $zone, $zone);
             }
         }
         return JHTML::_('select.genericlist', $options, $this->name, 'class="inputbox"', 'value', 'text', $this->value, $this->id);
     } else {
         /*
          * Required to avoid a cycle of encoding &
          * html_entity_decode was used in place of htmlspecialchars_decode because
          * htmlspecialchars_decode is not compatible with PHP 4
          */
         $value = htmlspecialchars(html_entity_decode($value, ENT_QUOTES), ENT_QUOTES);
         return '<input type="text" name="' . $this->name . '" id="' . $this->id . '" value="' . $this->value . '" />';
     }
 }
Exemplo n.º 3
0
    /**
     * Method to get the field input markup.
     *
     * @return	string	The field input markup.
     * @since	1.6
     */
    protected function getInput()
    {
        ob_start();
        $event = $this->form->jevdata[$this->name]["event"];
        $eventfield = $this->name == "publish_up" ? "startDate" : "endDate";
        $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
        $minyear = JEVHelper::getMinYear();
        $maxyear = JEVHelper::getMaxYear();
        $inputdateformat = $params->get("com_editdateformat", "d.m.Y");
        static $firsttime;
        if (!defined($firsttime)) {
            $document = JFactory::getDocument();
            $js = "\neventEditDateFormat='{$inputdateformat}';//Date.defineParser(eventEditDateFormat.replace('d','%d').replace('m','%m').replace('Y','%Y'));";
            $document->addScriptDeclaration($js);
            $firsttime = false;
        }
        $cal = JEVHelper::loadCalendar($this->name, $this->name, $event->{$eventfield}(), $minyear, $maxyear, 'var elem =jevjq(this);' . $this->element['onhidestart'], "var elem = jevjq(this);" . $this->element['onchange'], $inputdateformat);
        echo $cal;
        ?>
		<input type="hidden"  name="<?php 
        echo $this->name;
        ?>
2" id="<?php 
        echo $this->name;
        ?>
2" value="" />
		<?php 
        $html = ob_get_clean();
        JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
        JEVHelper::ConditionalFields($this->element, $this->form->getName());
        return $html;
    }
Exemplo n.º 4
0
 protected function getInput()
 {
     $this->value = str_replace('<br />', "\n", strpos($this->value, " ") > 0 ? $this->value : JText::_($this->value));
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     return parent::getInput();
 }
Exemplo n.º 5
0
 protected function getInput()
 {
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     $input = parent::getInput();
     return $input;
 }
Exemplo n.º 6
0
    protected function getInput()
    {
        if (!JevJoomlaVersion::isCompatible("3.4")) {
            return "";
        }
        JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
        JEVHelper::ConditionalFields($this->element, $this->form->getName());
        $layouttype = $this->getAttribute("layouttype");
        $target = $this->getAttribute("target");
        $csstarget = $this->getAttribute("csstarget");
        JHtml::script("https://www.jevents.net/jevlayouts/LatestEvents.js");
        $html = "<script>jQuery(document).ready(function (\$){loadJevPreview('{$target}', '{$csstarget}');});</script>";
        $id = $this->id;
        $html .= <<<DROPDOWN
<div class="dropdown btn-group" id="{$id}">
  <button class="btn btn-default dropdown-toggle" type="button" id="dropdown{$target}" data-toggle="dropdown" aria-expanded="false">
    Select Layout
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu" aria-labelledby="dropdown{$target}" id="dropdownUL_{$target}" role="menu">
    <li role="presentation"><a role="menuitem" class="dropdownpopover" href="#" data-title="Current Customised Value" data-content="Custom Format String customised by you">Current Value</a></li>
    </ul>
</div>
DROPDOWN;
        return $html;
    }
Exemplo n.º 7
0
 protected function getInput()
 {
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     if ($this->fieldname == "rp_id") {
         // The active event id field.
         if (0 == (int) $this->value) {
             $value = '';
         } else {
             $value = (int) $this->value;
         }
         return '<input type="text" id="selectedrepeat"   name="' . $this->name . '" value="' . $value . '" />';
     }
     // Load the modal behavior script.
     JevHtmlBootstrap::modal('a.modal');
     $js = "\n\t\tfunction jSelectEvent_" . $this->id . "(link, title, Itemid, evid, rpid) {\n\t\t\t\$('selectedeventtitle').value = title;\n\t\t\t\$('selectedevent').value = evid;\n\t\t\t\$('selectedrepeat').value = rpid;\n\t\t\tSqueezeBox.close();\n\t\t\treturn false;\n\t\t}";
     // Add the script to the document head.
     JFactory::getDocument()->addScriptDeclaration($js);
     // Setup variables for display.
     $html = array();
     $link = 'index.php?option=com_jevents&amp;task=icalevent.select&amp;tmpl=component&amp;' . JSession::getFormToken() . '=1&amp;nomenu=1&function=jSelectEvent_' . $this->id;
     // get the repeat id
     $rpidfield = $this->form->getField("rp_id", "request");
     $rp_id = $rpidfield->value;
     $db = JFactory::getDBO();
     $db->setQuery('SELECT det.summary as title' . ' FROM #__jevents_vevdetail as det ' . ' LEFT JOIN #__jevents_repetition as rep ON rep.eventdetail_id = det.evdet_id' . ' WHERE rep.rp_id = ' . (int) $rp_id);
     $title = $db->loadResult();
     echo $db->getErrorMsg();
     if ($error = $db->getErrorMsg()) {
         JError::raiseWarning(500, $error);
     }
     if (empty($title)) {
         $title = JText::_('COM_JEVENTS_FIELD_SELECT_EVENT_LABEL');
     }
     $title = htmlspecialchars($title, ENT_QUOTES, 'UTF-8');
     // The current user display field.
     $html[] = '<div class="fltlft">';
     $html[] = '  <input type="text" id="selectedeventtitle" value="' . $title . '" disabled="disabled" size="35" />';
     $html[] = '</div>';
     // The user select button.
     $html[] = '<div class="button2-left">';
     $html[] = '  <div class="blank">';
     $html[] = '	<a class="modal" title="' . JText::_('COM_JEVENTS_CHANGE_EVENT') . '"  href="' . $link . '" rel="{handler: \'iframe\', size: {x: 800, y: 450}}">' . JText::_('COM_JEVENTS_CHANGE_EVENT_BUTTON') . '</a>';
     $html[] = '  </div>';
     $html[] = '</div>';
     // The active event id field.
     if (0 == (int) $this->value) {
         $value = '';
     } else {
         $value = (int) $this->value;
     }
     // class='required' for client side validation
     $class = '';
     if ($this->required) {
         $class = ' class="required modal-value"';
     }
     $html[] = '<input type="hidden" id="selectedevent"  ' . $class . ' name="' . $this->name . '" value="' . $value . '" />';
     return implode("\n", $html);
 }
Exemplo n.º 8
0
 protected function getInput()
 {
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     if ($this->fieldname == "rp_id") {
         // The active event id field.
         if (0 == (int) $this->value) {
             $value = '';
         } else {
             $value = (int) $this->value;
         }
         return '<input type="hidden" id="selectedrepeat"   name="' . $this->name . '" value="' . $value . '" />';
     }
     // Load the modal behavior script.
     JLoader::register('JevModal', JPATH_LIBRARIES . "/jevents/jevmodal/jevmodal.php");
     JevModal::modal("a.selectmodal");
     $js = "\n\t\tfunction jSelectEvent_" . $this->id . "(link, title, Itemid, evid, rpid) {\n\t\t\tjQuery('#selectedeventtitle').val( title);\n\t\t\tjQuery('#selectedevent').val( evid);\n\t\t\tjQuery('#selectedrepeat').val( rpid);\n\t\t\tjQuery('#selectEvent').modal('hide');\n\t\t\treturn false;\n\t\t}";
     // Add the script to the document head.
     JFactory::getDocument()->addScriptDeclaration($js);
     // Setup variables for display.
     $html = array();
     $link = 'index.php?option=com_jevents&amp;task=icalevent.select&amp;tmpl=component&amp;' . JSession::getFormToken() . '=1&amp;nomenu=1&function=jSelectEvent_' . $this->id;
     // get the repeat id
     $rpidfield = $this->form->getField("rp_id", "request");
     $rp_id = $rpidfield->value;
     $db = JFactory::getDBO();
     $db->setQuery('SELECT det.summary as title' . ' FROM #__jevents_vevdetail as det ' . ' LEFT JOIN #__jevents_repetition as rep ON rep.eventdetail_id = det.evdet_id' . ' WHERE rep.rp_id = ' . (int) $rp_id);
     $title = $db->loadResult();
     echo $db->getErrorMsg();
     if ($error = $db->getErrorMsg()) {
         JError::raiseWarning(500, $error);
     }
     if (empty($title)) {
         $title = JText::_('COM_JEVENTS_FIELD_SELECT_EVENT_LABEL');
     }
     $title = htmlspecialchars($title, ENT_QUOTES, 'UTF-8');
     // The current user display field.
     $html[] = '<div class="fltlft input-append" >';
     $html[] = '  <input type="text" id="selectedeventtitle" value="' . $title . '" disabled="disabled" size="50" />';
     $link = "javascript:jevModalPopup('selectEvent', '" . $link . "', '" . JText::_("COM_JEVENTS_CHANGE_EVENT_BUTTON", array('jsSafe' => true)) . "'); ";
     // The user select button.
     $html[] = '	<a class="selectmodal btn btn-primary" title="' . JText::_('COM_JEVENTS_CHANGE_EVENT') . '"  href="' . $link . '" ><span class="icon-list icon-white"></span>' . JText::_('COM_JEVENTS_CHANGE_EVENT_BUTTON') . '</a>';
     $html[] = '</div>';
     // The active event id field.
     if (0 == (int) $this->value) {
         $value = '';
     } else {
         $value = (int) $this->value;
     }
     // class='required' for client side validation
     $class = '';
     if ($this->required) {
         $class = ' class="required modal-value"';
     }
     $html[] = '<input type="hidden" id="selectedevent"  ' . $class . ' name="' . $this->name . '" value="' . $value . '" />';
     return implode("\n", $html);
 }
Exemplo n.º 9
0
 protected function getInput()
 {
     if (is_string($this->value)) {
         $this->value = explode(",", $this->value);
     }
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     return parent::getInput();
 }
Exemplo n.º 10
0
 /**
  * Method to get the field input markup.
  *
  * @return	string	The field input markup.
  * @since	1.6
  */
 protected function getInput()
 {
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     if (isset($this->form->jevdata[$this->name]["users"])) {
         return $this->form->jevdata[$this->name]["users"];
     } else {
         return "";
     }
 }
Exemplo n.º 11
0
 /**
  * Method to get the field input markup.
  *
  * @return	string	The field input markup.
  * @since	1.6
  */
 protected function getInput()
 {
     $glist = $this->form->jevdata[$this->name]["glist"];
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     if ($glist) {
         return $glist;
     }
     return "";
 }
Exemplo n.º 12
0
 protected function getInput()
 {
     $style = ' class="jev_none" ';
     // if not showing copyright show message
     if (!$this->value) {
         $style = ' class="jev_block" ';
     }
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     return parent::getInput() . '<div id="jevcopymsg" ' . $style . '>' . JText::_("Before removing the copyright footer please read this important message at the <a href='https://www.jevents.net/hidecopyright?tmpl=component&template=beez_20' title='get hide copyright code' class='modal' rel='{handler: \"iframe\", size: {x: 650, y: 450}}'>JEvents website</a>.") . '</div>';
 }
Exemplo n.º 13
0
 /**
  * Method to get the field input markup.
  *
  * @return	string	The field input markup.
  * @since	1.6
  */
 protected function getInput()
 {
     $input = parent::getInput();
     if (strpos($input, "placeholder") === false) {
         $placeholder = $this->element['placeholder'] ? ' placeholder="' . htmlspecialchars(JText::_($this->element['placeholder'])) . '"' : '';
         $input = str_replace("/>", " {$placeholder} />", $input);
     }
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     return $input;
 }
Exemplo n.º 14
0
 protected function getInput()
 {
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     if (!defined("JEV_COM_COMPONENT")) {
         define("JEV_COM_COMPONENT", "com_jevents");
         define("JEV_COMPONENT", str_replace("com_", "", JEV_COM_COMPONENT));
     }
     JEVHelper::stylesheet('eventsadmin.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
     return parent::getInput();
 }
Exemplo n.º 15
0
    /**
     * Method to get the field input markup.
     *
     * @return	string	The field input markup.
     * @since	1.6
     */
    protected function getInput()
    {
        $cfg = JEVConfig::getInstance();
        $hideColour = false;
        if ($cfg->get('com_calForceCatColorEventForm', 0) == 1 && !JFactory::getApplication()->isAdmin()) {
            $hideColour = true;
        } else {
            if ($cfg->get('com_calForceCatColorEventForm', 0) == 2) {
                $hideColour = true;
            } else {
                $hideColour = false;
            }
        }
        if (!$hideColour) {
            JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
            JEVHelper::ConditionalFields($this->element, $this->form->getName());
            ob_start();
            ?>
			<table id="pick1064797275" style="background-color:<?php 
            echo $this->value . ';color:' . JevMapColor($this->value);
            ?>
;border:solid 1px black;">
				<tr>	
					<td  nowrap="nowrap">
						<input type="hidden" id="pick1064797275field" name="color" value="<?php 
            echo $this->value;
            ?>
"/>
						<a id="colorPickButton" href="javascript:void(0)"  onclick="document.getElementById('fred').style.visibility='visible';"	  style="visibility:visible;color:<?php 
            echo JevMapColor($this->value);
            ?>
;font-weight:bold;"><?php 
            echo JText::_('JEV_COLOR_PICKER');
            ?>
</a>
					</td>
					<td>
						<div style="position:relative;z-index:9999;">
							<iframe id="fred" src="<?php 
            echo JURI::root() . "components/" . JEV_COM_COMPONENT . "/libraries/colours.html?id=fred";
            ?>
" class="jev_ev_colour_picker_i"></iframe>
						</div>
					</td>
				</tr>
			</table>
			<?php 
            return ob_get_clean();
        }
        return "";
    }
Exemplo n.º 16
0
 /**
  * Method to get the field input markup.
  *
  * @return	string	The field input markup.
  * @since	1.6
  */
 protected function getInput()
 {
     if ($this->form->jevdata[$this->name]["repeatId"] == 0) {
         if (!isset($this->form->jevdata[$this->name]["excats"])) {
             $this->form->jevdata[$this->name]["excats"] = false;
         }
         $input = JEventsHTML::buildCategorySelect($this->value, 'id="catid" ', $this->form->jevdata[$this->name]["dataModel"]->accessibleCategoryList(), $this->form->jevdata[$this->name]["with_unpublished_cat"], true, 0, 'catid', JEV_COM_COMPONENT, $this->form->jevdata[$this->name]["excats"], "ordering", true);
     } else {
         $input = "";
     }
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     return $input;
 }
Exemplo n.º 17
0
 protected function getInput()
 {
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     // if no value set then default to zero
     if (intval($this->value) == 0) {
         $options = (array) $this->getOptions();
         foreach ($options as $option) {
             if ($option->sendEmail) {
                 $this->value = $option->value;
                 break;
             }
         }
     }
     return parent::getInput();
 }
Exemplo n.º 18
0
 /**
  * Method to get the field options.
  *
  * @return    array    The field option objects.
  * @since    1.6
  */
 public function getInput()
 {
     // load core and extra mootools
     JHTML::_('behavior.framework');
     JHtmlBehavior::framework();
     JHtmlBehavior::framework(true);
     // Must load admin language files
     $lang = JFactory::getLanguage();
     $lang->load("com_jevents", JPATH_ADMINISTRATOR);
     $node = $this->element;
     $value = $this->value;
     $name = $this->name;
     $control_name = $this->type;
     $help = $node['help'];
     if (!is_null($help) && version_compare(JVERSION, '1.6.0', ">=")) {
         if (is_object($help)) {
             $help = (string) $help;
         }
         $help = isset($help) && JString::strlen($help) <= 0 ? null : $help;
     }
     if (!is_null($help)) {
         $parts = explode(",", $value);
         $helps = explode(",", $help);
         foreach ($parts as $key => $valuepart) {
             $help = $helps[$key];
             list($helpfile, $varname, $part) = explode("::", $help);
             $lang = JFactory::getLanguage();
             $langtag = $lang->getTag();
             if (file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/help/' . $langtag . '/' . $helpfile)) {
                 $jeventHelpPopup = JPATH_COMPONENT_ADMINISTRATOR . '/help/' . $langtag . '/' . $helpfile;
             } else {
                 $jeventHelpPopup = JPATH_COMPONENT_ADMINISTRATOR . '/help/en-GB/' . $helpfile;
             }
             if (!file_exists($jeventHelpPopup)) {
                 return "";
             }
             include $jeventHelpPopup;
             $help = $this->help(${$varname}, $part);
             $parts[$key] = JText::_($valuepart) . $help;
         }
         $value = implode(", ", $parts);
     }
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     return "<strong style='color:#993300'>" . JText::_($value) . "</strong>";
 }
Exemplo n.º 19
0
 /**
  * Method to get the field input markup.
  *
  * @return	string	The field input markup.
  * @since	1.6
  */
 protected function getInput()
 {
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     $showpriority = $params->get("showpriority", 0);
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     // only those who can publish globally can set priority field
     if ($showpriority && JEVHelper::isEventPublisher(true)) {
         $list = array();
         for ($i = 0; $i < 10; $i++) {
             $list[] = JHTML::_('select.option', $i, $i, 'val', 'text');
         }
         return JHTML::_('select.genericlist', $list, 'priority', "style='width:50px'", 'val', 'text', $this->value);
     } else {
         return "";
     }
 }
Exemplo n.º 20
0
 protected function getInput()
 {
     if (version_compare(JVERSION, "3.0", "lt")) {
         return "<p style='float:left'>" . JText::_("JEV_JOOMLA_3_ONWARDS") . "</p>";
     }
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     $falist = array("fa-adjust" => "&#xf042;", "fa-adn" => "&#xf170;", "fa-align-center" => "&#xf037;", "fa-align-justify" => "&#xf039;", "fa-align-left" => "&#xf036;", "fa-align-right" => "&#xf038;", "fa-ambulance" => "&#xf0f9;", "fa-anchor" => "&#xf13d;", "fa-android" => "&#xf17b;", "fa-angle-double-down" => "&#xf103;", "fa-angle-double-left" => "&#xf100;", "fa-angle-double-right" => "&#xf101;", "fa-angle-double-up" => "&#xf102;", "fa-angle-down" => "&#xf107;", "fa-angle-left" => "&#xf104;", "fa-angle-right" => "&#xf105;", "fa-angle-up" => "&#xf106;", "fa-apple" => "&#xf179;", "fa-archive" => "&#xf187;", "fa-arrow-circle-down" => "&#xf0ab;", "fa-arrow-circle-left" => "&#xf0a8;", "fa-arrow-circle-o-down" => "&#xf01a;", "fa-arrow-circle-o-left" => "&#xf190;", "fa-arrow-circle-o-right" => "&#xf18e;", "fa-arrow-circle-o-up" => "&#xf01b;", "fa-arrow-circle-right" => "&#xf0a9;", "fa-arrow-circle-up" => "&#xf0aa;", "fa-arrow-down" => "&#xf063;", "fa-arrow-left" => "&#xf060;", "fa-arrow-right" => "&#xf061;", "fa-arrow-up" => "&#xf062;", "fa-arrows" => "&#xf047;", "fa-arrows-alt" => "&#xf0b2;", "fa-arrows-h" => "&#xf07e;", "fa-arrows-v" => "&#xf07d;", "fa-asterisk" => "&#xf069;", "fa-automobile (alias)" => "&#xf1b9;", "fa-backward" => "&#xf04a;", "fa-ban" => "&#xf05e;", "fa-bank (alias)" => "&#xf19c;", "fa-bar-chart-o" => "&#xf080;", "fa-barcode" => "&#xf02a;", "fa-bars" => "&#xf0c9;", "fa-beer" => "&#xf0fc;", "fa-behance" => "&#xf1b4;", "fa-behance-square" => "&#xf1b5;", "fa-bell" => "&#xf0f3;", "fa-bell-o" => "&#xf0a2;", "fa-bitbucket" => "&#xf171;", "fa-bitbucket-square" => "&#xf172;", "fa-bitcoin (alias)" => "&#xf15a;", "fa-bold" => "&#xf032;", "fa-bolt" => "&#xf0e7;", "fa-bomb" => "&#xf1e2;", "fa-book" => "&#xf02d;", "fa-bookmark" => "&#xf02e;", "fa-bookmark-o" => "&#xf097;", "fa-briefcase" => "&#xf0b1;", "fa-btc" => "&#xf15a;", "fa-bug" => "&#xf188;", "fa-building" => "&#xf1ad;", "fa-building-o" => "&#xf0f7;", "fa-bullhorn" => "&#xf0a1;", "fa-bullseye" => "&#xf140;", "fa-cab (alias)" => "&#xf1ba;", "fa-calendar" => "&#xf073;", "fa-calendar-o" => "&#xf133;", "fa-camera" => "&#xf030;", "fa-camera-retro" => "&#xf083;", "fa-car" => "&#xf1b9;", "fa-caret-down" => "&#xf0d7;", "fa-caret-left" => "&#xf0d9;", "fa-caret-right" => "&#xf0da;", "fa-caret-square-o-down" => "&#xf150;", "fa-caret-square-o-left" => "&#xf191;", "fa-caret-square-o-right" => "&#xf152;", "fa-caret-square-o-up" => "&#xf151;", "fa-caret-up" => "&#xf0d8;", "fa-certificate" => "&#xf0a3;", "fa-chain (alias)" => "&#xf0c1;", "fa-chain-broken" => "&#xf127;", "fa-check" => "&#xf00c;", "fa-check-circle" => "&#xf058;", "fa-check-circle-o" => "&#xf05d;", "fa-check-square" => "&#xf14a;", "fa-check-square-o" => "&#xf046;", "fa-chevron-circle-down" => "&#xf13a;", "fa-chevron-circle-left" => "&#xf137;", "fa-chevron-circle-right" => "&#xf138;", "fa-chevron-circle-up" => "&#xf139;", "fa-chevron-down" => "&#xf078;", "fa-chevron-left" => "&#xf053;", "fa-chevron-right" => "&#xf054;", "fa-chevron-up" => "&#xf077;", "fa-child" => "&#xf1ae;", "fa-circle" => "&#xf111;", "fa-circle-o" => "&#xf10c;", "fa-circle-o-notch" => "&#xf1ce;", "fa-circle-thin" => "&#xf1db;", "fa-clipboard" => "&#xf0ea;", "fa-clock-o" => "&#xf017;", "fa-cloud" => "&#xf0c2;", "fa-cloud-download" => "&#xf0ed;", "fa-cloud-upload" => "&#xf0ee;", "fa-cny (alias)" => "&#xf157;", "fa-code" => "&#xf121;", "fa-code-fork" => "&#xf126;", "fa-codepen" => "&#xf1cb;", "fa-coffee" => "&#xf0f4;", "fa-cog" => "&#xf013;", "fa-cogs" => "&#xf085;", "fa-columns" => "&#xf0db;", "fa-comment" => "&#xf075;", "fa-comment-o" => "&#xf0e5;", "fa-comments" => "&#xf086;", "fa-comments-o" => "&#xf0e6;", "fa-compass" => "&#xf14e;", "fa-compress" => "&#xf066;", "fa-copy (alias)" => "&#xf0c5;", "fa-credit-card" => "&#xf09d;", "fa-crop" => "&#xf125;", "fa-crosshairs" => "&#xf05b;", "fa-css3" => "&#xf13c;", "fa-cube" => "&#xf1b2;", "fa-cubes" => "&#xf1b3;", "fa-cut (alias)" => "&#xf0c4;", "fa-cutlery" => "&#xf0f5;", "fa-dashboard (alias)" => "&#xf0e4;", "fa-database" => "&#xf1c0;", "fa-dedent (alias)" => "&#xf03b;", "fa-delicious" => "&#xf1a5;", "fa-desktop" => "&#xf108;", "fa-deviantart" => "&#xf1bd;", "fa-digg" => "&#xf1a6;", "fa-dollar (alias)" => "&#xf155;", "fa-dot-circle-o" => "&#xf192;", "fa-download" => "&#xf019;", "fa-dribbble" => "&#xf17d;", "fa-dropbox" => "&#xf16b;", "fa-drupal" => "&#xf1a9;", "fa-edit (alias)" => "&#xf044;", "fa-eject" => "&#xf052;", "fa-ellipsis-h" => "&#xf141;", "fa-ellipsis-v" => "&#xf142;", "fa-empire" => "&#xf1d1;", "fa-envelope" => "&#xf0e0;", "fa-envelope-o" => "&#xf003;", "fa-envelope-square" => "&#xf199;", "fa-eraser" => "&#xf12d;", "fa-eur" => "&#xf153;", "fa-euro (alias)" => "&#xf153;", "fa-exchange" => "&#xf0ec;", "fa-exclamation" => "&#xf12a;", "fa-exclamation-circle" => "&#xf06a;", "fa-exclamation-triangle" => "&#xf071;", "fa-expand" => "&#xf065;", "fa-external-link" => "&#xf08e;", "fa-external-link-square" => "&#xf14c;", "fa-eye" => "&#xf06e;", "fa-eye-slash" => "&#xf070;", "fa-facebook" => "&#xf09a;", "fa-facebook-square" => "&#xf082;", "fa-fast-backward" => "&#xf049;", "fa-fast-forward" => "&#xf050;", "fa-fax" => "&#xf1ac;", "fa-female" => "&#xf182;", "fa-fighter-jet" => "&#xf0fb;", "fa-file" => "&#xf15b;", "fa-file-archive-o" => "&#xf1c6;", "fa-file-audio-o" => "&#xf1c7;", "fa-file-code-o" => "&#xf1c9;", "fa-file-excel-o" => "&#xf1c3;", "fa-file-image-o" => "&#xf1c5;", "fa-file-movie-o (alias)" => "&#xf1c8;", "fa-file-o" => "&#xf016;", "fa-file-pdf-o" => "&#xf1c1;", "fa-file-photo-o (alias)" => "&#xf1c5;", "fa-file-picture-o (alias)" => "&#xf1c5;", "fa-file-powerpoint-o" => "&#xf1c4;", "fa-file-sound-o (alias)" => "&#xf1c7;", "fa-file-text" => "&#xf15c;", "fa-file-text-o" => "&#xf0f6;", "fa-file-video-o" => "&#xf1c8;", "fa-file-word-o" => "&#xf1c2;", "fa-file-zip-o (alias)" => "&#xf1c6;", "fa-files-o" => "&#xf0c5;", "fa-film" => "&#xf008;", "fa-filter" => "&#xf0b0;", "fa-fire" => "&#xf06d;", "fa-fire-extinguisher" => "&#xf134;", "fa-flag" => "&#xf024;", "fa-flag-checkered" => "&#xf11e;", "fa-flag-o" => "&#xf11d;", "fa-flash (alias)" => "&#xf0e7;", "fa-flask" => "&#xf0c3;", "fa-flickr" => "&#xf16e;", "fa-floppy-o" => "&#xf0c7;", "fa-folder" => "&#xf07b;", "fa-folder-o" => "&#xf114;", "fa-folder-open" => "&#xf07c;", "fa-folder-open-o" => "&#xf115;", "fa-font" => "&#xf031;", "fa-forward" => "&#xf04e;", "fa-foursquare" => "&#xf180;", "fa-frown-o" => "&#xf119;", "fa-gamepad" => "&#xf11b;", "fa-gavel" => "&#xf0e3;", "fa-gbp" => "&#xf154;", "fa-ge (alias)" => "&#xf1d1;", "fa-gear (alias)" => "&#xf013;", "fa-gears (alias)" => "&#xf085;", "fa-gift" => "&#xf06b;", "fa-git" => "&#xf1d3;", "fa-git-square" => "&#xf1d2;", "fa-github" => "&#xf09b;", "fa-github-alt" => "&#xf113;", "fa-github-square" => "&#xf092;", "fa-gittip" => "&#xf184;", "fa-glass" => "&#xf000;", "fa-globe" => "&#xf0ac;", "fa-google" => "&#xf1a0;", "fa-google-plus" => "&#xf0d5;", "fa-google-plus-square" => "&#xf0d4;", "fa-graduation-cap" => "&#xf19d;", "fa-group (alias)" => "&#xf0c0;", "fa-h-square" => "&#xf0fd;", "fa-hacker-news" => "&#xf1d4;", "fa-hand-o-down" => "&#xf0a7;", "fa-hand-o-left" => "&#xf0a5;", "fa-hand-o-right" => "&#xf0a4;", "fa-hand-o-up" => "&#xf0a6;", "fa-hdd-o" => "&#xf0a0;", "fa-header" => "&#xf1dc;", "fa-headphones" => "&#xf025;", "fa-heart" => "&#xf004;", "fa-heart-o" => "&#xf08a;", "fa-history" => "&#xf1da;", "fa-home" => "&#xf015;", "fa-hospital-o" => "&#xf0f8;", "fa-html5" => "&#xf13b;", "fa-image (alias)" => "&#xf03e;", "fa-inbox" => "&#xf01c;", "fa-indent" => "&#xf03c;", "fa-info" => "&#xf129;", "fa-info-circle" => "&#xf05a;", "fa-inr" => "&#xf156;", "fa-instagram" => "&#xf16d;", "fa-institution (alias)" => "&#xf19c;", "fa-italic" => "&#xf033;", "fa-joomla" => "&#xf1aa;", "fa-jpy" => "&#xf157;", "fa-jsfiddle" => "&#xf1cc;", "fa-key" => "&#xf084;", "fa-keyboard-o" => "&#xf11c;", "fa-krw" => "&#xf159;", "fa-language" => "&#xf1ab;", "fa-laptop" => "&#xf109;", "fa-leaf" => "&#xf06c;", "fa-legal (alias)" => "&#xf0e3;", "fa-lemon-o" => "&#xf094;", "fa-level-down" => "&#xf149;", "fa-level-up" => "&#xf148;", "fa-life-bouy (alias)" => "&#xf1cd;", "fa-life-ring" => "&#xf1cd;", "fa-life-saver (alias)" => "&#xf1cd;", "fa-lightbulb-o" => "&#xf0eb;", "fa-link" => "&#xf0c1;", "fa-linkedin" => "&#xf0e1;", "fa-linkedin-square" => "&#xf08c;", "fa-linux" => "&#xf17c;", "fa-list" => "&#xf03a;", "fa-list-alt" => "&#xf022;", "fa-list-ol" => "&#xf0cb;", "fa-list-ul" => "&#xf0ca;", "fa-location-arrow" => "&#xf124;", "fa-lock" => "&#xf023;", "fa-long-arrow-down" => "&#xf175;", "fa-long-arrow-left" => "&#xf177;", "fa-long-arrow-right" => "&#xf178;", "fa-long-arrow-up" => "&#xf176;", "fa-magic" => "&#xf0d0;", "fa-magnet" => "&#xf076;", "fa-mail-forward (alias)" => "&#xf064;", "fa-mail-reply (alias)" => "&#xf112;", "fa-mail-reply-all (alias)" => "&#xf122;", "fa-male" => "&#xf183;", "fa-map-marker" => "&#xf041;", "fa-maxcdn" => "&#xf136;", "fa-medkit" => "&#xf0fa;", "fa-meh-o" => "&#xf11a;", "fa-microphone" => "&#xf130;", "fa-microphone-slash" => "&#xf131;", "fa-minus" => "&#xf068;", "fa-minus-circle" => "&#xf056;", "fa-minus-square" => "&#xf146;", "fa-minus-square-o" => "&#xf147;", "fa-mobile" => "&#xf10b;", "fa-mobile-phone (alias)" => "&#xf10b;", "fa-money" => "&#xf0d6;", "fa-moon-o" => "&#xf186;", "fa-mortar-board (alias)" => "&#xf19d;", "fa-music" => "&#xf001;", "fa-navicon (alias)" => "&#xf0c9;", "fa-openid" => "&#xf19b;", "fa-outdent" => "&#xf03b;", "fa-pagelines" => "&#xf18c;", "fa-paper-plane" => "&#xf1d8;", "fa-paper-plane-o" => "&#xf1d9;", "fa-paperclip" => "&#xf0c6;", "fa-paragraph" => "&#xf1dd;", "fa-paste (alias)" => "&#xf0ea;", "fa-pause" => "&#xf04c;", "fa-paw" => "&#xf1b0;", "fa-pencil" => "&#xf040;", "fa-pencil-square" => "&#xf14b;", "fa-pencil-square-o" => "&#xf044;", "fa-phone" => "&#xf095;", "fa-phone-square" => "&#xf098;", "fa-photo (alias)" => "&#xf03e;", "fa-picture-o" => "&#xf03e;", "fa-pied-piper" => "&#xf1a7;", "fa-pied-piper-alt" => "&#xf1a8;", "fa-pied-piper-square (alias)" => "&#xf1a7;", "fa-pinterest" => "&#xf0d2;", "fa-pinterest-square" => "&#xf0d3;", "fa-plane" => "&#xf072;", "fa-play" => "&#xf04b;", "fa-play-circle" => "&#xf144;", "fa-play-circle-o" => "&#xf01d;", "fa-plus" => "&#xf067;", "fa-plus-circle" => "&#xf055;", "fa-plus-square" => "&#xf0fe;", "fa-plus-square-o" => "&#xf196;", "fa-power-off" => "&#xf011;", "fa-print" => "&#xf02f;", "fa-puzzle-piece" => "&#xf12e;", "fa-qq" => "&#xf1d6;", "fa-qrcode" => "&#xf029;", "fa-question" => "&#xf128;", "fa-question-circle" => "&#xf059;", "fa-quote-left" => "&#xf10d;", "fa-quote-right" => "&#xf10e;", "fa-ra (alias)" => "&#xf1d0;", "fa-random" => "&#xf074;", "fa-rebel" => "&#xf1d0;", "fa-recycle" => "&#xf1b8;", "fa-reddit" => "&#xf1a1;", "fa-reddit-square" => "&#xf1a2;", "fa-refresh" => "&#xf021;", "fa-renren" => "&#xf18b;", "fa-reorder (alias)" => "&#xf0c9;", "fa-repeat" => "&#xf01e;", "fa-reply" => "&#xf112;", "fa-reply-all" => "&#xf122;", "fa-retweet" => "&#xf079;", "fa-rmb (alias)" => "&#xf157;", "fa-road" => "&#xf018;", "fa-rocket" => "&#xf135;", "fa-rotate-left (alias)" => "&#xf0e2;", "fa-rotate-right (alias)" => "&#xf01e;", "fa-rouble (alias)" => "&#xf158;", "fa-rss" => "&#xf09e;", "fa-rss-square" => "&#xf143;", "fa-rub" => "&#xf158;", "fa-ruble (alias)" => "&#xf158;", "fa-rupee (alias)" => "&#xf156;", "fa-save (alias)" => "&#xf0c7;", "fa-scissors" => "&#xf0c4;", "fa-search" => "&#xf002;", "fa-search-minus" => "&#xf010;", "fa-search-plus" => "&#xf00e;", "fa-send (alias)" => "&#xf1d8;", "fa-send-o (alias)" => "&#xf1d9;", "fa-share" => "&#xf064;", "fa-share-alt" => "&#xf1e0;", "fa-share-alt-square" => "&#xf1e1;", "fa-share-square" => "&#xf14d;", "fa-share-square-o" => "&#xf045;", "fa-shield" => "&#xf132;", "fa-shopping-cart" => "&#xf07a;", "fa-sign-in" => "&#xf090;", "fa-sign-out" => "&#xf08b;", "fa-signal" => "&#xf012;", "fa-sitemap" => "&#xf0e8;", "fa-skype" => "&#xf17e;", "fa-slack" => "&#xf198;", "fa-sliders" => "&#xf1de;", "fa-smile-o" => "&#xf118;", "fa-sort" => "&#xf0dc;", "fa-sort-alpha-asc" => "&#xf15d;", "fa-sort-alpha-desc" => "&#xf15e;", "fa-sort-amount-asc" => "&#xf160;", "fa-sort-amount-desc" => "&#xf161;", "fa-sort-asc" => "&#xf0de;", "fa-sort-desc" => "&#xf0dd;", "fa-sort-down (alias)" => "&#xf0dd;", "fa-sort-numeric-asc" => "&#xf162;", "fa-sort-numeric-desc" => "&#xf163;", "fa-sort-up (alias)" => "&#xf0de;", "fa-soundcloud" => "&#xf1be;", "fa-space-shuttle" => "&#xf197;", "fa-spinner" => "&#xf110;", "fa-spoon" => "&#xf1b1;", "fa-spotify" => "&#xf1bc;", "fa-square" => "&#xf0c8;", "fa-square-o" => "&#xf096;", "fa-stack-exchange" => "&#xf18d;", "fa-stack-overflow" => "&#xf16c;", "fa-star" => "&#xf005;", "fa-star-half" => "&#xf089;", "fa-star-half-empty (alias)" => "&#xf123;", "fa-star-half-full (alias)" => "&#xf123;", "fa-star-half-o" => "&#xf123;", "fa-star-o" => "&#xf006;", "fa-steam" => "&#xf1b6;", "fa-steam-square" => "&#xf1b7;", "fa-step-backward" => "&#xf048;", "fa-step-forward" => "&#xf051;", "fa-stethoscope" => "&#xf0f1;", "fa-stop" => "&#xf04d;", "fa-strikethrough" => "&#xf0cc;", "fa-stumbleupon" => "&#xf1a4;", "fa-stumbleupon-circle" => "&#xf1a3;", "fa-subscript" => "&#xf12c;", "fa-suitcase" => "&#xf0f2;", "fa-sun-o" => "&#xf185;", "fa-superscript" => "&#xf12b;", "fa-support (alias)" => "&#xf1cd;", "fa-table" => "&#xf0ce;", "fa-tablet" => "&#xf10a;", "fa-tachometer" => "&#xf0e4;", "fa-tag" => "&#xf02b;", "fa-tags" => "&#xf02c;", "fa-tasks" => "&#xf0ae;", "fa-taxi" => "&#xf1ba;", "fa-tencent-weibo" => "&#xf1d5;", "fa-terminal" => "&#xf120;", "fa-text-height" => "&#xf034;", "fa-text-width" => "&#xf035;", "fa-th" => "&#xf00a;", "fa-th-large" => "&#xf009;", "fa-th-list" => "&#xf00b;", "fa-thumb-tack" => "&#xf08d;", "fa-thumbs-down" => "&#xf165;", "fa-thumbs-o-down" => "&#xf088;", "fa-thumbs-o-up" => "&#xf087;", "fa-thumbs-up" => "&#xf164;", "fa-ticket" => "&#xf145;", "fa-times" => "&#xf00d;", "fa-times-circle" => "&#xf057;", "fa-times-circle-o" => "&#xf05c;", "fa-tint" => "&#xf043;", "fa-toggle-down (alias)" => "&#xf150;", "fa-toggle-left (alias)" => "&#xf191;", "fa-toggle-right (alias)" => "&#xf152;", "fa-toggle-up (alias)" => "&#xf151;", "fa-trash-o" => "&#xf014;", "fa-tree" => "&#xf1bb;", "fa-trello" => "&#xf181;", "fa-trophy" => "&#xf091;", "fa-truck" => "&#xf0d1;", "fa-try" => "&#xf195;", "fa-tumblr" => "&#xf173;", "fa-tumblr-square" => "&#xf174;", "fa-turkish-lira (alias)" => "&#xf195;", "fa-twitter" => "&#xf099;", "fa-twitter-square" => "&#xf081;", "fa-umbrella" => "&#xf0e9;", "fa-underline" => "&#xf0cd;", "fa-undo" => "&#xf0e2;", "fa-university" => "&#xf19c;", "fa-unlink (alias)" => "&#xf127;", "fa-unlock" => "&#xf09c;", "fa-unlock-alt" => "&#xf13e;", "fa-unsorted (alias)" => "&#xf0dc;", "fa-upload" => "&#xf093;", "fa-usd" => "&#xf155;", "fa-user" => "&#xf007;", "fa-user-md" => "&#xf0f0;", "fa-users" => "&#xf0c0;", "fa-video-camera" => "&#xf03d;", "fa-vimeo-square" => "&#xf194;", "fa-vine" => "&#xf1ca;", "fa-vk" => "&#xf189;", "fa-volume-down" => "&#xf027;", "fa-volume-off" => "&#xf026;", "fa-volume-up" => "&#xf028;", "fa-warning (alias)" => "&#xf071;", "fa-wechat (alias)" => "&#xf1d7;", "fa-weibo" => "&#xf18a;", "fa-weixin" => "&#xf1d7;", "fa-wheelchair" => "&#xf193;", "fa-windows" => "&#xf17a;", "fa-won (alias)" => "&#xf159;", "fa-wordpress" => "&#xf19a;", "fa-wrench" => "&#xf0ad;", "fa-xing" => "&#xf168;", "fa-xing-square" => "&#xf169;", "fa-yahoo" => "&#xf19e;", "fa-yen (alias)" => "&#xf157;", "fa-youtube" => "&#xf167;", "fa-youtube-play" => "&#xf16a;", "fa-youtube-square" => "&#xf166;");
     static $options;
     if (!isset($options)) {
         $options = array();
         $options[] = JHTML::_('select.option', '', '- ' . JText::_('SELECT_FONTAWESOME_ICON') . ' -');
         foreach ($falist as $name => $faicon) {
             $options[] = JHTML::_('select.option', $faicon, $faicon . " " . $name);
         }
     }
     return JHTML::_('select.genericlist', $options, $this->name, 'class="inputbox" style="font-family:\'FontAwesome\', Arial;" ', 'value', 'text', $this->value, $this->id);
 }
Exemplo n.º 21
0
 /**
  * Method to get the field input markup.
  *
  * @return	string	The field input markup.
  * @since	1.6
  */
 protected function getInput()
 {
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     if (JFactory::getApplication()->isAdmin() || JEVHelper::isEventPublisher()) {
         $ev_id = $this->form->jevdata[$this->name]["ev_id"];
         if ($ev_id == 0) {
             // published by default
             $this->value = 1;
         }
         $poptions = array();
         $poptions[] = JHTML::_('select.option', 0, JText::_("JUNPUBLISHED"));
         $poptions[] = JHTML::_('select.option', 1, JText::_("JPUBLISHED"));
         $poptions[] = JHTML::_('select.option', -1, JText::_("JTRASHED"));
         return JHTML::_('select.genericlist', $poptions, 'state', 'class="inputbox" size="1"', 'value', 'text', $this->value);
     } else {
         return '<input type="hidden" name="state" id="state" value="' . $this->value . '" />';
     }
 }
Exemplo n.º 22
0
    /**
     * Method to get the field input markup.
     *
     * @return	string	The field input markup.
     * @since	1.6
     */
    protected function getInput()
    {
        ob_start();
        $event = $this->form->jevdata[$this->name]["event"];
        $dispatcher = JDispatcher::getInstance();
        $res = $dispatcher->trigger('onEditLocation', array(&$event));
        if (count($res) == 0 || !$res[0]) {
            ?>
			<input class="inputbox" type="text" name="location" size="80" maxlength="120" value="<?php 
            echo JEventsHtml::special($this->value);
            ?>
" />
			<?php 
        }
        $input = ob_get_clean();
        JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
        JEVHelper::ConditionalFields($this->element, $this->form->getName());
        return $input;
    }
Exemplo n.º 23
0
 protected function getInput()
 {
     // load any custom fields
     $dispatcher = JDispatcher::getInstance();
     JPluginHelper::importPlugin("jevents");
     $id = $this->id;
     if (version_compare(JVERSION, '3.3.0', '>=')) {
         $res = $dispatcher->trigger('onEditMenuItem', array(&$this->data, &$this->value, $this->type, $this->name, $this->id, $this->form));
     }
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     if (array_key_exists($id, $this->data)) {
         $item = $this->data[$id];
         if (isset($item->html) && $item->html != "") {
             return $item->html;
         }
     } else {
         return "";
     }
 }
Exemplo n.º 24
0
    /**
     * Method to get the field input markup.
     *
     * @return	string	The field input markup.
     * @since	1.6
     */
    protected function getInput()
    {
        ob_start();
        $native = $this->form->jevdata[$this->name]["native"];
        $clistChoice = $this->form->jevdata[$this->name]["clistChoice"];
        $clist = $this->form->jevdata[$this->name]["clist"];
        $nativeCals = $this->form->jevdata[$this->name]["nativeCals"];
        if ($native && $clistChoice) {
            ?>
				<script type="text/javascript" >
					function preselectCategory(select){
						var lookup = new Array();
						lookup[0]=0;
			<?php 
            foreach ($nativeCals as $nc) {
                echo 'lookup[' . $nc->ics_id . ']=' . $nc->catid . ';';
            }
            ?>
			document.adminForm['catid'].value=lookup[select.value];
				// trigger Bootstrap Chosen replacement
				try {
					jQuery(document.adminForm['catid']).trigger("liszt:updated");
				}
				catch (e){									
				}
			}
				</script>
			<?php 
            echo $clist;
        } else {
            if ($clistChoice) {
                echo $clist;
            } else {
                echo $clist;
            }
        }
        $input = ob_get_clean();
        JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
        JEVHelper::ConditionalFields($this->element, $this->form->getName());
        return $input;
    }
Exemplo n.º 25
0
    /**
     * Method to get the field input markup.
     *
     * @return	string	The field input markup.
     * @since	1.6
     */
    protected function getInput()
    {
        // Initialize variables.
        $html = array();
        $attr = '';
        // Initialize some field attributes.
        $attr .= $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
        $attr .= (string) $this->element['disabled'] == 'true' ? ' disabled="disabled"' : '';
        $attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
        // Initialize JavaScript field attributes.
        $attr .= $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
        $html[] = '<input type="text" name="' . $this->name . '" value="' . $this->value . '" id="pick1064797275field"/><br/>';
        $html[] = '<div class="clr"></div>';
        $html[] = '<iframe id="fred"  frameborder="" src="' . JURI::root() . "components/com_jevents/libraries/colours.html?id=fred&j16=1" . '" class="jev_colour_picker_i" ></iframe>';
        $conditionparam = $this->form->getName() != "com_config.component" ? '_params' : '';
        $html[] = '<div class="clr" id="jform' . $conditionparam . '_jevcolourpicker"></div>';
        //$html[]  = '<div class="clr"></div>';
        // add script to auto open the basic options tab!
        $doc = JFactory::getDocument();
        $script = <<<SCRIPT
window.addEvent('load', function() {
\tvar basicoptions = document.getElement('#basic-options')
\tif (basicoptions && !basicoptions.hasClass('pane-toggler-down')) {
\t   basicoptions.fireEvent('click', basicoptions, 1000);
\t};
});
SCRIPT;
        $doc->addScriptDeclaration($script);
        JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
        JEVHelper::ConditionalFields($this->element, $this->form->getName());
        if (JevJoomlaVersion::isCompatible("3.0")) {
            JEVHelper::stylesheet('eventsadmin.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
        } else {
            JEVHelper::stylesheet('eventsadmin16.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
        }
        return implode($html);
    }
Exemplo n.º 26
0
    protected function getInput()
    {
        JEVHelper::ConditionalFields($this->element, $this->form->getName());
        // Mkae sure jQuery is loaded
        if (JevJoomlaVersion::isCompatible("3.0")) {
            JHtml::_('jquery.framework');
            JHtml::_('jquery.ui', array("core", "sortable"));
            JHtml::_('bootstrap.framework');
            JEVHelper::script("components/com_jevents/assets/js/jQnc.js");
            // this script should come after all the URL based scripts in Joomla so should be a safe place to know that noConflict has been set
            JFactory::getDocument()->addScriptDeclaration("checkJQ();");
        } else {
            if (JComponentHelper::getParams(JEV_COM_COMPONENT)->get("fixjquery", 1)) {
                JFactory::getDocument()->addScript("//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js");
                JFactory::getDocument()->addScript("//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js");
                JEVHelper::script("components/com_jevents/assets/js/jQnc.js");
                // this script should come after all the URL based scripts in Joomla so should be a safe place to know that noConflict has been set
                JFactory::getDocument()->addScriptDeclaration("checkJQ();");
            }
        }
        JEVHelper::script('administrator/components/com_jevents/assets/js/columns.js');
        $user = JFactory::getUser();
        $collist = array();
        $collist[] = array(JText::_("JEV_CORE_DATA", true), "disabled");
        $collist[] = array(JText::_("JEV_FIELD_TITLE", true), "TITLE");
        $collist[] = array(JText::_("JEV_FIELD_TITLE_LINK", true), "TITLE_LINK");
        $collist[] = array(JText::_("JEV_FIELD_REPEATSUMMARY", true), "REPEATSUMMARY");
        $collist[] = array(JText::_("JEV_FIELD_STARTDATE", true), "STARTDATE");
        $collist[] = array(JText::_("JEV_FIELD_STARTTIME", true), "STARTTIME");
        $collist[] = array(JText::_("JEV_FIELD_ISOSTARTTIME", true), "ISOSTART");
        $collist[] = array(JText::_("JEV_FIELD_ENDDATE", true), "ENDDATE");
        $collist[] = array(JText::_("JEV_FIELD_ENDTIME", true), "ENDTIME");
        $collist[] = array(JText::_("JEV_FIELD_ISOENDTIME", true), "ISOEND");
        $collist[] = array(JText::_("JEV_FIELD_MULTIENDDATE", true), "MULTIENDDATE");
        $collist[] = array(JText::_("JEV_FIELD_DURATION", true), "DURATION");
        $collist[] = array(JText::_("JEV_FIELD_PREVIOUSNEXT", true), "PREVIOUSNEXT");
        $collist[] = array(JText::_("JEV_FIELD_FIRSTREPEAT", true), "FIRSTREPEAT");
        $collist[] = array(JText::_("JEV_FIELD_LASTREPEAT", true), "LASTREPEAT");
        $collist[] = array(JText::_("JEV_FIELD_CREATOR_LABEL", true), "CREATOR_LABEL");
        $collist[] = array(JText::_("JEV_FIELD_CREATOR", true), "CREATOR");
        $collist[] = array(JText::_("JEV_FIELD_HITS", true), "HITS");
        $collist[] = array(JText::_("JEV_FIELD_DESCRIPTION", true), "DESCRIPTION");
        $collist[] = array(JText::_("JEV_FIELD_LOCATION_LABEL", true), "LOCATION_LABEL");
        $collist[] = array(JText::_("JEV_FIELD_LOCATION", true), "LOCATION");
        $collist[] = array(JText::_("JEV_FIELD_CONTACT_LABEL", true), "CONTACT_LABEL");
        $collist[] = array(JText::_("JEV_FIELD_CONTACT", true), "CONTACT");
        $collist[] = array(JText::_("JEV_FIELD_EXTRAINFO", true), "EXTRAINFO");
        $collist[] = array(JText::_("JEV_FIELD_CATEGORY", true), "CATEGORY");
        $collist[] = array(JText::_("JEV_FIELD_ALL_CATEGORIES", true), "ALLCATEGORIES");
        $collist[] = array(JText::_("JEV_FIELD_CATEGORY_LINK", true), "CATEGORYLNK");
        $collist[] = array(JText::_("JEV_FIELD_CATEGORY_IMAGE", true), "CATEGORYIMG");
        $collist[] = array(JText::_("JEV_FIELD_CATEGORY_IMAGES", true), "CATEGORYIMGS");
        $collist[] = array(JText::_("JEV_FIELD_CATEGORY_DESCRIPTION", true), "CATDESC");
        $collist[] = array(JText::_("JEV_FIELD_COLOUR", true), "COLOUR");
        $collist[] = array(JText::_("JEV_FIELD_CALENDAR", true), "CALENDAR");
        $collist[] = array(JText::_("JEV_FIELD_CREATIONDATE", true), "CREATED");
        $collist[] = array(JText::_("JEV_FIELD_LINKSTART", true), "LINKSTART");
        $collist[] = array(JText::_("JEV_FIELD_LINKEND", true), "LINKEND");
        $collist[] = array(JText::_("JEV_FIELD_URL", true), "URL");
        $collist[] = array(JText::_("JEV_ACCESS_LEVEL", true), "ACCESS");
        $collist[] = array(JText::_("JEV_EVENT_PRIORITY", true), "PRIORITY");
        // get list of enabled plugins
        $jevplugins = JPluginHelper::getPlugin("jevents");
        foreach ($jevplugins as $jevplugin) {
            if (JPluginHelper::importPlugin("jevents", $jevplugin->name)) {
                $classname = "plgJevents" . ucfirst($jevplugin->name);
                if (is_callable(array($classname, "fieldNameArray"))) {
                    $lang = JFactory::getLanguage();
                    $lang->load("plg_jevents_" . $jevplugin->name, JPATH_ADMINISTRATOR);
                    $fieldNameArray = call_user_func(array($classname, "fieldNameArray"), 'list');
                    if (!isset($fieldNameArray['labels'])) {
                        continue;
                    }
                    $collist[] = array($fieldNameArray["group"], "disabled");
                    for ($i = 0; $i < count($fieldNameArray['labels']); $i++) {
                        if ($fieldNameArray['labels'][$i] == "" || $fieldNameArray['labels'][$i] == " Label") {
                            continue;
                        }
                        $collist[] = array(str_replace(":", " ", $fieldNameArray['labels'][$i]), $fieldNameArray['values'][$i]);
                    }
                }
            }
        }
        $invalue = array();
        $indexedgroups = array();
        if ($this->value != "") {
            $ingroups = explode("||", $this->value);
            foreach ($ingroups as $group) {
                $group = explode("|", $group);
                if ($group[0] == "") {
                    continue;
                }
                $invalue[] = $group[0];
                if (count($group) < 3) {
                    $group[2] = $group[0];
                }
                list($id, $fieldlabel, $label) = $group;
                $col = new stdClass();
                $col->fieldlabel = $fieldlabel;
                $col->id = $id;
                $col->label = $label;
                $col->raw = implode("|", $group);
                $indexedgroups[$id] = $col;
            }
        }
        $input = '<div style="clear:left"></div><table><tr valign="top">
			<td><div style="font-weight:bold">' . JText::_("JEV_CLICK_TO_ADD_COLUMN") . '</div>
			<div id="columnchoices" style="margin-top:10px;padding:5px;min-width:200px;height:150px;border:solid 1px #ccc;overflow-y:auto" >';
        foreach ($collist as $col) {
            if (count($col) < 3) {
                $col[2] = $col[0];
            }
            list($fieldlabel, $id, $label) = $col;
            if (!in_array($id, $invalue)) {
                // we can't handle parameters yet
                if (strpos($id, ":")) {
                    continue;
                }
                if ($id == "disabled") {
                    $input .= '<div><strong>' . $fieldlabel . "</strong></div>\n";
                } else {
                    $input .= '<div>' . $fieldlabel . "<span style='display:none'>{$id}</span></div>\n";
                }
            }
        }
        $input .= '</div></td>
		<td><div  style="font-weight:bold;margin-left:20px;">' . JText::_("JEV_COLUMNS_DRAG_TO_REORDER_OR_CLICK_TO_REMOVE") . '</div>
			<div id="columnmatches" style="margin:10px 0px 0px 20px;padding-top:5px;min-width:250px;">';
        $invalues = array();
        foreach ($invalue as $col) {
            $input .= '<div id="column' . $col . '" style="clear:left;"><div style="width:200px;display:inline-block;">' . $indexedgroups[$col]->fieldlabel . "</div><input type='text' value='" . $indexedgroups[$col]->label . "' style='margin-left:20px;' /></div>";
            $invalues[] = $indexedgroups[$col]->raw;
        }
        $invalues = implode("||", $invalues);
        $input .= '</div></td>
		</tr></table>';
        $input .= '<textarea style="display:block"  name="' . $this->name . '"  id="jevcolumns">' . $invalues . '</textarea>';
        $input .= '<div style="clear:left"></div>';
        $input .= '<script type="text/javascript">setupColumnChoices(true);setupColumnLis(true);</script>';
        return $input;
    }
Exemplo n.º 27
0
    /**
     * Method to get the field input markup.
     *
     * @return	string	The field input markup.
     * @since	1.6
     */
    protected function getInput()
    {
        $event = $this->form->jevdata[$this->name]["event"];
        ob_start();
        $name = $this->name;
        $partname = explode("_", $name);
        $partname = $partname[0];
        $time24function = $partname . "time24";
        if ($partname == "start") {
            $test = $event->alldayevent();
        } else {
            $test = $event->alldayevent() || $event->noendtime();
        }
        $btngroup = JevJoomlaVersion::isCompatible("3.0") ? "btn-group" : "";
        $btn = JevJoomlaVersion::isCompatible("3.0") ? "btn" : "";
        ?>
		<div id="<?php 
        echo $partname;
        ?>
_24h_area" class="jev_inline">
			<input class="inputbox" type="text" name="<?php 
        echo $partname;
        ?>
_time" id="<?php 
        echo $name;
        ?>
" size="8" <?php 
        echo $test ? "disabled='disabled'" : "";
        ?>
 maxlength="8" value="<?php 
        echo $event->{$time24function}();
        ?>
" onchange="checkTime(this);"/>
		</div>
		<div  id="<?php 
        echo $partname;
        ?>
_12h_area"  class="jev_inline">
			<input class="inputbox" type="text" name="<?php 
        echo $partname;
        ?>
_12h" id="<?php 
        echo $partname;
        ?>
_12h" size="8" maxlength="8" <?php 
        echo $test ? "disabled='disabled'" : "";
        ?>
 value="" onchange="check12hTime(this);" />
			<div class="radio <?php 
        echo $btngroup;
        ?>
 " id="<?php 
        echo $partname;
        ?>
_ampm"  style="display:inline;">
				<label for="<?php 
        echo $partname;
        ?>
AM" class="radio <?php 
        echo $btn;
        ?>
">
					<input type="radio" name="<?php 
        echo $partname;
        ?>
_ampm" id="<?php 
        echo $partname;
        ?>
AM" value="none" checked="checked" onclick="toggleAMPM('<?php 
        echo $partname;
        ?>
AM');" <?php 
        echo $test ? "disabled='disabled'" : "";
        ?>
 />
					<?php 
        echo JText::_('JEV_AM');
        ?>
				</label>
				<label for="<?php 
        echo $partname;
        ?>
PM" class="radio <?php 
        echo $btn;
        ?>
">
					<input type="radio" name="<?php 
        echo $partname;
        ?>
_ampm" id="<?php 
        echo $partname;
        ?>
PM" value="none" onclick="toggleAMPM('<?php 
        echo $partname;
        ?>
PM');" <?php 
        echo $test ? "disabled='disabled'" : "";
        ?>
 />
					<?php 
        echo JText::_('JEV_PM');
        ?>
				</label>
			</div>
		</div>
		<?php 
        $html = ob_get_clean();
        JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
        JEVHelper::ConditionalFields($this->element, $this->form->getName());
        return $html;
    }
Exemplo n.º 28
0
    /**
     * Method to get the field input markup.
     *
     * @return	string	The field input markup.
     * @since	1.6
     */
    protected function getInput()
    {
        $maxDirectNumber = 50;
        JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
        JEVHelper::ConditionalFields($this->element, $this->form->getName());
        $creator = intval($this->value) > 0 ? intval($this->value) : (isset($user) ? $user->id : 0);
        // If user is jevents can deleteall or has backend access then allow them to specify the creator
        $jevuser = JEVHelper::getAuthorisedUser();
        $user = JFactory::getUser();
        //$access = JAccess::check($user->id, "core.deleteall", "com_jevents");
        $access = $user->authorise('core.admin', 'com_jevents') || $user->authorise('core.deleteall', 'com_jevents');
        $db = JFactory::getDBO();
        if ($jevuser && $jevuser->candeleteall || $access) {
            $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
            $authorisedonly = $params->get("authorisedonly", 0);
            // if authorised only then load from database
            if ($authorisedonly) {
                $sql = "SELECT count(tl.id) FROM #__jev_users AS tl ";
                $sql .= " LEFT JOIN #__users as ju ON tl.user_id=ju.id ";
                $sql .= " WHERE tl.cancreate=1";
                $sql .= " ORDER BY ju.name ASC";
                $db->setQuery($sql);
                $userCount = $db->loadResult();
                if ($userCount <= $maxDirectNumber) {
                    $sql = "SELECT tl.*, ju.*  FROM #__jev_users AS tl ";
                    $sql .= " LEFT JOIN #__users as ju ON tl.user_id=ju.id ";
                    $sql .= " WHERE tl.cancreate=1";
                    $sql .= " ORDER BY ju.name ASC";
                    $db->setQuery($sql);
                    $users = $db->loadObjectList();
                }
            } else {
                $rules = JAccess::getAssetRules("com_jevents", true);
                $creatorgroups = $rules->getData();
                // need to merge the arrays because of stupid way Joomla checks super user permissions
                //$creatorgroups = array_merge($creatorgroups["core.admin"]->getData(), $creatorgroups["core.create"]->getData());
                // use union orf arrays sincee getData no longer has string keys in the resultant array
                //$creatorgroups = $creatorgroups["core.admin"]->getData()+ $creatorgroups["core.create"]->getData();
                // use union orf arrays sincee getData no longer has string keys in the resultant array
                $creatorgroupsdata = $creatorgroups["core.admin"]->getData();
                // take the higher permission setting
                foreach ($creatorgroups["core.create"]->getData() as $creatorgroup => $permission) {
                    if ($permission) {
                        $creatorgroupsdata[$creatorgroup] = $permission;
                    }
                }
                $userids = array(0);
                foreach ($creatorgroupsdata as $creatorgroup => $permission) {
                    if ($permission == 1) {
                        $userids = array_merge(JAccess::getUsersByGroup($creatorgroup, true), $userids);
                    }
                }
                $sql = "SELECT count(id) FROM #__users where id IN (" . implode(",", array_values($userids)) . ") and block=0 ORDER BY name asc";
                $db->setQuery($sql);
                $userCount = $db->loadResult();
                if ($userCount <= $maxDirectNumber) {
                    $sql = "SELECT * FROM #__users where id IN (" . implode(",", array_values($userids)) . ") and block=0 ORDER BY name asc";
                    $db->setQuery($sql);
                    $users = $db->loadObjectList();
                }
            }
            // get list of creators - if fewer than 200
            if (!isset($users)) {
                // Use Typeahead instead
                if ($userCount > $maxDirectNumber) {
                    $creatorname = "";
                    if ($creator > 0) {
                        $sql = "SELECT * FROM #__users where id  = {$creator}";
                        $db->setQuery($sql);
                        $creatorData = $db->loadObject();
                        if ($creatorData) {
                            $creatorname = $creatorData->name . " (" . $creatorData->username . ")";
                        }
                    }
                    ob_start();
                    ?>
					<input type="hidden" name='jev_creatorid' id='jev_creatorid' value="<?php 
                    echo $creator;
                    ?>
"/>
					<div id="scrollable-dropdown-menu" style="float:left">
						<input name="creatorid_notused"  id="ta_creatorid" class="jevtypeahead" placeholder="<?php 
                    echo $creatorname;
                    ?>
"  type="text" autocomplete="off" size="50">
					</div>
					<?php 
                    JLoader::register('JevTypeahead', JPATH_LIBRARIES . "/jevents/jevtypeahead/jevtypeahead.php");
                    $datapath = JRoute::_("index.php?option=com_jevents&ttoption=com_jevents&typeaheadtask=gwejson&file=findcreator", false);
                    //$prefetchdatapath = JRoute::_("index.php?option=com_jevents&ttoption=com_jevents&typeaheadtask=gwejson&file=findcreator&prefetch=1", false);
                    JevTypeahead::typeahead('#ta_creatorid', array('remote' => $datapath, 'data_value' => 'title', 'data_id' => 'creator_id', 'field_selector' => '#jev_creatorid', 'minLength' => 2, 'limit' => 10, 'scrollable' => 1));
                    return ob_get_clean();
                }
                return "";
            }
            $userOptions[] = JHTML::_('select.option', '-1', JText::_('SELECT_USER'));
            foreach ($users as $user) {
                if ($user->id == 0) {
                    continue;
                }
                $userOptions[] = JHTML::_('select.option', $user->id, $user->name . " ( " . $user->username . " )");
            }
            $userlist = JHTML::_('select.genericlist', $userOptions, 'jev_creatorid', 'class="inputbox" size="1" ', 'value', 'text', $creator);
            return $userlist;
        }
        return "";
    }
Exemplo n.º 29
0
 protected function getInput()
 {
     parent::getOptions();
     $availableFields = array();
     $jevplugins = JPluginHelper::getPlugin("jevents");
     //we dinamically get the size of the select box
     $size = 5;
     //$options['CATEGORY'] =  JText::_("JEV_FIELD_CATEGORY",true);
     // title is always required
     //$options['TITLE'] = JText::_("JEV_FIELD_TITLE",true);
     $options['DESCRIPTION'] = JText::_("JEV_FIELD_DESCRIPTION", true);
     $options['LOCN'] = JText::_("JEV_FIELD_LOCATION", true);
     $options['CONTACT'] = JText::_("JEV_FIELD_CONTACT", true);
     $options['EXTRA'] = JText::_("JEV_FIELD_EXTRAINFO", true);
     $group = array();
     $group['value'] = JText::_("JEV_CORE_DATA", true);
     $group['text'] = JText::_("JEV_CORE_DATA", true);
     $group['items'] = $options;
     $optionsGroup[] = $group;
     unset($options);
     foreach ($jevplugins as $jevplugin) {
         // At present we only support JEvents, Agenda & Minutes, CCK plugin, Standard Images and Files, Resources Manager, Metatags and Tags
         if (!in_array($jevplugin->name, array("agendaminutes", "jevcck", "jevfiles", "jevmetatags", "jevpeople", "jevtags"))) {
             continue;
         }
         $classname = "plgJevents" . ucfirst($jevplugin->name);
         if (is_callable(array($classname, "fieldNameArray"))) {
             $lang = JFactory::getLanguage();
             $lang->load("plg_jevents_" . $jevplugin->name, JPATH_ADMINISTRATOR);
             $fieldNameArray = call_user_func(array($classname, "fieldNameArray"), "edit");
             if (!isset($fieldNameArray['labels'])) {
                 continue;
             }
             $fieldNameArrayCount = count($fieldNameArray['labels']);
             if ($fieldNameArrayCount > 0) {
                 $size += $fieldNameArrayCount;
                 for ($i = 0; $i < $fieldNameArrayCount; $i++) {
                     if ($fieldNameArray['labels'][$i] == "" || $fieldNameArray['labels'][$i] == " Label") {
                         continue;
                     }
                     if ($fieldNameArray['values'][$i] == 'people_selfallocation') {
                         continue;
                     }
                     $options[$fieldNameArray['values'][$i]] = $fieldNameArray['labels'][$i];
                     $availableFields[$jevplugin->name][] = JHtml::_('select.option', $fieldNameArray['values'][$i], $fieldNameArray['labels'][$i]);
                 }
                 $group = array();
                 $group['value'] = $fieldNameArray['group'];
                 $group['text'] = $fieldNameArray['group'];
                 $group['items'] = $options;
                 $optionsGroup[] = $group;
                 unset($options);
             }
         }
     }
     if (!empty($optionsGroup)) {
         $size = $size < 10 ? $size : 10;
         $attr = array('list.attr' => 'multiple="true"' . 'size="' . $size . '"', 'list.select' => $this->value, 'id' => $this->id);
         $input = JHTML::_('select.groupedlist', $optionsGroup, $this->name, $attr);
     }
     JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
     JEVHelper::ConditionalFields($this->element, $this->form->getName());
     return $input;
 }