CoreFiles by mySites.guru
pagebreak.php56 lines, 1,766 bytes, from Joomla_3.3.0-Stable-Full_Package.zip
Raw History Compare with 3.2.7
md5
a53297021d84aaf961d4515865eaa12d
sha1
49dc2bef621a345490226eee2c1b04cf552e6bc9
sha256
7a4c768c7057af3ac43de9b326f11447ad7f8a01cb17f144da711a83e71eec78
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

$script  = 'function insertPagebreak() {'."\n\t";
// Get the pagebreak title
$script .= 'var title = document.getElementById("title").value;'."\n\t";
$script .= 'if (title != \'\') {'."\n\t\t";
$script .= 'title = "title=\""+title+"\" ";'."\n\t";
$script .= '}'."\n\t";
// Get the pagebreak toc alias -- not inserting for now
// don't know which attribute to use...
$script .= 'var alt = document.getElementById("alt").value;'."\n\t";
$script .= 'if (alt != \'\') {'."\n\t\t";
$script .= 'alt = "alt=\""+alt+"\" ";'."\n\t";
$script .= '}'."\n\t";
$script .= 'var tag = "<hr class=\"system-pagebreak\" "+title+" "+alt+"/>";'."\n\t";
$script .= 'window.parent.jInsertEditorText(tag, \''.$this->eName.'\');'."\n\t";
$script .= 'window.parent.SqueezeBox.close();'."\n\t";
$script .= 'return false;'."\n";
$script .= '}'."\n";

JFactory::getDocument()->addScriptDeclaration($script);
?>
	<form>
		<table>
			<tr>
				<td class="key" align="right">
					<label for="title">
						<?php echo JText::_('COM_CONTENT_PAGEBREAK_TITLE'); ?>
					</label>
				</td>
				<td>
					<input type="text" id="title" name="title" />
				</td>
			</tr>
			<tr>
				<td class="key" align="right">
					<label for="alias">
						<?php echo JText::_('COM_CONTENT_PAGEBREAK_TOC'); ?>
					</label>
				</td>
				<td>
					<input type="text" id="alt" name="alt" />
				</td>
			</tr>
		</table>
	</form>
	<button onclick="insertPagebreak();"><?php echo JText::_('COM_CONTENT_PAGEBREAK_INSERT_BUTTON'); ?></button>

The same content is in 12 releases, Joomla 3.2.3 to 3.3.6. See them all, or every version of this file.