PHP JHtml::stylesheet Examples

PHP JHtml::stylesheet - 30 examples found. These are the top rated real world PHP examples of JHtml::stylesheet extracted from open source projects. You can rate examples to help us improve the quality of examples.
Example #1
1
 protected function getInput()
 {
     $this->params = $this->element->attributes();
     JHtml::stylesheet('nnframework/style.min.css', false, true);
     $title = $this->get('label');
     $description = $this->get('description');
     $class = $this->get('class');
     $showclose = $this->get('showclose', 0);
     $start = $this->get('start', 0);
     $end = $this->get('end', 0);
     $html = array();
     if ($start || !$end) {
         $html[] = '</div>';
         if (strpos($class, 'alert') !== false) {
             $html[] = '<div class="alert ' . $class . '">';
         } else {
             $html[] = '<div class="well well-small ' . $class . '">';
         }
         if ($showclose && JFactory::getUser()->authorise('core.admin')) {
             $html[] = '<button type="button" class="close nn_remove_assignment">&times;</button>';
         }
         if ($title) {
             $html[] = '<h4>' . $this->prepareText($title) . '</h4>';
         }
         if ($description) {
             $html[] = '<div>' . $this->prepareText($description) . '</div>';
         }
         $html[] = '<div><div>';
     }
     if (!$start && !$end) {
         $html[] = '</div>';
     }
     return '</div>' . implode('', $html);
 }
 /**
  * Displays the comments area
  *
  * @param   string   $context  The context of the content being passed to the plugin
  * @param   object   &$row     The article object
  * @param   object   &$params  The article params
  * @param   integer  $page     The 'page' number
  *
  * @return  mixed  html string containing code for the comment if in com_content.article else boolean false
  *
  */
 public function onContentAfterDisplay($context, &$row, &$params, $page = 0)
 {
     $parts = explode(".", $context);
     $plgCatid = $this->params->def('catid');
     // Check is run com_content
     if ($parts[0] != 'com_content') {
         return false;
     }
     // Check category of the plugin in the allowable category array of the plugin
     if ($plgCatid[0] != 'all' && !in_array($row->catid, $plgCatid)) {
         return false;
     }
     // Add media file
     JHtml::_('jquery.framework');
     JHtml::script(JUri::base() . 'media/pkg_mjcommentsystem/plg_content_mjformcomment/js/plg_mjformcomment.js', false, true);
     JHtml::stylesheet(JUri::base() . 'media/pkg_mjcommentsystem/plg_content_mjformcomment/css/plg_mjformcomment.css', false, true, false);
     // Add the language file of the component
     $lang = JFactory::getLanguage();
     $basePath = JPATH_SITE . '/components/com_mjcomments';
     $lang->load('com_mjcomments', $basePath, null, true);
     // Assign value to the layout variables
     $content_id = $row->id;
     $formReturn = 'index.php?option=com_mjcomments&task=comment.send&format=json';
     // Get the comment form
     $this->setCommentForm();
     // Get the comment list
     $this->setCommentList($content_id);
     // Name of the variables that will be used in the layout
     $data = array('view' => $context, 'form' => $this->form, 'formReturn' => $formReturn, 'content_id' => $content_id, 'comments' => $this->comments);
     return JLayoutHelper::render('default', compact('data'), __DIR__ . '/layouts');
 }
Example #3
0
 /**
  * Display the view
  */
 function display()
 {
     //DEVNOTE: set document title
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('NEW_DABATASE_CONNECTION'));
     JHtml::script('dbConfigForm.js', 'media/com_dbconnect/js/');
     JHtml::stylesheet('izi.css', 'media/com_dbconnect/css/');
     if (@$this->pdoError != '') {
         //máme chybu
         $this->setLayout('error');
         $this->assignRef('error', $this->pdoError);
     } else {
         if ($_POST['step'] == 2 && isset($_POST['db_table'])) {
             //máme vybranou tabulku, musíme vybrat primární klíč
             $this->setLayout('selectprimarykey');
             $unidbModel = $this->getModel('unidb', 'unidbModel');
             $this->assignRef('columns', $unidbModel->getColumns($_POST['db_table']));
         } elseif ($_POST['step'] == 1 && isset($_POST['db_username']) && isset($_POST['db_password'])) {
             //máme nastavené připojení k DB, musíme vybrat tabulku
             $this->setLayout('selecttable');
             $unidbModel = $this->getModel('unidb', 'unidbModel');
             $this->assignRef('tables', $unidbModel->getTables());
         } else {
             //musíme vybrat nastavení serveru atp.
             $this->setLayout('setdatabase');
             $this->assignRef('dbTypes', $this->get('DBTypes'));
         }
     }
     parent::display();
 }
 protected function getInput()
 {
     $this->params = $this->element->attributes();
     JHtml::stylesheet('nnframework/style.min.css', false, true);
     require_once __DIR__ . '/toggler.php';
     $toggler = new nnFieldToggler();
     $this->value = (int) $this->value;
     $label = $this->get('label');
     $param_name = $this->get('name');
     $noshow = $this->get('noshow', 0);
     $showclose = $this->get('showclose', 0);
     $html = array();
     if ($label) {
         $label = nnText::html_entity_decoder(JText::_($label));
         $html[] = '</div>';
         if (!$noshow) {
             $html[] = $toggler->getInput(array('div' => 1, 'param' => 'show_assignments|' . $param_name, 'value' => '1|1,2'));
         }
         $class = 'well well-small nn_well';
         if ($this->value === 1) {
             $class .= ' alert-success';
         } else {
             if ($this->value === 2) {
                 $class .= ' alert-error';
             }
         }
         $html[] = '<div class="' . $class . '">';
         if ($showclose && JFactory::getUser()->authorise('core.admin')) {
             $html[] = '<button type="button" class="close nn_remove_assignment">&times;</button>';
         }
         $html[] = '<div class="control-group">';
         $html[] = '<div class="control-label">';
         $html[] = '<label><h4 class="nn_assignmentselection-header">' . $label . '</h4></label>';
         $html[] = '</div>';
         $html[] = '<div class="controls">';
         $html[] = '<fieldset id="' . $this->id . '"  class="radio btn-group">';
         $onclick = ' onclick="nnScripts.setToggleTitleClass(this, 0)"';
         $html[] = '<input type="radio" id="' . $this->id . '0" name="' . $this->name . '" value="0"' . (!$this->value ? ' checked="checked"' : '') . $onclick . '/>';
         $html[] = '<label class="nn_btn-ignore" for="' . $this->id . '0">' . JText::_('NN_IGNORE') . '</label>';
         $onclick = ' onclick="nnScripts.setToggleTitleClass(this, 1)"';
         $html[] = '<input type="radio" id="' . $this->id . '1" name="' . $this->name . '" value="1"' . ($this->value === 1 ? ' checked="checked"' : '') . $onclick . '/>';
         $html[] = '<label class="nn_btn-include" for="' . $this->id . '1">' . JText::_('NN_INCLUDE') . '</label>';
         $onclick = ' onclick="nnScripts.setToggleTitleClass(this, 2)"';
         $onclick .= ' onload="nnScripts.setToggleTitleClass(this, ' . $this->value . ', 7)"';
         $html[] = '<input type="radio" id="' . $this->id . '2" name="' . $this->name . '" value="2"' . ($this->value === 2 ? ' checked="checked"' : '') . $onclick . '/>';
         $html[] = '<label class="nn_btn-exclude" for="' . $this->id . '2">' . JText::_('NN_EXCLUDE') . '</label>';
         $html[] = '</fieldset>';
         $html[] = '</div>';
         $html[] = '</div>';
         $html[] = '<div class="clearfix"> </div>';
         $html[] = $toggler->getInput(array('div' => 1, 'param' => $param_name, 'value' => '1,2'));
         $html[] = '<div><div>';
     } else {
         if (!$noshow) {
             $html[] = $toggler->getInput(array('div' => 1));
         }
         $html[] = $toggler->getInput(array('div' => 1));
     }
     return '</div>' . implode('', $html);
 }
Example #5
0
function frameYTShortcode($atts = null, $content = null)
{
    $atts = ytshortcode_atts(array('style' => 'default', 'align' => 'left', 'class' => ''), $atts, 'yt_frame');
    JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/shortcodes/frame/css/frame.css", 'text/css');
    JHtml::script("plugins/system/ytshortcodes/shortcodes/frame/js/frame.js");
    return '<span class="yt-frame yt-frame-align-' . $atts['align'] . ' yt-frame-style-' . $atts['style'] . '"><span class="yt-frame-inner">' . parse_shortcode(str_replace(array("<br/>", "<br>", "<br />"), " ", $content)) . '</span></span><div class="clear clearfix"></div>';
}
Example #6
0
function columnsYTShortcode($atts, $content = null)
{
    extract(ytshortcode_atts(array("grid" => 'no'), $atts));
    $show_grid = $grid == 'yes' ? 'show-grid' : '';
    JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/shortcodes/columns/css/columns.css");
    return '<div class="yt-clearfix yt-show-grid ' . $show_grid . ' ">' . parse_shortcode(str_replace(array("<br/>", "<br>", "<br />"), " ", $content)) . '</div>';
}
Example #7
0
 /**
  * Display the button
  *
  * @return array A two element array of ( imageName, textToInsert )
  */
 function render($name)
 {
     $button = new JObject();
     if (JFactory::getApplication()->isSite() && !$this->params->enable_frontend) {
         return $button;
     }
     JHtml::stylesheet('nnframework/style.min.css', false, true);
     $this->params->tag = preg_replace('#[^a-z0-9-_]#s', '', $this->params->tag);
     if ($this->params->button_use_custom_code && $this->params->button_custom_code) {
         $text = trim($this->params->button_custom_code);
         $text = str_replace(array("\r", "\n"), array('', '</p>\\n<p>'), trim($text)) . '</p>';
         $text = preg_replace('#^(.*?)</p>#', '\\1', $text);
     } else {
         $text = '{' . $this->params->tag . ' ' . JText::_('TT_TITLE') . '::' . JText::_('TT_TEXT') . '}' . JText::_('TT_LINK') . '{/' . $this->params->tag . '}';
     }
     $text = str_replace('\\\\n', '\\n', addslashes($text));
     $text = str_replace('{', '{\'+\'', $text);
     $js = "\n\t\t\tfunction insertTooltips(editor) {\n\t\t\t\tjInsertEditorText('" . $text . "', editor);\n\t\t\t}\n\t\t";
     JFactory::getDocument()->addScriptDeclaration($js);
     $class = 'nonumber icon-tooltips';
     $text_ini = strtoupper(str_replace(' ', '_', $this->params->button_text));
     $text = JText::_($text_ini);
     if ($text == $text_ini) {
         $text = JText::_($this->params->button_text);
     }
     $button->modal = false;
     $button->class = 'btn';
     $button->link = '#';
     $button->onclick = 'insertTooltips(\'' . $name . '\');return false;';
     $button->text = trim($text);
     $button->name = $class;
     return $button;
 }
Example #8
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     // Joomla 2.5
     if (version_compare(JVERSION, '3.0', 'lt')) {
         jimport('joomla.environment.request');
         JHtml::stylesheet('com_icagenda/template.j25.css', false, true);
         JHtml::stylesheet('com_icagenda/icagenda-back.j25.css', false, true);
     }
     $this->params = JComponentHelper::getParams('com_icagenda');
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->events = $this->get('Events');
     $this->dates = $this->get('Dates');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     // We don't need toolbar in the modal window.
     if ($this->getLayout() !== 'modal') {
         $this->addToolbar();
         if (version_compare(JVERSION, '3.0', 'ge')) {
             $this->sidebar = JHtmlSidebar::render();
         }
     }
     parent::display($tpl);
 }
	protected function getLabel()
	{
		JHtml::stylesheet('nnframework/style.min.css', false, true);

		$this->params = $this->element->attributes();
		$label = $this->prepareText($this->get('label'));

		$description = (trim($this->value) != '') ? trim($this->value) : $this->get('description');
		$description = $this->prepareText($description);

		$div = '';
		if (!$label && !$description)
		{
			return '';
		}

		if (!$label)
		{
			return '<label class="nn_label">' . $description . '</label>';
		}

		if (!$description)
		{
			return '<label class="nn_label">' . $label . '</label>';
		}

		$description = $this->prepareText($this->get('description'));

		return '<label class="hasTip" title="' . $label . '::' . str_replace('"', '&quot;', $description) . '">'
		. $label . '</label>';
	}
Example #10
0
function sectionYTShortcode($atts = null, $content = null)
{
    $atts = ytshortcode_atts(array('background' => '#ffffff', 'image' => '', 'repeat' => 'repeat', 'parallax' => 'yes', 'speed' => '10', 'max_width' => '960', 'margin' => '0px 0px 0px 0px', 'padding' => '30px 0px 30px 0px', 'border' => 'none', 'color' => '#333333', 'text_align' => 'inharit', 'text_shadow' => 'none', 'url_youtube' => '', 'url_webm' => '', 'url_vimeo' => '', 'font_size' => '12px', 'class' => ''), $atts, 'section');
    $id_section = uniqid('sec_') . rand() . time();
    $id_video = uniqid('svb_sec_') . rand() . time();
    $background = $atts['image'] ? sprintf('%s %s url(\'%s\') repeat %s', $atts['background'], '50% 0', yt_image_media($atts['image']), $atts['parallax'] === 'yes' ? 'fixed' : 'scroll') : $atts['background'];
    if ($atts['image'] && $atts['parallax'] === 'yes') {
        $atts['class'] .= ' yt-section-parallax';
    }
    if ($atts['url_youtube']) {
        $atts['class'] .= ' yt-panel-clickable';
    }
    JHtml::_('jquery.framework');
    if ($atts['image'] && $atts['parallax'] === 'yes' or $atts['url_youtube']) {
        JHtml::script(JUri::base() . "plugins/system/ytshortcodes/shortcodes/section/js/section.js");
    }
    JHtml::script(JUri::base() . "plugins/system/ytshortcodes/shortcodes/section/js/modernizr.video.js");
    JHtml::script(JUri::base() . "plugins/system/ytshortcodes/shortcodes/section/js/swfobject.js");
    JHtml::script(JUri::base() . "plugins/system/ytshortcodes/shortcodes/section/js/video_background.js");
    JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/shortcodes/section/css/section.css", 'text/css');
    $atts['text_align'] = $atts['text_align'] != 'inherit' ? 'text-align:' . $atts['text_align'] . ';' : '';
    $atts['text_shadow'] = $atts['text_shadow'] ? ' -webkit-text-shadow:' . $atts['text_shadow'] . ';-moz-text-shadow:' . $atts['text_shadow'] . ';text-shadow:' . $atts['text_shadow'] . ';' : '';
    if ($atts['url_youtube'] != '') {
        return '<div class="yt-section-forcefullwidth"><div id="' . $id_section . '" class="yt-section-wrapper" data-id="' . $id_section . '"><div class="yt-section ' . trim($atts['class']) . ' " data-speed="' . $atts['speed'] . '" style="background:' . $background . ';margin:' . $atts['margin'] . ';padding:' . $atts['padding'] . ';border-top:' . $atts['border'] . ';border-bottom:' . $atts['border'] . '"><div class="yt-section-content yt-content-wrap" style="max-width:' . $atts['max_width'] . 'px; ' . $atts['text_align'] . ' color:' . $atts['color'] . ';' . $atts['text_shadow'] . ' font-size:' . $atts['font_size'] . '">' . parse_shortcode(str_replace(array("<br/>", "<br />", "<p></p>"), " ", $content)) . '</div><div class="yt-section-overlay"></div><div class="yt-section-video" id="' . $id_video . '" data-id="' . $id_video . '" data-loop="true" data-muted="true" data-autoplay="true" data-ratio="1.77" data-overlay="" data-swfpath=""  data-youtube="' . $atts['url_youtube'] . '"><div id="video_background_video_1" style="z-index: 0; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; overflow: hidden;"></div></div></div></div></div>';
    } else {
        if ($atts['url_webm'] != '') {
            return '<div class="yt-section-forcefullwidth"><div id="' . $id_section . '" class="yt-section-wrapper" data-id="' . $id_section . '"><div class="yt-section ' . trim($atts['class']) . ' " data-speed="' . $atts['speed'] . '" style="background:' . $background . ';margin:' . $atts['margin'] . ';padding:' . $atts['padding'] . ';border-top:' . $atts['border'] . ';border-bottom:' . $atts['border'] . '"><div class="yt-section-content yt-content-wrap" style="max-width:' . $atts['max_width'] . 'px; ' . $atts['text_align'] . ' color:' . $atts['color'] . ';' . $atts['text_shadow'] . ' font-size:' . $atts['font_size'] . '">' . parse_shortcode(str_replace(array("<br/>", "<br />"), " ", $content)) . '</div><div class="yt-section-overlay"></div><div class="yt-section-video" id="' . $id_video . '" data-id="' . $id_video . '" data-loop="true" data-muted="true" data-autoplay="true" data-ratio="1.77" data-overlay="" data-swfpath=""  data-webm="' . $atts['url_webm'] . '"><div id="video_background_video_1" style="z-index: 0; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; overflow: hidden;"><video  autoplay="" loop="" onended="this.play()"><source src="' . $atts['url_webm'] . '" type="video/webm"></video></div></div></div></div></div>';
        } else {
            return '<div class="yt-section ' . trim($atts['class']) . ' " data-speed="' . $atts['speed'] . '" style="background:' . $background . ';margin:' . $atts['margin'] . ';padding:' . $atts['padding'] . ';border-top:' . $atts['border'] . ';border-bottom:' . $atts['border'] . '"><div class="yt-section-content yt-content-wrap" style="max-width:' . $atts['max_width'] . 'px; ' . $atts['text_align'] . ' color:' . $atts['color'] . ';' . $atts['text_shadow'] . ' font-size:' . $atts['font_size'] . '">' . parse_shortcode(str_replace(array("<br/>", "<br />", "<p></p>"), " ", $content)) . '</div></div>';
        }
    }
}
Example #11
0
 /**
  * Display the button
  *
  * @return array A two element array of ( imageName, textToInsert )
  */
 function render($name)
 {
     $button = new JObject();
     if (JFactory::getApplication()->isSite() && !$this->params->enable_frontend) {
         return $button;
     }
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/functions.php';
     nnFrameworkFunctions::loadLanguage('plg_editors-xtd_articlesanywhere');
     JHtml::_('behavior.modal');
     JHtml::stylesheet('nnframework/style.min.css', false, true);
     $class = 'nonumber icon-articlesanywhere';
     $link = 'index.php?nn_qp=1' . '&folder=plugins.editors-xtd.articlesanywhere' . '&file=articlesanywhere.inc.php' . '&name=' . $name;
     $text_ini = strtoupper(str_replace(' ', '_', $this->params->button_text));
     $text = JText::_($text_ini);
     if ($text == $text_ini) {
         $text = JText::_($this->params->button_text);
     }
     $button->modal = true;
     $button->class = 'btn';
     $button->link = $link;
     $button->text = trim($text);
     $button->name = $class;
     $button->options = "{handler: 'iframe', size: {x:window.getSize().x-100, y: window.getSize().y-100}}";
     return $button;
 }
Example #12
0
function masonryYTShortcode($atts = null, $content = null)
{
    $atts = ytshortcode_atts(array('id_masonry' => '', 'gutter' => null, 'rtl' => 'no'), $atts, 'yt_masonry');
    global $intense_masonry_gutter;
    $intense_masonry_gutter = $atts['gutter'];
    if (empty($intense_masonry_gutter)) {
        $intense_masonry_gutter = '0';
    }
    if (empty($id_masonry)) {
        $id_masonry = rand();
    }
    // intense_add_script( 'packery' );
    JHtml::script(JUri::base() . "plugins/system/ytshortcodes/shortcodes/masonry/js/masonry.js");
    JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/shortcodes/masonry/css/masonry.css", 'text/css');
    $init_script = '<script>
			function intenseInitMasonry() {
				var $ = jQuery;
					var $container = $(".intense.masonry");
					$container.packery({
					  itemSelector: ".item",
					  gutter: 0,
					  isOriginLeft: ' . ($atts['rtl'] == "no" ? 'false' : 'true') . '
					});
				return $container;
			}
			jQuery(function($){ $(window).load(function() {
				setTimeout(intenseInitMasonry, 250);
				intenseInitMasonry();
            }); });</script>';
    return $init_script . '<div id="' . $id_masonry . '" class="intense masonry' . (!empty($class) ? ' ' . $class : '') . '" style="position: relative;">' . parse_shortcode(str_replace(array("<br/>", "<br />"), " ", $content)) . '</div><div class="clearfix"></div>';
}
Example #13
0
function BoxYTShortcode($atts = null, $content = null)
{
    $atts = ytshortcode_atts(array('style' => 'default', 'title' => 'Box Title', 'title_color' => '#FFFFFF', 'box_color' => '#333333', 'color' => null, 'radius' => '', 'class' => ''), $atts, 'box');
    // Initioal Variables
    $id = uniqid('yt_box_') . rand() . time();
    $radius = '';
    $css = '';
    // Color Manage
    if ($atts['color'] !== null) {
        $atts['box_color'] = $atts['color'];
    }
    // Radius Manage
    if ($atts['radius']) {
        $radius = $atts['radius'] != '0' ? 'border-radius:' . $atts['radius'] . 'px;' : '';
    }
    // Get Css in $css variable
    $css .= '#' . $id . '{' . $radius . 'border-color:' . $atts['box_color'] . ';} #' . $id . ' .yt-box-title { background-color:' . $atts['box_color'] . ';color:' . $atts['title_color'] . ';}';
    // Add CSS in head
    $doc = JFactory::getDocument();
    $doc->addStyleDeclaration($css);
    JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/shortcodes/box/css/box.css");
    // Output HTML
    $return = '<div id="' . $id . '" class="yt-clearfix yt-box yt-box-style-' . $atts['style'] . '">
                    <div class="yt-box-title">' . $atts['title'] . '
                    </div>
                    <div class="yt-box-content yt-clearfix">' . parse_shortcode(str_replace(array("<br/>", "<br>", "<br />", "<p>", "</p>"), " ", $content)) . '</div>
                </div>';
    return $return;
}
Example #14
0
 /**
  * Method to get a list of options for a list input.
  *
  * @return	array		An array of JHtml options.
  */
 protected function _getInput()
 {
     $db =& JFactory::getDBO();
     $doc =& JFactory::getDocument();
     // Load the javascript and css
     JHtml::_('behavior.framework');
     JHtml::script('modal.js');
     JHtml::stylesheet('modal.css');
     // Attach modal behavior to document
     $document = JFactory::getDocument();
     $document->addScriptDeclaration("\r\n\t\twindow.addEvent('domready', function() {\r\n\t\t\tvar div = new Element('div').setStyle('display', 'none').injectBefore(document.id('menu-types'));\r\n\t\t\tdocument.id('menu-types').injectInside(div);\r\n\t\t\tSqueezeBox.initialize();\r\n\t\t\tSqueezeBox.assign(\$\$('input.modal'), {\r\n\t\t\t\tparse: 'rel'\r\n\t\t\t});\r\n\t\t});");
     // Get the title of the linked chart
     $db->setQuery('SELECT name' . ' FROM #__contact_details' . ' WHERE id = ' . (int) $this->value);
     $title = $db->loadResult();
     if ($error = $db->getErrorMsg()) {
         JError::raiseWarning(500, $error);
     }
     if (empty($title)) {
         $title = JText::_('Contact_Select_a_Contact');
     }
     $doc->addScriptDeclaration("function jSelectChart_" . $this->inputId . "(id, name, object) {\r\n\t\t\tdocument.id('" . $this->inputId . "_id').value = id;\r\n\t\t\tdocument.id('" . $this->inputId . "_name').value = name;\r\n\t\t\tSqueezeBox.close();\r\n\t\t}");
     $link = 'index.php?option=com_contact&amp;view=contacts&amp;layout=modal&amp;tmpl=component&amp;function=jSelectChart_' . $this->inputId;
     JHTML::_('behavior.modal', 'a.modal');
     $html = "\n" . '<div class="fltlft"><input type="text" id="' . $this->inputId . '_name" value="' . htmlspecialchars($title, ENT_QUOTES, 'UTF-8') . '" disabled="disabled" /></div>';
     $html .= '<div class="button2-left"><div class="blank"><a class="modal" title="' . JText::_('Contact_Change_Contact') . '"  href="' . $link . '" rel="{handler: \'iframe\', size: {x: 800, y: 450}}">' . JText::_('Contact_Change_Contact_button') . '</a></div></div>' . "\n";
     $html .= "\n" . '<input type="hidden" id="' . $this->inputId . '_id" name="' . $this->inputName . '" value="' . (int) $this->value . '" />';
     return $html;
 }
Example #15
0
function fancy_textYTShortcode($atts, $content = null)
{
    $atts = ytshortcode_atts(array('type' => '1', 'tags' => 'Hello, Text', 'class' => '', 'color' => '', 'size' => ''), $atts, 'fancy_text');
    // Inistial Variables
    $id = uniqid("ytft_") . rand() . time();
    $tags = array();
    $tag = '';
    // class manage
    $classes = array('yt-fancy-text', 'yt-fteffect' . $atts['type'], trim($atts['class']));
    // Fancy Text interchangeable tag spliting
    if ($atts['tags']) {
        $tags = explode(',', $atts['tags']);
        foreach ($tags as $word) {
            $tag .= '<b>' . $word . '</b>';
        }
        $tag = str_replace('<b>' . $tags['0'] . '</b>', '<b class="is-visible">' . $tags['0'] . '</b>', $tag);
    }
    // Manage class for different type of Fancy Text
    if ($atts['type'] == 1 or $atts['type'] == 2 or $atts['type'] == 4 or $atts['type'] == 5) {
        $classes[] = 'yt-ft-letters';
    }
    // Add css file in head
    JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/shortcodes/fancy_text/css/fancy_text.css", 'text/css', "screen");
    // Add javascript file in head
    JHtml::_('jquery.framework');
    JHtml::script(JUri::base() . "plugins/system/ytshortcodes/shortcodes/fancy_text/js/fancy_text.js");
    // HTML Ourput
    $return = "\r\n            <span id='" . $id . "' class='" . yt_acssc($classes) . "' style='color:" . $atts['color'] . "; font-size:" . $atts['size'] . "px;'>\r\n                <span class='yt-ft-wrap'>\r\n                    " . $tag . "\r\n                </span>\r\n            </span>";
    return $return;
}
Example #16
0
 function render(&$params)
 {
     jimport('joomla.filesystem.file');
     // Load plugin language
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/functions.php';
     nnFrameworkFunctions::loadLanguage('plg_system_nnframework');
     nnFrameworkFunctions::loadLanguage('plg_editors-xtd_sourcerer');
     nnFrameworkFunctions::loadLanguage('plg_system_sourcerer');
     $language = 'en';
     $locales = JFactory::getLanguage()->getLocale();
     foreach ($locales as $locale) {
         if (JFile::exists(JPATH_PLUGINS . '/editors-xtd/sourcerer/editarea/langs/' . $locale . '.js')) {
             $language = $locale;
             break;
         }
     }
     // Add scripts and styles
     JHtml::_('behavior.mootools');
     JFactory::getDocument()->addScript(JURI::root(true) . '/plugins/editors-xtd/sourcerer/editarea/edit_area_full.js');
     JHtml::script('sourcerer/script.min.js', false, true);
     $script = "\n\t\t\teditAreaLoader.init({\n\t\t\t\tid: 'source',\t// id of the textarea to transform\n\t\t\t\tstart_highlight: true,\t// if start with highlight\n\t\t\t\tallow_resize: 'y',\n\t\t\t\tallow_toggle: false,\n\t\t\t\tword_wrap: true,\n\t\t\t\tlanguage: '" . $language . "',\n\t\t\t\tsyntax: 'php',\n\t\t\t\ttoolbar: 'fullscreen, |, undo, redo, |, select_font, |, syntax_selection, |, highlight, reset_highlight, word_wrap',\n\t\t\t\tsyntax_selection_allow: 'css,html,js,php'\n\t\t\t});\n\n\t\t\tvar sourcerer_syntax_word = '" . $params->syntax_word . "';\n\t\t\tvar sourcerer_editorname = '" . JFactory::getApplication()->input->getString('name', 'text') . "';\n\t\t\tvar sourcerer_default_addsourcetags = " . (int) $params->addsourcetags . ";\n\t\t\tvar sourcerer_root = '" . JURI::root(true) . "';\n\n\t\t\twindow.addEvent( 'domready', function() { sourcerer_init(); });\n\t\t";
     JFactory::getDocument()->addScriptDeclaration($script);
     JHtml::stylesheet('nnframework/style.min.css', false, true);
     JHtml::stylesheet('nnframework/popup.min.css', false, true);
     JHtml::stylesheet('sourcerer/popup.min.css', false, true);
     $params->code = '<!-- You can place html anywhere within the source tags --><br /><br /><br /><script language=&quot;javascript&quot; type=&quot;text/javascript&quot;><br />    // You can place JavaScript like this<br />    <br /></script><br /><?php<br />    // You can place PHP like this<br />    <br />?>';
     $params->code = str_replace('<br />', "\n", $params->code);
     echo $this->getHTML($params);
 }
Example #17
0
 /**
  * Display the button
  *
  * @return array A two element array of ( imageName, textToInsert )
  */
 function render($name)
 {
     $button = new JObject();
     if (JFactory::getApplication()->isSite() && !$this->params->enable_frontend) {
         return $button;
     }
     $user = JFactory::getUser();
     if ($user->get('guest') || !$user->authorise('core.edit', 'com_content') && !$user->authorise('core.create', 'com_content')) {
         return $button;
     }
     JHtml::stylesheet('nnframework/style.min.css', false, true);
     $icon = 'nonumber icon-modulesanywhere';
     $link = 'index.php?nn_qp=1' . '&folder=plugins.editors-xtd.modulesanywhere' . '&file=popup.php' . '&name=' . $name;
     $text_ini = strtoupper(str_replace(' ', '_', $this->params->button_text));
     $text = JText::_($text_ini);
     if ($text == $text_ini) {
         $text = JText::_($this->params->button_text);
     }
     $button->modal = true;
     $button->class = 'btn';
     $button->link = $link;
     $button->text = trim($text);
     $button->name = $icon;
     $button->options = "{handler: 'iframe', size: {x:window.getSize().x-100, y: window.getSize().y-100}}";
     return $button;
 }
Example #18
0
 protected function getInput()
 {
     $this->params = $this->element->attributes();
     JHtml::stylesheet('nnframework/style.min.css', false, true);
     $title = $this->get('label');
     $description = $this->get('description');
     $start = $this->get('start', 0);
     $end = $this->get('end', 0);
     $hastitle = $title || $description;
     JHtml::stylesheet('nnframework/style.min.css', false, true);
     $html = array();
     if ($start || !$end) {
         $html[] = $this->getTitleBlock($title, $description, $start);
         if ($start || !$hastitle) {
             $html[] = '<div class="nn_panel"><div class="nn_block' . (!$hastitle ? ' nn_block_notitle' : '') . '">';
         }
         if ($start) {
             $html[] = '<ul class="adminformlist"><li>';
         }
     }
     if ($end || !$start) {
         if ($end) {
             $html[] = '<div style="clear: both;"></div></li></ul>';
         }
         if ($end || !$hastitle) {
             $html[] = '<div style="clear: both;"></div>';
             $html[] = '</div></div>';
         }
     }
     return implode('', $html);
 }
Example #19
0
function blockquoteYTShortcode($atts, $content = null)
{
    extract(ytshortcode_atts(array("title" => '', "align" => 'none', 'border' => '#666', 'color' => '#fff', 'width' => 'auto'), $atts));
    JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/shortcodes/blockquote/css/blockquote.css");
    $source_title = $title != '' ? "<small>" . $title . "</small>" : '';
    return '<blockquote class="yt-clearfix yt-boxquote pull-' . $align . '" style="width:' . $width . '%;border-color:' . $border . ';color:' . $color . '">' . parse_shortcode(str_replace(array("<br/>", "<br>", "<br />"), " ", $content)) . $source_title . '</blockquote>';
}
Example #20
0
 function display($tpl = null)
 {
     $this->context = 'com_solidres.reservation.process';
     $this->config = JComponentHelper::getParams('com_solidres');
     $this->showPoweredByLink = $this->config->get('show_solidres_copyright', '1');
     if ($this->_layout == 'default') {
         $model = $this->getModel();
         $modelName = $model->getName();
         $this->reservation = $model->getItem();
         $this->app = JFactory::getApplication();
         $this->checkin = $model->getState($modelName . '.checkin');
         $this->checkout = $model->getState($modelName . '.checkout');
         $this->totalReservedRoom = $model->getState($modelName . '.totalReservedRoom');
         $this->countries = SolidresHelper::getCountryOptions();
         $this->geoStates = SolidresHelper::getGeoStateOptions($model->getState($modelName . '.countryId'));
         $this->userState = $this->app->getUserState($this->context);
         $this->raid = $model->getState($modelName . '.reservationAssetId');
         $this->uri = JURI::getInstance()->__toString();
         $this->roomTypeObj = SRFactory::get('solidres.roomtype.roomtype');
         $this->numberOfNights = $this->roomTypeObj->calculateDateDiff($this->checkin, $this->checkout);
         JHtml::_('jquery.framework');
     }
     JHtml::stylesheet('com_solidres/assets/main.css', false, true, false);
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     parent::display($tpl);
 }
 /**
  * Display the button
  *
  * @return array A two element array of ( imageName, textToInsert )
  */
 function render($name)
 {
     $button = new JObject();
     if (JFactory::getApplication()->isSite() && !$this->params->enable_frontend) {
         return $button;
     }
     JHtml::_('behavior.modal');
     JHtml::stylesheet('nnframework/style.min.css', false, true);
     $class = 'blank';
     if ($this->params->button_icon) {
         $class .= ' button-nonumber button-sourcerer';
     }
     $link = 'index.php?nn_qp=1' . '&folder=plugins.editors-xtd.sourcerer' . '&file=sourcerer.inc.php' . '&name=' . $name;
     $text_ini = strtoupper(str_replace(' ', '_', $this->params->button_text));
     $text = JText::_($text_ini);
     if ($text == $text_ini) {
         $text = JText::_($this->params->button_text);
     }
     $button->modal = true;
     $button->link = $link;
     $button->text = trim($text);
     $button->name = $class;
     $button->options = "{handler: 'iframe', size: {x:window.getSize().x-100, y: window.getSize().y-100}}";
     return $button;
 }
Example #22
0
function animationYTShortcode($atts, $content = null)
{
    $atts = ytshortcode_atts(array('type' => 'bounceIn', 'duration' => 1, 'delay' => 0, 'inline_block' => 'no', 'class' => ''), $atts, 'animation');
    $id = uniqid('yta') . rand() . time();
    $inline = $atts['inline_block'] === 'yes' ? ' display: inline-block;' : '';
    $style = array('duration' => array(), 'delay' => array());
    // CSS Prefix manage
    foreach (array('-webkit-', '-moz-', '-ms-', '-o-', '') as $vendor) {
        $style['duration'][] = $vendor . 'animation-duration:' . $atts['duration'] . 's';
        $style['delay'][] = $vendor . 'animation-delay:' . $atts['delay'] . 's';
    }
    // Get Css in $css variable
    $css = '#' . $id . ' {visibility:hidden;' . $inline . implode(';', $style['duration']) . ';' . implode(';', $style['delay']) . '}';
    // Add CSS in head
    $doc = JFactory::getDocument();
    $doc->addStyleDeclaration($css);
    // Add CSS file in head
    JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/assets/css/animate.css");
    JHtml::_('jquery.framework');
    JHtml::script(JUri::base() . "plugins/system/ytshortcodes/assets/js/jquery.appear.js");
    JHtml::script(JUri::base() . "plugins/system/ytshortcodes/shortcodes/animation/js/animate.js");
    // Output HTML
    $output = '<div id="' . $id . '" class="yt-clearfix yt-animate " data-animation="' . $atts['type'] . '">' . parse_shortcode(str_replace(array("<br/>", "<br />", "<p></p>"), " ", $content)) . '</div>';
    return $output;
}
 function getInput($name, $id, $value, $params)
 {
     $this->name = $name;
     $this->id = $id;
     $this->value = $value;
     $this->params = $params;
     JHtml::stylesheet('nnframework/colorpicker.min.css', false, true);
     JHtml::script('nnframework/colorpicker/color_functions.js', false, true);
     JHtml::script('nnframework/colorpicker/js_color_picker_v2.js', false, true);
     $this->value = strtoupper(preg_replace('#[^a-z0-9]#si', '', $this->value));
     $color = $this->value;
     if (!$color) {
         $color = 'DDDDDD';
     }
     $html = array();
     if ($this->def('inlist', 0) && $this->def('action')) {
         $html[] = '<input onclick="showColorPicker(this,this,\'' . addslashes($this->def('action')) . '\')" style="background-color:#' . $color . ';" type="text" name="' . $this->name . '" id="' . $this->name . $this->id . '" value="' . $this->value . '" class="nn_color nn_color_list" maxlength="6" size="1" />';
     } else {
         $html[] = '<fieldset id="' . $this->id . '" class="radio">';
         $html[] = '<label class="radio" for="' . $this->id . '" style="width:auto;min-width:0;padding-right:0;">#&nbsp;</label>';
         $html[] = '<input onclick="showColorPicker(this,this)" onchange="this.style.backgroundColor=\'#\'+this.value" style="background-color:#' . $color . ';" type="text" name="' . $this->name . '" id="' . $this->id . '" value="' . $this->value . '" class="nn_color" maxlength="6" size="8" />';
         $html[] = '</fieldset>';
     }
     return implode('', $html);
 }
 /**
  * Method to display the view.
  *
  * @param   string  $tpl  A template file to load. [optional]
  *
  * @return  void
  *
  * @since   2.5
  */
 public function display($tpl = null)
 {
     JHtml::_('behavior.framework');
     JHtml::stylesheet('com_finder/indexer.css', false, true, false);
     JHtml::script('com_finder/indexer.js', false, true);
     parent::display();
 }
Example #25
0
function image_compareYTShortcode($atts = null, $content = null)
{
    $atts = ytshortcode_atts(array('before_image' => '', 'after_image' => '', 'orientation' => '', 'before_text' => 'Original', 'after_text' => 'Modified', 'class' => ''), $atts, 'image_compare');
    // Unique Id
    $id = uniqid("ytic") . rand() . time();
    if (yt_image_media($atts['before_image']) && yt_image_media($atts['after_image'])) {
        $orientation = $atts['orientation'] == 'horizontal' ? 'data-orientation="horizontal"' : '';
        $css = '#' . $id . ' .twentytwenty-before-label:before {content: "' . $atts['before_text'] . '"}';
        $css .= '#' . $id . ' .twentytwenty-after-label:before {content: "' . $atts['after_text'] . '"}';
        // Css Adding in Head
        JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/shortcodes/image_compare/css/image_compare.css", 'text/css');
        // JavaScipt additon in Head
        JHtml::_('jquery.framework');
        JHtml::script(JUri::base() . "plugins/system/ytshortcodes/assets/js/jquery.twentytwenty.js");
        JHtml::script(JUri::base() . "plugins/system/ytshortcodes/assets/js/jquery.event.move.js");
        // OUtput Structure in  here
        $return = '
            <div id="' . $id . '" class="twentytwenty-container' . trim($atts['class']) . '" data-orientation="horizontal">
                <img src="' . yt_image_media($atts['before_image']) . '" alt="' . $atts['before_text'] . '">
                <img src="' . yt_image_media($atts['after_image']) . '" alt="' . $atts['before_text'] . '">
            </div>';
        $js = 'jQuery(window).load(function(){
              jQuery("#' . $id . '").twentytwenty({orientation: \'' . $atts['orientation'] . '\'});
            });';
        $doc = JFactory::getDocument();
        $doc->addStyleDeclaration($css);
        $doc->addScriptDeclaration($js);
    } else {
        $return = yt_alert_box('You can compare two images by using this shortcode', 'warning');
    }
    return $return;
}
Example #26
0
function notificationYTShortcode($atts = null, $content = null)
{
    $atts = ytshortcode_atts(array('effect' => 1, 'button_text' => 'Open notification', 'button_class' => '', 'close_button' => '', 'title' => 'notification Title', 'title_background' => 'rgba(0,0,0,0.1)', 'title_color' => '#222222', 'background' => '#ffffff', 'color' => '#666666', 'border' => 'none', 'shadow' => '0 solid #000000', 'width' => '640px', 'height' => 'auto', 'overlay_background' => '#000', 'class' => ''), $atts, 'notification');
    $id = uniqid('ytmodal_') . rand() . time();
    $id_over = uniqid() . rand() . time();
    JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/shortcodes/notification/css/notification.css", 'text/css');
    JHtml::_('jquery.framework');
    JHtml::script(JUri::base() . "plugins/system/ytshortcodes/shortcodes/notification/js/notification.js");
    $css = '
          #' . $id . ' .yt-modal-content-wrapper { height: ' . $atts['height'] . '; width: ' . $atts['width'] . '; background: ' . $atts['background'] . '; color: ' . $atts['color'] . '; border: ' . $atts['border'] . '; box-shadow: ' . $atts['shadow'] . '; }
          #' . $id . ' .yt-modal-title-wrapper { background: ' . $atts['title_background'] . '; }
          #' . $id . ' .yt-modal-title-wrapper h3 { color: ' . $atts['title_color'] . '; }
        ';
    $doc = JFactory::getDocument();
    $doc->addStyleDeclaration($css);
    $overlay_style = 'style=" background-color: ' . $atts['overlay_background'] . ';"';
    $close_button = $atts['close_button'] === 'yes' ? '<a href="javascript:void(0);" class="yt-modal-close"><i class="fa fa-remove"></i></a>' : '';
    $return = '<div class="yt-modal-wrapper">';
    $return .= '<a href="javascript:void(0);" class="yt-modal-trigger ' . $atts['button_class'] . '" data-modal="' . $id . '">' . $atts['button_text'] . '</a>';
    $return .= '<div class="yt-modal yt-modal-effect-' . $atts['effect'] . '" id="' . $id . '">
            <div class="yt-modal-content-wrapper">';
    $return .= '<div class="yt-modal-title-wrapper">';
    $return .= '<h3>' . $atts['title'] . '</h3>';
    $return .= $close_button;
    $return .= '</div>';
    $return .= '<div class="yt-content">';
    $return .= parse_shortcode(str_replace(array("<br/>", "<br />", "<p></p>"), " ", $content));
    $return .= '</div>
            </div>
        </div>
        <div class="yt-modal-overlay ' . $id . '" ' . $overlay_style . '></div>';
    $return .= '</div>';
    return $return;
}
Example #27
0
 /**
  * Display the view
  */
 function display()
 {
     JHtml::stylesheet('izi.css', 'media/com_dbconnect/css/');
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('TASK_DETAILS'));
     parent::display();
 }
Example #28
0
function galleryYTShortcode($atts, $content = null)
{
    global $gwidth, $gheight, $gcolumns, $galleryArray, $cation_gallery, $border_gallery, $padding_item, $id_uniq, $hover_gallery;
    $gwidth = 100;
    $gheight = 100;
    JHtml::script(JUri::base() . "plugins/system/ytshortcodes/assets/js/jquery.prettyPhoto.js");
    JHtml::stylesheet(JUri::base() . "plugins/system/ytshortcodes/shortcodes/gallery/css/gallery.css");
    extract(ytshortcode_atts(array("title" => '', "width" => 100, "height" => 100, "columns" => 3, "align" => 'center', "caption" => '0', "border" => '0px solid #4e9e41', "border_size" => '0px', "border_color" => '#4e9e41', "border_style" => 'solid', "padding" => '0px', "hover" => '1'), $atts));
    //$border_gallery = ($border_size =='0px') ? '' : "border:".$border_size." ".$border_style." #4e9e41;";
    $border_gallery = "border: " . $border . "";
    switch ($caption) {
        case '1':
            $cation_gallery = 'caption_gallery_1';
            break;
        case '2':
            $cation_gallery = 'caption_gallery_2';
            break;
        default:
            $cation_gallery = '';
            break;
    }
    $hover_gallery = $hover;
    $padding_item = $padding == '0px' ? '' : "padding:" . $padding . "";
    $id_uniq = uniqid("yt") . rand() . time();
    $gwidth = $width;
    $gheight = $height;
    $gcolumns = $columns;
    $gallery = '';
    $galleryArray = array();
    parse_shortcode($content);
    $tags = array();
    $tags = '';
    foreach ($galleryArray as $key => $item) {
        $tags .= ',' . strtolower($item['tag']);
    }
    $tags = ltrim($tags, ',');
    $tags = explode(',', $tags);
    $newtags = array();
    foreach ($tags as $tag) {
        $newtags[] = trim($tag);
    }
    $tags = array_values(array_unique($newtags));
    if ($align != '') {
        $align = 'pull-' . $align;
    } else {
        $align = '';
    }
    $gallery .= '<div class="yt-gallery clearfix ' . $align . '" style="margin:0 auto">';
    $gallery .= '<div class = "yt-gallery-tabbed" style="display:table; margin-bottom:10px;">';
    $gallery .= '<ul class="tabnav">';
    $gallery .= '<li class="showall active ' . $id_uniq . '"><span >Show all</span></li>';
    foreach ($tags as $tag) {
        $gallery .= '<li id=' . trim($tag) . $id_uniq . ' class="' . $id_uniq . '"><span>' . ucfirst(trim($tag)) . '</span></li>';
    }
    $gallery .= '</ul>';
    $gallery .= '</div>';
    $gallery .= '<ul class="gallery-list clearfix">' . parse_shortcode(str_replace(array("<br/>", "<br>", "<br />", "<p>", "</p>"), " ", $content)) . '</ul>';
    $gallery .= '</div>';
    return $gallery;
}
Example #29
0
	public static function renderAllCSS($noBootStrap = 0) {
		$app	= JFactory::getApplication();
		$itemid	= $app->input->get('Itemid', 0, 'int');
		$db 	= JFactory::getDBO();
		$query = 'SELECT a.filename as filename, a.type as type, a.menulink as menulink'
				.' FROM #__phocadownload_styles AS a'
				.' WHERE a.published = 1'
			    .' ORDER BY a.type, a.ordering ASC';
		$db->setQuery($query);
		$filenames = $db->loadObjectList();
		if (!empty($filenames)) {
			foreach ($filenames as $fk => $fv) {
				
				$path = PhocaDownloadFile::getCSSPath($fv->type, 1);
			
				if ($fv->menulink != '' && (int)$fv->menulink > 1) {
	
					$menuLinks 	= explode(',', $fv->menulink);
					$isIncluded	= in_array((int)$itemid, $menuLinks);
					if ($isIncluded) {
						JHtml::stylesheet($path . $fv->filename );
					} 
				} else {
					JHtml::stylesheet($path . $fv->filename );
				}
			}
		}
	}
Example #30
0
 /**
  * Display the login view
  */
 public function display($tpl = null)
 {
     // Add the stylesheets
     JHtml::stylesheet('com_attachments/attachments_frontend_form.css', array(), true);
     $lang = JFactory::getLanguage();
     if ($lang->isRTL()) {
         JHtml::stylesheet('com_attachments/attachments_frontend_form_rtl.css', array(), true);
     }
     // Is the user already logged in?
     $user = JFactory::getUser();
     $this->logged_in = $user->get('username') != '';
     // Get the component parameters for the registration and login URL
     jimport('joomla.application.component.helper');
     $params = JComponentHelper::getParams('com_attachments');
     $register_url = $params->get('register_url', 'index.php?option=com_users&view=registration');
     $register_url = JRoute::_($register_url);
     $this->register_url = $register_url;
     // Construct the login URL
     $return = '';
     if ($this->return_url) {
         $return = '&return=' . $this->return_url;
     }
     $login_url = $params->get('login_url', 'index.php?option=com_users&view=login') . $return;
     $this->login_url = JRoute::_($login_url);
     // Get the warning message
     $this->must_be_logged_in = JText::_('ATTACH_WARNING_MUST_LOGIN_TO_DOWNLOAD_ATTACHMENT');
     // Get a phrase from the login module to create the account
     $lang->load('com_users');
     $register = JText::_('COM_USERS_REGISTER_DEFAULT_LABEL');
     $this->register_label = $register;
     $login = JText::_('JLOGIN');
     $this->login_label = $login;
     parent::display($tpl);
 }