Licitator 1.0
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.

18 lines
607 B

5 years ago
  1. <?php
  2. namespace Prometeo\CommandsBundle\ManualTraits;
  3. use PhpOffice\PhpWord\Element\Header;
  4. use PhpOffice\PhpWord\SimpleType\Jc;
  5. trait HeaderTrait
  6. {
  7. public function createHeader(&$section){
  8. $headerOdd = $section->addHeader(Header::AUTO);
  9. $headerOdd->addText('INGENIERÍA :: INNOVACIÓN :: TECNOLOGÍA', $this->fonts['header']);
  10. $headerEven=$section->addHeader(Header::EVEN);
  11. $headerEven->addText('MANUAL DE USUARIO', $this->fonts['header']);
  12. $headerEven->addImage(__DIR__.'/../Resources/images/logo.png', array('width'=>200, 'alignment' => Jc::END));
  13. }
  14. }