primo commit
This commit is contained in:
1
components/com_attachments/views/warning/index.html
Normal file
1
components/com_attachments/views/warning/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
56
components/com_attachments/views/warning/tmpl/default.php
Normal file
56
components/com_attachments/views/warning/tmpl/default.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* Attachments component
|
||||
*
|
||||
* @package Attachments
|
||||
* @subpackage Attachments_Component
|
||||
*
|
||||
* @copyright Copyright (C) 2007-2018 Jonathan M. Cameron, All Rights Reserved
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
|
||||
* @link http://joomlacode.org/gf/project/attachments/frs/
|
||||
* @author Jonathan M. Cameron
|
||||
*/
|
||||
|
||||
// Check to ensure this file is included in Joomla!
|
||||
defined('_JEXEC') or die();
|
||||
|
||||
$template = JFactory::getApplication()->getTemplate();
|
||||
|
||||
// Load the tooltip behavior.
|
||||
JHtml::_('behavior.tooltip');
|
||||
|
||||
$uri = JFactory::getURI();
|
||||
$document = JFactory::getDocument();
|
||||
|
||||
/** Load the Attachments helper */
|
||||
require_once(JPATH_SITE.'/components/com_attachments/helper.php');
|
||||
require_once(JPATH_SITE.'/components/com_attachments/javascript.php');
|
||||
|
||||
// Add the regular css file
|
||||
AttachmentsJavascript::setupJavascript(false);
|
||||
|
||||
// Hide the vertical scrollbar using javascript
|
||||
$hide_scrollbar = "window.addEvent('domready', function() {
|
||||
document.documentElement.style.overflow = \"hidden\";
|
||||
document.body.scroll = \"no\";});";
|
||||
$document->addScriptDeclaration($hide_scrollbar);
|
||||
|
||||
?>
|
||||
<div class="attachmentsWarning">
|
||||
<h1><?php echo $this->warning_title; ?></h1>
|
||||
<h2 id="warning_msg"><?php echo $this->warning_question ?></h2>
|
||||
<form action="<?php echo $this->action_url; ?>" name="warning_form" method="post">
|
||||
<div class="form_buttons">
|
||||
<span class="left"> </span>
|
||||
<input type="submit" name="submit" value="<?php echo $this->action_button_label ?>" />
|
||||
<span class="right">
|
||||
<input type="button" name="cancel" value="<?php echo JText::_('ATTACH_CANCEL'); ?>"
|
||||
onClick="window.parent.SqueezeBox.close();" />
|
||||
</span>
|
||||
</div>
|
||||
<input type="hidden" name="option" value="<?php echo $this->option;?>" />
|
||||
<input type="hidden" name="from" value="<?php echo $this->from;?>" />
|
||||
|
||||
<?php echo JHtml::_( 'form.token' ); ?>
|
||||
</form>
|
||||
</div>
|
||||
1
components/com_attachments/views/warning/tmpl/index.html
Normal file
1
components/com_attachments/views/warning/tmpl/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
42
components/com_attachments/views/warning/view.html.php
Normal file
42
components/com_attachments/views/warning/view.html.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* Attachments component
|
||||
*
|
||||
* @package Attachments
|
||||
* @subpackage Attachments_Component
|
||||
*
|
||||
* @copyright Copyright (C) 2007-2018 Jonathan M. Cameron, All Rights Reserved
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
|
||||
* @link http://joomlacode.org/gf/project/attachments/frs/
|
||||
* @author Jonathan M. Cameron
|
||||
*/
|
||||
|
||||
// Check to ensure this file is included in Joomla!
|
||||
defined('_JEXEC') or die();
|
||||
|
||||
/** Define the legacy classes, if necessary */
|
||||
require_once(JPATH_SITE.'/components/com_attachments/legacy/view.php');
|
||||
|
||||
|
||||
/**
|
||||
* View for warnings
|
||||
*
|
||||
* @package Attachments
|
||||
*/
|
||||
class AttachmentsViewWarning extends JViewLegacy
|
||||
{
|
||||
/**
|
||||
* Display the 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);
|
||||
}
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user