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,661 @@
<?php
/**
* Attachments component
*
* @package Attachments
* @subpackage Attachments_Component
*
* @author Jonathan M. Cameron <jmcameron@jmcameron.net>
* @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/
*/
// 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 the help pages
*
* The goal is to provide a PHP programmatic interface to create a help page
* using primarily PHP function calls in the view/template. The styling is
* base on styling of Restructured Text documents rendered into HTML using
* converion tools such as docutils.
*
* @package Attachments
* @since 3.1
*/
class HelpView extends JViewLegacy
{
/**
* Data about each of the document section headers
*
* Should be initialized in the view or templage to contain an array of
* arrays of information about the sections like this:
*
* $this->sections = Array( 1 => Array( 'id' => 'introduction',
* 'code' => 'SECTION_TITLE_1',
* 'title' => JText::_('SECTION_TITLE_1'),
* ...
* ),
*
* where the 'SECTION_TITLE_1' is the language token for the title of
* section 1.
*/
protected $sections = null;
/**
* Flag to show codes
*
*/
protected $show_codes = null;
/**
* Constructor
*
* @param array $config An optional associative array of configuration settings.
*/
public function __construct($config = array())
{
parent::__construct($config);
// Save the plugin type
$this->show_codes = JRequest::getCmd('show') == 'codes';
}
/**
* Add the information about a section to the $sections data
*
* @param int $sectnum the section number (constant)
* @param string $id the section ID string (unique name to be used as anchor target)
* @param string $code the language code for this section title
*
* @return nothing
*/
protected function saveSectionInfo($sectnum, $id, $code)
{
$this->sections[$sectnum] = Array('id' => $id, 'code' => $code, 'title' => JText::_($code));
}
/**
* Construct a tooltip if tooltips are supposed to be shown
*
* @param string $code Language code for the tooltip
*
* @return the tooltip to insert in the html
*/
protected function constructTooltip($code)
{
$tooltip = '';
if ($this->show_codes)
{
$tooltip = " title=\"$code\"";
}
return $tooltip;
}
/**
* Construct the URL with show=codes toggled
*
* @return the URL
*/
protected function toggledURL()
{
$uri = JRequest::getURI();
if ($this->show_codes)
{
$uri = str_replace('&show=codes', '', $uri);
}
else
{
$uri .= '&show=codes';
}
return $uri;
}
/**
* Add a link for the specified section
*
* @param int $sect_num The section number to link to
*
* @return string an html link for the specified section
*/
protected function sectionLink($sect_num)
{
$id = $this->sections[$sect_num]['id'];
$title = $this->sections[$sect_num]['title'];
return "<a class=\"reference internal\" href=\"#$id\">$title</a>";
}
/**
* Construct a link
*
* @param string $url The URL for the link
* @param string $label_code The code for the link label
* @param string $class The class for the link
*
* @return string an html link
*/
protected function link($url, $label_code, $class='')
{
$label = JText::_($label_code);
return "<a $class href=\"$url\">$label</a>";
}
/**
* Replace a series of items from the html using an array of replacements
*
* For example:
* replace('<span>{TEST}-{NUM}</span>', Array('{TEST}' => 'MyTest', '{NUM}' => '23'))
* returns:
* <span>MyTest-23</span>
*
* @param string $html The original HTML string to be modified
* @param array $replacements Array of textual replacments
*
* @return string the original HTML with the replacements performed
*/
protected function replace($html, $replacements)
{
if ( is_array($replacements) )
{
foreach ($replacements as $tag => $replace)
{
$html = str_replace($tag, $replace, $html);
}
}
return $html;
}
/**
* Add a table of contents
*
* @param string $title_code The language code for the title of the table of contents
* @param sting $class The class for the table of contents (default: contents topic)
*
* @return nothing
*/
protected function tableOfContents($title_code, $class = 'contents topic')
{
$title = JText::_($title_code);
$tooltip = $this->constructTooltip($title_code);
$html = "<div class=\"$class\" id=\"contents\">\n";
$html .= " <p class=\"topic-title first\" $tooltip>$title</p>\n";
$html .= " <ul class=\"$class\">\n";
foreach ($this->sections as $sect_num => $sdata)
{
$html .= ' ' . $this->sectionTOC($sect_num);
}
$html .= " </ul>\n";
$html .= "</div> <!-- table of contents -->\n";
echo $html;
}
/**
* Construct a section Table-of-contents line for a section
*
* @param int $sect_num The section number to echo (as a list element)
*
* @return string the table-of-conents list item
*/
protected function sectionTOC($sect_num)
{
$sect_data = $this->sections[$sect_num];
$id = $sect_data['id'];
$title = $sect_data['title'];
$tooltip = $this->constructTooltip($sect_data['code']);
return "<li><a class=\"reference internal\" href=\"#$id\" id=\"id$sect_num\" $tooltip>$title</a></li>\n";
}
/**
* Add the start of a section (using <h1>)
*
* @param int $sect_num The desired section number
*
* @return nothing
*/
protected function startSection($sect_num)
{
$sect_data = $this->sections[$sect_num];
$id = $sect_data['id'];
$text_code = $sect_data['code'];
$tooltip = $this->constructTooltip($sect_data['code']);
$title = $sect_data['title'];
$hclass = 'class="toc-backref"';
$html = "<div class=\"section\" id=\"$id\">\n";
$html .= "<h1><a $hclass href=\"#id$sect_num\" $tooltip>$title</a></h1>\n";
echo $html;
}
/**
* Add the end of a section
*
* @param int $sect_num The desired section number
*
* @return nothing
*/
protected function endSection($sect_num)
{
echo "</div><?-- end of section $sect_num -->\n";
}
/**
* Add the start of a subsection (using <h2>)
*
* @param array $sect_data An array of data for the subsection (providing 'id' and 'title')
*
* @return nothing
*/
protected function startSubSection($sect_data)
{
$id = $sect_data['id'];
$code = $sect_data['code'];
$title = JText::_($code);
$tooltip = $this->constructTooltip($code);
$html = "<div class=\"section\" id=\"$id\">\n";
$html .= "<h2 $tooltip>$title</h2>\n";
echo $html;
}
/**
* Add the start of a subsection (using <h2>)
*
* @param string $title The subsection title (should be same as in the start)
*
* @return nothing
*/
protected function endSubSection($title)
{
echo "</div><?-- end of subsection $title -->\n";
}
/**
* Construct an admonition (note, warning, hint, etc)
*
* @param string $type The type of admonition (hint, note, important, warning)
* @param string $type_code Language token for the name of the admonition (eg, $type)
* @param array $text_codes Array of Language tokens for the body text (as separate paragraphs in the admonition)
* @param array $replacements Array of replacements to be applied to the body text (see replace functin)
* @param bool $terminate Whether to terminatate the <div> that contains the note
*
* @return nothing
*/
protected function addAdmonition($type, $type_code, $text_codes, $replacements = null, $terminate = true)
{
if (!is_array($text_codes))
{
$text_codes = Array($text_codes);
}
$title = JText::_($type_code);
$tooltip = $this->constructTooltip($type_code);
$html = "<div class=\"$type\">\n";
$html .= " <p class=\"first admonition-title\" $tooltip>$title</p>\n";
foreach ($text_codes as $text_code)
{
$text = $this->replace(JText::_($text_code), $replacements);
$tooltip = $this->constructTooltip($text_code);
$html .= " <p class=\"last\" $tooltip>$text</p>\n";
}
if ( $terminate )
{
$html .= "</div>\n";
}
echo $html;
}
/**
* Add the end the admonition
*
* @return nothing
*/
protected function endAdmonition()
{
echo "</div>\n";
}
/**
* Add a 'hint' admonition
*
* @param array $text_codes Array of Language tokens for the body text (as separate paragraphs in the admonition)
* @param array $replacements Array of replacements to be applied to the body text (see replace functin)
* @param bool $terminate Whether to terminatate the <div> that contains the note
*
* @return nothing
*/
protected function addHint($text_codes, $replacements = null, $terminate = true)
{
echo $this->addAdmonition('hint', 'ATTACH_HELP_HINT', $text_codes, $replacements, $terminate);
}
/**
* Add an 'important' admonition
*
* @param array $text_codes Array of Language tokens for the body text (as separate paragraphs in the admonition)
* @param array $replacements Array of replacements to be applied to the body text (see replace functin)
* @param bool $terminate Whether to terminatate the <div> that contains the note
*
* @return nothing
*/
protected function addImportant($text_codes, $replacements = null, $terminate = true)
{
echo $this->addAdmonition('important', 'ATTACH_HELP_IMPORTANT', $text_codes, $replacements, $terminate);
}
/**
* Add a 'note' admonition
*
* @param array $text_codes Array of Language tokens for the body text (as separate paragraphs in the admonition)
* @param array $replacements Array of replacements to be applied to the body text (see replace functin)
* @param bool $terminate Whether to terminatate the <div> that contains the note
*
* @return nothing
*/
protected function addNote($text_codes, $replacements = null, $terminate = true)
{
echo $this->addAdmonition('note', 'ATTACH_HELP_NOTE', $text_codes, $replacements, $terminate);
}
/**
* Add a 'warning' admonition
*
* @param array $text_codes Array of Language tokens for the body text (as separate paragraphs in the admonition)
* @param array $replacements Array of replacements to be applied to the body text (see replace functin)
* @param bool $terminate Whether to terminatate the <div> that contains the note
*
* @return nothing
*/
protected function addWarning($text_codes, $replacements = null, $terminate = true)
{
echo $this->addAdmonition('warning', 'ATTACH_HELP_WARNING', $text_codes, $replacements, $terminate);
}
/**
* Add a paragraph
*
* @param array $text_codes Array of Language tokens for the body text (as separate paragraphs)
* @param array $replacements Array of replacements to be applied to the text (see replace functin)
* @param string $pclass The class for the paragraph HTML <p> element
*
* @return nothing
*/
protected function addParagraph($text_codes, $replacements = null, $pclass = null)
{
if (!is_array($text_codes))
{
$text_codes = Array($text_codes);
}
$html = '';
foreach ($text_codes as $text_code)
{
$text = $this->replace(JText::_($text_code), $replacements);
$tooltip = $this->constructTooltip($text_code);
if ($pclass)
{
$html .= "<p class=\"$pclass hasTip\" $tooltip>" . $text . "</p>\n";
}
else
{
$html .= "<p class=\"hasTip\" $tooltip>" . $text . "</p>\n";
}
}
echo $html;
}
/**
* Add a preformatted block
*
* @param string $text The raw string to print literally
* @param string $class The class for the HTML <pre> block
*
* @return nothing
*/
protected function addPreBlock($text, $class='literal-block')
{
$html = "<pre class=\"$class\">\n";
$html .= $text . "\n";
$html .= "</pre>\n";
echo $html;
}
/**
* Start an a list (unordered by default)
*
* @param string $type The type of list (defaults to unordered <ul>)
* @param string $class The class for the HTML <ul> or <ol> element
*
* @return nothing
*/
protected function startList($type = 'ul', $class='simple')
{
echo "<$type class=\"$class\">\n";
}
/**
* Add a list element
*
* @param array $text_codes Array of Language tokens for the body text (as separate paragraphs inside the list element)
* @param array $replacements Array of replacements to be applied to the text (see replace function)
* @param bool $terminate Whether to terminatate the <li> that contains the text
*
* @return nothing
*/
protected function addListElement($text_codes, $replacements = null, $terminate = true)
{
$html = '<li>';
if (!is_array($text_codes))
{
$text_codes = Array($text_codes);
}
foreach ($text_codes as $text_code)
{
$text = $this->replace(JText::_($text_code), $replacements);
$tooltip = $this->constructTooltip($text_code);
$html .= "<p class=\"hasTip\" $tooltip>$text</p>\n";
}
if ($terminate)
{
$html .= "</li>\n";
}
echo $html;
}
/**
* Add a list element for a definition for a term (a word or phrase)
*
* @param array $text_codes Array of Language tokens for the body text (as separate paragraphs inside the list element)
* @param array $replacements Array of replacements to be applied to the text (see replace function)
* @param bool $terminate Whether to terminatate the <li> that contains the text
*
* @return nothing
*/
protected function addDefinitionListElement($term_code, $definition_codes,
$replacements = null, $terminate = true)
{
// Set up the term
$term_tooltip = $this->constructTooltip($term_code);
if ($term_tooltip)
{
$term_tooltip = " class=\"hasTip\" ".$term_tooltip;
}
$html = "<li><strong $term_tooltip>".JText::_($term_code).':</strong> ';
// Add the definition
if (!is_array($definition_codes))
{
$definition_codes = Array($definition_codes);
}
foreach ($definition_codes as $text_code)
{
$text = $this->replace(JText::_($text_code), $replacements);
$tooltip = $this->constructTooltip($text_code);
$html .= "<p class=\"hasTip\" $tooltip>$text</p>\n";
}
if ($terminate)
{
$html .= "</li>\n";
}
echo $html;
}
/**
* Add the ending of a list element (use with unterminated list element)
*
* @return nothing
*/
protected function endListElement()
{
echo "</li>\n";
}
/**
* Add a link as a list element
*
* @param string $url the URL of the link
* @param string $text_code the language token for the text of the link
*
* @return nothing
*/
protected function addListElementLink($url, $text_code)
{
$text = $this->replace(JText::_($text_code), Array('{LINK}' => $url));
$tooltip = $this->constructTooltip($text_code);
echo "<li><a class=\"reference external\" $tooltip href=\"$url\">$text</a></li>\n";
}
/**
* Add a list elment with raw HTML
*
* @param string $html The HTML to insert into the list element
*
* @return nothing
*/
protected function addListElementHtml($html)
{
echo "<li>$html</li>\n";
}
/**
* Add the end of a list
*
* @param string $type The class for the HTML </ul> or </ol> element
*
* @return nothing
*/
protected function endList($type = 'ul')
{
echo "</$type>\n";
}
/**
* Add a line break
*
* @return nothing
*/
protected function addLineBreak()
{
echo "<br/>\n";
}
/**
* Add a figure: and image with an optional caption
*
* @param string $filename Filename for the image (full path)
* @param string $alt_code Language token for the text to be use for the 'alt' attribute
* @param string $caption_code Language token for the text to use for the caption (OPTIONAL)
* @param string $dclass Class for the figure div
* @param string $img_attribs attributes for the 'img' html tag
*
* @return nothing
*/
protected function addFigure($filename, $alt_code, $caption_code = null, $dclass = 'figure', $img_attribs=array())
{
$html = "<div class=\"$dclass\">\n";
$html .= $this->image($filename, $alt_code, $img_attribs) . "\n";
if ( $caption_code )
{
$html .= "<p class=\"caption\" title=\"$caption_code\">" . JText::_($caption_code) . "</p>\n";
}
$html .= '</div>';
echo $html;
}
/**
* Return an image URL if the file is found
*
* @param string $filename Filename for the image in the media folder (more below)
* @param string $alt_code Language code for text to be inserted into the alt='text' attribute
* @param array $attribs Attributes to be added to the image URL
*
* The file location uses the JHtml::image() function call which expects
* to find images in the [base]/media/com_attachments/images directory.
* This function has the necessary checks to add level of language folders
* (like the translation files). For instance:
*
* For a file:
* [base]/media/com_attachments/images/en-GB/test1.png
* Use:
* $this->image('com_attachments/test1.png')
*
* The language tag will be handled automatically.
*
* @return string image URL (or null if the image was not found)
*/
protected function image($filename, $alt_code, $attribs = Array())
{
$lcode = $this->lang->getTag();
$alt = '';
if ($alt_code)
{
$alt = JText::_($alt_code);
}
// First try the current language
$found = JHtml::image('com_attachments/help/' . $lcode . '/' . $filename, $alt, $attribs, true, true);
if ($found)
{
return JHtml::image('com_attachments/help/' . $lcode . '/' . $filename, $alt, $attribs, true);
}
// If that fails, return the English/en-GB image
if ( $lcode != 'en-GB' )
{
return JHtml::image('com_attachments/help/en-GB/' . $filename, $alt, $attribs, true);
}
// The image was not found for either language so return nothing
return null;
}
}

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -0,0 +1,682 @@
<?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();
// Load the tooltip behavior.
// JHtml::_('behavior.tooltip');
// Add the CSS for the attachments list (whether we need it or not)
JHtml::stylesheet('com_attachments/attachments_help.css', array(), true);
// If the user specifies 'show=codes' in the url, the language item codes will
// be shown by default. Note that they can still be toggled with the toggles
// at the top right and bottom right of the page.
if (JRequest::getCmd('show') == 'codes') {
JHtml::stylesheet('com_attachments/attachments_help_show_codes.css', array(), true);
}
// Define the section constants
define('SECT_INTRO', 1);
define('SECT_NEW_V3', 2);
define('SECT_FEAT', 3);
define('SECT_UPLOAD', 4);
define('SECT_SETNGS', 5);
define('SECT_PERMS', 6);
define('SECT_ACCESS', 7);
define('SECT_DISPLY', 8);
define('SECT_ATTACH', 9);
define('SECT_FILES', 10);
define('SECT_STYLE', 11);
define('SECT_ICONS', 12);
define('SECT_UTILS', 13);
define('SECT_WARN', 14);
define('SECT_UPGRAD', 15);
define('SECT_UNINST', 16);
define('SECT_MIGRAT', 17);
define('SECT_TRANS', 18);
define('SECT_ACKNOW', 19);
define('SECT_CONTCT', 20);
$this->saveSectionInfo(SECT_INTRO, 'introduction', 'ATTACH_HELP_010000_SECTION_TITLE');
$this->saveSectionInfo(SECT_NEW_V3, 'v3-features', 'ATTACH_HELP_020000_SECTION_TITLE');
$this->saveSectionInfo(SECT_FEAT, 'features', 'ATTACH_HELP_030000_SECTION_TITLE');
$this->saveSectionInfo(SECT_UPLOAD, 'uploading', 'ATTACH_HELP_040000_SECTION_TITLE');
$this->saveSectionInfo(SECT_SETNGS, 'settings', 'ATTACH_HELP_050000_SECTION_TITLE');
$this->saveSectionInfo(SECT_PERMS, 'permissions', 'ATTACH_HELP_060000_SECTION_TITLE');
$this->saveSectionInfo(SECT_ACCESS, 'access-levels', 'ATTACH_HELP_070000_SECTION_TITLE');
$this->saveSectionInfo(SECT_DISPLY, 'display-filenames', 'ATTACH_HELP_080000_SECTION_TITLE');
$this->saveSectionInfo(SECT_ATTACH, 'attaching-urls', 'ATTACH_HELP_090000_SECTION_TITLE');
$this->saveSectionInfo(SECT_FILES, 'attached-to-what', 'ATTACH_HELP_100000_SECTION_TITLE');
$this->saveSectionInfo(SECT_STYLE, 'css-styling', 'ATTACH_HELP_110000_SECTION_TITLE');
$this->saveSectionInfo(SECT_ICONS, 'file-type-icons', 'ATTACH_HELP_120000_SECTION_TITLE');
$this->saveSectionInfo(SECT_UTILS, 'admin-utilities', 'ATTACH_HELP_130000_SECTION_TITLE');
$this->saveSectionInfo(SECT_WARN, 'warnings', 'ATTACH_HELP_140000_SECTION_TITLE');
$this->saveSectionInfo(SECT_UPGRAD, 'upgrading', 'ATTACH_HELP_150000_SECTION_TITLE');
$this->saveSectionInfo(SECT_UNINST, 'uninstalling', 'ATTACH_HELP_160000_SECTION_TITLE');
$this->saveSectionInfo(SECT_MIGRAT, 'migration', 'ATTACH_HELP_170000_SECTION_TITLE');
$this->saveSectionInfo(SECT_TRANS, 'translations', 'ATTACH_HELP_180000_SECTION_TITLE');
$this->saveSectionInfo(SECT_ACKNOW, 'acknowledgments', 'ATTACH_HELP_190000_SECTION_TITLE');
$this->saveSectionInfo(SECT_CONTCT, 'contact', 'ATTACH_HELP_200000_SECTION_TITLE');
// A few other miscellaneous items
$tlc = JText::_('ATTACH_HELP_TOGGLE_LANGUAGE_CODES');
$onContentPrepare = "<tt class=\"docutils literal\">'onContentPrepare'</tt>";
$main_title_tooltip = $this->constructTooltip('ATTACH_HELP_000000_MAIN_TITLE');
$main_version_tooltip = $this->constructTooltip('ATTACH_HELP_000100_MAIN_VERSION');
$toggle_img = JURI::root(true).'/media/system/images/tooltip.png';
?>
<div class="help-document">
<div class="header">
<a id="tc_toggle" title="<? echo $tlc ?>" href="<?php echo $this->toggledURL() ?>"><img src="<?php echo $toggle_img ?>"></a>
<h1 class="title" <?php echo $main_title_tooltip ?>><?php echo $this->logo_img ?><?php echo JText::_('ATTACH_HELP_000000_MAIN_TITLE') ?></h1>
<hr class="header"/>
</div>
<div class="main">
<p class="version"><strong><?php echo $this->version . ' - ' . $this->date ?></strong></p>
<p><strong<?php echo $main_version_tooltip ?>><?php echo JText::_('ATTACH_HELP_000100_MAIN_VERSION') ?></strong></p>
<?php
// ------------------------------------------------------------
// Add the table of contents
$this->tableOfContents('ATTACH_HELP_000200_MAIN_CONTENTS');
// ------------------------------------------------------------
// Introduction
$this->startSection(SECT_INTRO);
$this->addParagraph( 'ATTACH_HELP_010100_TEXT');
$this->addWarning( 'ATTACH_HELP_010200_WARNING');
$this->addNote( 'ATTACH_HELP_010300_NOTE');
$this->addParagraph('ATTACH_HELP_010400_TEXT', Array( '{SECT_TRANS}' => $this->sectionLink(SECT_TRANS) ));
$this->addParagraph('ATTACH_HELP_010500_TEXT');
$this->startList();
$email_list_url = 'http://jmcameron.net/attachments/email-list.html';
$email_list_text = JText::sprintf('ATTACH_HELP_010600_TEXT', $email_list_url);
$this->addListElementHtml("<a class=\"reference external\" href=\"$email_list_url\">$email_list_text</a>");
$this->endList();
$this->endSection(SECT_INTRO);
// ------------------------------------------------------------
// New features in Version 3.1
$this->startSection(SECT_NEW_V3);
$this->startList();
$this->addListElement('ATTACH_HELP_020100_TEXT');
$this->addListElement('ATTACH_HELP_020200_TEXT');
$this->addListElement('ATTACH_HELP_020300_TEXT');
$this->addListElement('ATTACH_HELP_020400_TEXT');
$this->endList();
$this->endSection(SECT_NEW_V3);
// ------------------------------------------------------------
// Major features of the Attachments Extension
$this->startSection(SECT_FEAT);
$this->startList();
$this->addListElement('ATTACH_HELP_030100_TEXT', Array( '{SECT_PERMS}' => $this->sectionLink(SECT_PERMS) ));
$this->addListElement('ATTACH_HELP_030200_TEXT', Array( '{SECT_ACCESS}' => $this->sectionLink(SECT_ACCESS) ));
$this->addListElement('ATTACH_HELP_030300_TEXT');
$this->addListElement('ATTACH_HELP_030400_TEXT');
$this->addListElement('ATTACH_HELP_030500_TEXT');
$this->addListElement('ATTACH_HELP_030600_TEXT');
$this->addListElement('ATTACH_HELP_030700_TEXT');
$this->addListElement('ATTACH_HELP_030800_TEXT');
$this->startList();
$this->addListElement('ATTACH_HELP_030900_TEXT');
$this->addListElement('ATTACH_HELP_031000_TEXT');
$this->addListElement('ATTACH_HELP_031100_TEXT');
$this->addListElement('ATTACH_HELP_031200_TEXT');
$this->addListElement('ATTACH_HELP_031300_TEXT',
Array( '{SECT_FILES}' => $this->sectionLink(SECT_FILES),
'{ONCONTENTPREPARE}' => $onContentPrepare));
$this->endList();
$this->endList();
$this->endSection(SECT_FEAT);
// ------------------------------------------------------------
// Uploading Restrictions
$this->startSection(SECT_UPLOAD);
$this->addParagraph('ATTACH_HELP_040100_TEXT');
$this->addWarning( 'ATTACH_HELP_040200_WARNING');
$this->endSection(SECT_UPLOAD);
// ------------------------------------------------------------
// Attachments Settings
$this->startSection(SECT_SETNGS);
$this->addParagraph('ATTACH_HELP_050100_TEXT');
$this->addNote( 'ATTACH_HELP_050150_NOTE');
// Basic Options
$this->startSubSection(Array( 'id' => 'basic-options',
'code' => 'ATTACH_HELP_050200_SUBSECTION_TITLE'));
echo $this->image('options-basic.png', 'ATTACH_HELP_050200_SUBSECTION_TITLE',
'class="float-right drop-shadow"') . "\n";
$this->startList();
$this->addDefinitionListElement('ATTACH_ATTACHMENTS_PUBLISHED_BY_DEFAULT',
'ATTACH_HELP_050300_TEXT');
$this->addDefinitionListElement('ATTACH_AUTO_PUBLISH_WARNING',
'ATTACH_HELP_050400_TEXT');
$this->addDefinitionListElement('ATTACH_DEFAULT_ACCESS_LEVEL',
'ATTACH_DEFAULT_ACCESS_LEVEL_DESCRIPTION');
$this->addListElement('ATTACH_HELP_050600_TEXT');
$this->addHint( 'ATTACH_HELP_050700_HINT_TEXT');
$this->addDefinitionListElement('ATTACH_MAX_FILENAME_URL_LENGTH',
'ATTACH_HELP_050800_TEXT');
$this->addDefinitionListElement('ATTACH_WHERE_SHOULD_ATTACHMENTS_BE_PLACED',
'ATTACH_HELP_050900_TEXT', null, false);
$this->startList();
$this->addListElement('ATTACH_HELP_051000_TEXT');
$this->addListElement('ATTACH_HELP_051100_TEXT');
$this->addListElement('ATTACH_HELP_051200_TEXT', null, false);
$this->addWarning('ATTACH_HELP_051300_WARNING');
$this->endListElement();
$this->addParagraph( 'ATTACH_HELP_051400_TEXT', null, 'noindent');
$this->addPreBlock("&lt;span class=&quot;hide&quot;&gt;{attachments}&lt;/span&gt;");
$this->addParagraph( 'ATTACH_HELP_051500_TEXT', null, 'noindent');
$this->addWarning( 'ATTACH_HELP_051600_WARNING');
$this->addListElement('ATTACH_HELP_051700_TEXT');
$this->addListElement('ATTACH_HELP_051800_TEXT');
$this->endListElement();
$this->endList();
$this->endListElement();
$this->addDefinitionListElement('ATTACH_ALLOW_FRONTEND_ACCESS_LEVEL_EDITING',
'ATTACH_ALLOW_FRONTEND_ACCESS_LEVEL_EDITING_DESCRIPTION');
$this->endList();
$this->endSubSection('basic-options');
// Formatting options
$this->startSubSection(Array( 'id' => 'formatting-options',
'code' => 'ATTACH_HELP_052000_SUBSECTION_TITLE'));
echo $this->image('options-formatting.png', 'ATTACH_HELP_052000_SUBSECTION_TITLE',
'class="float-right drop-shadow"') . "\n";
$this->startList();
$this->addListElement('ATTACH_HELP_052100_TEXT');
$this->addListElement('ATTACH_HELP_052200_TEXT');
$this->addListElement('ATTACH_HELP_052300_TEXT');
$this->addListElement('ATTACH_HELP_052400_TEXT');
$this->addListElement('ATTACH_HELP_052500_TEXT', null, false);
$this->addWarning('ATTACH_HELP_052600_WARNING');
$this->endListElement();
$this->addListElement('ATTACH_HELP_052650_TEXT');
$this->addListElement('ATTACH_HELP_052700_TEXT');
$this->addListElement('ATTACH_HELP_052800_TEXT',
Array('{DESC}' => JText::_('ATTACH_FORMAT_STRING_FOR_DATES_DESCRIPTION')));
$this->addListElement('ATTACH_HELP_052900_TEXT', null, false);
$this->startList('ol', 'arabic simple');
$this->addListElement('ATTACH_HELP_053000_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_FILENAME')));
$this->addListElement('ATTACH_HELP_053100_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_FILENAME_DESCENDING')));
$this->addListElement('ATTACH_HELP_053200_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_FILE_SIZE')));
$this->addListElement('ATTACH_HELP_053300_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_FILE_SIZE_DESCENDING')));
$this->addListElement('ATTACH_HELP_053400_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_DESCRIPTION')));
$this->addListElement('ATTACH_HELP_053500_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_DESCRIPTION_DESCENDING')));
$this->addListElement('ATTACH_HELP_053600_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_DISPLAY_FILENAME_OR_URL')));
$this->addListElement('ATTACH_HELP_053700_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_DISPLAY_FILENAME_OR_URL_DESCENDING')));
$this->addListElement('ATTACH_HELP_053800_TEXT',
Array('{LABEL}' => JText::_('ATTACH_CREATOR')));
$this->addListElement('ATTACH_HELP_053900_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_CREATED_DATE')));
$this->addListElement('ATTACH_HELP_054000_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_CREATED_DATE_DESCENDING')));
$this->addListElement('ATTACH_HELP_054100_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_MODIFICATION_DATE')));
$this->addListElement('ATTACH_HELP_054200_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_MODIFICATION_DATE_DESCENDING')));
$this->addListElement('ATTACH_HELP_054300_TEXT',
Array('{LABEL}' => JText::_('ATTACH_SORT_ATTACHMENT_ID')));
$this->addListElement('ATTACH_HELP_054400_TEXT',
Array('{LABEL}' => JText::_('ATTACH_USER_DEFINED_FIELD_1')));
$this->addListElement('ATTACH_HELP_054500_TEXT',
Array('{LABEL}' => JText::_('ATTACH_USER_DEFINED_FIELD_2')));
$this->addListElement('ATTACH_HELP_054600_TEXT',
Array('{LABEL}' => JText::_('ATTACH_USER_DEFINED_FIELD_3')));
$this->endList();
$this->endListElement();
$this->endList();
$this->endSubSection('formatting-options');
// Visibilty Options
$this->startSubSection(Array( 'id' => 'visibility-options',
'code' => 'ATTACH_HELP_055000_SUBSECTION_TITLE'));
echo $this->image('options-visibility.png', 'ATTACH_HELP_055000_SUBSECTION_TITLE',
'class="float-right drop-shadow"') . "\n";
$this->addParagraph('ATTACH_HELP_055100_TEXT');
$this->startList();
$this->addListElement('ATTACH_HELP_055200_TEXT');
$this->addListElement('ATTACH_HELP_055300_TEXT');
$this->addListElement('ATTACH_HELP_055400_TEXT');
$this->addListElement('ATTACH_HELP_055500_TEXT');
$this->addListElement('ATTACH_HELP_055600_TEXT');
$this->addListElement('ATTACH_HELP_055700_TEXT');
$this->addListElement('ATTACH_HELP_055800_TEXT',
Array('{DESCRIPTION}' => JText::_('ATTACH_SHOW_GUEST_ACCESS_LEVELS_DESCRIPTION')));
$this->addListElement('ATTACH_HELP_055900_TEXT');
$this->endList();
$this->endSubSection('visibility-options');
// Advanced Options
$this->startSubSection(Array( 'id' => 'advanced-options',
'code' => 'ATTACH_HELP_057000_SUBSECTION_TITLE'));
echo $this->image('options-advanced.png', 'ATTACH_HELP_057000_SUBSECTION_TITLE',
'class="float-right drop-shadow"') . "\n";
$this->startList();
$this->addListElement('ATTACH_HELP_057050_TEXT',
Array('{DESCRIPTION}' => JText::_('ATTACH_MAX_ATTACHMENT_SIZE_DESCRIPTION'),
'{SECT_WARN}' => $this->sectionLink(SECT_WARN)));
$this->addListElement('ATTACH_HELP_057100_TEXT');
$this->addListElement('ATTACH_HELP_057200_TEXT', Array( '{SECT_STYLE}' => $this->sectionLink(SECT_STYLE) ));
$this->addListElement('ATTACH_HELP_057300_TEXT');
$blk1 = "<pre class=\"literal-block\">content/attachments/language/qq-QQ/qq-QQ.plg_content_attachments.ini</pre>\n";
$blk2 = "<pre class=\"literal-block\">language/overrides/en-GB.override.ini</pre>\n";
$this->addListElement('ATTACH_HELP_057400_TEXT', null, false);
$this->addNote(Array('ATTACH_HELP_057500_NOTE', 'ATTACH_HELP_057600_NOTE'),
Array('{BLOCK1}' => $blk1, '{BLOCK2}' => $blk2));
$this->endListElement();
$this->addListElement('ATTACH_HELP_057700_TEXT');
$this->addListElement('ATTACH_HELP_057800_TEXT');
$this->addListElement('ATTACH_HELP_057900_TEXT');
$this->addListElement('ATTACH_HELP_057940_TEXT',
Array('{DESCRIPTION}' => JText::_('ATTACH_URL_TO_LOGIN_DESCRIPTION')));
$this->addListElement('ATTACH_HELP_057960_TEXT',
Array('{DESCRIPTION}' => JText::_('ATTACH_URL_TO_REGISTER_DESCRIPTION')));
$this->endList();
$this->endSubSection('advanced-options');
// Security Options
$this->startSubSection(Array( 'id' => 'security-options',
'code' => 'ATTACH_HELP_058000_SUBSECTION_TITLE'));
echo $this->image('options-security.png', 'ATTACH_HELP_058000_SUBSECTION_TITLE',
'class="float-right drop-shadow"') . "\n";
$this->startList();
$this->addListElement(Array('ATTACH_HELP_058100_TEXT',
'ATTACH_HELP_058200_TEXT',
'ATTACH_HELP_058300_TEXT'), null, false);
$this->addHint('ATTACH_HELP_058400_HINT');
$this->endListElement();
$this->addListElement('ATTACH_HELP_058500_TEXT', null, false);
$this->startList();
$this->addListElement('ATTACH_HELP_058600_TEXT');
$this->addListElement('ATTACH_HELP_058700_TEXT');
$this->endList();
$this->addParagraph('ATTACH_HELP_058800_TEXT');
$this->endListElement();
$this->endList();
$this->endSubSection('security-options');
// Permissions Options
$this->startSubSection(Array( 'id' => 'permissions-options',
'code' => 'ATTACH_HELP_059000_SUBSECTION_TITLE'));
$this->addParagraph('ATTACH_HELP_059100_TEXT', Array( '{SECT_PERMS}' => $this->sectionLink(SECT_PERMS) ));
$this->endSubSection('permissions-options');
$this->endSection(SECT_SETNGS);
// ------------------------------------------------------------
// Attachments Permissions
$this->startSection(SECT_PERMS);
$this->addParagraph('ATTACH_HELP_060100_TEXT');
$this->addParagraph('ATTACH_HELP_060200_TEXT');
$this->addImportant('ATTACH_HELP_060300_IMPORTANT');
$this->addParagraph('ATTACH_HELP_060400_TEXT');
$this->addFigure( 'options-permissions.png',
'ATTACH_HELP_060500_TEXT',
'ATTACH_HELP_060600_TEXT',
'figure width50', 'class="drop-shadow"');
$this->addParagraph('ATTACH_HELP_060700_TEXT');
$this->startPermissionsTable( 'ATTACH_HELP_060800_TEXT',
'ATTACH_HELP_060900_TEXT',
'ATTACH_HELP_061000_TEXT' );
$this->addPermissionsTableRow('ATTACH_PERMISSION_ADMIN_COMPONENT',
'ATTACH_PERMISSION_ADMIN_COMPONENT_DESC', 'core.admin');
$this->addPermissionsTableRow('ATTACH_PERMISSION_MANAGE_COMPONENT',
'ATTACH_PERMISSION_MANAGE_COMPONENT_DESC', 'core.manage');
$this->addPermissionsTableRow('ATTACH_PERMISSION_CREATE',
'ATTACH_PERMISSION_CREATE_DESC', 'core.create');
$this->addPermissionsTableRow('ATTACH_PERMISSION_DELETE',
'ATTACH_PERMISSION_DELETE_DESC', 'core.delete');
$this->addPermissionsTableRow('ATTACH_PERMISSION_EDIT',
'ATTACH_PERMISSION_EDIT_DESC', 'core.edit');
$this->addPermissionsTableRow('ATTACH_PERMISSION_EDITSTATE',
'ATTACH_PERMISSION_EDITSTATE_DESC', 'core.edit.state');
$this->addPermissionsTableRow('ATTACH_PERMISSION_EDITOWN',
'ATTACH_PERMISSION_EDITOWN_DESC', 'core.edit.own');
$this->addPermissionsTableRow('ATTACH_PERMISSION_EDITSTATE_OWN',
'ATTACH_PERMISSION_EDITSTATE_OWN_DESC', 'attachments.edit.state.own');
$this->addPermissionsTableRow('ATTACH_PERMISSION_DELETEOWN',
'ATTACH_PERMISSION_DELETEOWN_DESC', 'attachments.delete.own');
$this->addPermissionsTableRow('ATTACH_PERMISSION_EDIT_OWNPARENT',
'ATTACH_PERMISSION_EDIT_OWNPARENT_DESC', 'attachments.edit.ownparent');
$this->addPermissionsTableRow('ATTACH_PERMISSION_EDITSTATE_OWNPARENT',
'ATTACH_PERMISSION_EDITSTATE_OWNPARENT_DESC', 'attachments.edit.state.ownparent');
$this->addPermissionsTableRow('ATTACH_PERMISSION_DELETE_OWNPARENT',
'ATTACH_PERMISSION_DELETE_OWNPARENT_DESC', 'attachments.delete.ownparent');
$this->endPermissionsTable();
// Default permissions
$this->startSubSection(Array( 'id' => 'default-permissions',
'code' => 'ATTACH_HELP_062000_SUBSECTION_TITLE'));
$this->addParagraph('ATTACH_HELP_062100_TEXT');
$this->addAdmonition('important hide-title', 'ATTACH_HELP_IMPORTANT',
'ATTACH_HELP_062200_IMPORTANT', null, false);
$this->startList();
$this->addListElement('ATTACH_HELP_062300_TEXT');
$this->addListElement('ATTACH_HELP_062400_TEXT');
$this->addListElement('ATTACH_HELP_062500_TEXT');
$this->addListElement('ATTACH_HELP_062600_TEXT');
$this->endList();
$this->endAdmonition();
$this->addParagraph('ATTACH_HELP_062700_TEXT');
$this->endSubSection('default-permissions');
// Permissions for common scenarios
$this->startSubSection(Array( 'id' => 'common-permissions-scenarios',
'code' => 'ATTACH_HELP_063000_SUBSECTION_TITLE'));
$this->addParagraph('ATTACH_HELP_063100_TEXT');
$this->startList();
$this->addListElement('ATTACH_HELP_063200_TEXT', null, false);
$this->addLineBreak();
$this->addParagraph('ATTACH_HELP_063300_TEXT');
$this->addFigure( 'permissions-scenario1.png', 'ATTACH_HELP_063400_TEXT','','',
'class="drop-shadow"');
$this->endListElement();
$this->addListElement('ATTACH_HELP_063500_TEXT', null, false);
$this->addLineBreak();
$this->addParagraph('ATTACH_HELP_063600_TEXT');
$this->addFigure( 'permissions-scenario2.png', 'ATTACH_HELP_063700_TEXT','','',
'class="drop-shadow"');
$this->addParagraph('ATTACH_HELP_063800_TEXT');
$this->addParagraph('ATTACH_HELP_063900_TEXT');
$this->endListElement();
$this->endList();
$this->addParagraph('ATTACH_HELP_064000_TEXT');
$this->endSubSection('common-permissions-scenarios');
// Permissions for common scenarios
$this->startSubSection(Array( 'id' => 'other-notes-on-permissions',
'code' => 'ATTACH_HELP_065000_SUBSECTION_TITLE'));
$this->startList();
$this->addListElement('ATTACH_HELP_065100_TEXT');
$this->endList();
$this->endSubSection('other-notes-on-permissions');
$this->endSection(SECT_PERMS);
// ------------------------------------------------------------
// Access Levels Visibility Control
$this->startSection(SECT_ACCESS);
$this->addParagraph('ATTACH_HELP_070100_TEXT');
$this->startList();
$this->addListElement('ATTACH_HELP_070200_TEXT');
$this->addListElement('ATTACH_HELP_070300_TEXT');
$this->endList();
$this->addParagraph('ATTACH_HELP_070400_TEXT');
$this->addParagraph('ATTACH_HELP_070500_TEXT');
$this->addNote( 'ATTACH_HELP_070600_NOTE');
$this->endSection(SECT_ACCESS);
// ------------------------------------------------------------
// Display Filename or URL
$this->startSection(SECT_DISPLY);
$this->addParagraph('ATTACH_HELP_080100_TEXT');
$this->endSection(SECT_DISPLY);
// ------------------------------------------------------------
// Attaching URLs
$this->startSection(SECT_ATTACH);
$this->addParagraph('ATTACH_HELP_090100_TEXT');
$this->startList();
$this->addListElement('ATTACH_HELP_090200_TEXT');
$this->addListElement('ATTACH_HELP_090300_TEXT');
$this->endList();
$this->addParagraph('ATTACH_HELP_090400_TEXT');
$this->endSection(SECT_ATTACH);
// ------------------------------------------------------------
// What Can Files Be Attached To?
$this->startSection(SECT_FILES);
$this->addParagraph('ATTACH_HELP_100100_TEXT',
Array('{ONCONTENTPREPARE}' => $onContentPrepare) );
$this->addWarning( 'ATTACH_HELP_100200_WARNING');
$this->addParagraph('ATTACH_HELP_100300_TEXT');
$this->startList();
$manual_url = 'http://jmcameron.net/attachments/';
$manual_url_text = JText::sprintf('ATTACH_HELP_100400_TEXT', $manual_url);
$this->addListElementHtml("<a class=\"reference external\" href=\"$manual_url\">$manual_url_text</a>");
$this->endList();
$this->addWarning( 'ATTACH_HELP_100500_WARNING');
$this->endSection(SECT_FILES);
// ------------------------------------------------------------
// CSS Styling of Attachment Lists
$this->startSection(SECT_STYLE);
$this->addParagraph('ATTACH_HELP_110100_TEXT');
$this->addParagraph('ATTACH_HELP_110200_TEXT');
$this->addPreBlock("media/com_attachments/css/attachments_list.css\n\n to\n\ntemplates/TEMPLATE/css/com_attachments/");
$this->addParagraph('ATTACH_HELP_110300_TEXT');
$this->endSection(SECT_STYLE);
// ------------------------------------------------------------
// File Type Icons
$this->startSection(SECT_ICONS);
$this->addParagraph('ATTACH_HELP_120100_TEXT');
$this->startList('ol');
$this->addListElement('ATTACH_HELP_120200_TEXT');
$this->addListElement('ATTACH_HELP_120300_TEXT');
$this->addListElement('ATTACH_HELP_120400_TEXT', null, false);
$this->addParagraph('ATTACH_HELP_120500_TEXT', null, 'paragraph');
$this->endListElement();
$this->endList();
$this->endSection(SECT_ICONS);
// ------------------------------------------------------------
// Administrative Utility Commands
$this->startSection(SECT_UTILS);
$this->addParagraph('ATTACH_HELP_130100_TEXT');
$this->startList();
$this->addListElement('ATTACH_HELP_130200_TEXT');
$this->addListElement('ATTACH_HELP_130300_TEXT');
$this->addListElement('ATTACH_HELP_130400_TEXT', null, false);
$this->addParagraph('ATTACH_HELP_130500_TEXT');
$this->startList();
$this->addListElement('ATTACH_HELP_130600_TEXT');
$this->addListElement('ATTACH_HELP_130700_TEXT');
$this->endList();
$this->endListElement();
$this->addListElement('ATTACH_HELP_130800_TEXT');
$this->addListElement('ATTACH_HELP_130900_TEXT');
$this->addListElement('ATTACH_HELP_131000_TEXT');
$this->addListElement('ATTACH_HELP_131100_TEXT');
$this->endList();
$this->addNote( 'ATTACH_HELP_131200_NOTE');
$this->endSection(SECT_UTILS);
// ------------------------------------------------------------
// Warnings
$this->startSection(SECT_WARN);
$this->startList();
$this->addListElement('ATTACH_HELP_140100_TEXT');
$this->addListElement('ATTACH_HELP_140200_TEXT');
$this->addListElement('ATTACH_HELP_140300_TEXT');
$this->addListElement('ATTACH_HELP_140400_TEXT', null, false);
$this->startList();
$this->addListElement('ATTACH_HELP_140500_TEXT');
$this->addListElement('ATTACH_HELP_140600_TEXT');
$this->addListElement('ATTACH_HELP_140700_TEXT',
ARRAY('{DEFACCLEVEL}' => JText::_('ATTACH_DEFAULT_ACCESS_LEVEL')));
$this->addListElement('ATTACH_HELP_140800_TEXT');
$this->addListElement('ATTACH_HELP_140900_TEXT');
$this->addListElement('ATTACH_HELP_141000_TEXT');
$this->addListElement('ATTACH_HELP_141100_TEXT');
$this->endList();
$this->endListElement();
$this->addListElement('ATTACH_HELP_141200_TEXT', null, false);
$this->addPreBlock("php_value upload_max_filesize 32M\nphp_value post_max_size 32M");
$this->addParagraph('ATTACH_HELP_141300_TEXT');
$this->endListElement();
$this->addListElement('ATTACH_HELP_141400_TEXT',
Array('{LOCALHOST}' => '<tt class="docutils literal">localhost</tt>'), false);
$this->addPreBlock("C:\Windows\System32\drivers\etc\hosts");
$this->addParagraph('ATTACH_HELP_141500_TEXT',
Array('{IPV6HOST1}' => '<tt class="docutils literal">::1</tt>',
'{HOSTS}' => '<tt class="docutils literal">hosts</tt>'));
$this->endListElement();
$this->addListElement('ATTACH_HELP_141600_TEXT');
$this->addListElement('ATTACH_HELP_141700_TEXT');
$this->addListElement('ATTACH_HELP_141800_TEXT', null, false);
$this->startList();
$forums_url = 'http://joomlacode.org/gf/project/attachments3/forum/';
$forums_url_text = $this->replace(JText::sprintf('ATTACH_HELP_141900_TEXT', $forums_url),
Array('{FORUMS}' => $forums_url));
$this->addListElementHtml("<a class=\"reference external\" href=\"$forums_url\">$forums_url_text</a>");
$this->endList();
$this->endListElement();
$this->endList();
$this->endSection(SECT_WARN);
// ------------------------------------------------------------
// Upgrading
$this->startSection(SECT_UPGRAD);
$this->addParagraph('ATTACH_HELP_150100_TEXT');
$this->startList();
$this->addListElement('ATTACH_HELP_150200_TEXT');
$this->addListElement('ATTACH_HELP_150300_TEXT');
$this->endList();
$this->endSection(SECT_UPGRAD);
// ------------------------------------------------------------
// Uninstalling
$this->startSection(SECT_UNINST);
$this->startList();
$this->addListElement('ATTACH_HELP_160100_TEXT',
Array('{ATTACH_DIR}' => "attachments",
'{ATTACH_TBL}' => "#_attachments",
'{SECT_UTILS}' => $this->sectionLink(SECT_UTILS),
'{DISABLE_SQL}' => JText::_('ATTACH_DISABLE_MYSQL_UNINSTALLATION'),
));
$this->addListElement('ATTACH_HELP_160200_TEXT');
$this->addListElement('ATTACH_HELP_160300_TEXT', null, false);
$this->addPreBlock(JText::_('ATTACH_HELP_160400_TEXT'));
$this->addParagraph('ATTACH_HELP_160500_TEXT');
$this->endListElement();
$this->endList();
$this->endSection(SECT_UNINST);
// ------------------------------------------------------------
// Migration Attachments from Joomla 1.5 to Joomla 2.5+ or 3.x
$this->startSection(SECT_MIGRAT);
$this->addParagraph('ATTACH_HELP_170100_TEXT');
$this->startList();
$migrate_url = 'http://jmcameron.net/attachments/';
$migrate_url_text = JText::sprintf('ATTACH_HELP_170000_SECTION_TITLE', $migrate_url);
$this->addListElementHtml("<a class=\"reference external\" href=\"$migrate_url\">$migrate_url_text</a>");
$this->endList();
$this->endSection(SECT_MIGRAT);
// ------------------------------------------------------------
// Translations
$this->startSection(SECT_TRANS);
$this->addParagraph('ATTACH_HELP_180100_TEXT');
$this->addParagraph('ATTACH_HELP_180200_TEXT');
$this->startList();
$this->addListElement('ATTACH_HELP_181000_TEXT');
$this->addListElement('ATTACH_HELP_181100_TEXT');
$this->addListElement('ATTACH_HELP_181200_TEXT');
$this->addListElement('ATTACH_HELP_181300_TEXT');
$this->addListElement('ATTACH_HELP_181400_TEXT');
$this->addListElement('ATTACH_HELP_181500_TEXT');
$this->addListElement('ATTACH_HELP_181600_TEXT');
$this->addListElement('ATTACH_HELP_181700_TEXT');
$this->addListElement('ATTACH_HELP_181800_TEXT');
$this->addListElement('ATTACH_HELP_181900_TEXT');
$this->addListElement('ATTACH_HELP_182000_TEXT');
$this->addListElement('ATTACH_HELP_182100_TEXT');
$this->addListElement('ATTACH_HELP_182200_TEXT');
$this->addListElement('ATTACH_HELP_182300_TEXT');
$this->addListElement('ATTACH_HELP_182400_TEXT');
$this->addListElement('ATTACH_HELP_182500_TEXT');
$this->addListElement('ATTACH_HELP_182600_TEXT');
$this->addListElement('ATTACH_HELP_182700_TEXT');
$this->addListElement('ATTACH_HELP_182800_TEXT');
$this->addListElement('ATTACH_HELP_182900_TEXT');
$this->addListElement('ATTACH_HELP_183000_TEXT');
$this->addListElement('ATTACH_HELP_183100_TEXT');
$this->addListElement('ATTACH_HELP_183200_TEXT');
$this->addListElement('ATTACH_HELP_183300_TEXT');
$this->addListElement('ATTACH_HELP_183400_TEXT');
$this->addListElement('ATTACH_HELP_183500_TEXT');
$this->addListElement('ATTACH_HELP_183600_TEXT');
$this->addListElement('ATTACH_HELP_183700_TEXT');
$this->endList();
$this->addParagraph('ATTACH_HELP_185000_TEXT',
Array( '{SECT_CONTCT}' => $this->sectionLink(SECT_CONTCT) ));
$this->endSection(SECT_TRANS);
// ------------------------------------------------------------
// Acknowledgments
$this->startSection(SECT_ACKNOW);
$this->addParagraph('ATTACH_HELP_190100_TEXT');
$this->startList();
$this->addListElement('ATTACH_HELP_190200_TEXT');
$this->addListElement('ATTACH_HELP_191000_TEXT', null, false);
$this->startList();
$this->addListElementLink('http://www.famfamfam.com/lab/icons/silk/',
'ATTACH_HELP_191100_TEXT');
$this->addListElementLink('http://www.zap.org.au/documents/icons/file-icons/sample.html',
'ATTACH_HELP_191200_TEXT');
$this->addListElementLink('http://www.brandspankingnew.net/archive/2006/06/doctype_icons_2.html',
'ATTACH_HELP_191300_TEXT');
$this->addListElementLink('http://eis.bris.ac.uk/~cckhrb/webdev/',
'ATTACH_HELP_191400_TEXT');
$this->addListElementLink('http://sweetie.sublink.ca',
'ATTACH_HELP_191500_TEXT');
$this->endList();
$this->addParagraph('ATTACH_HELP_191600_TEXT');
$this->endListElement();
$this->addListElement('ATTACH_HELP_192000_TEXT');
$this->addListElement('ATTACH_HELP_192100_TEXT');
$this->addListElement('ATTACH_HELP_192200_TEXT');
$this->addListElement('ATTACH_HELP_192300_TEXT');
$this->endList();
$this->endSection(SECT_ACKNOW);
// ------------------------------------------------------------
// Contact
$this->startSection(SECT_CONTCT);
$email_url = 'mailto:jmcameron&#64;jmcameron.net';
$email_url_text = 'jmcameron&#64;jmcameron.net';
$email_link = "<a class=\"reference external\" href=\"$email_url\">$email_url_text</a>";
$this->addParagraph('ATTACH_HELP_200100_TEXT', Array('{LINK}' => $email_link));
$this->endSection(SECT_CONTCT);
?>
<a id="tc_toggle" href="<?php echo $this->toggledURL() ?>" title="<?php echo $tlc ?>"><img src="<?php echo $toggle_img ?>"></a>
</div><!-- end div.main -->
</div><!-- end div.document -->

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -0,0 +1,103 @@
<?php
/**
* Attachments component
*
* @package Attachments
* @subpackage Attachments_Component
*
* @author Jonathan M. Cameron <jmcameron@jmcameron.net>
* @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/
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
// Define the legacy classes, if necessary
require_once 'helpview.php';
// Load the Attachments defines
require_once JPATH_SITE . '/components/com_attachments/defines.php';
/**
* View for the help page
*
* @package Attachments
* @since 3.1
*/
class AttachmentsViewHelp extends HelpView
{
/**
* Display the view
*
* @param string $tpl A template file to load. [optional]
*
* @return nothing
*/
public function display($tpl = null)
{
$this->logo_img = JHtml::image('com_attachments/attachments_help_logo32.png', '', null, true);
$this->version = AttachmentsDefines::$ATTACHMENTS_VERSION;
$rdate = new JDate(AttachmentsDefines::$ATTACHMENTS_VERSION_DATE);
$this->date = JHtml::_('date', $rdate, JText::_('DATE_FORMAT_LC1'));
parent::display($tpl);
}
/**
* Add the start of the permissions table including the header
*
* @param string $col1_code Language token for column 1 (permission name)
* @param string $col2_code Language token for column 2 (permission note)
* @param string $col3_code Language token for column 3 (permission action)
*
* @return nothing
*/
protected function startPermissionsTable($col1_code, $col2_code, $col3_code)
{
echo "<table id=\"permissions\"class=\"permissions docutils\">\n";
echo "<colgroup>\n";
echo " <col class=\"col_perm_name\"/>\n";
echo " <col class=\"col_perm_note\"/>\n";
echo " <col class=\"col_perm_action\"/>\n";
echo "</colgroup>\n";
echo "<thead>\n";
echo " <tr>\n";
echo " <th class=\"head\">" . JText::_($col1_code) . "</th>\n";
echo " <th class=\"head\">" . JText::_($col2_code) . "</th>\n";
echo " <th class=\"head\">" . JText::_($col3_code) . "</th>\n";
echo " </tr>\n";
echo "</thead>\n";
echo "<tbody>\n";
}
/**
* Add the a row of the permissions table
*
* @param string $col1_code Language token for column 1 (permission name)
* @param string $col2_code Language token for column 2 (permission note)
* @param string $col3_code Language token for column 3 (permission action)
*
* @return nothing
*/
protected function addPermissionsTableRow($col1_code, $col2_code, $col3_code)
{
echo " <tr>\n";
echo " <td>" . JText::_($col1_code) . "</td>\n";
echo " <td>" . JText::_($col2_code) . "</td>\n";
echo " <td>" . JText::_($col3_code) . "</td>\n";
echo " </tr>\n";
}
/**
* Add the end of the permissions table
*
* @return nothing
*/
protected function endPermissionsTable()
{
echo "</table>\n";
}
}