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


PHP JEVHelper::stylesheet方法代码示例

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


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

示例1: edit

 function edit($tpl = null)
 {
     $document =& JFactory::getDocument();
     include JEV_LIBS . "editStrings.php";
     $document->addScriptDeclaration($editStrings);
     // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!!
     JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');
     JEVHelper::script('editical.js', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/js/');
     $document->setTitle(JText::_('EDIT_ICAL_EVENT'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('EDIT_ICAL_EVENT'), 'jevents');
     $bar =& JToolBar::getInstance('toolbar');
     if ($this->id > 0) {
         if ($this->editCopy) {
             $this->toolbarConfirmButton("icalevent.save", JText::_("save_copy_warning"), 'save', 'save', 'Save', false);
             $this->toolbarConfirmButton("icalevent.apply", JText::_("save_copy_warning"), 'apply', 'apply', 'Jev_Apply', false);
         } else {
             $this->toolbarConfirmButton("icalevent.save", JText::_("save_icalevent_warning"), 'save', 'save', 'Save', false);
             $this->toolbarConfirmButton("icalevent.apply", JText::_("save_icalevent_warning"), 'apply', 'apply', 'JEV_Apply', false);
         }
     } else {
         JToolBarHelper::save('icalevent.save');
         if (JEVHelper::isEventEditor()) {
             JToolBarHelper::apply('icalevent.apply', "JEV_Apply");
         }
         //$bar->appendButton( 'Apply',  'apply', "Apply",'icalevent.apply', false, false );
     }
     JToolBarHelper::cancel('icalevent.list');
     //JToolBarHelper::help( 'screen.icalevent.edit', true);
     $this->_hideSubmenu();
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     //$section = $params->getValue("section",0);
     JHTML::_('behavior.tooltip');
     $this->setCreatorLookup();
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:35,代码来源:view.html.php

示例2: __construct

 function __construct($config = null)
 {
     parent::__construct($config);
     jimport('joomla.filesystem.file');
     if (JevJoomlaVersion::isCompatible("3.0")) {
         JEVHelper::stylesheet('eventsadmin.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
     } else {
         JEVHelper::stylesheet('eventsadminjq.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
     }
     $this->_addPath('template', $this->_basePath . '/' . 'views' . '/' . 'abstract' . '/' . 'tmpl');
     // note that the name config variable is ignored in the parent construct!
     if (JevJoomlaVersion::isCompatible("2.5")) {
         // Ok getTemplate doesn't seem to get the active menu item's template, so lets do it ourselves if it exists
         $app = JFactory::getApplication();
         // Get current template style ID
         $page_template_id = $app->isAdmin() ? "0" : @$app->getMenu()->getActive()->template_style_id;
         // Check it's a valid style with simple check
         if (!($page_template_id == "" || $page_template_id == "0")) {
             // Load the valid style:
             $db = JFactory::getDbo();
             $query = $db->getQuery(true)->select('template')->from('#__template_styles')->where('id =' . $db->quote($page_template_id) . '');
             $db->setQuery($query);
             $template = $db->loadResult();
         } else {
             $template = JFactory::getApplication()->getTemplate();
         }
         $theme = JEV_CommonFunctions::getJEventsViewName();
         $name = $this->getName();
         $name = str_replace($theme . "/", "", $name);
         $this->addTemplatePath(JPATH_BASE . '/' . 'templates' . '/' . $template . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . $theme . '/' . $name);
         // or could have used
         //$this->addTemplatePath( JPATH_BASE.'/'.'templates'.'/'.JFactory::getApplication()->getTemplate().'/'.'html'.'/'.JEV_COM_COMPONENT.'/'.$config['name'] );
     }
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:34,代码来源: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: overview

 function overview($tpl = null)
 {
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!!
     JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('CATEGORIES'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('CATEGORIES'), 'jevents');
     JToolBarHelper::publishList('categories.publish');
     JToolBarHelper::unpublishList('categories.unpublish');
     JToolBarHelper::addNew('categories.add');
     JToolBarHelper::editList('categories.edit');
     JToolBarHelper::deleteList("delete category", 'categories.delete');
     JToolBarHelper::spacer();
     JToolBarHelper::custom('cpanel.cpanel', 'default.png', 'default.png', 'JEV_ADMIN_CPANEL', false);
     //JToolBarHelper::help( 'screen.categories', true);
     JSubMenuHelper::addEntry(JText::_('CONTROL_PANEL'), 'index.php?option=' . JEV_COM_COMPONENT, true);
     JHTML::_('behavior.tooltip');
     // Preprocess the list of items to find ordering divisions.
     // RSH 9/28/10 Added check for empty list - if no items were created.
     if (count($this->items) > 0) {
         foreach ($this->items as &$item) {
             $this->ordering[$item->parent_id][] = $item->id;
         }
     }
 }
开发者ID:brojask,项目名称:colegio-abogados-joomla,代码行数:34,代码来源:view.html.php

示例5: edit

 function edit($tpl = null)
 {
     $document =& JFactory::getDocument();
     include JEV_ADMINLIBS . "/editStrings.php";
     $document->addScriptDeclaration($editStrings);
     // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!!
     if (JVersion::isCompatible("1.6.0")) {
         JEVHelper::stylesheet('eventsadmin16.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');
     } else {
         JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');
     }
     JEVHelper::script('editical.js', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/js/');
     //JEVHelper::script('toolbarfix.js','components/'.JEV_COM_COMPONENT.'/assets/js/');
     $document->setTitle(JText::_('EDIT_ICAL_EVENT'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('EDIT_ICAL_EVENT'), 'jevents');
     $bar =& JToolBar::getInstance('toolbar');
     if ($this->id > 0) {
         if ($this->editCopy) {
             $this->toolbarConfirmButton("icalevent.save", JText::_("save_copy_warning"), 'save', 'save', 'Save', false);
             if (JEVHelper::isEventEditor()) {
                 $this->toolbarConfirmButton("icalevent.apply", JText::_("save_copy_warning"), 'apply', 'apply', 'Apply', false);
             }
         } else {
             $this->toolbarConfirmButton("icalevent.save", JText::_("save_icalevent_warning"), 'save', 'save', 'Save', false);
             if (JEVHelper::isEventEditor()) {
                 $this->toolbarConfirmButton("icalevent.apply", JText::_("save_icalevent_warning"), 'apply', 'apply', 'Apply', false);
             }
         }
     } else {
         $this->toolbarButton("icalevent.save", 'save', 'save', 'Save', false);
         if (JEVHelper::isEventEditor()) {
             $this->toolbarButton("icalevent.apply", 'apply', 'apply', 'Apply', false);
         }
     }
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     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("icalevent.detail", 'cancel', 'cancel', 'Cancel', false);
         } else {
             $this->toolbarLinkButton("day.listevents", 'cancel', 'cancel', 'Cancel', false);
         }
     }
     JHTML::_('behavior.tooltip');
     // 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->setCreatorLookup();
     $this->_adminStart();
     parent::displaytemplate($tpl);
     $this->_adminEnd();
 }
开发者ID:madseller,项目名称:coperio,代码行数:56,代码来源:view.html.php

示例6: getInput

 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();
 }
开发者ID:hriggs,项目名称:cs-website,代码行数:11,代码来源:jevmenu.php

示例7: dbsetup

 function dbsetup($tpl = null)
 {
     if (JevJoomlaVersion::isCompatible("3.0")) {
         JEVHelper::stylesheet('eventsadmin.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
     } else {
         JEVHelper::stylesheet('eventsadminjq.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/');
     }
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('DB_SETUP'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('DB_SETUP'), 'jevents');
     JToolBarHelper::cancel('cpanel.cpanel');
     JEventsHelper::addSubmenu();
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:14,代码来源:view.html.php

示例8: 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

示例9: __construct

 function __construct($config = null)
 {
     parent::__construct($config);
     jimport('joomla.filesystem.file');
     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/');
     }
     $this->_addPath('template', $this->_basePath . '/' . 'views' . '/' . 'abstract' . '/' . 'tmpl');
     // note that the name config variable is ignored in the parent construct!
     if (JevJoomlaVersion::isCompatible("2.5")) {
         $theme = JEV_CommonFunctions::getJEventsViewName();
         $this->addTemplatePath(JPATH_BASE . '/' . 'templates' . '/' . JFactory::getApplication()->getTemplate() . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . $theme . '/' . $this->getName());
         // or could have used
         //$this->addTemplatePath( JPATH_BASE.'/'.'templates'.'/'.JFactory::getApplication()->getTemplate().'/'.'html'.'/'.JEV_COM_COMPONENT.'/'.$config['name'] );
     }
 }
开发者ID:rogatnev-nikita,项目名称:cloudinterpreter,代码行数:18,代码来源:abstract.php

示例10: edit

 function edit($tpl = null)
 {
     $this->_hideSubmenu();
     include_once JPATH_ADMINISTRATOR . DS . "includes" . DS . "toolbar.php";
     // TODO find the active admin template
     if (!JVersion::isCompatible("1.6.0")) {
         JEVHelper::stylesheet("template.css", JURI::root() . "administrator/templates/khepri/css/");
     }
     // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!!
     if (JVersion::isCompatible("1.6.0")) {
         JEVHelper::stylesheet('eventsadmin16.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');
     } else {
         JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');
     }
     JEVHelper::script('editdefaults.js', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/js/');
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('JEV_LAYOUT_DEFAULT_EDIT'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('JEV_LAYOUT_DEFAULT_EDIT'), 'jevents');
     JToolBarHelper::save("defaults.save");
     JToolBarHelper::cancel("defaults.cancel");
     JSubMenuHelper::addEntry(JText::_('DEFAULTS'), 'index.php?option=' . JEV_COM_COMPONENT, true);
     JHTML::_('behavior.tooltip');
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     // Get data from the model
     $model =& $this->getModel();
     $item =& $this->get('Data');
     if (strpos($item->name, "com_") === 0) {
         $parts = explode(".", $item->name);
         // special numbered case e.g. managed people
         if (count($parts) == 4) {
             $iname = str_replace(".{$parts['2']}.", ".", $item->name);
         } else {
             $iname = $item->name;
         }
         $this->_addPath('template', JPATH_ADMINISTRATOR . "/components/" . $parts[0] . "/views/defaults/tmpl");
         if ($item->value == "" && file_exists(JPATH_ADMINISTRATOR . "/components/" . $parts[0] . "/views/defaults/tmpl/" . $iname . ".html")) {
             $item->value = file_get_contents(JPATH_ADMINISTRATOR . "/components/" . $parts[0] . "/views/defaults/tmpl/" . $iname . ".html");
         }
     }
     $this->assignRef('item', $item);
     parent::displaytemplate($tpl);
 }
开发者ID:brojask,项目名称:colegio-abogados-joomla,代码行数:44,代码来源:view.html.php

示例11: getInput

    /**
     * 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);
    }
开发者ID:madcsaba,项目名称:li-de,代码行数:43,代码来源:jevcolourpicker.php

示例12: defined

<?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>
开发者ID:poorgeek,项目名称:JEvents,代码行数:31,代码来源:cpanel.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: componentStylesheet

 public static function componentStylesheet($view, $filename = 'events_css.css')
 {
     if (!isset($view->jevlayout)) {
         if (method_exists($view, "getViewName")) {
             $view->jevlayout = $view->getViewName();
         } else {
             if (method_exists($view, "getTheme")) {
                 $view->jevlayout = $view->getTheme();
             }
         }
     }
     if (file_exists(JPATH_BASE . '/' . 'templates' . '/' . JFactory::getApplication()->getTemplate() . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . $view->jevlayout . '/' . "assets" . '/' . "css" . '/' . $filename)) {
         JEVHelper::stylesheet($filename, 'templates/' . JFactory::getApplication()->getTemplate() . '/html/' . JEV_COM_COMPONENT . '/' . $view->jevlayout . "/assets/css/");
     } else {
         JEVHelper::stylesheet($filename, 'components/' . JEV_COM_COMPONENT . "/views/" . $view->jevlayout . "/assets/css/");
     }
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:17,代码来源:helper.php

示例15: 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


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