Commit 24edf671 authored by Son Nguyen's avatar Son Nguyen
Browse files

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

+ Add default Mahara logo for Facebook share link
+ Add default Mahara description for Facebook share link

Change-Id: I18839ceeef582ed30d83d17d2cde75825499a6ab
Signed-off-by: default avatarSon Nguyen <>
parent 7f2cda97
......@@ -1043,3 +1043,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);
......@@ -854,6 +856,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;
<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}
<script type="text/javascript">
Supports Markdown
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