Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56328880
footer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
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
*
*/
use
Waystone\Workspaces\Engines\Controller\Controller
;
/**
* 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, Nov 7, 02:25 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4213404
Default Alt Text
footer.php (1 KB)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment