PHP Class Frontend\Core\Engine\Footer

Inheritance: extends Frontend\Core\Engine\Base\Object
Datei anzeigen Open project: forkcms/forkcms Class Usage Examples

Public Methods

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

Protected Methods

Method 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 method

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

getFacebookHtml() protected method

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

getSiteLinksCode() protected method

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
return string The script needed for google

parse() public method

Parse the footer into the template
public parse ( )