/** * Test setting meta title and description with dynamic placeholders */ public function testDynamicMetaSetGet() { SEO::init(); $obj = new StdClass(); $obj->FirstName = 'Andy'; SEO::setDynamicTitle('[FirstName] Second Name', $obj); $this->assertEquals('Andy Second Name', SEO::getTitle()); $obj = new StdClass(); $obj->FirstName = 'Andy'; SEO::setDynamicDescription('[FirstName] Second Name', $obj); $this->assertEquals('Andy Second Name', SEO::getDescription()); }
} else { $categoria_nome = $Cat->getCategoriaNome($filtro_categoria); } $SEO->setDescription(' Encontre ' . $categoria_nome . ' em Mogi das Cruzes, veja endereços, contatos, telefones, dicas e avaliações.'); } include ROOT . 'view/head.php'; ?> <script type="text/javascript" src="<?php echo ROOT_URL; ?> view/js/infobox.js" defer></script> <script src="https://apis.google.com/js/platform.js" async="defer"></script> <title><?php echo $SEO->getTitle(); ?> </title> </head> <body onload="initialize()" class="indexpage"> <?php include ROOT . 'view/menu_esquerdo.php'; ?> <?php include ROOT . 'view/add_local.php'; ?>