Example #1
0
function modChrome_modal($module, &$params, &$attribs)
{
    $moduleTag = $params->get('module_tag');
    $headerTag = htmlspecialchars($params->get('header_tag'));
    $headerClass = $params->get('header_class');
    $bootstrapSize = $params->get('bootstrap_size');
    $moduleClassSfx = htmlspecialchars($params->get('moduleclass_sfx'));
    if (!empty($module->content)) {
        $html = "<{$moduleTag} class=\"modal hide fade moduletable {$moduleClassSfx} loginPopup\" id=\"modal\">";
        $html .= "<div class=\"modal-header\"><button type=\"button\" class=\"close modalClose\">ร—</button>";
        if ((bool) $module->showtitle) {
            $html .= "<header><{$headerTag} class=\"{$headerClass}\">" . wrap_with_span($module->title) . "</{$headerTag}></header>";
            $html .= "</div>";
        }
        $html .= "<div class=\"modal-body\">";
        $html .= $module->content;
        $html .= "</div>";
        $html .= "</{$moduleTag}>";
        echo $html;
    }
}
Example #2
0
$app = JFactory::getApplication('site');
$template = $app->getTemplate(true);
include_once JPATH_BASE . '/templates/' . $template->template . '/includes/functions.php';
?>
<div class="page page-contact page-contact__<?php 
echo $this->pageclass_sfx;
?>
">

  <?php 
if ($this->params->get('show_page_heading')) {
    ?>
  <!-- Heading -->
  <div class="page_header">
    <?php 
    echo wrap_with_tag(wrap_with_span($this->escape($this->params->get('page_heading'))), $template->params->get('category_page_heading'));
    ?>
  </div>
  <?php 
}
if ($this->contact->name && $this->params->get('show_name')) {
    ?>
  <!-- Contact name -->
  <div clas="contact_name">
    <?php 
    echo '<' . $template->params->get('category_page_heading') . '>';
    if ($this->item->published == 0) {
        ?>
      <span class="label label-warning"><?php 
        echo JText::_('JUNPUBLISHED');
        ?>
Example #3
0
/**
 * @package     Joomla.Site
 * @subpackage  com_users
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
$app = JFactory::getApplication('site');
$template = $app->getTemplate(true);
include_once JPATH_BASE . '/templates/' . $template->template . '/includes/functions.php';
?>
<fieldset id="users-profile-core">
  <?php 
echo wrap_with_tag(wrap_with_span($this->escape(JText::_('COM_USERS_PROFILE_CORE_LEGEND'))), $template->params->get('category_page_heading'));
?>
	<dl class="dl-horizontal">
		<dt><?php 
echo JText::_('COM_USERS_PROFILE_NAME_LABEL');
?>
</dt>
		<dd><?php 
echo $this->data->name;
?>
</dd>
		<dt><?php 
echo JText::_('COM_USERS_PROFILE_USERNAME_LABEL');
?>
</dt>
		<dd><?php 
Example #4
0
}
if ($params->get('show_title') || $params->get('show_author')) {
    ?>
	<header class="item_header">
		<?php 
    echo '<' . $template->params->get('item_item_heading') . ' class="item_title">';
    if ($this->item->state == 0) {
        ?>
		<span class="label label-warning"><?php 
        echo JText::_('JUNPUBLISHED');
        ?>
</span>
		<?php 
    }
    if ($params->get('show_title')) {
        echo wrap_with_span($this->escape($this->item->title));
    }
    echo '</' . $template->params->get('item_item_heading') . '>';
    if ($params->get('show_author') && !empty($this->item->author)) {
        ?>
		<div class="item_createdby">
			<?php 
        $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author;
        if (!empty($this->item->contactid) && $params->get('link_author') == true) {
            $needle = 'index.php?option=com_contact&view=contact&id=' . $this->item->contactid;
            $menu = JFactory::getApplication()->getMenu();
            $item = $menu->getItems('link', $needle, true);
            $cntlink = !empty($item) ? $needle . '&Itemid=' . $item->id : $needle;
            echo JText::sprintf('TPL_BY', JHtml::_('link', JRoute::_($cntlink), $author));
        } else {
            echo JText::sprintf('TPL_BY', $author);
		<?php 
    if ($params->get('link_titles') && $item->link != '') {
        ?>
			<a href="<?php 
        echo $item->link;
        ?>
">
				<?php 
        echo $item->title;
        ?>
</a>
		<?php 
    } else {
        ?>
			<?php 
        echo wrap_with_span($item->title);
        ?>
		<?php 
    }
    ?>
		</<?php 
    echo $item_heading;
    ?>
>
	<?php 
}
?>

	<?php 
if (!$params->get('intro_only')) {
    echo $item->afterDisplayTitle;
Example #6
0
            echo $i % 2;
            ?>
">
		<?php 
        } else {
            ?>
		<article class="item" >
			<?php 
            echo '<' . $template->params->get('category_item_heading') . ' class="item_title">';
            ?>
				<a href="<?php 
            echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router));
            ?>
">
					<?php 
            echo wrap_with_span($this->escape($item->core_title));
            ?>
				</a>
			<?php 
            echo '</' . $template->params->get('category_item_heading') . '>';
        }
        $images = json_decode($item->core_images);
        if ($this->params->get('tag_list_show_item_image', 1) == 1 && !empty($images->image_intro)) {
            $imgfloat = empty($images->float_intro) ? $this->params->get('float_intro') : $images->float_intro;
            ?>
      <div class="item_img img-intro img-intro__<?php 
            echo htmlspecialchars($imgfloat);
            ?>
">
				<a href="<?php 
            echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router));
Example #7
0
?>
	<form id="member-profile" action="<?php 
echo JRoute::_('index.php?option=com_users&task=profile.save');
?>
" method="post" class="form-validate form-vertical" enctype="multipart/form-data">
		<?php 
foreach ($this->form->getFieldsets() as $group => $fieldset) {
    // Iterate through the form fieldsets and display each one.
    $fields = $this->form->getFieldset($group);
    if (count($fields)) {
        ?>
		<fieldset>
			<?php 
        if (isset($fieldset->label)) {
            // If the fieldset has a label set, display it as the legend.
            echo wrap_with_tag(wrap_with_span($this->escape(JText::_($fieldset->label))), $template->params->get('category_page_heading'));
        }
        foreach ($fields as $field) {
            // Iterate through the fields in the set and display them.
            if ($field->hidden) {
                // If the field is hidden, just display the input.
                ?>
			<div class="control-group">
				<div class="controls">
					<?php 
                echo $field->input;
                ?>
				</div>
			</div>
			<?php 
            } else {
Example #8
0
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
$isSingleTag = count($this->item) == 1;
$app = JFactory::getApplication('site');
$template = $app->getTemplate(true);
include_once JPATH_BASE . '/templates/' . $template->template . '/includes/functions.php';
?>
<section class="tag-category<?php 
echo $this->pageclass_sfx;
?>
">
	<?php 
if ($this->params->get('show_page_heading')) {
    echo wrap_with_tag(wrap_with_span($this->escape($this->params->get('page_heading'))), $template->params->get('blog_page_heading'));
}
if ($this->params->get('show_tag_title', 1)) {
    echo wrap_with_tag(wrap_with_span($this->escape(JHtml::_('content.prepare', $this->document->title, '', 'com_tag.tag'))), $template->params->get('blog_page_heading'));
}
// We only show a tag description if there is a single tag.
if (count($this->item) == 1 && ($this->params->get('tag_list_show_tag_image', 1) || $this->params->get('tag_list_show_tag_description', 1))) {
    ?>
	<div class="category-desc">
	<?php 
    $images = json_decode($this->item[0]->images);
    if ($this->params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) {
        ?>
		<img src="<?php 
        echo htmlspecialchars($images->image_fulltext);
        ?>
">
		<?php 
    }
Example #9
0
			<label for="ordering" class="ordering"><?php 
echo JText::_('COM_SEARCH_ORDERING');
?>
</label>
			<?php 
echo $this->lists['ordering'];
?>
		</div>
	</fieldset>

	<?php 
if ($this->params->get('search_areas', 1)) {
    ?>
	<fieldset class="only">
  	<?php 
    echo wrap_with_tag(wrap_with_span($this->escape(JText::_('COM_SEARCH_SEARCH_ONLY'))), $template->params->get('category_item_heading'));
    foreach ($this->searchareas['search'] as $val => $txt) {
        $checked = is_array($this->searchareas['active']) && in_array($val, $this->searchareas['active']) ? 'checked="checked"' : '';
        ?>
		<label for="area-<?php 
        echo $val;
        ?>
" class="checkbox">
			<input type="checkbox" name="areas[]" value="<?php 
        echo $val;
        ?>
" id="area-<?php 
        echo $val;
        ?>
" <?php 
        echo $checked;
Example #10
0
JLoader::register('JHtmlUsers', JPATH_COMPONENT . '/helpers/html/users.php');
JHtml::register('users.spacer', array('JHtmlUsers', 'spacer'));
JHtml::register('users.helpsite', array('JHtmlUsers', 'helpsite'));
JHtml::register('users.templatestyle', array('JHtmlUsers', 'templatestyle'));
JHtml::register('users.admin_language', array('JHtmlUsers', 'admin_language'));
JHtml::register('users.language', array('JHtmlUsers', 'language'));
JHtml::register('users.editor', array('JHtmlUsers', 'editor'));
$app = JFactory::getApplication('site');
$template = $app->getTemplate(true);
include_once JPATH_BASE . '/templates/' . $template->template . '/includes/functions.php';
$fields = $this->form->getFieldset('params');
if (count($fields)) {
    ?>
<fieldset id="users-profile-custom">
<?php 
    echo wrap_with_tag(wrap_with_span($this->escape(JText::_('COM_USERS_SETTINGS_FIELDSET_LABEL'))), $template->params->get('category_page_heading'));
    ?>
	<dl class="dl-horizontal">
	<?php 
    foreach ($fields as $field) {
        if (!$field->hidden) {
            ?>
		<dt><?php 
            echo $field->title;
            ?>
</dt>
		<dd>
			<?php 
            if (JHtml::isRegistered('users.' . $field->id)) {
                echo JHtml::_('users.' . $field->id, $field->value);
            } elseif (JHtml::isRegistered('users.' . $field->fieldname)) {