mirror of
https://github.com/kremalicious/krtmn.git
synced 2024-12-21 16:53:27 +01:00
touch icons added
This commit is contained in:
parent
08d2c92841
commit
933f8f4a15
BIN
apple-touch-icon-114x114-precomposed.png
Normal file
BIN
apple-touch-icon-114x114-precomposed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
apple-touch-icon-72x72-precomposed.png
Normal file
BIN
apple-touch-icon-72x72-precomposed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
BIN
apple-touch-icon-precomposed.png
Normal file
BIN
apple-touch-icon-precomposed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
51
user/plugins/my-own-stuff/plugin.php
Normal file
51
user/plugins/my-own-stuff/plugin.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/*
|
||||
Plugin Name: My Own Stuff
|
||||
Plugin URI: http://mkretschmann.com
|
||||
Description: modify title, custom css file
|
||||
Version: 0.1
|
||||
Author: kremalicious
|
||||
Author URI: http://mkretschmann.com
|
||||
*/
|
||||
|
||||
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
|
||||
yourls_add_action( 'html_head', 'krtmn_css' );
|
||||
|
||||
function krtmn_css() {
|
||||
echo '<link rel="stylesheet" href="/user/css/krtmn.css" />';
|
||||
}
|
||||
|
||||
// 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">';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user