PHP Class Frontend\Core\Engine\Footer

Inheritance: extends Frontend\Core\Engine\Base\Object
Afficher le fichier Open project: forkcms/forkcms Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
parse ( ) Parse the footer into the template

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

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

getFacebookHtml() protected méthode

Builds the HTML needed for Facebook to be initialized
protected getFacebookHtml ( string $facebookAppId ) : string
$facebookAppId string The application id used to interact with FB
Résultat string HTML and JS needed to initialize FB JavaScript

getSiteLinksCode() protected méthode

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
Résultat string The script needed for google

parse() public méthode

Parse the footer into the template
public parse ( )