You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.7 KiB
29 lines
1.7 KiB
<?php
|
|
|
|
namespace Prometeo\CommandsBundle\ManualTraits;
|
|
|
|
use PhpOffice\PhpWord\Element\Footer;
|
|
use PhpOffice\PhpWord\SimpleType\Jc;
|
|
|
|
trait FooterTrait
|
|
{
|
|
public function createFooter(&$section){
|
|
$footer = $section->addFooter(Footer::AUTO);
|
|
$footer->addText('PROMETEO INNOVATIONS S.L. – CIF B74.197.708', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
|
|
$footer->addText('c/Ada Byron 107 – Parque Científico y Tecnológico – 33203 Gijón, Asturias. España', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
|
|
$footer->addText('Tel :: +34 985 09 88 86 - 689 90 05 05 - mail :: prometeo@prometeoinnova.com', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
|
|
$textRun = $footer->addTextRun(array('alignment' => Jc::END));
|
|
$textRun->addField('PAGE', array('format' => 'Arabic'));
|
|
$textRun->addText(' de ');
|
|
$textRun->addField('NUMPAGES', array('format' => 'Arabic'));
|
|
$footer2=$section->addFooter(Footer::FIRST);
|
|
// $footer2 = $section->addFooter(Footer::EVEN);
|
|
// $footer2->addText('PROMETEO INNOVATIONS S.L. – CIF B74.197.708', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
|
|
// $footer2->addText('c/Ada Byron 107 – Parque Científico y Tecnológico – 33203 Gijón, Asturias. España', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
|
|
// $footer2->addText('Tel :: +34 985 09 88 86 - 689 90 05 05 - mail :: prometeo@prometeoinnova.com', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
|
|
// $textRun2 = $footer2->addTextRun();
|
|
// $textRun2->addField('PAGE', array('format' => 'Arabic'));
|
|
// $textRun2->addText(' de ');
|
|
// $textRun2->addField('NUMPAGES', array('format' => 'Arabic'));
|
|
}
|
|
}
|