当前位置: 首页>>代码示例>>PHP>>正文


PHP JEVHelper::componentStylesheet方法代码示例

本文整理汇总了PHP中JEVHelper::componentStylesheet方法的典型用法代码示例。如果您正苦于以下问题:PHP JEVHelper::componentStylesheet方法的具体用法?PHP JEVHelper::componentStylesheet怎么用?PHP JEVHelper::componentStylesheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JEVHelper的用法示例。


在下文中一共展示了JEVHelper::componentStylesheet方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: detail

 function detail($tpl = null)
 {
     JEVHelper::componentStylesheet($this);
     $document = JFactory::getDocument();
     // TODO do this properly
     //$document->setTitle(JText::_( 'BROWSER_TITLE' ));
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     //$this->assign("introduction", $params->get("intro",""));
     $this->data = $this->datamodel->getEventData($this->evid, $this->jevtype, $this->year, $this->month, $this->day);
     // Dynamic pathway
     if (isset($this->data['row'])) {
         $pathway = JFactory::getApplication()->getPathway();
         $pathway->addItem($this->data['row']->title(), "");
         // Set date in view for use in navigation icons
         $this->year = $this->data['row']->yup();
         $this->month = $this->data['row']->mup();
         $this->day = $this->data['row']->dup();
         // seth month and year to be used by mini-calendar if needed
         if (!JRequest::getVar("month", 0)) {
             JRequest::setVar("month", $this->month);
         }
         if (!JRequest::getVar("year", 0)) {
             JRequest::setVar("year", $this->year);
         }
     }
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:26,代码来源:view.html.php

示例2: __construct

 function __construct($config = null)
 {
     parent::__construct($config);
     $this->jevlayout = "flat";
     $this->addHelperPath(dirname(__FILE__) . "/../helpers/");
     $this->addHelperPath(JPATH_BASE . '/' . 'templates' . '/' . JFactory::getApplication()->getTemplate() . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . "helpers");
     $document = JFactory::getDocument();
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     if ($params->get("flatscalable", "1") == "1" || $params->get("flatwidth", 905) == "scalable") {
         jimport('joomla.environment.browser');
         $browser = JBrowser::getInstance();
         $browserType = $browser->getBrowser();
         $browserVersion = $browser->getMajor();
         if ($browserType == 'msie' && $browserVersion < 9) {
             JEVHelper::componentStylesheet($this, "scalable_ie8.css");
         } else {
             JEVHelper::componentStylesheet($this, "scalable.css");
         }
         JEVHelper::componentStylesheet($this);
     } else {
         JEVHelper::componentStylesheet($this);
         JEVHelper::componentStylesheet($this, "w" . $params->get("flatwidth", 905) . ".css");
     }
     if ($params->get("darktemplate", 0)) {
         JEVHelper::componentStylesheet($this, "dark.css");
     }
     $stylelink = '<!--[if lte IE 6]>' . "\n";
     $stylelink .= '<link rel="stylesheet" href="' . JURI::root() . 'components/com_jevents/views/flat/assets/css/ie6.css" />' . "\n";
     $stylelink .= '<![endif]-->' . "\n";
     $document->addCustomTag($stylelink);
     $this->colourscheme = $params->get("flatcolourscheme", "red");
     if ($this->colourscheme == "gray") {
         //$this->colourscheme = "";
     }
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:35,代码来源:abstract.php

示例3: DefaultViewHelperFooter16

function DefaultViewHelperFooter16($view)
{
    if (JRequest::getInt('pop', 0)) {
        ?>
	<div class="ev_noprint"><p align="center">
	<a href="#close" onclick="if (window.parent==window){self.close();} else {try {window.parent.jQuery('#myEditModal').modal('hide');}catch (e){}try {window.parent.SqueezeBox.close(); return false;} catch(e) {self.close();return false;}}" title="<?php 
        echo JText::_('JEV_CLOSE');
        ?>
"><?php 
        echo JText::_('JEV_CLOSE');
        ?>
</a>
	</p></div>
<?php 
    }
    $view->loadHelper("JevViewCopyright");
    JevViewCopyright();
    ?>
</div>
</div> <!-- close #jevents //-->
<?php 
    $dispatcher = JDispatcher::getInstance();
    $dispatcher->trigger('onJEventsFooter');
    $task = JRequest::getString("jevtask");
    $view->loadModules("jevpostjevents");
    $view->loadModules("jevpostjevents_" . $task);
    JEVHelper::componentStylesheet($view, "extra.css");
    jimport('joomla.filesystem.file');
    // Lets check if we have editted before! if not... rename the custom file.
    if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) {
        // It is definitely now created, lets load it!
        JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
    }
}
开发者ID:poorgeek,项目名称:JEvents,代码行数:34,代码来源:defaultviewhelperfooter16.php

示例4: __construct

 function __construct(&$params = null, $modid)
 {
     $this->_modid = $modid;
     $this->_params =& $params;
     $this->datamodel = new JEventsdatamodel();
     $this->inccss = $params->get('modlatest_inccss', 1);
     $this->disable = $params->get('nonjeventsdisable', 1);
     if ($this->inccss) {
         //JEVHelper::componentStylesheet($this);
         JEVHelper::componentStylesheet($this, "modstyle.css");
     }
     include_once JEV_LIBS . "/modfunctions.php";
     $this->myItemid = $this->datamodel->setupModuleCatids($this->_params);
     $menu = JFactory::getApplication()->getMenu('site');
     $menuItem = $menu->getItem($this->myItemid);
     if ($menuItem && $menuItem->component == JEV_COM_COMPONENT) {
         $this->myTask = isset($menuItem->query["task"]) ? $menuItem->query["task"] : $menuItem->query["view"] . "." . $menuItem->query["layout"];
     } else {
         $this->myTask = "month.calendar";
     }
     static $css;
     if (!isset($css) && $params->get("hideinactivekids", 1)) {
         $document = JFactory::getDocument();
         $document->addStyleDeclaration(".childcat {display:none;}");
         $css = 1;
     }
 }
开发者ID:poorgeek,项目名称:JEvents,代码行数:27,代码来源:legend.php

示例5: results

 function results($tpl = null)
 {
     JEVHelper::componentStylesheet($this);
     $document =& JFactory::getDocument();
     // TODO do this properly
     //$document->setTitle(JText::_( 'BROWSER_TITLE' ));
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     //$this->assign("introduction", $params->get("intro",""));
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:9,代码来源:view.html.php

示例6: detail

 function detail($tpl = null)
 {
     JEVHelper::componentStylesheet($this);
     $document =& JFactory::getDocument();
     // TODO do this properly
     //$document->setTitle(JText::_( 'BROWSER_TITLE' ));
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     //$this->assign("introduction", $params->get("intro",""));
     $this->data = $this->datamodel->getEventData($this->evid, $this->jevtype, $this->year, $this->month, $this->day, $this->uid);
 }
开发者ID:brojask,项目名称:colegio-abogados-joomla,代码行数:10,代码来源:view.html.php

示例7: edit

 function edit($tpl = null)
 {
     $document = JFactory::getDocument();
     include JEV_ADMINLIBS . "/editStrings.php";
     $document->addScriptDeclaration($editStrings);
     JEVHelper::script('editical.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/');
     JEVHelper::script('view_detail.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/');
     JEVHelper::script('JevStdRequiredFields.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/');
     $document->setTitle(JText::_('EDIT_ICAL_REPEAT'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('EDIT_ICAL_REPEAT'), 'jevents');
     $bar = JToolBar::getInstance('toolbar');
     $this->toolbarConfirmButton("icalrepeat.save", JText::_("JEV_SAVE_ICALEVENT_WARNING"), 'save', 'save', 'Save', false);
     if (JEVHelper::isEventEditor()) {
         $this->toolbarConfirmButton("icalrepeat.apply", JText::_("JEV_SAVE_ICALEVENT_WARNING"), 'apply', 'apply', 'jev_Apply', false);
     }
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     if ($params->get("editpopup", 0) && JEVHelper::isEventCreator()) {
         $document->addStyleDeclaration("div#toolbar-box{margin:10px 10px 0px 10px;} div#jevents {margin:0px 10px 10px 10px;} ");
         $this->toolbarButton("icalevent.close", 'cancel', 'cancel', 'Cancel', false);
         JRequest::setVar('tmpl', 'component');
         //force the component template
     } else {
         $this->toolbarButton("icalevent.detail", 'cancel', 'cancel', 'Cancel', false);
     }
     //JToolBarHelper::help( 'screen.icalrepeat.edit', true);
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     JHTML::_('behavior.tooltip');
     $this->_adminStart();
     if (JevJoomlaVersion::isCompatible("3.0")) {
         // load Joomla javascript classes
         JHTML::_('behavior.core');
         $this->setLayout("edit");
     } else {
         $this->setLayout("edit16");
     }
     $this->setupEditForm();
     JEVHelper::componentStylesheet($this, "editextra.css");
     jimport('joomla.filesystem.file');
     // Lets check if we have editted before! if not... rename the custom file.
     if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) {
         // It is definitely now created, lets load it!
         JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
     }
     parent::displaytemplate($tpl);
     $this->_adminEnd();
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:47,代码来源:view.html.php

示例8: listevents

 function listevents($tpl = null)
 {
     JEVHelper::componentStylesheet($this);
     $params =& JComponentHelper::getParams(JEV_COM_COMPONENT);
     $value = trim($params->get("relstart", ""));
     if ($value != "") {
         $value = str_replace(",", " ", $value);
         $value = str_replace("y", "year", $value);
         $value = str_replace("d", "day", $value);
         $value = str_replace("w", "week", $value);
         $value = str_replace("m", "month", $value);
         $value = new JevDate($value);
         $startdate = $value->toFormat("%Y-%m-%d");
         list($startyear, $startmonth, $startday) = explode("-", $startdate);
     } else {
         $startyear = $params->get("com_earliestyear", 2008);
         $startdate = $startyear . "-01-01";
         $startmonth = 1;
         $startday = 1;
     }
     if ($value != "") {
         $value = trim($params->get("relend", ""));
         $value = str_replace(",", " ", $value);
         $value = str_replace("y", "year", $value);
         $value = str_replace("d", "day", $value);
         $value = str_replace("w", "week", $value);
         $value = str_replace("m", "month", $value);
         $value = new JevDate($value);
         $enddate = $value->toFormat("%Y-%m-%d");
         list($endyear, $endmonth, $endday) = explode("-", $enddate);
     } else {
         $endyear = $params->get("com_latestyear", 2020);
         $enddate = $endyear . "-12-31";
         $endmonth = 12;
         $endday = 31;
     }
     $this->assign("startdate", $startdate);
     $this->assign("startyear", $startyear);
     $this->assign("startmonth", $startmonth);
     $this->assign("startday", $startday);
     $this->assign("enddate", $enddate);
     $this->assign("endyear", $endyear);
     $this->assign("endmonth", $endmonth);
     $this->assign("endday", $endday);
     // Note that using a $limit value of -1 the limit is ignored in the query
     $this->assign("data", $this->datamodel->getRangeData($startdate, $enddate, $this->limit, $this->limitstart));
 }
开发者ID:brojask,项目名称:colegio-abogados-joomla,代码行数:47,代码来源:view.html.php

示例9: listevents

 function listevents($tpl = null)
 {
     JEVHelper::componentStylesheet($this);
     $params =& JComponentHelper::getParams(JEV_COM_COMPONENT);
     list($startdate, $enddate) = $this->getStartEndDates();
     list($startyear, $startmonth, $startday) = explode("-", $startdate);
     list($endyear, $endmonth, $endday) = explode("-", $enddate);
     $this->assign("startdate", $startdate);
     $this->assign("startyear", $startyear);
     $this->assign("startmonth", $startmonth);
     $this->assign("startday", $startday);
     $this->assign("enddate", $enddate);
     $this->assign("endyear", $endyear);
     $this->assign("endmonth", $endmonth);
     $this->assign("endday", $endday);
     // Note that using a $limit value of -1 the limit is ignored in the query
     $this->assign("data", $this->datamodel->getRangeData($startdate, $enddate, $this->limit, $this->limitstart));
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:18,代码来源:view.html.php

示例10: ical

 function ical($tpl = null)
 {
     JEVHelper::componentStylesheet($this);
     $document = JFactory::getDocument();
     // TODO do this properly
     //$document->setTitle(JText::_( 'BROWSER_TITLE' ));
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     //$this->assign("introduction", $params->get("intro",""));
     $this->data = $this->datamodel->getCalendarData($this->year, $this->month, $this->day);
     // for adding events in day cell
     $this->popup = false;
     if ($params->get("editpopup", 0) && JEVHelper::isEventCreator()) {
         JevHtmlBootstrap::modal();
         JEVHelper::script('editpopup.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/');
         $this->popup = true;
         $this->popupw = $params->get("popupw", 800);
         $this->popuph = $params->get("popuph", 600);
     }
     $this->is_event_creator = JEVHelper::isEventCreator();
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:20,代码来源:view.html.php

示例11: __construct

 function __construct($config = null)
 {
     parent::__construct($config);
     $this->jevlayout = "flat";
     $this->addHelperPath(dirname(__FILE__) . "/../helpers/");
     $this->addHelperPath(JPATH_BASE . '/' . 'templates' . '/' . JFactory::getApplication()->getTemplate() . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . "helpers");
     $document = JFactory::getDocument();
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     JEVHelper::componentStylesheet($this);
     if ($params->get("darktemplate", 0)) {
         JEVHelper::componentStylesheet($this, "dark.css");
     }
     $stylelink = '<!--[if lte IE 6]>' . "\n";
     $stylelink .= '<link rel="stylesheet" href="' . JURI::root() . 'components/com_jevents/views/flat/assets/css/ie6.css" />' . "\n";
     $stylelink .= '<![endif]-->' . "\n";
     $document->addCustomTag($stylelink);
     $this->colourscheme = $params->get("flatcolourscheme", "red");
     if ($this->colourscheme == "gray") {
         //$this->colourscheme = "";
     }
 }
开发者ID:poorgeek,项目名称:JEvents,代码行数:21,代码来源:abstract.php

示例12: edit

 function edit($tpl = null)
 {
     $document = JFactory::getDocument();
     include JEV_ADMINLIBS . "/editStrings.php";
     $document->addScriptDeclaration($editStrings);
     JEVHelper::script('editicalJQ.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/');
     JEVHelper::script('JevStdRequiredFieldsJQ.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/');
     if ($this->row->title() <= "") {
         // Set toolbar items for the page
         JToolBarHelper::title(JText::_('CREATE_ICAL_EVENT'), 'jevents');
         $document->setTitle(JText::_('CREATE_ICAL_EVENT'));
     } else {
         // Set toolbar items for the page
         JToolBarHelper::title(JText::_('EDIT_ICAL_EVENT'), 'jevents');
         $document->setTitle(JText::_('EDIT_ICAL_EVENT'));
     }
     $bar = JToolBar::getInstance('toolbar');
     if ($this->id > 0) {
         if ($this->editCopy) {
             if (JEVHelper::isEventEditor() || JEVHelper::canEditEvent($this->row)) {
                 $this->toolbarConfirmButton("icalevent.apply", JText::_("JEV_SAVE_COPY_WARNING"), 'apply', 'apply', 'JEV_SAVE', false);
             }
             //$this->toolbarConfirmButton("icalevent.savenew", JText::_("JEV_SAVE_COPY_WARNING"), 'save', 'save', 'JEV_SAVE_NEW', false);
             $this->toolbarConfirmButton("icalevent.save", JText::_("JEV_SAVE_COPY_WARNING"), 'save', 'save', 'JEV_SAVE_CLOSE', false);
         } else {
             if (JEVHelper::isEventEditor() || JEVHelper::canEditEvent($this->row)) {
                 $this->toolbarConfirmButton("icalevent.apply", JText::_("JEV_SAVE_ICALEVENT_WARNING"), 'apply', 'apply', 'JEV_SAVE', false);
             }
             //$this->toolbarConfirmButton("icalevent.savenew", JText::_("JEV_SAVE_ICALEVENT_WARNING"), 'save', 'save', 'JEV_SAVE_NEW', false);
             $this->toolbarConfirmButton("icalevent.save", JText::_("JEV_SAVE_ICALEVENT_WARNING"), 'save', 'save', 'JEV_SAVE_CLOSE', false);
         }
     } else {
         $canEditOwn = false;
         $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
         if (!$params->get("authorisedonly", 0)) {
             $juser = JFactory::getUser();
             $canEditOwn = $juser->authorise('core.edit.own', 'com_jevents');
         }
         if (JEVHelper::isEventEditor() || $canEditOwn) {
             $this->toolbarButton("icalevent.apply", 'apply', 'apply', 'JEV_SAVE', false);
         }
         //JToolBarHelper::save('icalevent.savenew', "JEV_Save_New");
         $this->toolbarButton("icalevent.save", 'save', 'save', 'JEV_SAVE_CLOSE', false);
     }
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     $evedrd = $params->get("editreturnto", "day.listevents");
     if ($params->get("editpopup", 0)) {
         $document->addStyleDeclaration("div#toolbar-box{margin:10px 10px 0px 10px;} div#jevents {margin:0px 10px 10px 10px;} ");
         $this->toolbarButton("icalevent.close", 'cancel', 'cancel', 'Cancel', false);
         JRequest::setVar('tmpl', 'component');
         //force the component template
     } else {
         if ($this->id > 0) {
             $this->toolbarButton("icalrepeat.detail", 'cancel', 'cancel', 'Cancel', false);
         } else {
             $this->toolbarButton($evedrd, 'cancel', 'cancel', 'Cancel', false);
         }
     }
     // I pass in the rp_id so that I can return to the repeat I was viewing before editing
     $this->assign("rp_id", JRequest::getInt("rp_id", 0));
     $this->_adminStart();
     // load Joomla javascript classes
     JHTML::_('behavior.core');
     $this->setLayout("edit");
     JEVHelper::componentStylesheet($this, "editextra.css");
     jimport('joomla.filesystem.file');
     // Lets check if we have editted before! if not... rename the custom file.
     if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) {
         // It is definitely now created, lets load it!
         JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
     }
     $this->setupEditForm();
     parent::displaytemplate($tpl);
     $this->_adminEnd();
 }
开发者ID:hriggs,项目名称:cs-website,代码行数:75,代码来源:view.html.php

示例13: FlatViewHelperFooter16


//.........这里部分代码省略.........
								}
								if (a.sortval == b.sortval) {
									var asiblings = a.getParent().childNodes;
									for (var i = 0; i < asiblings.length; i++) {
										if (asiblings[i].className && asiblings[i].className.indexOf("hiddendayname") >= 0) {
											return -1;
										}
									}
									var bsiblings = b.getParent().childNodes;
									for (var i = 0; i < bsiblings.length; i++) {
										if (bsiblings[i].className && bsiblings[i].className.indexOf("hiddendayname") >= 0) {
											return 1;
										}
									}
								}
								return (a.sortval < b.sortval) ? -1 : (a.sortval > b.sortval) ? 1 : 0;
								//return a.sortval>b.sortval;
							});

							if (myEvents.length == 0) {
								return;
							}
							var listrowblock = new Element('div', {'class': 'jev_listrowblock'});

							var event_legend_container = document.getElement(".event_legend_container");
							if (event_legend_container) {
								listrowblock.inject(event_legend_container, 'before');
							}
							else {
								var toprow = $("jev_maincal").getElement(".jev_toprow");
								listrowblock.inject(toprow, 'after');
								var clearrow = new Element('div', {'class': 'jev_clear'});
								clearrow.inject(listrowblock, 'after');
							}

							var listrow = new Element('div', {'class': 'jev_listrow'});
							var hasdaynames = false;
							myEvents.each(function(el) {
								if (!hasdaynames) {
									var dayname = el.getParent().getElement(".hiddendayname");
									if (dayname) {
										hasdaynames = true;
									}
								}
							});

							myEvents.each(function(el) {

								var dayname = el.getParent().getElement(".hiddendayname");
								if (dayname) {
									dayname.style.display = "block";
									dayname.inject(listrowblock, 'bottom');
								}
								if (dayname || !hasdaynames) {
									// really should be for each separate date!
									listrow = new Element('div', {'class': 'jev_listrow'});
									listrow.style.marginBottom = "10px";
									listrow.style.marginTop = "5px";
									listrow.inject(listrowblock, 'bottom');
								}

								var hiddentime = el.getParent().getElement(".hiddentime");
								hiddentime = hiddentime.getElement("a");
								hiddentime.removeClass("hiddentime");
								hiddentime.inject(listrow, 'bottom');

								var myClone = el.getParent().clone();
								myClone.addClass("jev_daywithevents");
								myClone.removeClass("jev_dayoutofmonth");
								myClone.removeClass("jevblocks0");
								myClone.removeClass("jevblocks1");
								myClone.removeClass("jevblocks2");
								myClone.removeClass("jevblocks3");
								myClone.removeClass("jevblocks4");
								myClone.removeClass("jevblocks5");
								myClone.removeClass("jevblocks6");
								myClone.removeClass("jevblocks7");
								myClone.style.height = "inherit";
								myClone.inject(listrow, 'bottom');

								var clearrow = new Element('div', {'class': 'jev_clear'});
								clearrow.inject(listrow, 'bottom');
							});
						}
					}
					window.addEvent("domready", setJEventsSize);
					// set load event too incase template sets its own domready trigger
					window.addEvent("load", setJEventsSize);
					window.addEvent("resize", setJEventsSize);
		</script>
		<?php 
    }
    JEVHelper::componentStylesheet($view, "extra.css");
    jimport('joomla.filesystem.file');
    // Lets check if we have editted before! if not... rename the custom file.
    if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) {
        // It is definitely now created, lets load it!
        JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
    }
}
开发者ID:madcsaba,项目名称:li-de,代码行数:101,代码来源:flatviewhelperfooter16.php

示例14: listevents

 function listevents($tpl = null)
 {
     JEVHelper::componentStylesheet($this);
     $document =& JFactory::getDocument();
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
 }
开发者ID:brojask,项目名称:colegio-abogados-joomla,代码行数:6,代码来源:view.html.php

示例15: getCal

 function getCal($modid = 0)
 {
     // capture module id so that we can use it for ajax type navigation
     if ($modid != 0) {
         $this->_modid = $modid;
     }
     $user =& JFactory::getUser();
     $db =& JFactory::getDBO();
     // this will get the viewname based on which classes have been implemented
     $viewname = $this->getTheme();
     $cfg =& JEVConfig::getInstance();
     $compname = JEV_COM_COMPONENT;
     $viewpath = "components/" . JEV_COM_COMPONENT . "/views/" . $viewname . "/assets/css/";
     // get array
     $day_name = JEVHelper::getWeekdayLetter(null, 1);
     $day_name[0] = '<span class="sunday">' . $day_name[0] . '</span>';
     $day_name[6] = '<span class="saturday">' . $day_name[6] . '</span>';
     $content = '<div class="calendar-wrapper">';
     if ($this->inc_ec_css) {
         JEVHelper::componentStylesheet($this, "modstyle.css");
     }
     $thisDayOfMonth = date("j", $this->timeWithOffset);
     $daysLeftInMonth = date("t", $this->timeWithOffset) - date("j", $this->timeWithOffset) + 1;
     // calculate month offset from first of month
     $first_of_current_month = JevDate::strtotime(date('Y-m-01', $this->timeWithOffset));
     $mod = "";
     if (isset($this->_modid) && $this->_modid > 0) {
         $mod = 'id="modid_' . $this->_modid . '" ';
         $content .= "<span id='testspan" . $this->_modid . "' style='display:none'></span>\n";
     }
     if ($this->disp_lastMonth && (!$this->disp_lastMonthDays || $thisDayOfMonth <= $this->disp_lastMonthDays)) {
         $content .= $this->_displayCalendarMod(JevDate::strtotime("-1 month", $first_of_current_month), $this->com_starday, JText::_('JEV_LAST_MONTH'), $day_name, $this->disp_lastMonth == 2, $this->timeWithOffset);
     }
     $content .= $this->_displayCalendarMod($this->timeWithOffset, $this->com_starday, JText::_('JEV_THIS_MONTH'), $day_name, false, $this->timeWithOffset);
     if ($this->disp_nextMonth && (!$this->disp_nextMonthDays || $daysLeftInMonth <= $this->disp_nextMonthDays)) {
         $content .= $this->_displayCalendarMod(JevDate::strtotime("+1 month", $first_of_current_month), $this->com_starday, JText::_('JEV_NEXT_MONTH'), $day_name, $this->disp_nextMonth == 2, $this->timeWithOffset);
     }
     $content .= '</div>';
     return $content;
 }
开发者ID:affiliatelk,项目名称:ecc,代码行数:40,代码来源:calendar.php


注:本文中的JEVHelper::componentStylesheet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。