Commit e6655c6f authored by Your Name's avatar Your Name

No commit message

No commit message
parent 8ba189c4
<?php
/**
* Name: Upgrade Info JP
* Name: Upgrade Info
* Description: Show upgrade info at the top of left-aside until dismissed
* Version: 1.0
* Depends: harukin
* Author: harukin mod from Mario Vavti <mario@mariovavti.com>
* Depends: Core
* Author: Mario Vavti <mario@mariovavti.com>
*/
use Zotlabs\Extend\Hook;
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(){
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){
......@@ -40,11 +40,12 @@ function upgrade_info_construct_page(&$b){
if(version_compare(STD_VERSION, $version) < 1)
return;
$content[] = t('Harukin+がアップデートされました!');
$content[] = t('変更点は運営公式フォーラムを確認してください!');
$content[] = '<a href="channel/admin_plusharukin">' . t('運営のフォーラムページ') . '</a>';
$content[] = t('harukin+の更新を実行しました!');
$content[] = t('詳細は公式運営フォーラムからご確認ください!');
$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, [
'$title' => t('運営からのお知らせ!'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment