use Friendica\Util\Strings;
const FRIO_SCHEME_ACCENT_BLUE = '#1e87c2';
+const FRIO_SCHEME_ACCENT_RED = '#b50404';
+const FRIO_SCHEME_ACCENT_PURPLE = '#a54bad';
+const FRIO_SCHEME_ACCENT_GREEN = '#218f39';
+const FRIO_SCHEME_ACCENT_PINK = '#d900a9';
+
function frio_init(App $a)
{
global $frio;
* @param App $a The App class
* @param array $nav The original nav menu
*/
-function frio_remote_nav($a, &$nav)
+function frio_remote_nav(App $a, array &$nav)
{
// get the homelink from $_XSESSION
$homelink = Model\Profile::getMyURL();
*/
function frio_display_item(App $a, &$arr)
{
- // Add subthread to the item menu
- $subthread = [];
+ // Add follow to the item menu
+ $followThread = [];
if (
local_user()
&& local_user() == $arr['item']['uid']
&& $arr['item']['gravity'] == GRAVITY_PARENT
- && !$arr['item']['self'])
- {
- $subthread = [
+ && !$arr['item']['self']
+ && !$arr['item']['mention']
+ ) {
+ $followThread = [
'menu' => 'follow_thread',
'title' => DI::l10n()->t('Follow Thread'),
- 'action' => 'dosubthread(' . $arr['item']['id'] . ');',
+ 'action' => 'doFollowThread(' . $arr['item']['id'] . ');',
'href' => '#'
];
}
- $arr['output']['subthread'] = $subthread;
+ $arr['output']['follow_thread'] = $followThread;
}