const CODENAME = 'Yellow Archangel';
const VERSION = '2024.09-dev';
- // Allow themes to control internal parameters
- // by changing App values in theme.php
- private $theme_info = [
- 'videowidth' => 425,
- 'videoheight' => 350,
- ];
-
/**
* @var Mode The Mode of the Application
*/
return $this->appHelper->getQueueValue($index);
}
+ /**
+ * @deprecated 2024.12 Use AppHelper::setThemeInfoValue() instead
+ */
public function setThemeInfoValue(string $index, $value)
{
- $this->theme_info[$index] = $value;
+ $this->appHelper->setThemeInfoValue($index, $value);
}
+ /**
+ * @deprecated 2024.12 Use AppHelper::getThemeInfo() instead
+ */
public function getThemeInfo()
{
- return $this->theme_info;
+ return $this->appHelper->getThemeInfo();
}
+ /**
+ * @deprecated 2024.12 Use AppHelper::getThemeInfoValue() instead
+ */
public function getThemeInfoValue(string $index, $default = null)
{
- return $this->theme_info[$index] ?? $default;
+ return $this->appHelper->getThemeInfoValue($index, $default);
}
/**
/** @var string The name of the current mobile theme */
private $currentMobileTheme;
+ // Allow themes to control internal parameters
+ // by changing App values in theme.php
+ private $theme_info = [
+ 'videowidth' => 425,
+ 'videoheight' => 350,
+ ];
+
/**
* @var Database The Friendica database connection
*/
*
* @param string $theme Name of current theme
*/
- public function setCurrentTheme(string $theme)
+ public function setCurrentTheme(string $theme): void
{
$this->currentTheme = $theme;
}
*
* @param string $theme Name of current mobile theme
*/
- public function setCurrentMobileTheme(string $theme)
+ public function setCurrentMobileTheme(string $theme): void
{
$this->currentMobileTheme = $theme;
}
+ public function setThemeInfoValue(string $index, $value): void
+ {
+ $this->theme_info[$index] = $value;
+ }
+
+ public function getThemeInfo(): array
+ {
+ return $this->theme_info;
+ }
+
+ public function getThemeInfoValue(string $index, $default = null)
+ {
+ return $this->theme_info[$index] ?? $default;
+ }
+
/**
* Computes the current theme name based on the node settings, the page owner settings and the user settings
*