Commit 125babb3 authored by Your Name's avatar Your Name

No commit message

No commit message
parent e6655c6f
<?php
/**
* Name: Upgrade Info
* Name: Upgrade InfoJP
* Description: Show upgrade info at the top of left-aside until dismissed
* Version: 1.0
* Depends: Core
......@@ -10,11 +10,11 @@
use Zotlabs\Extend\Hook;
function upgrade_info_load(){
Hook::register('construct_page', 'addon/upgrade_info/upgrade_info.php', 'upgrade_info_construct_page');
Hook::register('construct_page', 'addon/upgrade_infojp/upgrade_info.php', 'upgrade_info_construct_page');
}
function upgrade_info_unload(){
Hook::unregister('construct_page', 'addon/upgrade_info/upgrade_info.php', 'upgrade_info_construct_page');
Hook::unregister('construct_page', 'addon/upgrade_infojp/upgrade_info.php', 'upgrade_info_construct_page');
}
function upgrade_info_construct_page(&$b){
......@@ -45,7 +45,7 @@ function upgrade_info_construct_page(&$b){
$content[] = t('役に立つor重要な情報がいっぱいです!');
$content[] = '<a href="channel/admin_plusharukin">' . t('運営公式フォーラム') . '</a>';
$tpl = get_markup_template('upgrade_info.tpl', 'addon/upgrade_info');
$tpl = get_markup_template('upgrade_info.tpl', 'addon/upgrade_infojp');
$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