mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
42 lines
No EOL
731 B
PHP
42 lines
No EOL
731 B
PHP
<?php
|
|
|
|
/**
|
|
* Description of NavActions
|
|
*
|
|
* @author jeremy
|
|
*/
|
|
class NavActions extends Actions
|
|
{
|
|
protected static $navUri;
|
|
|
|
public static function setNavUri($uri)
|
|
{
|
|
static::$navUri = $uri;
|
|
}
|
|
|
|
public static function getNavUri()
|
|
{
|
|
return static::$navUri ?: $_SERVER['REQUEST_URI'];
|
|
}
|
|
|
|
public static function prepareFooterPartial(array $vars)
|
|
{
|
|
return $vars + [
|
|
'isDark' => false,
|
|
'showLearnFooter' => false
|
|
];
|
|
}
|
|
|
|
public static function prepareGlobalItemsPartial(array $vars)
|
|
{
|
|
$vars += ['selectedItem' => static::getNavUri()];
|
|
return $vars;
|
|
}
|
|
|
|
public static function prepareLearnFooterPartial(array $vars)
|
|
{
|
|
return $vars + [
|
|
'isDark' => true
|
|
];
|
|
}
|
|
} |