Settings';
array_unshift($links, $settings_link);
}
return $links;
}
//custom script in header
function add2homecustom() { ?>
}
add_action('wp_head', 'add2homecustom', 8);
//add css file
/*
Loading of the Add to Home Screen Floating Layer by Matteo Spinelli.
[Official homepage](http://cubiq.org/add-to-home-screen)
## License
This software is released under the MIT License.
Copyright (c) 2013 Matteo Spinelli, http://cubiq.org/
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
add_action( 'wp_enqueue_scripts', 'addtohomecss' );
function addtohomecss() {
if ((get_option('pagetarget') == 'homeonly') ) {
if ( is_home() || is_front_page() ) {
wp_register_style( 'adhs', plugins_url('add2home.css', __FILE__) );
wp_enqueue_style( 'adhs' );
}
} elseif (get_option('pagetarget') == 'allpages') {
wp_register_style( 'adhs', plugins_url('add2home.css', __FILE__) );
wp_enqueue_style( 'adhs' );
}
else {
wp_register_style( 'adhs', plugins_url('add2home.css', __FILE__) );
wp_enqueue_style( 'adhs' );
}
}
//add js file
add_action( 'wp_enqueue_scripts', 'addtohomejs', 10 );
function addtohomejs()
{
if ((get_option('pagetarget') == 'homeonly') ) {
if ( is_home() || is_front_page() ) {
// Register the script:
wp_register_script( 'adhs', plugins_url('add2home.js', __FILE__) );
// Enqueue the script:
wp_enqueue_script( 'adhs' );
}
} elseif (get_option('pagetarget') == 'allpages') {
// Register the script:
wp_register_script( 'adhs', plugins_url('add2home.js', __FILE__) );
// Enqueue the script:
wp_enqueue_script( 'adhs' );
}
else {
// Register the script:
wp_register_script( 'adhs', plugins_url('add2home.js', __FILE__) );
// Enqueue the script:
wp_enqueue_script( 'adhs' );
}
}
function addmetawebcapable() { ?>
}
if (get_option('browseraths') == 'fullscreenmode')
{
add_action('wp_head', 'addmetawebcapable', 3);
}
function addmetawebcapable_title() { ?>
}
add_action('wp_head', 'addmetawebcapable_title', 2);
function addtouchicon_url() {
echo'';
}
function addtouchicon_url72() {
echo'';
}
function addtouchicon_url114() {
echo'';
}
function addtouchicon_url144() {
echo'';
}
if (get_option('touchicon_url')) {
add_action('wp_head', 'addtouchicon_url', 4);
}
if (get_option('touchicon_url72')) {
add_action('wp_head', 'addtouchicon_url72', 4);
}
if (get_option('touchicon_url114')) {
add_action('wp_head', 'addtouchicon_url114', 4);
}
if (get_option('touchicon_url144')) {
add_action('wp_head', 'addtouchicon_url144', 4);
}
function touch_startup_url() {
echo'';
}
function touch_startup_url920() {
echo'';
}
function touch_startup_url1096() {
echo'';
}
function touch_startup_url748() {
echo'';
}
function touch_startup_url1004() {
echo'';
}
if (get_option('touch_startup_url')) {
add_action('wp_head', 'touch_startup_url', 5);
}
if (get_option('touch_startup_url920')) {
add_action('wp_head', 'touch_startup_url920', 5);
}
if (get_option('touch_startup_url1096')) {
add_action('wp_head', 'touch_startup_url1096', 5);
}
if (get_option('touch_startup_url748')) {
add_action('wp_head', 'touch_startup_url748', 5);
}
if (get_option('touch_startup_url1004')) {
add_action('wp_head', 'touch_startup_url1004', 5);
}
function addmetawebcapablelinks() { ?>