Commit 57ad8a36 authored by Hugh Davenport's avatar Hugh Davenport Committed by Gerrit Code Review
Browse files

Merge "Add a static Mahara logo that can be picked up by Facebook Bug#900529"

parents 16e28262 24edf671
......@@ -1044,3 +1044,5 @@ $string['members'] = 'Members';
$string['blocks'] = 'Blocks';
$string['artefacts'] = 'Artefacts';
$string['posts'] = 'Posts';
$string['facebookdescription'] = 'Mahara is an open source ePortfolio and social networking web application.
It provides users with tools to create and maintain a digital portfolio of their learning, and social networking features to allow users to interact with each other';
......@@ -406,6 +406,8 @@ EOF;
}
$smarty->assign('sitename', $sitename);
$smarty->assign('sitelogo', $THEME->header_logo());
$smarty->assign('sitelogo4facebook', $THEME->facebook_logo());
$smarty->assign('sitedescription4facebook', get_string('facebookdescription', 'mahara'));
if (defined('TITLE')) {
$smarty->assign('PAGETITLE', TITLE . ' - ' . $sitename);
......@@ -852,6 +854,10 @@ class Theme {
return $this->get_url('images/site-logo.png');
}
public function facebook_logo() {
return $this->get_url('images/site-logo4facebook.png');
}
public function additional_stylesheets() {
return $this->addedstylesheets;
}
......
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
<meta property="og:title" content="{$PAGETITLE}" />
<meta property="og:description" content="{$sitedescription4facebook}" />
<meta property="og:image" content="{$sitelogo4facebook}" />
{if isset($PAGEAUTHOR)}<meta name="author" content="{$PAGEAUTHOR}">{/if}
<title>{$PAGETITLE}</title>
<script type="text/javascript">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment