1
0
mirror of https://github.com/kremalicious/krtmn.git synced 2025-01-07 20:25:09 +01:00
krtmn/user/plugins/kremalicious/plugin.php

56 lines
1.4 KiB
PHP
Raw Normal View History

2012-02-27 04:41:06 +01:00
<?php
/*
2016-04-29 23:53:42 +02:00
Plugin Name: Kremalicious
Plugin URI: http://matthiaskretschmann.com
Description: Customize all the things.
2012-02-27 04:41:06 +01:00
Version: 0.1
Author: kremalicious
2016-04-29 23:53:42 +02:00
Author URI: http://matthiaskretschmann.com
2012-02-27 04:41:06 +01:00
*/
if( !defined( 'YOURLS_ABSPATH' ) ) die();
// modify the <title> of pages in the admin area
yourls_add_filter( 'html_title', 'krtmn_change_title' );
function krtmn_change_title( $value, $title ) {
$value = $title.' | krt.mn';
return $value;
}
// modify admin logo
//yourls_add_action( 'html_logo', 'krtmn_logo' );
//
//function krtmn_logo() {
// echo '<li><a href="http://ozh.org/">hello</a></li>';
//}
// custom css
2016-04-26 23:48:39 +02:00
yourls_add_action( 'html_head', 'krtmn_assets' );
2012-02-27 04:41:06 +01:00
2016-04-26 23:48:39 +02:00
function krtmn_assets() {
echo '<link rel="stylesheet" href="'. YOURLS_SITE .'/user/css/krtmn.css" />';
2012-02-27 04:41:06 +01:00
}
// favicon & touch icons
yourls_add_action( 'html_head', 'krtmn_touch_icons' );
function krtmn_touch_icons() {
echo '<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/apple-touch-icon-72x72-precomposed.png">
<link rel="shortcut icon" href="/apple-touch-icon-precomposed.png">
<link rel="shortcut icon" href="/favicon.ico">';
}
2012-02-27 08:36:04 +01:00
// custom viewport
yourls_add_action( 'html_head', 'krtmn_viewport' );
function krtmn_viewport() {
2016-04-26 23:48:39 +02:00
echo '<meta name="viewport" content="width=device-width, initial-scale=1">';
2012-02-27 08:36:04 +01:00
}
2012-02-27 04:41:06 +01:00
2016-04-26 23:48:39 +02:00
?>