Skip to content

Commit

Permalink
adjust javascript insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
joshp23 committed Jan 5, 2018
1 parent 8727095 commit ea171ea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions title-refetch/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Title Refetch
Plugin URI: https://github.com/joshp23/YOURLS-title-refetch
Description: Refetch poorly defined titles
Version: 1.2.1
Version: 1.2.2
Author: Josh Panter
Author URI: https://unfettered.net
*/
Expand Down Expand Up @@ -73,8 +73,10 @@ function title_refetch_css( $context ) {
foreach($context as $k):
// If we are on the index page, use this css code for the button
if( $k == 'index' ):
echo "<script src=\"". yourls_plugin_url( dirname( __FILE__ ) ). "/assets/refetch.js\" type=\"text/javascript\"></script>" ;
echo "<link rel=\"stylesheet\" href=\"". yourls_plugin_url( dirname( __FILE__ ) ) . "/assets/refetch.css\" type=\"text/css\" />";
echo "\n<! --------------------------Title Refetch Start-------------------------- >\n";
echo "<script src=\"". yourls_plugin_url( dirname( __FILE__ ) ). "/assets/refetch.js\" type=\"text/javascript\"></script>\n" ;
echo "<link rel=\"stylesheet\" href=\"". yourls_plugin_url( dirname( __FILE__ ) ) . "/assets/refetch.css\" type=\"text/css\" />\n";
echo "\n<! --------------------------Title Refetch End---------------------------- >\n";
endif;
endforeach;
}
Expand Down

0 comments on commit ea171ea

Please sign in to comment.