Skip to content

Commit

Permalink
added and integrated minified version of thankyoulike.min.js #88
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven committed Oct 10, 2015
1 parent c0708f6 commit ab832ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/plugins/thankyoulike.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ function thankyoulike_activate()

require_once MYBB_ROOT."/inc/adminfunctions_templates.php";

find_replace_templatesets("showthread", "#".preg_quote('</head>')."#i", '<script type="text/javascript" src="{$mybb->settings[\'bburl\']}/jscripts/thankyoulike.js"></script>
find_replace_templatesets("showthread", "#".preg_quote('</head>')."#i", '<script type="text/javascript" src="{$mybb->settings[\'bburl\']}/jscripts/thankyoulike.min.js"></script>
<script type="text/javascript">
<!--
var tylEnabled = "{$mybb->settings[\'g33k_thankyoulike_enabled\']}";
Expand Down Expand Up @@ -555,7 +555,7 @@ function thankyoulike_deactivate()

require_once MYBB_ROOT."/inc/adminfunctions_templates.php";

find_replace_templatesets("showthread", "#".preg_quote('<script type="text/javascript" src="{$mybb->settings[\'bburl\']}/jscripts/thankyoulike.js"></script>
find_replace_templatesets("showthread", "#".preg_quote('<script type="text/javascript" src="{$mybb->settings[\'bburl\']}/jscripts/thankyoulike.min.js"></script>
<script type="text/javascript">
<!--
var tylEnabled = "{$mybb->settings[\'g33k_thankyoulike_enabled\']}";
Expand Down
1 change: 1 addition & 0 deletions jscripts/thankyoulike.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab832ce

Please sign in to comment.