This commit is contained in:
parent
8ba189c457
commit
e6655c6f4a
@ -1,20 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Name: Upgrade Info JP
|
* Name: Upgrade Info
|
||||||
* Description: Show upgrade info at the top of left-aside until dismissed
|
* Description: Show upgrade info at the top of left-aside until dismissed
|
||||||
* Version: 1.0
|
* Version: 1.0
|
||||||
* Depends: harukin
|
* Depends: Core
|
||||||
* Author: harukin mod from Mario Vavti <mario@mariovavti.com>
|
* Author: Mario Vavti <mario@mariovavti.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Zotlabs\Extend\Hook;
|
use Zotlabs\Extend\Hook;
|
||||||
|
|
||||||
function upgrade_info_load(){
|
function upgrade_info_load(){
|
||||||
Hook::register('construct_page', 'addon/upgrade_infojp/upgrade_infojp.php', 'upgrade_info_construct_page');
|
Hook::register('construct_page', 'addon/upgrade_info/upgrade_info.php', 'upgrade_info_construct_page');
|
||||||
}
|
}
|
||||||
|
|
||||||
function upgrade_info_unload(){
|
function upgrade_info_unload(){
|
||||||
Hook::unregister('construct_page', 'addon/upgrade_infojp/upgrade_infojp.php', 'upgrade_info_construct_page');
|
Hook::unregister('construct_page', 'addon/upgrade_info/upgrade_info.php', 'upgrade_info_construct_page');
|
||||||
}
|
}
|
||||||
|
|
||||||
function upgrade_info_construct_page(&$b){
|
function upgrade_info_construct_page(&$b){
|
||||||
@ -40,11 +40,12 @@ function upgrade_info_construct_page(&$b){
|
|||||||
if(version_compare(STD_VERSION, $version) < 1)
|
if(version_compare(STD_VERSION, $version) < 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$content[] = t('Harukin+がアップデートされました!');
|
$content[] = t('harukin+の更新を実行しました!');
|
||||||
$content[] = t('変更点は運営公式フォーラムを確認してください!');
|
$content[] = t('詳細は公式運営フォーラムからご確認ください!');
|
||||||
$content[] = '<a href="channel/admin_plusharukin">' . t('運営のフォーラムページ') . '</a>';
|
$content[] = t('役に立つor重要な情報がいっぱいです!');
|
||||||
|
$content[] = '<a href="channel/admin_plusharukin">' . t('運営公式フォーラム') . '</a>';
|
||||||
|
|
||||||
$tpl = get_markup_template('upgrade_infojp.tpl', 'addon/upgrade_infojp');
|
$tpl = get_markup_template('upgrade_info.tpl', 'addon/upgrade_info');
|
||||||
|
|
||||||
$o = replace_macros($tpl, [
|
$o = replace_macros($tpl, [
|
||||||
'$title' => t('運営からのお知らせ!'),
|
'$title' => t('運営からのお知らせ!'),
|
Reference in New Issue
Block a user