Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
home/lmsyaran/public_html/joomla3/templates/system/html/modules.php000064400000012006147365400130021641
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Template.system
*
* @copyright (C) 2006 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/*
* none (output raw module content)
*/
function modChrome_none($module, &$params, &$attribs)
{
echo $module->content;
}
/*
* html5 (chosen html5 tag and font header tags)
*/
function modChrome_html5($module, &$params, &$attribs)
{
$moduleTag = htmlspecialchars($params->get('module_tag',
'div'), ENT_QUOTES, 'UTF-8');
$headerTag = htmlspecialchars($params->get('header_tag',
'h3'), ENT_QUOTES, 'UTF-8');
$bootstrapSize = (int) $params->get('bootstrap_size', 0);
$moduleClass = $bootstrapSize !== 0 ? ' span' .
$bootstrapSize : '';
// Temporarily store header class in variable
$headerClass = $params->get('header_class');
$headerClass = !empty($headerClass) ? ' class="' .
htmlspecialchars($headerClass, ENT_COMPAT, 'UTF-8') .
'"' : '';
if (!empty ($module->content)) : ?>
<<?php echo $moduleTag; ?> class="moduletable<?php echo
htmlspecialchars($params->get('moduleclass_sfx',
''), ENT_COMPAT, 'UTF-8') . $moduleClass;
?>">
<?php if ((bool) $module->showtitle) :?>
<<?php echo $headerTag . $headerClass . '>' .
$module->title; ?></<?php echo $headerTag; ?>>
<?php endif; ?>
<?php echo $module->content; ?>
</<?php echo $moduleTag; ?>>
<?php endif;
}
/*
* Module chrome that wraps the module in a table
*/
function modChrome_table($module, &$params, &$attribs)
{ ?>
<table cellpadding="0" cellspacing="0"
class="moduletable<?php echo
htmlspecialchars($params->get('moduleclass_sfx',
''), ENT_COMPAT, 'UTF-8'); ?>">
<?php if ((bool) $module->showtitle) : ?>
<tr>
<th>
<?php echo $module->title; ?>
</th>
</tr>
<?php endif; ?>
<tr>
<td>
<?php echo $module->content; ?>
</td>
</tr>
</table>
<?php
}
/*
* Module chrome that wraps the tabled module output in a <td> tag of
another table
*/
function modChrome_horz($module, &$params, &$attribs)
{ ?>
<table cellspacing="1" cellpadding="0"
width="100%">
<tr>
<td>
<?php modChrome_table($module, $params, $attribs); ?>
</td>
</tr>
</table>
<?php
}
/*
* xhtml (divs and font header tags)
* With the new advanced parameter it does the same as the html5 chrome
*/
function modChrome_xhtml($module, &$params, &$attribs)
{
$moduleTag = htmlspecialchars($params->get('module_tag',
'div'), ENT_QUOTES, 'UTF-8');
$headerTag = htmlspecialchars($params->get('header_tag',
'h3'), ENT_QUOTES, 'UTF-8');
$bootstrapSize = (int) $params->get('bootstrap_size', 0);
$moduleClass = $bootstrapSize !== 0 ? ' span' .
$bootstrapSize : '';
// Temporarily store header class in variable
$headerClass = $params->get('header_class');
$headerClass = $headerClass ? ' class="' .
htmlspecialchars($headerClass, ENT_COMPAT, 'UTF-8') .
'"' : '';
if (!empty ($module->content)) : ?>
<<?php echo $moduleTag; ?> class="moduletable<?php echo
htmlspecialchars($params->get('moduleclass_sfx',
''), ENT_COMPAT, 'UTF-8') . $moduleClass;
?>">
<?php if ((bool) $module->showtitle) : ?>
<<?php echo $headerTag . $headerClass . '>' .
$module->title; ?></<?php echo $headerTag; ?>>
<?php endif; ?>
<?php echo $module->content; ?>
</<?php echo $moduleTag; ?>>
<?php endif;
}
/*
* Module chrome that allows for rounded corners by wrapping in nested div
tags
*/
function modChrome_rounded($module, &$params, &$attribs)
{ ?>
<div class="module<?php echo
htmlspecialchars($params->get('moduleclass_sfx',
''), ENT_COMPAT, 'UTF-8'); ?>">
<div>
<div>
<div>
<?php if ((bool) $module->showtitle) : ?>
<h3><?php echo $module->title; ?></h3>
<?php endif; ?>
<?php echo $module->content; ?>
</div>
</div>
</div>
</div>
<?php
}
/*
* Module chrome that add preview information to the module
*/
function modChrome_outline($module, &$params, &$attribs)
{
static $css = false;
if (!$css)
{
$css = true;
$doc = JFactory::getDocument();
$doc->addStyleDeclaration('
.mod-preview {
background: rgba(100,100,100,.08);
box-shadow: 0 0 0 4px #f4f4f4, 0 0 0 5px rgba(100,100,100,.2);
border-radius: 1px;
margin: 8px 0;
}
.mod-preview-info {
padding: 4px 6px;
margin-bottom: 5px;
font-family: Arial, sans-serif;
font-size: .75rem;
line-height: 1rem;
color: white;
background-color: #33373f;
border-radius: 3px;
box-shadow: 0 -10px 20px rgba(0,0,0,.2) inset;
}
.mod-preview-info span {
font-weight: bold;
color: #ccc;
}
.mod-preview-wrapper {
margin-bottom: .5rem;
}
');
}
?>
<div class="mod-preview">
<div class="mod-preview-info">
<div class="mod-preview-position">
<?php echo JText::sprintf('JGLOBAL_PREVIEW_POSITION',
$module->position); ?>
</div>
<div class="mod-preview-style">
<?php echo JText::sprintf('JGLOBAL_PREVIEW_STYLE',
$module->style); ?>
</div>
</div>
<div class="mod-preview-wrapper">
<?php echo $module->content; ?>
</div>
</div>
<?php
}
home/lmsyaran/public_html/j3/libraries/regularlabs/fields/modules.php000064400000013156151157211440022055
0ustar00<?php
/**
* @package Regular Labs Library
* @version 21.2.19653
*
* @author Peter van Westen <info@regularlabs.com>
* @link http://www.regularlabs.com
* @copyright Copyright © 2021 Regular Labs All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper as JHtml;
use Joomla\CMS\Language\Text as JText;
use RegularLabs\Library\Form as RL_Form;
use RegularLabs\Library\RegEx as RL_RegEx;
if ( ! is_file(JPATH_LIBRARIES . '/regularlabs/autoload.php'))
{
return;
}
require_once JPATH_LIBRARIES . '/regularlabs/autoload.php';
class JFormFieldRL_Modules extends \RegularLabs\Library\Field
{
public $type = 'Modules';
protected function getInput()
{
JHtml::_('behavior.modal', 'a.modal');
$size = $this->get('size') ? 'style="width:'
. $this->get('size') . 'px"' : '';
$multiple = $this->get('multiple');
$showtype = $this->get('showtype');
$showid = $this->get('showid');
$showinput = $this->get('showinput');
$showlink = ! $multiple ? $this->get('showlink') : false;
// load the list of modules
$query = $this->db->getQuery(true)
->select('m.id, m.title, m.position, m.module, m.published,
m.language')
->from('#__modules AS m')
->where('m.client_id = 0')
->where('m.published > -2')
->order('m.position, m.title, m.ordering, m.id');
$this->db->setQuery($query);
$modules = $this->db->loadObjectList();
// assemble menu items to the array
$options = [];
$selected_title = '';
$p = 0;
foreach ($modules as $item)
{
if ($p !== $item->position)
{
$pos = $item->position;
if ($pos == '')
{
$pos = ':: ' . JText::_('JNONE') . '
::';
}
$options[] = JHtml::_('select.option', '-', '[
' . $pos . ' ]', 'value', 'text', true);
}
$p = $item->position;
$item->title = $item->title;
if ($showtype)
{
$item->title .= ' [' . $item->module . ']';
}
if ($showinput || $showid)
{
$item->title .= ' [' . $item->id . ']';
}
if ($item->language && $item->language != '*')
{
$item->title .= ' (' . $item->language . ')';
}
$item->title = RL_Form::prepareSelectItem($item->title,
$item->published);
$options[] = JHtml::_('select.option', $item->id,
$item->title);
if ($showlink && $this->value == $item->id)
{
$selected_title = $item->title;
}
}
if ($showinput)
{
array_unshift($options, JHtml::_('select.option',
'-', ' ', 'value', 'text',
true));
array_unshift($options, JHtml::_('select.option',
'-', '- ' . JText::_('Select Item') . '
-'));
if ($multiple)
{
$onchange = 'if ( this.value ) { if ( ' . $this->id .
'.value ) { ' . $this->id . '.value+=\',\'; }
' . $this->id . '.value+=this.value; }
this.value=\'\';';
}
else
{
$onchange = 'if ( this.value ) { ' . $this->id .
'.value=this.value;' . $this->id .
'_text.value=this.options[this.selectedIndex].innerHTML.replace(
/^((&|&| )nbsp;|-)*/gm, \'\' ).trim(); }
this.value=\'\';';
}
$attribs = 'class="inputbox" onchange="' .
$onchange . '"';
$html = '<table cellpadding="0"
cellspacing="0"><tr><td style="padding:
0px;">' . "\n";
if ( ! $multiple)
{
$val_name = $this->value;
if ($this->value)
{
foreach ($modules as $item)
{
if ($item->id == $this->value)
{
$val_name = $item->title;
if ($showtype)
{
$val_name .= ' [' . $item->module . ']';
}
$val_name .= ' [' . $this->value . ']';
break;
}
}
}
$html .= '<input type="text" id="' .
$this->id . '_text" value="' . $val_name .
'" class="inputbox" ' . $size . '
disabled="disabled">';
$html .= '<input type="hidden" name="' .
$this->name . '" id="' . $this->id . '"
value="' . $this->value . '">';
}
else
{
$html .= '<input type="text" name="' .
$this->name . '" id="' . $this->id . '"
value="' . $this->value . '"
class="inputbox" ' . $size . '>';
}
$html .= '</td><td style="padding:
0px;"padding-left: 5px;>' . "\n";
$html .= JHtml::_('select.genericlist', $options,
'', $attribs, 'value', 'text', '',
'');
$html .= '</td></tr></table>' .
"\n";
}
else
{
$attr = $size;
$attr .= $multiple ? ' multiple="multiple"' :
'';
$attr .= ' class="input-xxlarge"';
if ($showlink)
{
$link = '\'<a'
. '
href="index.php?option=com_advancedmodules&task=module.edit&id=\'+this.value+\'"'
. ' target="_blank" class="btn
btn-small">\''
. '+\'<span
class="icon-edit"></span>\' '
. '+\'' . JText::_('JACTION_EDIT', true) .
' :\' '
. '+(this.options[this.selectedIndex].text)'
. '+\'</a>\'';
$function = 'document.getElementById(\'module_link_' .
$this->id . '\').innerHTML = \'\';'
. 'if(this.value){'
. 'document.getElementById(\'module_link_' .
$this->id . '\').innerHTML = ' . $link . ';'
. '}';
$attr .= ' onchange="' . $function . '"';
}
$html = JHtml::_('select.genericlist', $options,
$this->name, trim($attr), 'value', 'text',
$this->value, $this->id);
if ($showlink)
{
$link = $this->value
? '<a
href="index.php?option=com_advancedmodules&task=module.edit&id='
. $this->value . '"'
. ' target="_blank" class="btn
btn-small">'
. '<span class="icon-edit"></span> '
. JText::_('JACTION_EDIT') . ': ' .
$selected_title
. '</a>'
: '';
$html .= '<div id="module_link_' . $this->id .
'" class="alert-block">'
. $link
. '</div>';
}
$html = '<div class="input-maximize">' . $html
. '</div>';
}
return RL_RegEx::replace('>\[\[\:(.*?)\:\]\]', '
style="\1">', $html);
}
}
home/lmsyaran/public_html/j3/templates/system/html/modules.php000064400000012003151163677700020620
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Template.system
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/*
* none (output raw module content)
*/
function modChrome_none($module, &$params, &$attribs)
{
echo $module->content;
}
/*
* html5 (chosen html5 tag and font header tags)
*/
function modChrome_html5($module, &$params, &$attribs)
{
$moduleTag = htmlspecialchars($params->get('module_tag',
'div'), ENT_QUOTES, 'UTF-8');
$headerTag = htmlspecialchars($params->get('header_tag',
'h3'), ENT_QUOTES, 'UTF-8');
$bootstrapSize = (int) $params->get('bootstrap_size', 0);
$moduleClass = $bootstrapSize !== 0 ? ' span' .
$bootstrapSize : '';
// Temporarily store header class in variable
$headerClass = $params->get('header_class');
$headerClass = !empty($headerClass) ? ' class="' .
htmlspecialchars($headerClass, ENT_COMPAT, 'UTF-8') .
'"' : '';
if (!empty ($module->content)) : ?>
<<?php echo $moduleTag; ?> class="moduletable<?php echo
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8') . $moduleClass; ?>">
<?php if ((bool) $module->showtitle) :?>
<<?php echo $headerTag . $headerClass . '>' .
$module->title; ?></<?php echo $headerTag; ?>>
<?php endif; ?>
<?php echo $module->content; ?>
</<?php echo $moduleTag; ?>>
<?php endif;
}
/*
* Module chrome that wraps the module in a table
*/
function modChrome_table($module, &$params, &$attribs)
{ ?>
<table cellpadding="0" cellspacing="0"
class="moduletable<?php echo
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8'); ?>">
<?php if ((bool) $module->showtitle) : ?>
<tr>
<th>
<?php echo $module->title; ?>
</th>
</tr>
<?php endif; ?>
<tr>
<td>
<?php echo $module->content; ?>
</td>
</tr>
</table>
<?php
}
/*
* Module chrome that wraps the tabled module output in a <td> tag of
another table
*/
function modChrome_horz($module, &$params, &$attribs)
{ ?>
<table cellspacing="1" cellpadding="0"
width="100%">
<tr>
<td>
<?php modChrome_table($module, $params, $attribs); ?>
</td>
</tr>
</table>
<?php
}
/*
* xhtml (divs and font header tags)
* With the new advanced parameter it does the same as the html5 chrome
*/
function modChrome_xhtml($module, &$params, &$attribs)
{
$moduleTag = htmlspecialchars($params->get('module_tag',
'div'), ENT_QUOTES, 'UTF-8');
$headerTag = htmlspecialchars($params->get('header_tag',
'h3'), ENT_QUOTES, 'UTF-8');
$bootstrapSize = (int) $params->get('bootstrap_size', 0);
$moduleClass = $bootstrapSize !== 0 ? ' span' .
$bootstrapSize : '';
// Temporarily store header class in variable
$headerClass = $params->get('header_class');
$headerClass = $headerClass ? ' class="' .
htmlspecialchars($headerClass, ENT_COMPAT, 'UTF-8') .
'"' : '';
if (!empty ($module->content)) : ?>
<<?php echo $moduleTag; ?> class="moduletable<?php echo
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8') . $moduleClass; ?>">
<?php if ((bool) $module->showtitle) : ?>
<<?php echo $headerTag . $headerClass . '>' .
$module->title; ?></<?php echo $headerTag; ?>>
<?php endif; ?>
<?php echo $module->content; ?>
</<?php echo $moduleTag; ?>>
<?php endif;
}
/*
* Module chrome that allows for rounded corners by wrapping in nested div
tags
*/
function modChrome_rounded($module, &$params, &$attribs)
{ ?>
<div class="module<?php echo
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8'); ?>">
<div>
<div>
<div>
<?php if ((bool) $module->showtitle) : ?>
<h3><?php echo $module->title; ?></h3>
<?php endif; ?>
<?php echo $module->content; ?>
</div>
</div>
</div>
</div>
<?php
}
/*
* Module chrome that add preview information to the module
*/
function modChrome_outline($module, &$params, &$attribs)
{
static $css = false;
if (!$css)
{
$css = true;
$doc = JFactory::getDocument();
$doc->addStyleDeclaration('
.mod-preview {
background: rgba(100,100,100,.08);
box-shadow: 0 0 0 4px #f4f4f4, 0 0 0 5px rgba(100,100,100,.2);
border-radius: 1px;
margin: 8px 0;
}
.mod-preview-info {
padding: 4px 6px;
margin-bottom: 5px;
font-family: Arial, sans-serif;
font-size: .75rem;
line-height: 1rem;
color: white;
background-color: #33373f;
border-radius: 3px;
box-shadow: 0 -10px 20px rgba(0,0,0,.2) inset;
}
.mod-preview-info span {
font-weight: bold;
color: #ccc;
}
.mod-preview-wrapper {
margin-bottom: .5rem;
}
');
}
?>
<div class="mod-preview">
<div class="mod-preview-info">
<div class="mod-preview-position">
<?php echo JText::sprintf('JGLOBAL_PREVIEW_POSITION',
$module->position); ?>
</div>
<div class="mod-preview-style">
<?php echo JText::sprintf('JGLOBAL_PREVIEW_STYLE',
$module->style); ?>
</div>
</div>
<div class="mod-preview-wrapper">
<?php echo $module->content; ?>
</div>
</div>
<?php
}
home/lmsyaran/public_html/templates/beez3/html/modules.php000064400000007017151163702640017771
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* beezDivision chrome.
*
* @since 3.0
*/
function modChrome_beezDivision($module, &$params, &$attribs)
{
$headerLevel = isset($attribs['headerLevel']) ? (int)
$attribs['headerLevel'] : 3;
if (!empty ($module->content)) : ?>
<div class="moduletable<?php echo
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8'); ?>">
<?php if ($module->showtitle) : ?>
<h<?php echo $headerLevel; ?>><?php echo
$module->title; ?></h<?php echo $headerLevel; ?>>
<?php endif; ?>
<?php echo $module->content; ?></div>
<?php endif;
}
/**
* beezHide chrome.
*
* @since 3.0
*/
function modChrome_beezHide($module, &$params, &$attribs)
{
$headerLevel = isset($attribs['headerLevel']) ? (int)
$attribs['headerLevel'] : 3;
$state = isset($attribs['state']) ? (int)
$attribs['state'] : 0;
if (!empty ($module->content)) { ?>
<div
class="moduletable_js <?php echo
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8');?>"><?php if ($module->showtitle) :
?>
<h<?php echo $headerLevel; ?> class="js_heading">
<?php echo $module->title; ?> <a href="#"
title="<?php echo JText::_('TPL_BEEZ3_CLICK');
?>"
onclick="auf('module_<?php echo $module->id; ?>');
return false"
class="opencloselink" id="link_<?php echo
$module->id?>"> <span
class="no"><img
src="templates/beez3/images/plus.png"
alt="<?php if ($state === 1) { echo
JText::_('TPL_BEEZ3_ALTOPEN');} else {echo
JText::_('TPL_BEEZ3_ALTCLOSE');} ?>" />
</span></a></h<?php echo $headerLevel; ?>> <?php
endif; ?>
<div class="module_content <?php if ($state === 1){echo
'open';} ?>"
id="module_<?php echo $module->id; ?>"
tabindex="-1"><?php echo $module->content;
?></div>
</div>
<?php }
}
/**
* beezTabs chrome.
*
* @since 3.0
*/
function modChrome_beezTabs($module, $params, $attribs)
{
$area = isset($attribs['id']) ? (int) $attribs['id'] :
'1';
$area = 'area-'.$area;
static $modulecount;
static $modules;
if ($modulecount < 1)
{
$modulecount = count(JModuleHelper::getModules($module->position));
$modules = array();
}
if ($modulecount === 1)
{
$temp = new stdClass;
$temp->content = $module->content;
$temp->title = $module->title;
$temp->params = $module->params;
$temp->id = $module->id;
$modules[] = $temp;
// list of moduletitles
// list of moduletitles
echo '<div id="'. $area.'"
class="tabouter"><ul class="tabs">';
foreach ($modules as $rendermodule)
{
echo '<li class="tab"><a href="#"
id="link_'.$rendermodule->id.'"
class="linkopen" onclick="tabshow(\'module_'.
$rendermodule->id.'\');return
false">'.$rendermodule->title.'</a></li>';
}
echo '</ul>';
$counter = 0;
// modulecontent
foreach ($modules as $rendermodule)
{
$counter ++;
echo '<div tabindex="-1" class="tabcontent
tabopen"
id="module_'.$rendermodule->id.'">';
echo $rendermodule->content;
if ($counter !== count($modules))
{
echo '<a href="#" class="unseen"
onclick="nexttab(\'module_'.
$rendermodule->id.'\');return false;"
id="next_'.$rendermodule->id.'">'.JText::_('TPL_BEEZ3_NEXTTAB').'</a>';
}
echo '</div>';
}
$modulecount--;
echo '</div>';
} else {
$temp = new stdClass;
$temp->content = $module->content;
$temp->params = $module->params;
$temp->title = $module->title;
$temp->id = $module->id;
$modules[] = $temp;
$modulecount--;
}
}
home/lmsyaran/public_html/templates/system/html/modules.php000064400000012003151165052250020271
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Template.system
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/*
* none (output raw module content)
*/
function modChrome_none($module, &$params, &$attribs)
{
echo $module->content;
}
/*
* html5 (chosen html5 tag and font header tags)
*/
function modChrome_html5($module, &$params, &$attribs)
{
$moduleTag = htmlspecialchars($params->get('module_tag',
'div'), ENT_QUOTES, 'UTF-8');
$headerTag = htmlspecialchars($params->get('header_tag',
'h3'), ENT_QUOTES, 'UTF-8');
$bootstrapSize = (int) $params->get('bootstrap_size', 0);
$moduleClass = $bootstrapSize !== 0 ? ' span' .
$bootstrapSize : '';
// Temporarily store header class in variable
$headerClass = $params->get('header_class');
$headerClass = !empty($headerClass) ? ' class="' .
htmlspecialchars($headerClass, ENT_COMPAT, 'UTF-8') .
'"' : '';
if (!empty ($module->content)) : ?>
<<?php echo $moduleTag; ?> class="moduletable<?php echo
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8') . $moduleClass; ?>">
<?php if ((bool) $module->showtitle) :?>
<<?php echo $headerTag . $headerClass . '>' .
$module->title; ?></<?php echo $headerTag; ?>>
<?php endif; ?>
<?php echo $module->content; ?>
</<?php echo $moduleTag; ?>>
<?php endif;
}
/*
* Module chrome that wraps the module in a table
*/
function modChrome_table($module, &$params, &$attribs)
{ ?>
<table cellpadding="0" cellspacing="0"
class="moduletable<?php echo
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8'); ?>">
<?php if ((bool) $module->showtitle) : ?>
<tr>
<th>
<?php echo $module->title; ?>
</th>
</tr>
<?php endif; ?>
<tr>
<td>
<?php echo $module->content; ?>
</td>
</tr>
</table>
<?php
}
/*
* Module chrome that wraps the tabled module output in a <td> tag of
another table
*/
function modChrome_horz($module, &$params, &$attribs)
{ ?>
<table cellspacing="1" cellpadding="0"
width="100%">
<tr>
<td>
<?php modChrome_table($module, $params, $attribs); ?>
</td>
</tr>
</table>
<?php
}
/*
* xhtml (divs and font header tags)
* With the new advanced parameter it does the same as the html5 chrome
*/
function modChrome_xhtml($module, &$params, &$attribs)
{
$moduleTag = htmlspecialchars($params->get('module_tag',
'div'), ENT_QUOTES, 'UTF-8');
$headerTag = htmlspecialchars($params->get('header_tag',
'h3'), ENT_QUOTES, 'UTF-8');
$bootstrapSize = (int) $params->get('bootstrap_size', 0);
$moduleClass = $bootstrapSize !== 0 ? ' span' .
$bootstrapSize : '';
// Temporarily store header class in variable
$headerClass = $params->get('header_class');
$headerClass = $headerClass ? ' class="' .
htmlspecialchars($headerClass, ENT_COMPAT, 'UTF-8') .
'"' : '';
if (!empty ($module->content)) : ?>
<<?php echo $moduleTag; ?> class="moduletable<?php echo
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8') . $moduleClass; ?>">
<?php if ((bool) $module->showtitle) : ?>
<<?php echo $headerTag . $headerClass . '>' .
$module->title; ?></<?php echo $headerTag; ?>>
<?php endif; ?>
<?php echo $module->content; ?>
</<?php echo $moduleTag; ?>>
<?php endif;
}
/*
* Module chrome that allows for rounded corners by wrapping in nested div
tags
*/
function modChrome_rounded($module, &$params, &$attribs)
{ ?>
<div class="module<?php echo
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8'); ?>">
<div>
<div>
<div>
<?php if ((bool) $module->showtitle) : ?>
<h3><?php echo $module->title; ?></h3>
<?php endif; ?>
<?php echo $module->content; ?>
</div>
</div>
</div>
</div>
<?php
}
/*
* Module chrome that add preview information to the module
*/
function modChrome_outline($module, &$params, &$attribs)
{
static $css = false;
if (!$css)
{
$css = true;
$doc = JFactory::getDocument();
$doc->addStyleDeclaration('
.mod-preview {
background: rgba(100,100,100,.08);
box-shadow: 0 0 0 4px #f4f4f4, 0 0 0 5px rgba(100,100,100,.2);
border-radius: 1px;
margin: 8px 0;
}
.mod-preview-info {
padding: 4px 6px;
margin-bottom: 5px;
font-family: Arial, sans-serif;
font-size: .75rem;
line-height: 1rem;
color: white;
background-color: #33373f;
border-radius: 3px;
box-shadow: 0 -10px 20px rgba(0,0,0,.2) inset;
}
.mod-preview-info span {
font-weight: bold;
color: #ccc;
}
.mod-preview-wrapper {
margin-bottom: .5rem;
}
');
}
?>
<div class="mod-preview">
<div class="mod-preview-info">
<div class="mod-preview-position">
<?php echo JText::sprintf('JGLOBAL_PREVIEW_POSITION',
$module->position); ?>
</div>
<div class="mod-preview-style">
<?php echo JText::sprintf('JGLOBAL_PREVIEW_STYLE',
$module->style); ?>
</div>
</div>
<div class="mod-preview-wrapper">
<?php echo $module->content; ?>
</div>
</div>
<?php
}
home/lmsyaran/public_html/templates/protostar/html/modules.php000064400000003532151165303440021011
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Templates.protostar
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* This is a file to add template specific chrome to module rendering. To
use it you would
* set the style attribute for the given module(s) include in your template
to use the style
* for each given modChrome function.
*
* eg. To render a module mod_test in the submenu style, you would use the
following include:
* <jdoc:include type="module" name="test"
style="submenu" />
*
* This gives template designers ultimate control over how modules are
rendered.
*
* NOTICE: All chrome wrapping methods should be named: modChrome_{STYLE}
and take the same
* two arguments.
*/
/*
* Module chrome for rendering the module in a submenu
*/
function modChrome_no($module, &$params, &$attribs)
{
if ($module->content)
{
echo $module->content;
}
}
function modChrome_well($module, &$params, &$attribs)
{
$moduleTag = htmlspecialchars($params->get('module_tag',
'div'), ENT_QUOTES, 'UTF-8');
$bootstrapSize = (int) $params->get('bootstrap_size', 0);
$moduleClass = $bootstrapSize !== 0 ? ' span' . $bootstrapSize
: '';
$headerTag = htmlspecialchars($params->get('header_tag',
'h3'), ENT_QUOTES, 'UTF-8');
$headerClass =
htmlspecialchars($params->get('header_class',
'page-header'), ENT_COMPAT, 'UTF-8');
if ($module->content)
{
echo '<' . $moduleTag . ' class="well ' .
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8') . $moduleClass . '">';
if ($module->showtitle)
{
echo '<' . $headerTag . ' class="' .
$headerClass . '">' . $module->title .
'</' . $headerTag . '>';
}
echo $module->content;
echo '</' . $moduleTag . '>';
}
}
home/lmsyaran/public_html/templates/g5_hydrogen/html/modules.php000064400000002610151165775610021176
0ustar00<?php
/**
* @package Gantry 5 Theme
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2017 RocketTheme, LLC
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All
rights reserved.
* @license GNU/GPLv2 and later
*
* http://www.gnu.org/licenses/gpl-2.0.html
*/
defined('_JEXEC') or die;
// Gantry Specific Module Chrome
function modChrome_gantry($module, &$params, &$attribs)
{
$moduleTag = $params->get('module_tag',
'div');
$headerTag = htmlspecialchars($params->get('header_tag',
'h3'), ENT_COMPAT|ENT_SUBSTITUTE, 'UTF-8');
$bootstrapSize = (int) $params->get('bootstrap_size', 0);
$moduleClass = $bootstrapSize != 0 ? ' span' . $bootstrapSize
: '';
// Temporarily store header class in variable
$headerClass = $params->get('header_class',
'g-title');
$headerClass = ($headerClass) ? ' class="' .
htmlspecialchars($headerClass, ENT_COMPAT|ENT_SUBSTITUTE,
'UTF-8') . '"' : '';
if (!empty ($module->content)) : ?>
<<?php echo $moduleTag; ?> class="moduletable <?php echo
htmlspecialchars($params->get('moduleclass_sfx'),
ENT_COMPAT|ENT_SUBSTITUTE, 'UTF-8') . $moduleClass;
?>">
<?php if ((bool) $module->showtitle) : ?>
<<?php echo $headerTag . $headerClass . '>' .
$module->title; ?></<?php echo $headerTag; ?>>
<?php endif; ?>
<?php echo $module->content; ?>
</<?php echo $moduleTag; ?>>
<?php endif;
}