The link_to_home_page
function returns a link to the public home page of an Omeka site.
Usage
link_to_home_page($text, $props)
- $text specifies the text of the produced link. If $text is not specified, the link's text will be the site title.
- $props is an array of properties to set on the generated
<a>
tag.
Example
For an example, see the following file in the default theme:
- theme/default/common/header.php
This function is usually called along with a php echo command, to output the link to the page. In the above file, it is done like so:
<?php echo link_to_home_page(); ?>
CSS Styles
The default CSS style div ID tag is #site-title.