primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,71 @@
<?php
/**
* @package JEM
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
defined('_JEXEC') or die;
use Joomla\CMS\Router\Route;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Factory;
$app = Factory::getApplication();
$document = $app->getDocument();
$wa = $document->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('form.validate');
// Create shortcut to parameters.
$params = $this->params;
?>
<script>
Joomla.submitbutton = function(task) {
if (document.formvalidator.isValid(document.getElementById('adminForm'))) {
$(".sbmit-btn").prop('disabled',true);
$(".sbmit-btn .spinner-border").removeClass('d-none');
Joomla.submitform(task);
}
}
</script>
<div id="jem" class="jem_editevent<?php echo $this->pageclass_sfx; ?>">
<div class="edit item-page p-3">
<form enctype="multipart/form-data" action="<?php echo Route::_('index.php?option=com_jem&view=mailto&tmpl=component'); ?>" method="post" name="adminForm" id="adminForm" class="form-validate">
<div id="mailto-window">
<h2>
<?php echo Text::_('COM_JEM_MAILTO_EMAIL_TO_A_FRIEND'); ?>
</h2>
<fieldset style="margin: 0px;">
<?php foreach ($this->form->getFieldset('') as $field) : ?>
<?php if (!$field->hidden) : ?>
<?php echo $field->renderField(); ?>
<?php endif; ?>
<?php endforeach; ?>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary sbmit-btn" onclick="Joomla.submitbutton('mailto.save')"><?php echo Text::_('COM_JEM_MAILTO_SEND') ?>
<div class="spinner-border spinner-grow-sm d-none" role="status">
<span class="visually-hidden"></span>
</div></button>
</div>
</div>
</fieldset>
<input type="hidden" name="task" value="" />
<input type="hidden" name="link" value="<?php echo $this->link; ?>" />
<?php echo HTMLHelper::_('form.token'); ?>
</div>
</form>
</div>
<div class="copyright">
<?php echo JemOutput::footer(); ?>
</div>
</div>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,19 @@
<?php
/**
* @package Joomla.Site
* @subpackage com_mailto
*
* @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;
use Joomla\CMS\Language\Text;
?>
<div style="padding: 10px;">
<h2>
<?php echo Text::_('COM_JEM_MAILTO_EMAIL_SENT'); ?>
</h2>
</div>

View File

@ -0,0 +1,110 @@
<?php
/**
* @package JEM
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\View\HtmlView;
/**
* mailto-View
*/
class JemViewMailto extends HtmlView
{
protected $form = null;
protected $canDo;
/**
* Display the Hello World view
*
* @param string $tpl The name of the layout file to parse.
*
* @return void
*/
public function display($tpl = null)
{
$jemsettings = JemHelper::config();
$settings = JemHelper::globalattribs();
$app = Factory::getApplication();
$user = JemFactory::getUser();
$userId = $user->get('id');
$document = $app->getDocument();
$model = $this->getModel();
$menu = $app->getMenu();
$menuitem = $menu->getActive();
$pathway = $app->getPathway();
$uri = Uri::getInstance();
$this->state = $this->get('State');
$this->params = $this->state->get('params');
$this->link = urldecode($app->input->get('link', '', 'BASE64'));
$layout = $app->input->get('layout', 'edit');
$params = $this->params;
$this->pageclass_sfx = $params->get('pageclass_sfx');
// Get the form to display
$this->form = $this->get('Form');
$title = Text::_('COM_JEM_MAILTO_EMAIL_TO_A_FRIEND');
$params->def('page_title', $title);
$params->def('page_heading', $title);
// Check for errors.
if (count($errors = $this->get('Errors')))
{
throw new Exception(implode("\n", $errors), 500);
}
$this->setLayout($layout);
// Call the parent display to display the layout file
parent::display($tpl);
// Set properties of the html document
$this->_prepareDocument();
}
/**
* Method to set up the html document properties
*
* @return void
*/
protected function _prepareDocument()
{
$app = Factory::getApplication();
$title = $this->params->get('page_title');
if ($app->get('sitename_pagetitles', 0) == 1) {
$title = Text::sprintf('JPAGETITLE', $app->get('sitename'), $title);
}
elseif ($app->get('sitename_pagetitles', 0) == 2) {
$title = Text::sprintf('JPAGETITLE', $title, $app->get('sitename'));
}
$this->document->setTitle($title);
// TODO: Is it useful to have meta data in an edit view?
// Also shouldn't be "robots" set to "noindex, nofollow"?
if ($this->params->get('menu-meta_description')) {
$this->document->setDescription($this->params->get('menu-meta_description'));
}
if ($this->params->get('menu-meta_keywords')) {
$this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));
}
if ($this->params->get('robots')) {
$this->document->setMetadata('robots', $this->params->get('robots'));
}
}
}
?>