Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12239095
footer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
footer.php
View Options
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Controller for footer (called on every regular page)
*
* @package ObsidianWorkspaces
* @subpackage Controllers
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*
*/
/**
* Footer controller
*/
class
FooterController
extends
Controller
{
/**
* Handles controller request
*/
public
function
handleRequest
()
{
$smarty
=
$this
->
context
->
templateEngine
;
if
(
$this
->
context
->
workspace
!==
null
)
{
$workspace
=
$this
->
context
->
workspace
;
//Gets custom footer
if
(
$workspace
->
configuration
->
footer
!=
''
)
{
try
{
$customFooter
=
file_get_contents
(
$workspace
->
configuration
->
footer
);
$smarty
->
assign
(
'custom_workspace_footer'
,
$customFooter
);
}
catch
(
ErrorException
$ex
)
{
//TODO: log the $ex->getMessage() or a generic message we can't open $workspace->configuration->footer
//The error code is easy to recover: HTTP request failed! HTTP/1.1 404 Not Found
}
}
}
$smarty
->
display
(
'footer.tpl'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 11, 20:09 (14 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3063929
Default Alt Text
footer.php (1 KB)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment