function modChrome_artarticle($module, &$params, &$attribs) { if (!empty($module->content)) { $data = array('classes' => $params->get('moduleclass_sfx'), 'content' => $module->content); if ($module->showtitle != 0) { $data['header-text'] = $module->title; } echo artxPost($data); } }
<button type="button" onclick="submitbutton('save')"><?php echo JText::_('Save'); ?> </button> <button type="button" onclick="submitbutton('cancel')"><?php echo JText::_('Cancel'); ?> </button> </div> <input type="hidden" name="jform[id]" value="<?php echo $this->weblink->id; ?> " /> <input type="hidden" name="jform[ordering]" value="<?php echo $this->weblink->ordering; ?> " /> <input type="hidden" name="jform[approved]" value="<?php echo $this->weblink->approved; ?> " /> <input type="hidden" name="option" value="com_weblinks" /> <input type="hidden" name="controller" value="weblink" /> <input type="hidden" name="task" value="" /> <?php echo JHTML::_('form.token'); ?> </form> <?php echo artxPost(artxPageTitle($this), ob_get_clean());
<div class="art-sidebar1"><?php echo artxModules($document, 'left', 'art-block'); ?> </div> <?php } ?> <div class="art-<?php echo artxCountModules($document, 'left') ? 'content' : 'content-wide'; ?> "> <?php echo artxModules($document, 'banner2', 'art-nostyle'); if (artxCountModules($document, 'breadcrumb')) { echo artxPost(null, artxModules($document, 'breadcrumb')); } echo artxPositions($document, array('user1', 'user2'), 'art-article'); echo artxModules($document, 'banner3', 'art-nostyle'); if (artxHasMessages()) { ?> <div class="art-Post"> <div class="art-Post-body"> <div class="art-Post-inner"> <div class="art-PostContent"> <jdoc:include type="message" /> </div> <div class="cleared"></div>
if ($this->params->get('description_logout')) { echo $this->params->get('description_logout_text'); } ?> </div> </td> </tr> <tr> <td align="center"> <div align="center"> <input type="submit" name="Submit" class="button" value="<?php echo JText::_('Logout'); ?> " /> </div> </td> </tr> </table> <br /><br /> <input type="hidden" name="option" value="com_user" /> <input type="hidden" name="task" value="logout" /> <input type="hidden" name="return" value="<?php echo $this->return; ?> " /> </form> <?php echo artxPost(artxPageTitle($this, $this->params->get('show_logout_title'), 'header_logout'), ob_get_clean());
?> " class="inputbox" onchange="document.getElementById('adminForm').submit();" /> <?php } ?> <?php echo $this->form->monthField; ?> <?php echo $this->form->yearField; ?> <?php echo $this->form->limitField; ?> <button type="submit" class="button"><?php echo JText::_('JGLOBAL_FILTER_BUTTON'); ?> </button> </div> <input type="hidden" name="view" value="archive" /> <input type="hidden" name="option" value="com_content" /> <input type="hidden" name="limitstart" value="0" /> </fieldset> <?php echo artxPost(array('header-text' => $component->pageHeading, 'content' => ob_get_clean())); echo $this->loadTemplate('items'); ?> </form> <?php echo $component->endPageContainer();
function artxComponent() { // for Joomla 1.0 ob_start(); mosMainBody(); $content = ob_get_clean(); if (false === strpos($content, '<div class="art-Post">')) { $title = null; if (preg_match('~<div\\s+class="(componentheading[^"]*)"([^>]*)>([^<]+)</div>~', $content, $matches, PREG_OFFSET_CAPTURE)) { $content = substr($content, 0, $matches[0][1]) . substr($content, $matches[0][1] + strlen($matches[0][0])); $title = '<span class="' . $matches[1][0] . '"' . $matches[2][0] . '>' . $matches[3][0] . '</span>'; } return artxPost($title, $content); } return $content; }
</tr> <tr> <td height="40"> <label for="token" class="hasTip" title="<?php echo JText::_('RESET_PASSWORD_TOKEN_TIP_TITLE'); ?> ::<?php echo JText::_('RESET_PASSWORD_TOKEN_TIP_TEXT'); ?> "><?php echo JText::_('Token'); ?> :</label> </td> <td> <input id="token" name="token" type="text" class="required" size="36" /> </td> </tr> </table> <button type="submit" class="validate"><?php echo JText::_('Submit'); ?> </button> <?php echo JHTML::_('form.token'); ?> </form> <?php echo artxPost(JText::_('Confirm your Account'), ob_get_clean());
?> </div> <?php echo artxPost(null, ob_get_contents()); } } if ($this->params->def('show_pagination', 2) == 1 || $this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1) { ob_start(); ?> <div id="navigation"> <p><?php echo $this->pagination->getPagesLinks(); ?> </p> <?php if ($this->params->def('show_pagination_results', 1)) { ?> <p><?php echo $this->pagination->getPagesCounter(); ?> </p> <?php } ?> </div> <?php echo artxPost(null, ob_get_clean()); } ?>
$rowcount = ((int) $key - 1) % (int) $this->columns + 1; $row = $counter / $this->columns; if ($rowcount == 1) { echo '<div class="items-row cols-' . (int) $this->columns . ' row-' . $row . '">'; } echo '<div class="item column-' . $rowcount . ($item->state == 0 ? ' system-unpublished"' : '') . '">'; $this->item = $item; echo $this->loadTemplate('item'); echo '</div>'; $counter++; if ($rowcount == $this->columns || $counter == $introcount) { echo '<span class="row-separator"></span></div>'; } } } if (!empty($this->link_items)) { ob_start(); echo '<div class="items-more">' . $this->loadTemplate('links') . '</div>'; echo artxPost(ob_get_clean()); } if ($this->params->def('show_pagination', 2) == 1 || $this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1) { ob_start(); echo '<div class="pagination">'; if ($this->params->def('show_pagination_results', 1)) { echo '<p class="counter">' . $this->pagination->getPagesCounter() . '</p>'; } echo $this->pagination->getPagesLinks(); echo '</div>'; echo artxPost(ob_get_clean()); } echo $view->endPageContainer();
/** * Wraps component content into article style unless it is not already wrapped. * * The componentWrapper method gets the content of the 'component' buffer and searches for the '<div class="art-post">' string in it. * Then it wraps the content of the buffer with the art-post. */ public function componentWrapper() { if ($this->page->getType() != 'html') { return; } $option = JRequest::getCmd('option'); $view = JRequest::getCmd('view'); $layout = JRequest::getCmd('layout'); $content = $this->page->getBuffer('component'); // Workarounds for Joomla bugs and inconsistencies: switch ($option) { case "com_content": switch ($view) { case "form": if ("edit" == $layout) { $content = str_replace('<button type="button" onclick="', '<button type="button" class="button" onclick="', $content); } break; case "article": $content = preg_replace_callback('/<script[^>]*>([\\s\\S]+?)<\\/script>/', array(&$this, 'parseInlineScripts'), $content); break; } break; case "com_users": switch ($view) { case "remind": if ("" == $layout) { $content = str_replace('<button type="submit">', '<button type="submit" class="button">', $content); $content = str_replace('<button type="submit" class="validate">', '<button type="submit" class="button">', $content); } break; case "reset": if ("" == $layout) { $content = str_replace('<button type="submit">', '<button type="submit" class="button">', $content); $content = str_replace('<button type="submit" class="validate">', '<button type="submit" class="button">', $content); } break; case "registration": if ("" == $layout) { $content = str_replace('<button type="submit" class="validate">', '<button type="submit" class="button validate">', $content); } break; } break; } // Code injections: switch ($option) { case "com_content": switch ($view) { case "form": if ("edit" == $layout) { $this->page->addScriptDeclaration($this->getWysiwygBackgroundImprovement()); } break; } break; } if ('com_content' == $option && ('featured' == $view || 'article' == $view || 'category' == $view && 'blog' == $layout)) { $this->page->setBuffer($content, 'component'); } if (false === strpos($content, '<div class="art-post')) { $this->page->setBuffer(artxPost(array('header-text' => null, 'content' => $content)), 'component'); } }
public function pageHeading($title = null) { return artxPost(array('header-text' => $this->_component->escape(null == $title ? $this->pageHeading : $title))); }
</tr> <tr> <td height="40"> <label for="password2" class="hasTip" title="<?php echo JText::_('RESET_PASSWORD_PASSWORD2_TIP_TITLE'); ?> ::<?php echo JText::_('RESET_PASSWORD_PASSWORD2_TIP_TEXT'); ?> "><?php echo JText::_('Verify Password'); ?> :</label> </td> <td> <input id="password2" name="password2" type="password" class="required validate-password" /> </td> </tr> </table> <button type="submit" class="validate"><?php echo JText::_('Submit'); ?> </button> <?php echo JHTML::_('form.token'); ?> </form> <?php echo artxPost(JText::_('Reset your Password'), ob_get_clean());
function artxComponentWrapper(&$document) { if ($document->getType() != 'html') { return; } $option = JRequest::getCmd('option'); $view = JRequest::getCmd('view'); $layout = JRequest::getCmd('layout'); $content = $document->getBuffer('component'); // fixes for w3.org validation if ('com_contact' == $option) { if ('category' == $view) { $content = artxHtmlFixFormAction($content); } elseif ('contact' == $view) { $content = artxHtmlFixMoveScriptToHead('~<script [^>]+>\\s*(<!--[^>]*-->)\\s*</script>~', $content); } } elseif ('com_content' == $option) { if ('category' == $view) { if ('' == $layout) { $content = artxHtmlFixMoveScriptToHead('~<script [^>]+>([^<]*)</script>~', $content); $content = artxHtmlFixFormAction($content); } } elseif ('archive' == $view) { $content = artxHtmlFixRemove('~<ul id="archive-list" style="list-style: none;">\\s*</ul>~', $content); } } elseif ('com_user' == $option) { if ('user' == $view) { if ('form' == $layout) { $content = artxHtmlFixRemove('~autocomplete="off"~', $content); } } } if (false === strpos($content, '<div class="art-post">')) { $title = null; if (preg_match('~<div\\s+class="(componentheading[^"]*)"([^>]*)>([^<]+)</div>~', $content, $matches, PREG_OFFSET_CAPTURE)) { $content = substr($content, 0, $matches[0][1]) . substr($content, $matches[0][1] + strlen($matches[0][0])); $title = '<span class="' . $matches[1][0] . '"' . $matches[2][0] . '>' . $matches[3][0] . '</span>'; } $document->setBuffer(artxPost($title, $content), 'component'); } }
<?php defined('_JEXEC') or die('Restricted access'); // no direct access require_once dirname(__FILE__) . DS . '..' . DS . '..' . DS . '..' . DS . 'functions.php'; $canEdit = $this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'); echo artxPost(artxPageTitle($this, $this->params->get('show_page_title', 1) && $this->params->get('page_title') != $this->article->title), null); $metadata = array(); ?> <div class="Post"> <div class="Post-body"> <div class="Post-inner"> <?php if ($this->params->get('show_title')) { ?> <h2 class="PostHeaderIcon-wrapper"> <?php if ($this->params->get('show_title')) { ?> <?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') { ?> <a href="<?php echo $this->article->readmore_link; ?> " class="PostHeader"> <?php echo $this->escape($this->article->title); ?> </a> <?php } else {
public function article($article) { return artxPost($article); }
function modChrome_artarticle($module, &$params, &$attribs) { if (!empty($module->content)) { echo artxPost($module->showtitle != 0 ? $module->title : '', $module->content); } }
</div> <?php } ?> <div class="dd-layout-cell dd-content"> <?php echo $view->position('position-19', 'dd-nostyle'); if ($view->containsModules('position-2')) { echo artxPost($view->position('position-2')); } echo $view->positions(array('position-20' => 50, 'position-21' => 50), 'dd-article'); echo $view->position('position-12', 'dd-nostyle'); echo artxPost(array('content' => '<jdoc:include type="message" />', 'classes' => ' dd-messages')); echo '<jdoc:include type="component" />'; echo $view->position('position-22', 'dd-nostyle'); echo $view->positions(array('position-23' => 50, 'position-24' => 50), 'dd-article'); echo $view->position('position-25', 'dd-nostyle'); ?> </div> </div> </div> </div> <?php echo $view->positions(array('position-9' => 33, 'position-10' => 33, 'position-11' => 34), 'dd-block'); echo $view->position('position-26', 'dd-nostyle');
<div class="cleared"></div> </div> <?php } ?> <div class="art-layout-cell art-content"> <?php echo $view->position('banner2', 'art-nostyle'); if ($view->containsModules('breadcrumb')) { echo artxPost($view->position('breadcrumb')); } echo $view->positions(array('user1' => 50, 'user2' => 50), 'art-article'); echo $view->position('banner3', 'art-nostyle'); if ($view->hasMessages()) { echo artxPost('<jdoc:include type="message" />'); } echo '<jdoc:include type="component" />'; echo $view->position('banner4', 'art-nostyle'); echo $view->positions(array('user4' => 50, 'user5' => 50), 'art-article'); echo $view->position('banner5', 'art-nostyle'); ?> <div class="cleared"></div> </div> <?php if ($view->containsModules('right')) { ?> <div class="art-layout-cell art-sidebar2"> <?php echo $view->position('right', 'art-block');
if ($this->contact->params->get('allow_vcard')) { ?> <tr> <td colspan="2"> <?php echo JText::_('Download information as a'); ?> <a href="<?php echo JURI::base(); ?> index.php?option=com_contact&task=vcard&contact_id=<?php echo $this->contact->id; ?> &format=raw&tmpl=component"> <?php echo JText::_('VCard'); ?> </a> </td> </tr> <?php } if ($this->contact->params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) { echo $this->loadTemplate('form'); } ?> </table> </div> <?php echo artxPost(artxPageTitle($this, $this->params->get('show_page_title', 1) && !$this->contact->params->get('popup') && $this->params->get('page_title') != $this->contact->name), ob_get_clean());