mirror of
https://github.com/humhub/humhub.git
synced 2025-03-04 07:08:58 +01:00
Moved ShareWidget to DashboardModule
This commit is contained in:
parent
1622b601fd
commit
f20bcd5088
@ -9,6 +9,8 @@ namespace humhub\modules\dashboard;
|
||||
|
||||
use Yii;
|
||||
use yii\helpers\Url;
|
||||
use humhub\models\Setting;
|
||||
use humhub\modules\dashboard\widgets\ShareWidget;
|
||||
|
||||
/**
|
||||
* Description of Events
|
||||
@ -38,4 +40,11 @@ class Events
|
||||
));
|
||||
}
|
||||
|
||||
public static function onSidebarInit($event)
|
||||
{
|
||||
if (Setting::Get('enable', 'share') == 1 && Yii::$app->user->getIdentity()->getSetting("hideSharePanel", "share") != 1) {
|
||||
$event->sender->addWidget(ShareWidget::className(), array(), array('sortOrder' => 150));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,11 +1,14 @@
|
||||
<?php
|
||||
|
||||
use humhub\modules\dashboard\widgets\Sidebar;
|
||||
|
||||
return [
|
||||
'id' => 'dashboard',
|
||||
'class' => \humhub\modules\dashboard\Module::className(),
|
||||
'isCoreModule' => true,
|
||||
'events' => array(
|
||||
array('class' => \humhub\widgets\TopMenu::className(), 'event' => \humhub\widgets\TopMenu::EVENT_INIT, 'callback' => array('\humhub\modules\dashboard\Events', 'onTopMenuInit')),
|
||||
array('class' => Sidebar::className(), 'event' => Sidebar::EVENT_INIT, 'callback' => array('\humhub\modules\dashboard\Events', 'onSidebarInit')),
|
||||
),
|
||||
];
|
||||
?>
|
@ -54,4 +54,14 @@ class DashboardController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Update user settings for hiding share panel on dashboard
|
||||
*/
|
||||
public function actionHidePanel()
|
||||
{
|
||||
// set tour status to seen for current user
|
||||
return Yii::$app->user->getIdentity()->setSetting('hideSharePanel', 1, "share");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Message translations.
|
||||
*
|
||||
* This file is automatically generated by 'yii message' command.
|
||||
* It contains the localizable messages extracted from source code.
|
||||
* You may modify this file by translating the extracted messages.
|
||||
*
|
||||
* Each array element represents the translation (value) of a message (key).
|
||||
* If the value is empty, the message is considered as not translated.
|
||||
* Messages that no longer need translation will have their translations
|
||||
* enclosed between a pair of '@@' marks.
|
||||
*
|
||||
* Message string can be used with plural forms format. Check i18n section
|
||||
* of the guide for details.
|
||||
*
|
||||
* NOTE: this file must be saved in UTF-8 encoding.
|
||||
*/
|
||||
return [
|
||||
'<strong>Share</strong> your opinion with others' => '',
|
||||
'Post a message on Facebook' => '',
|
||||
'Share it on Google+' => '',
|
||||
'Tell anyone on LinkedIn' => '',
|
||||
'Tweet about HumHub' => '',
|
||||
];
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace humhub\modules\share\widgets;
|
||||
namespace humhub\modules\dashboard\widgets;
|
||||
|
||||
|
||||
/**
|
@ -8,32 +8,35 @@ use yii\helpers\Url;
|
||||
<?php echo \humhub\widgets\PanelMenu::widget(array('id' => 'share-panel')); ?>
|
||||
|
||||
<div class="panel-heading">
|
||||
<?php echo Yii::t('ShareModule.base', '<strong>Share</strong> your opinion with others'); ?>
|
||||
<?php echo Yii::t('DashboardModule.widgets_views_share', '<strong>Share</strong> your opinion with others'); ?>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<p>Wir freuen uns, dass du <a href="https://www.humhub.org" target="_blank" class="colorInfo">HumHub</a> nutzt. Wenn es dir gefällt dann unterstütze das Projekt und empfehle es weiter.</p>
|
||||
|
||||
<a class="popup"
|
||||
href="http://twitter.com/intent/tweet?status=I'm just testing @humhub. An Open Source Social Network for communication and collaboration! Love it! https://www.humhub.org">
|
||||
href="http://twitter.com/intent/tweet?status=Ich empfehle @HumHub als Social Intranet. Es ist super schick, open source und ich bin schwer begeistert: https://www.humhub.org">
|
||||
<div class="share-icon share-icon-twitter"><i class="fa fa-twitter"></i></div>
|
||||
<div class="share-text"><?php echo Yii::t('ShareModule.base', 'Tweet about HumHub'); ?></div>
|
||||
<div class="share-text"><?php echo Yii::t('DashboardModule.widgets_views_share', 'Tweet about HumHub'); ?></div>
|
||||
</a>
|
||||
<!--<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>-->
|
||||
<div class="clearfix"></div>
|
||||
<a class="popup" href="http://www.facebook.com/share.php?u=https://www.humhub.org">
|
||||
<div class="share-icon share-icon-facebook"><i class="fa fa-facebook"></i></div>
|
||||
<div class="share-text"><?php echo Yii::t('ShareModule.base', 'Post a message on Facebook'); ?></div>
|
||||
<div class="share-text"><?php echo Yii::t('DashboardModule.widgets_views_share', 'Post a message on Facebook'); ?></div>
|
||||
</a>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<a class="popup" href="https://plus.google.com/share?url=https://www.humhub.org">
|
||||
<div class="share-icon share-icon-google-plus"><i class="fa fa-google-plus"></i></div>
|
||||
<div class="share-text"><?php echo Yii::t('ShareModule.base', 'Share it on Google+'); ?></div>
|
||||
<div class="share-text"><?php echo Yii::t('DashboardModule.widgets_views_share', 'Share it on Google+'); ?></div>
|
||||
</a>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<a class="popup"
|
||||
href="http://www.linkedin.com/shareArticle?mini=true&url=https://www.humhub.org&title=HumHub - The flexible Open Source Social Network Kit for Collaboration">
|
||||
<div class="share-icon share-icon-linkedin"><i class="fa fa-linkedin-square"></i></div>
|
||||
<div class="share-text"><?php echo Yii::t('ShareModule.base', 'Tell anyone on LinkedIn'); ?></div>
|
||||
<div class="share-text"><?php echo Yii::t('DashboardModule.widgets_views_share', 'Tell anyone on LinkedIn'); ?></div>
|
||||
</a>
|
||||
|
||||
<div class="clearfix"></div>
|
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace humhub\modules\share;
|
||||
|
||||
use Yii;
|
||||
use humhub\models\Setting;
|
||||
use humhub\modules\share\widgets\ShareWidget;
|
||||
|
||||
class Module extends \humhub\components\Module
|
||||
{
|
||||
|
||||
public static function onSidebarInit($event)
|
||||
{
|
||||
if (Setting::Get('enable', 'share') == 1 && Yii::$app->user->getIdentity()->getSetting("hideSharePanel", "share") != 1) {
|
||||
$event->sender->addWidget(ShareWidget::className(), array(), array('sortOrder' => 150));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
use humhub\modules\dashboard\widgets\Sidebar;
|
||||
|
||||
return [
|
||||
'id' => 'share',
|
||||
'class' => 'humhub\modules\share\Module',
|
||||
'namespace' => 'humhub\modules\share',
|
||||
'isCoreModule' => true,
|
||||
'events' => array(
|
||||
array('class' => Sidebar::className(), 'event' => Sidebar::EVENT_INIT, 'callback' => array('humhub\modules\share\Module', 'onSidebarInit')),
|
||||
),
|
||||
];
|
||||
?>
|
@ -1,45 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link https://www.humhub.org/
|
||||
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
|
||||
* @license https://www.humhub.com/licences
|
||||
*/
|
||||
|
||||
namespace humhub\modules\share\controllers;
|
||||
|
||||
use Yii;
|
||||
use yii\web\HttpException;
|
||||
|
||||
|
||||
/**
|
||||
* TourController
|
||||
*
|
||||
* @author andystrobel
|
||||
*/
|
||||
class ShareController extends \humhub\components\Controller
|
||||
{
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function behaviors()
|
||||
{
|
||||
return [
|
||||
'acl' => [
|
||||
'class' => \humhub\components\behaviors\AccessControl::className(),
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* Update user settings for hiding tour panel on dashboard
|
||||
*/
|
||||
|
||||
public function actionHidePanel()
|
||||
{
|
||||
// set tour status to seen for current user
|
||||
return Yii::$app->user->getIdentity()->setSetting('hideSharePanel', 1, "share");
|
||||
}
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"id": "share",
|
||||
"name": "Share",
|
||||
"description": "Allows user to share their opinion with others",
|
||||
"keywords": [
|
||||
"core"
|
||||
],
|
||||
"version": "1.0"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user