function DefaultcopyrightComment($view) { $version = JEventsVersion::getInstance(); ?> <!-- Event Calendar and Lists Powered by JEvents //--> <?php /* echo "\n" . '<!-- ' . $version->getLongVersion() . ', ' . utf8_encode(@html_entity_decode($version->getLongCopyright(), ENT_COMPAT, 'ISO-8859-1')) . ', ' . $version->getUrl() . ' -->' . "\n"; */ }
function JevViewCopyright() { $cfg =& JEVConfig::getInstance(); $version =& JEventsVersion::getInstance(); if ($cfg->get('com_copyright', 1) == 1) { ?> <p align="center"> <a href="<?php echo $version->getUrl(); ?> " target="_blank" style="font-size:xx-small;" title="Events Website"><?php echo $version->getLongVersion(); ?> </a> <span style="color:#999999; font-size:9px;"><?php echo $version->getShortCopyright(); ?> </span> </p> <?php } }
<?php /** * JEvents Component for Joomla 1.5.x * * @version $Id: cpanel.php 3119 2011-12-20 14:34:33Z geraintedwards $ * @package JEvents * @copyright Copyright (C) 2008-2015 GWE Systems Ltd * @license GNU/GPLv2, see http://www.gnu.org/licenses/gpl-2.0.html * @link http://www.jevents.net */ defined('_JEXEC') or die('Restricted access'); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); $version = JEventsVersion::getInstance(); JEVHelper::stylesheet('jev_cp.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); if (!empty($this->sidebar)) { ?> <div id="j-sidebar-container" class="span2"> <?php echo $this->sidebar; ?> <?php //Version Checking etc ?> <div class="jev_version"> <?php echo JText::sprintf('JEV_CURRENT_VERSION', JString::substr($version->getShortVersion(), 1)); ?> </div>
private function removeComponentUpdate($com) { $db = JFactory::getDbo(); $version = JEventsVersion::getInstance(); $release = $version->get("RELEASE"); // Do we already have a record for the update URL for the component - we should remove this in JEvents 3.0!! static $comdata = false; if (!$comdata) { $db->setQuery("select * , exn.element as element from #__extensions as exn\n\t\t\tLEFT JOIN #__update_sites_extensions as map on map.extension_id=exn.extension_id\n\t\t\tLEFT JOIN #__update_sites as us on us.update_site_id=map.update_site_id\n\t\t\twhere exn.type='component'\n\t\t\t"); $comdata = $db->loadObjectList('element'); } $cpupdate = isset($comdata[$com]) ? $comdata[$com] : false; if ($cpupdate && $cpupdate->update_site_id) { $db->setQuery("DELETE FROM #__update_sites where update_site_id=" . $cpupdate->update_site_id); $db->query(); $db->setQuery("DELETE FROM #__update_sites_extensions where update_site_id=" . $cpupdate->update_site_id . " AND extension_id=" . $cpupdate->extension_id); $db->query(); } }
public static function script($file, $path = "", $framework = false, $relative = false, $path_only = false, $detect_browser = true, $detect_debug = true) { $includes = null; // load jQuery versions if present if (strpos($file, "JQ.js") == false) { $jqfile = str_replace(".js", "JQ.js", $file); if (JHTML::script($path . $jqfile, false, false, true)) { $file = $jqfile; } } // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! //JHTML::script($path . $file); //public static function script($file, $framework = false, $relative = false, $path_only = false, $detect_browser = true, $detect_debug = true) // no need to find browser specific versions $includes = JHTML::script($path . $file, $framework, $relative, true, $detect_browser); if (!$includes) { return; } if (!is_array($includes)) { $includes = array($includes); } $version = JEventsVersion::getInstance(); $release = $version->get("RELEASE", "1.0.0"); $document = JFactory::getDocument(); foreach ($includes as $include) { if (JevJoomlaVersion::isCompatible("3.3")) { $document->addScriptVersion($include, $release); } else { $document->addScript($include . "?" . $release); } } }
function DefaultViewHelperHeader16($view) { $dispatcher =& JDispatcher::getInstance(); $dispatcher->trigger('onJEventsHeader', array($view)); $cfg =& JEVConfig::getInstance(); $version =& JEventsVersion::getInstance(); $jevtype = JRequest::getVar('jevtype'); $evid = JRequest::getInt('evid'); $pop = JRequest::getInt('pop', 0); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); echo "\n" . '<!-- ' . $version->getLongVersion() . ', ' . utf8_encode(@html_entity_decode($version->getLongCopyright(), ENT_COMPAT, 'ISO-8859-1')) . ', ' . $version->getUrl() . ' -->' . "\n"; // stop crawler and set meta tag JEVHelper::checkRobotsMetaTag(); $lang =& JFactory::getLanguage(); ?> <div class="contentpaneopen jeventpage<?php echo $params->get('pageclass_sfx'); ?> " id="jevents_header"> <?php if ($params->get('show_page_heading', 0)) { ?> <h1> <?php echo $view->escape($params->get('page_heading')); ?> </h1> <?php } ?> <?php $t_headline = ' '; switch ($cfg->get('com_calHeadline', 'comp')) { case 'none': $t_headline = ''; break; case 'menu': $menu2 =& JSite::getMenu(); $menu = $menu2->getActive(); if (isset($menu) && isset($menu->name)) { $t_headline = $menu->name; } break; default: $t_headline = JText::_('JEV_EVENT_CALENDAR'); break; } if ($t_headline != "") { ?> <h2 class="contentheading" ><?php echo $t_headline; ?> </h2> <?php } $task = JRequest::getString("jevtask"); ob_start(); $view->information16(); $info = ob_get_clean(); if ($cfg->get('com_print_icon_view', 1) || $cfg->get('com_email_icon_view', 1) || strpos($info, "<li>") !== false) { ?> <ul class="actions"> <?php if ($cfg->get('com_print_icon_view', 1)) { $print_link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink() . '&pop=1' . '&tmpl=component'; $print_link = JRoute::_($print_link); if ($pop) { ?> <li class="print-icon"> <a href="javascript:void(0);" onclick="javascript:window.print(); return false;" title="<?php echo JText::_('JEV_CMN_PRINT'); ?> "> <?php echo JHTML::_('image.site', 'printButton.png', '/media/system/images/', NULL, NULL, JText::_('JEV_CMN_PRINT')); ?> </a> </li> <?php } else { ?> <li class="print-icon"> <a href="javascript:void(0);" onclick="window.open('<?php echo $print_link; ?> ', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=600,height=600,directories=no,location=no');" title="<?php echo JText::_('JEV_CMN_PRINT'); ?> "> <?php echo JHTML::_('image.site', 'printButton.png', '/media/system/images/', NULL, NULL, JText::_('JEV_CMN_PRINT')); ?> </a> </li> <?php } } if ($cfg->get('com_email_icon_view', 1)) { $task = JRequest::getString("jevtask"); $link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink(); $link = JRoute::_($link); if (strpos($link, "/") === 0) { $link = substr($link, 1); } $link = JURI::root() . $link; require_once JPATH_SITE . DS . 'components' . DS . 'com_mailto' . DS . 'helpers' . DS . 'mailto.php'; $url = JRoute::_('index.php?option=com_mailto&tmpl=component&link=' . MailToHelper::addLink($link)); ?> <li class="email-icon"> <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo $url; ?> ','emailwin','width=400,height=350,menubar=yes,resizable=yes'); return false;" title="<?php echo JText::_('EMAIL'); ?> "> <?php echo JHTML::_('image.site', 'emailButton.png', '/media/system/images/', NULL, NULL, JText::_('EMAIL')); ?> </a> </li> <?php } echo $info; ?> </ul> <?php } ?> </div> <div class="contentpaneopen jeventpage<?php echo $params->get('pageclass_sfx'); ?> " id="jevents_body"> <?php }
function FlatViewHelperHeader16($view) { $task = JRequest::getString("jevtask"); $view->loadModules("jevprejevents"); $view->loadModules("jevprejevents_" . $task); $dispatcher = JEventDispatcher::getInstance(); $dispatcher->trigger('onJEventsHeader', array($view)); $cfg = JEVConfig::getInstance(); $version = JEventsVersion::getInstance(); $jevtype = JRequest::getVar('jevtype'); $evid = JRequest::getInt('evid'); $pop = JRequest::getInt('pop', 0); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); $view->copyrightComment(); // stop crawler and set meta tag JEVHelper::checkRobotsMetaTag(); // Call the MetaTag setter function. if (is_callable(array("JEVHelper", "SetMetaTags"))) { JEVHelper::SetMetaTags(); } $lang = JFactory::getLanguage(); ?> <div id="jevents"> <div class="contentpaneopen jeventpage<?php echo $params->get('pageclass_sfx'); echo $params->get("darktemplate", 0) ? " jeventsdark" : " "; echo $lang->isRTL() ? " jevrtl" : " "; ?> jevbootstrap" id="jevents_header"> <?php if ($params->get('show_page_heading', 0)) { ?> <h1> <?php echo $view->escape($params->get('page_heading')); ?> </h1> <?php } ?> <?php $t_headline = ''; switch ($cfg->get('com_calHeadline', 'comp')) { case 'none': $t_headline = ''; break; case 'menu': $menu2 = JFactory::getApplication()->getMenu(); $menu = $menu2->getActive(); if (isset($menu) && isset($menu->title)) { $t_headline = $menu->title; } break; default: $t_headline = JText::_('JEV_EVENT_CALENDAR'); break; } if ($t_headline != "") { ?> <h2 class="contentheading" ><?php echo $t_headline; ?> </h2> <?php } $task = JRequest::getString("jevtask"); $info = ""; if ($cfg->get('com_print_icon_view', 1) || $cfg->get('com_email_icon_view', 1) || strpos($info, "<li>") !== false) { ?> <ul class="actions"> <?php if ($cfg->get('com_print_icon_view', 1)) { $print_link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink() . '&pop=1' . '&tmpl=component'; $print_link = JRoute::_($print_link); if ($pop) { ?> <li class="print-icon"> <a href="javascript:void(0);" onclick="javascript:window.print(); return false;" title="<?php echo JText::_('JEV_CMN_PRINT'); ?> "> <span class="icon-print"> </span> </a> </li> <?php } else { ?> <li class="print-icon"> <a href="javascript:void(0);" onclick="window.open('<?php echo $print_link; ?> ', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=600,height=600,directories=no,location=no');" title="<?php echo JText::_('JEV_CMN_PRINT'); ?> "> <span class="icon-print"> </span> </a> </li> <?php } } if ($cfg->get('com_email_icon_view', 1)) { $task = JRequest::getString("jevtask"); $link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink(); $link = JRoute::_($link); //if (strpos($link,"/")===0) $link = JString::substr($link,1); $uri = JURI::getInstance(JURI::base()); $root = $uri->toString(array('scheme', 'host', 'port')); $link = $root . $link; require_once JPATH_SITE . '/' . 'components' . '/' . 'com_mailto' . '/' . 'helpers' . '/' . 'mailto.php'; $url = JRoute::_('index.php?option=com_mailto&tmpl=component&link=' . MailToHelper::addLink($link)); ?> <li class="email-icon"> <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo $url; ?> ','emailwin','width=400,height=350,menubar=yes,resizable=yes'); return false;" title="<?php echo JText::_('EMAIL'); ?> "> <span class="icon-envelope"> </span> </a> </li> <?php } echo $info; ?> </ul> <?php } ?> </div> <div class="jev_clear"></div> <?php $view->loadModules("jevprejevents2"); $view->loadModules("jevprejevents2_" . $task); ?> <div class="contentpaneopen jeventpage<?php echo $params->get('pageclass_sfx'); echo $params->get("darktemplate", 0) ? " jeventsdark" : " "; echo $lang->isRTL() ? " jevrtl" : " "; ?> jevbootstrap" id="jevents_body"> <?php }
function FlatViewHelperHeader($view) { if (version_compare(JVERSION, "1.6.0", 'ge')) { return $view->_header16(); } $task = JRequest::getString("jevtask"); $view->loadModules("jevprejevents"); $view->loadModules("jevprejevents_" . $task); $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onJEventsHeader', array($view)); $cfg = JEVConfig::getInstance(); $version = JEventsVersion::getInstance(); $jevtype = JRequest::getVar('jevtype'); $evid = JRequest::getInt('evid'); $pop = JRequest::getInt('pop', 0); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); echo "\n" . '<!-- ' . $version->getLongVersion() . ', ' . utf8_encode(@html_entity_decode($version->getLongCopyright(), ENT_COMPAT, 'ISO-8859-1')) . ', ' . $version->getUrl() . ' -->' . "\n"; // stop crawler and set meta tag JEVHelper::checkRobotsMetaTag(); // Call the MetaTag setter function. if (is_callable(array("JEVHelper", "SetMetaTags"))) { JEVHelper::SetMetaTags(); } $lang = JFactory::getLanguage(); ?> <table class="contentpaneopen jeventpage <?php echo $params->get('pageclass_sfx'); echo $params->get("darktemplate", 0) ? " jeventsdark" : "jeventslight"; echo $lang->isRTL() ? " jevrtl" : " "; ?> " id="jevents_header"> <tr> <td class="contentheading" width="100%"> <?php $t_headline = ' '; switch ($cfg->get('com_calHeadline', 'comp')) { case 'none': $t_headline = ' '; break; case 'menu': $menu2 = JFactory::getApplication()->getMenu(); $menu = $menu2->getActive(); if (isset($menu) && isset($menu->name)) { $t_headline = $menu->name; } break; default: $t_headline = JText::_('JEV_EVENT_CALENDAR'); break; } echo $t_headline; ?> </td> <?php $task = JRequest::getString("jevtask"); if ($cfg->get('com_print_icon_view', 1)) { $print_link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink() . '&pop=1' . '&tmpl=component'; $print_link = JRoute::_($print_link); if ($pop) { ?> <td width="20" class="buttonheading" align="right"> <a href="javascript:void(0);" onclick="javascript:window.print(); return false;" title="<?php echo JText::_('JEV_CMN_PRINT'); ?> "> <?php echo JEVHelper::imagesite('printButton.png', JText::_('JEV_CMN_PRINT')); ?> </a> </td> <?php } else { ?> <td width="20" class="buttonheading" align="right"> <a href="javascript:void(0);" onclick="window.open('<?php echo $print_link; ?> ', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=600,height=600,directories=no,location=no');" title="<?php echo JText::_('JEV_CMN_PRINT'); ?> "> <?php echo JEVHelper::imagesite('printButton.png', JText::_('JEV_CMN_PRINT')); ?> </a> </td> <?php } } if ($cfg->get('com_email_icon_view', 1)) { $task = JRequest::getString("jevtask"); $link = 'index.php?option=' . JEV_COM_COMPONENT . '&task=' . $task . ($evid ? '&evid=' . $evid : '') . ($jevtype ? '&jevtype=' . $jevtype : '') . ($view->year ? '&year=' . $view->year : '') . ($view->month ? '&month=' . $view->month : '') . ($view->day ? '&day=' . $view->day : '') . $view->datamodel->getItemidLink() . $view->datamodel->getCatidsOutLink(); $link = JRoute::_($link); if (strpos($link, "/") === 0) { $link = substr($link, 1); } $link = JURI::root() . $link; require_once JPATH_SITE . '/' . 'components' . '/' . 'com_mailto' . '/' . 'helpers' . '/' . 'mailto.php'; $url = JRoute::_('index.php?option=com_mailto&tmpl=component&link=' . MailToHelper::addLink($link)); $path = version_compare(JVERSION, "1.6.0", 'ge') ? "media/system/images" : '/images/M_images/'; ?> <td width="20" class="buttonheading" align="right"> <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo $url; ?> ','emailwin','width=400,height=350,menubar=yes,resizable=yes'); return false;" title="<?php echo JText::_('EMAIL'); ?> "> <?php echo JEVHelper::imagesite('emailButton.png', JText::_('EMAIL')); ?> </a> </td> <?php } ?> </tr> </table> <div class="jev_month_premods"><?php $view->loadModules("jevprejevents2"); $view->loadModules("jevprejevents2_" . $task); ?> </div> <table class="contentpaneopen jeventpage<?php echo $params->get('pageclass_sfx'); echo $params->get("darktemplate", 0) ? " jeventsdark" : "jeventslight "; echo $lang->isRTL() ? " jevrtl" : " "; ?> " id="jevents_body"> <tr> <td width="100%"> <?php }