Fix for YOURLS 1.9.2 and updated README
This commit is contained in:
@@ -27,7 +27,7 @@ The tables and graphs have a horizontal scroll on mobile when the viewport becom
|
||||
## Installing
|
||||
|
||||
1. First install the YOURLS scripts and database.
|
||||
2. Download or clone this repo into the plugins folder in your YOURLS install `user/plugins/`.
|
||||
2. Download or clone this repo into the plugins folder in your YOURLS install `user/plugins/`. Make sure the folder is called `air66theme` to reduce potential issues.
|
||||
3. Login into the admin area of YOURLS and activate the plugin.
|
||||
4. The Air 66 Admin Theme is now active.
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ $( document ).ready(function() {
|
||||
// Update footer
|
||||
var content = $(this).html();
|
||||
var i = 77
|
||||
var updated_content = "Running on" + content.slice(13, i) + '& <a href="https://air66design.com/" title="Air 66 Design Ltd" target="_blank">Air 66 Design Ltd</a>' + content.slice(i-1)
|
||||
var updated_content = "Running on " + content.slice(13, i) + ' & <a href="https://air66design.com/" title="Air 66 Design Ltd" target="_blank">Air 66 Design Ltd</a>' + content.slice(i)
|
||||
$(this).html(updated_content);
|
||||
}
|
||||
});
|
||||
|
||||
2
dist/main.js
vendored
2
dist/main.js
vendored
@@ -1 +1 @@
|
||||
$(document).ready(function(){var a;a=$("meta[name=pluginURL]").attr("content")?$("meta[name=pluginURL]").attr("content"):"/user/plugins/air66Theme",$("body").hasClass("login")&&$("#login").prepend('<img class="air66-logo" src="'+a+'/dist/images/a66-logo.svg" alt="Air 66 Design Ltd Logo">'),$("header[role=banner]").hide(),$("header[role=banner]").remove(),$("#admin_menu_help_link").remove(),$("#admin_menu").append('<li class="admin_menu_toplevel"><a href="https://air66design.com" target="_blank">Contact Air 66 Design</a></li>'),$("body").prepend($('<header class="site-header">').load(a+"/dist/html/header.php",function(){if($(".site-header").append('<div class="air66-logo-wrap"><a class="air66-logo-link" href="https://air66design.com" target="_blank"><img class="air66-logo" src="'+a+'/dist/images/a66-logo-wh.svg" alt="Air 66 Design Ltd Logo"></a></div>'),$("body").prepend('<div class="nav-overlay"></div>'),$("#menu-icon").click(function(){$(this).toggleClass("open"),$("nav, .nav-overlay").toggleClass("nav-open")}),$("body").hasClass("index")){$("#new_url").hide();var e=$("#nonce-add").val();$("#new_url").remove(),$(".index").prepend($('<div class="form-wrap">').load(a+"/dist/html/form.php",function(){$("#nonce-add").val(e)}))}})),$('link[rel="shortcut icon"]').attr("href",a+"/dist/images/favicon.ico"),$("#main_table").wrap("<div class='table-responsive'></div>"),$("#main_table").addClass("table"),$("p").each(function(e){if(/Display/.test($(this).text())||/Overall/.test($(this).text()))$("main").append("<p>"+$(this).html()+"</p>"),$(this).remove();else if(/Powered by/.test($(this).text())){var a=$(this).html(),t="Running on"+a.slice(13,77)+'& <a href="https://air66design.com/" title="Air 66 Design Ltd" target="_blank">Air 66 Design Ltd</a>'+a.slice(76);$(this).html(t)}}),$("#stat_tab_stats, #stat_tab_location, #stat_tab_sources, #stat_tab_share").wrapAll('<div class="tab-scroll"></div>'),$("#admin_menu_help_link").remove()});
|
||||
$(document).ready(function(){var a;a=$("meta[name=pluginURL]").attr("content")?$("meta[name=pluginURL]").attr("content"):"/user/plugins/air66theme",$("body").hasClass("login")&&$("#login").prepend('<img class="air66-logo" src="'+a+'/dist/images/a66-logo.svg" alt="Air 66 Design Ltd Logo">'),$("header[role=banner]").hide(),$("header[role=banner]").remove(),$("#admin_menu_help_link").remove(),$("#admin_menu").append('<li class="admin_menu_toplevel"><a href="https://air66design.com" target="_blank">Contact Air 66 Design</a></li>'),$("body").prepend($('<header class="site-header">').load(a+"/dist/html/header.php",function(){if($(".site-header").append('<div class="air66-logo-wrap"><a class="air66-logo-link" href="https://air66design.com" target="_blank"><img class="air66-logo" src="'+a+'/dist/images/a66-logo-wh.svg" alt="Air 66 Design Ltd Logo"></a></div>'),$("body").prepend('<div class="nav-overlay"></div>'),$("#menu-icon").click(function(){$(this).toggleClass("open"),$("nav, .nav-overlay").toggleClass("nav-open")}),$("body").hasClass("index")){$("#new_url").hide();var e=$("#nonce-add").val();$("#new_url").remove(),$(".index").prepend($('<div class="form-wrap">').load(a+"/dist/html/form.php",function(){$("#nonce-add").val(e)}))}})),$('link[rel="shortcut icon"]').attr("href",a+"/dist/images/favicon.ico"),$("#main_table").wrap("<div class='table-responsive'></div>"),$("#main_table").addClass("table"),$("p").each(function(e){if(/Display/.test($(this).text())||/Overall/.test($(this).text()))$("main").append("<p>"+$(this).html()+"</p>"),$(this).remove();else if(/Powered by/.test($(this).text())){var a=$(this).html(),t="Running on "+a.slice(13,77)+' & <a href="https://air66design.com/" title="Air 66 Design Ltd" target="_blank">Air 66 Design Ltd</a>'+a.slice(77);$(this).html(t)}}),$("#stat_tab_stats, #stat_tab_location, #stat_tab_sources, #stat_tab_share").wrapAll('<div class="tab-scroll"></div>'),$("#admin_menu_help_link").remove()});
|
||||
Reference in New Issue
Block a user