This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
addon/plusfuture/plusfuture.php
harukin ff4ec8e059
2018-10-31 16:20:25 +09:00

55 lines
1.4 KiB
PHP
Executable File

<?php
/**
* Name: plusfuture
* Description: mod like Google+ in hubzilla
* Version: 0.1
* Author: harukin <harukin@haruk.in>
* Maintainer: harukin <harukin@haruk.in>
* MinVersion: 0.1
*/
function plusfuture_load() { register_hook('page_end', 'addon/plusfuture/plusfuture.php', 'plusfuture_active'); }
function plusfuture_unload() { unregister_hook('page_end', 'addon/plusfuture/plusfuture.php', 'plusfuture_active'); }
function plusfuture_active(&$a,&$b) {
head_add_css('/addon/plusfuture/view/css/plusfuture.css?date=3');
$b .= "
<script>
$(document).ready(function(){
$(function () {
$('#button');
});
});
$(document).on('click', '#button', function(e) {
e.preventDefault();
e.stopPropagation();
$(this).toggleClass('active');
$(window).scrollTop(0);
$('#jot-popup').toggle();
$('#profile-jot-text').focus();
});
</script>";
$b .= '
<p id="button"><a href="rpost"><span></span></a></p>
<span id=bottombar>
<a href="network" class="p">
<img src="./home.png" width=60%>
<br>ホーム</a>
<a href="connections" class="p">
<img src="./people.png" width=50%>
<br>フォロワー</a>
<a href="notifications" class="p">
<img src="./noti.png" width=50%>
<br>お知らせ</a>
<a href="mail/combined" class="p">
<img src="./mail.png" width=70%>
<br>D M</a>
</span>
';
}