2012-05-06 18:25:40 +02:00
|
|
|
<?php
|
|
|
|
|
/**
|
2014-03-26 16:33:20 +07:00
|
|
|
* PHPWord
|
2012-05-06 18:25:40 +02:00
|
|
|
*
|
2014-03-27 23:55:06 +07:00
|
|
|
* @link https://github.com/PHPOffice/PHPWord
|
|
|
|
|
* @copyright 2014 PHPWord
|
|
|
|
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
2012-05-06 18:25:40 +02:00
|
|
|
*/
|
|
|
|
|
|
2014-03-22 10:06:08 +04:00
|
|
|
namespace PhpOffice\PhpWord;
|
2014-03-15 09:27:48 -04:00
|
|
|
|
2014-03-25 17:53:10 +07:00
|
|
|
use PhpOffice\PhpWord\Exceptions\InvalidObjectException;
|
2014-03-22 10:06:08 +04:00
|
|
|
use PhpOffice\PhpWord\Section\Footer;
|
|
|
|
|
use PhpOffice\PhpWord\Section\Image;
|
2014-03-23 10:32:08 +04:00
|
|
|
use PhpOffice\PhpWord\Section\Header;
|
2014-03-22 10:06:08 +04:00
|
|
|
use PhpOffice\PhpWord\Section\Link;
|
|
|
|
|
use PhpOffice\PhpWord\Section\ListItem;
|
|
|
|
|
use PhpOffice\PhpWord\Section\Object;
|
|
|
|
|
use PhpOffice\PhpWord\Section\PageBreak;
|
|
|
|
|
use PhpOffice\PhpWord\Section\Settings;
|
|
|
|
|
use PhpOffice\PhpWord\Section\Table;
|
|
|
|
|
use PhpOffice\PhpWord\Section\Text;
|
|
|
|
|
use PhpOffice\PhpWord\Section\TextBreak;
|
|
|
|
|
use PhpOffice\PhpWord\Section\TextRun;
|
|
|
|
|
use PhpOffice\PhpWord\Section\Title;
|
|
|
|
|
use PhpOffice\PhpWord\Shared\String;
|
|
|
|
|
|
2014-03-24 00:26:10 +07:00
|
|
|
/**
|
|
|
|
|
* Section
|
|
|
|
|
*/
|
2014-03-22 10:06:08 +04:00
|
|
|
class Section
|
2013-12-16 06:40:30 -05:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Section count
|
|
|
|
|
*
|
|
|
|
|
* @var int
|
|
|
|
|
*/
|
|
|
|
|
private $_sectionCount;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Section settings
|
|
|
|
|
*
|
2014-03-23 10:32:08 +04:00
|
|
|
* @var \PhpOffice\PhpWord\Section\Settings
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
private $_settings;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Section Element Collection
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
private $_elementCollection = array();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Section Headers
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
private $_headers = array();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Section Footer
|
|
|
|
|
*
|
2014-03-23 10:32:08 +04:00
|
|
|
* @var \PhpOffice\PhpWord\Section\Footer
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
private $_footer = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new Section
|
|
|
|
|
*
|
|
|
|
|
* @param int $sectionCount
|
|
|
|
|
* @param mixed $settings
|
|
|
|
|
*/
|
|
|
|
|
public function __construct($sectionCount, $settings = null)
|
|
|
|
|
{
|
|
|
|
|
$this->_sectionCount = $sectionCount;
|
2014-03-22 10:06:08 +04:00
|
|
|
$this->_settings = new Settings();
|
2014-03-11 16:27:42 +07:00
|
|
|
$this->setSettings($settings);
|
|
|
|
|
}
|
2013-12-16 06:40:30 -05:00
|
|
|
|
2014-03-11 16:27:42 +07:00
|
|
|
/**
|
|
|
|
|
* Set Section Settings
|
|
|
|
|
*
|
2014-03-15 09:27:48 -04:00
|
|
|
* @param array $settings
|
2014-03-11 16:27:42 +07:00
|
|
|
*/
|
|
|
|
|
public function setSettings($settings = null)
|
|
|
|
|
{
|
2013-12-16 06:40:30 -05:00
|
|
|
if (!is_null($settings) && is_array($settings)) {
|
|
|
|
|
foreach ($settings as $key => $value) {
|
|
|
|
|
if (substr($key, 0, 1) != '_') {
|
|
|
|
|
$key = '_' . $key;
|
|
|
|
|
}
|
|
|
|
|
$this->_settings->setSettingValue($key, $value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Section Settings
|
|
|
|
|
*
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Settings
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function getSettings()
|
|
|
|
|
{
|
|
|
|
|
return $this->_settings;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add a Text Element
|
|
|
|
|
*
|
|
|
|
|
* @param string $text
|
|
|
|
|
* @param mixed $styleFont
|
|
|
|
|
* @param mixed $styleParagraph
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Text
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function addText($text, $styleFont = null, $styleParagraph = null)
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
if (!String::IsUTF8($text)) {
|
2013-12-16 06:40:30 -05:00
|
|
|
$text = utf8_encode($text);
|
|
|
|
|
}
|
2014-03-22 10:06:08 +04:00
|
|
|
$text = new Text($text, $styleFont, $styleParagraph);
|
2013-12-16 06:40:30 -05:00
|
|
|
$this->_elementCollection[] = $text;
|
|
|
|
|
return $text;
|
2013-12-15 12:56:40 +01:00
|
|
|
}
|
2013-12-16 06:40:30 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add a Link Element
|
|
|
|
|
*
|
|
|
|
|
* @param string $linkSrc
|
|
|
|
|
* @param string $linkName
|
|
|
|
|
* @param mixed $styleFont
|
|
|
|
|
* @param mixed $styleParagraph
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Link
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function addLink($linkSrc, $linkName = null, $styleFont = null, $styleParagraph = null)
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
if (!String::IsUTF8($linkSrc)) {
|
2013-12-16 06:40:30 -05:00
|
|
|
$linkSrc = utf8_encode($linkSrc);
|
|
|
|
|
}
|
|
|
|
|
if (!is_null($linkName)) {
|
2014-03-22 10:06:08 +04:00
|
|
|
if (!String::IsUTF8($linkName)) {
|
2013-12-16 06:40:30 -05:00
|
|
|
$linkName = utf8_encode($linkName);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-22 10:06:08 +04:00
|
|
|
$link = new Link($linkSrc, $linkName, $styleFont, $styleParagraph);
|
|
|
|
|
$rID = Media::addSectionLinkElement($linkSrc);
|
2013-12-16 06:40:30 -05:00
|
|
|
$link->setRelationId($rID);
|
|
|
|
|
|
|
|
|
|
$this->_elementCollection[] = $link;
|
|
|
|
|
return $link;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add a TextBreak Element
|
|
|
|
|
*
|
2014-03-22 10:06:08 +04:00
|
|
|
* @param int $count
|
2014-03-23 10:32:08 +04:00
|
|
|
* @param null|string|array|\PhpOffice\PhpWord\Style\Font $fontStyle
|
|
|
|
|
* @param null|string|array|\PhpOffice\PhpWord\Style\Paragraph $paragraphStyle
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
2014-03-14 22:03:19 +07:00
|
|
|
public function addTextBreak($count = 1, $fontStyle = null, $paragraphStyle = null)
|
2013-12-16 06:40:30 -05:00
|
|
|
{
|
|
|
|
|
for ($i = 1; $i <= $count; $i++) {
|
2014-03-22 10:06:08 +04:00
|
|
|
$this->_elementCollection[] = new TextBreak($fontStyle, $paragraphStyle);
|
2013-12-16 06:40:30 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add a PageBreak Element
|
|
|
|
|
*/
|
|
|
|
|
public function addPageBreak()
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
$this->_elementCollection[] = new PageBreak();
|
2013-12-15 12:56:40 +01:00
|
|
|
}
|
2013-12-16 06:40:30 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add a Table Element
|
|
|
|
|
*
|
|
|
|
|
* @param mixed $style
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Table
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function addTable($style = null)
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
$table = new Table('section', $this->_sectionCount, $style);
|
2013-12-16 06:40:30 -05:00
|
|
|
$this->_elementCollection[] = $table;
|
|
|
|
|
return $table;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add a ListItem Element
|
|
|
|
|
*
|
|
|
|
|
* @param string $text
|
|
|
|
|
* @param int $depth
|
|
|
|
|
* @param mixed $styleFont
|
2012-05-06 18:25:40 +02:00
|
|
|
* @param mixed $styleList
|
2013-12-16 06:40:30 -05:00
|
|
|
* @param mixed $styleParagraph
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\ListItem
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function addListItem($text, $depth = 0, $styleFont = null, $styleList = null, $styleParagraph = null)
|
|
|
|
|
{
|
2014-03-23 17:37:26 +07:00
|
|
|
if (!String::isUTF8($text)) {
|
2013-12-16 06:40:30 -05:00
|
|
|
$text = utf8_encode($text);
|
|
|
|
|
}
|
2014-03-22 10:06:08 +04:00
|
|
|
$listItem = new ListItem($text, $depth, $styleFont, $styleList, $styleParagraph);
|
2013-12-16 06:40:30 -05:00
|
|
|
$this->_elementCollection[] = $listItem;
|
|
|
|
|
return $listItem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add a OLE-Object Element
|
|
|
|
|
*
|
2014-03-28 13:50:53 +07:00
|
|
|
* All exceptions should be handled by PhpOffice\PhpWord\Section\Object
|
|
|
|
|
*
|
2013-12-16 06:40:30 -05:00
|
|
|
* @param string $src
|
|
|
|
|
* @param mixed $style
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Object
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function addObject($src, $style = null)
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
$object = new Object($src, $style);
|
2013-12-16 06:40:30 -05:00
|
|
|
if (!is_null($object->getSource())) {
|
|
|
|
|
$inf = pathinfo($src);
|
|
|
|
|
$ext = $inf['extension'];
|
|
|
|
|
if (strlen($ext) == 4 && strtolower(substr($ext, -1)) == 'x') {
|
|
|
|
|
$ext = substr($ext, 0, -1);
|
|
|
|
|
}
|
2014-03-28 13:50:53 +07:00
|
|
|
$icon = __DIR__ . "/_staticDocParts/_{$ext}.png";
|
|
|
|
|
$rIDimg = Media::addSectionMediaElement($icon, 'image', new Image($icon));
|
2014-03-22 10:06:08 +04:00
|
|
|
$data = Media::addSectionMediaElement($src, 'oleObject');
|
2013-12-16 06:40:30 -05:00
|
|
|
$rID = $data[0];
|
|
|
|
|
$objectId = $data[1];
|
|
|
|
|
$object->setRelationId($rID);
|
|
|
|
|
$object->setObjectId($objectId);
|
|
|
|
|
$object->setImageRelationId($rIDimg);
|
|
|
|
|
$this->_elementCollection[] = $object;
|
|
|
|
|
return $object;
|
2014-03-25 17:53:10 +07:00
|
|
|
} else {
|
2014-03-28 13:50:53 +07:00
|
|
|
throw new InvalidObjectException();
|
2013-12-16 06:40:30 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2014-03-28 13:50:53 +07:00
|
|
|
* Add image element
|
|
|
|
|
*
|
|
|
|
|
* All exceptions should be handled by PhpOffice\PhpWord\Section\Image
|
2013-12-16 06:40:30 -05:00
|
|
|
*
|
|
|
|
|
* @param string $src
|
|
|
|
|
* @param mixed $style
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Image
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function addImage($src, $style = null)
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
$image = new Image($src, $style);
|
2014-03-28 13:50:53 +07:00
|
|
|
$rID = Media::addSectionMediaElement($src, 'image', $image);
|
|
|
|
|
$image->setRelationId($rID);
|
|
|
|
|
$this->_elementCollection[] = $image;
|
|
|
|
|
return $image;
|
2013-12-16 06:40:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2014-03-28 13:50:53 +07:00
|
|
|
* Add memory image element
|
2013-12-16 06:40:30 -05:00
|
|
|
*
|
2014-03-24 16:24:50 +07:00
|
|
|
* @deprecated
|
2014-03-28 13:50:53 +07:00
|
|
|
*
|
|
|
|
|
* @param string $src
|
|
|
|
|
* @param mixed $style
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
2014-03-24 16:24:50 +07:00
|
|
|
public function addMemoryImage($src, $style = null)
|
2013-12-16 06:40:30 -05:00
|
|
|
{
|
2014-03-24 16:24:50 +07:00
|
|
|
return $this->addImage($src, $style);
|
2013-12-16 06:40:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add a Table-of-Contents Element
|
|
|
|
|
*
|
|
|
|
|
* @param mixed $styleFont
|
|
|
|
|
* @param mixed $styleTOC
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\TOC
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function addTOC($styleFont = null, $styleTOC = null)
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
$toc = new TOC($styleFont, $styleTOC);
|
2013-12-16 06:40:30 -05:00
|
|
|
$this->_elementCollection[] = $toc;
|
|
|
|
|
return $toc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add a Title Element
|
|
|
|
|
*
|
|
|
|
|
* @param string $text
|
|
|
|
|
* @param int $depth
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Title
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function addTitle($text, $depth = 1)
|
|
|
|
|
{
|
2014-03-23 17:37:26 +07:00
|
|
|
if (!String::isUTF8($text)) {
|
2013-12-16 06:40:30 -05:00
|
|
|
$text = utf8_encode($text);
|
|
|
|
|
}
|
2014-03-22 10:06:08 +04:00
|
|
|
$styles = Style::getStyles();
|
2013-12-16 06:40:30 -05:00
|
|
|
if (array_key_exists('Heading_' . $depth, $styles)) {
|
|
|
|
|
$style = 'Heading' . $depth;
|
|
|
|
|
} else {
|
|
|
|
|
$style = null;
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-22 10:06:08 +04:00
|
|
|
$title = new Title($text, $depth, $style);
|
2013-12-16 06:40:30 -05:00
|
|
|
|
2014-03-22 10:06:08 +04:00
|
|
|
$data = TOC::addTitle($text, $depth);
|
2013-12-16 06:40:30 -05:00
|
|
|
$anchor = $data[0];
|
|
|
|
|
$bookmarkId = $data[1];
|
|
|
|
|
|
|
|
|
|
$title->setAnchor($anchor);
|
|
|
|
|
$title->setBookmarkId($bookmarkId);
|
|
|
|
|
|
|
|
|
|
$this->_elementCollection[] = $title;
|
|
|
|
|
return $title;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new TextRun
|
|
|
|
|
*
|
2014-03-15 09:27:48 -04:00
|
|
|
* @param mixed $styleParagraph
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\TextRun
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function createTextRun($styleParagraph = null)
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
$textRun = new TextRun($styleParagraph);
|
2013-12-16 06:40:30 -05:00
|
|
|
$this->_elementCollection[] = $textRun;
|
|
|
|
|
return $textRun;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get all Elements
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function getElements()
|
|
|
|
|
{
|
|
|
|
|
return $this->_elementCollection;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new Header
|
|
|
|
|
*
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Header
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function createHeader()
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
$header = new Header($this->_sectionCount);
|
2013-12-16 06:40:30 -05:00
|
|
|
$this->_headers[] = $header;
|
|
|
|
|
return $header;
|
2013-12-15 12:56:40 +01:00
|
|
|
}
|
2013-12-16 06:40:30 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Headers
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function getHeaders()
|
|
|
|
|
{
|
|
|
|
|
return $this->_headers;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Is there a header for this section that is for the first page only?
|
|
|
|
|
*
|
2014-03-22 10:06:08 +04:00
|
|
|
* If any of the Header instances have a type of Header::FIRST then this method returns true.
|
|
|
|
|
* False otherwise.
|
2013-12-16 06:40:30 -05:00
|
|
|
*
|
|
|
|
|
* @return Boolean
|
|
|
|
|
*/
|
|
|
|
|
public function hasDifferentFirstPage()
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
$value = array_filter($this->_headers, function (Header &$header) {
|
|
|
|
|
return $header->getType() == Header::FIRST;
|
2013-12-16 06:40:30 -05:00
|
|
|
});
|
|
|
|
|
return count($value) > 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new Footer
|
|
|
|
|
*
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Footer
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function createFooter()
|
|
|
|
|
{
|
2014-03-22 10:06:08 +04:00
|
|
|
$footer = new Footer($this->_sectionCount);
|
2013-12-16 06:40:30 -05:00
|
|
|
$this->_footer = $footer;
|
|
|
|
|
return $footer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2014-03-24 00:26:10 +07:00
|
|
|
* Get footer element
|
|
|
|
|
*
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Footer
|
2013-12-16 06:40:30 -05:00
|
|
|
*/
|
|
|
|
|
public function getFooter()
|
|
|
|
|
{
|
|
|
|
|
return $this->_footer;
|
2013-12-15 12:56:40 +01:00
|
|
|
}
|
2014-03-07 23:08:09 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new Footnote Element
|
|
|
|
|
*
|
2014-03-15 09:27:48 -04:00
|
|
|
* @param mixed $styleParagraph
|
2014-03-23 10:32:08 +04:00
|
|
|
* @return \PhpOffice\PhpWord\Section\Footnote
|
2014-03-07 23:08:09 +01:00
|
|
|
*/
|
2014-03-11 19:26:56 +07:00
|
|
|
public function createFootnote($styleParagraph = null)
|
|
|
|
|
{
|
2014-03-23 10:32:08 +04:00
|
|
|
$footnote = new \PhpOffice\PhpWord\Section\Footnote($styleParagraph);
|
2014-03-22 10:06:08 +04:00
|
|
|
$refID = Footnote::addFootnoteElement($footnote);
|
2014-03-11 19:26:56 +07:00
|
|
|
$footnote->setReferenceId($refID);
|
|
|
|
|
$this->_elementCollection[] = $footnote;
|
|
|
|
|
return $footnote;
|
2014-03-07 23:08:09 +01:00
|
|
|
}
|
2014-03-23 17:37:26 +07:00
|
|
|
}
|