PHP Класс Frontend\Core\Engine\Footer

Наследование: extends Frontend\Core\Engine\Base\Object
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
parse ( ) Parse the footer into the template

Защищенные методы

Метод Описание
getFacebookHtml ( string $facebookAppId ) : string Builds the HTML needed for Facebook to be initialized
getSiteLinksCode ( string $searchUrl ) : string Returns the code needed to get a site links search box in Google.

Описание методов

__construct() публичный Метод

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
$kernel Symfony\Component\HttpKernel\KernelInterface

getFacebookHtml() защищенный Метод

Builds the HTML needed for Facebook to be initialized
protected getFacebookHtml ( string $facebookAppId ) : string
$facebookAppId string The application id used to interact with FB
Результат string HTML and JS needed to initialize FB JavaScript

getSiteLinksCode() защищенный Метод

More information can be found on the offical Google documentation: https://developers.google.com/webmasters/richsnippets/sitelinkssearch
protected getSiteLinksCode ( string $searchUrl ) : string
$searchUrl string The url to the search page
Результат string The script needed for google

parse() публичный Метод

Parse the footer into the template
public parse ( )