-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
415 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE package-info SYSTEM "http://www.elkarte.net/site/package-info"> | ||
<package-info xmlns="http://www.elkarte.net/site/package-info" xmlns:elk="http://www.elkarte.net/"> | ||
<id>Frenzie:quick_quote</id> | ||
<name>Quick Quote</name> | ||
<version>0.1</version> | ||
<type>addon</type> | ||
<install for="1.0 - 1.0.99"> | ||
<readme parsebbc="true">readme.txt</readme> | ||
<license type="inline">This ElkArte addon is released under a BSD license</license> | ||
<require-file name="quickQuote.hooks.php" destination="SUBSDIR">Integration hooks</require-file> | ||
<require-file name="quickQuote.js" destination="THEMEDIR/scripts">The workhorse</require-file> | ||
<require-file name="quickQuote.english.php" destination="LANGUAGEDIR/english">English language strings</require-file> | ||
<hook hook="integrate_load_theme" file="SUBSDIR/quickQuote.hooks.php" function="QQ_integrate_load_theme" /> | ||
</install> | ||
|
||
<uninstall for="1.0 - 1.0.99"> | ||
<hook reverse="true" hook="integrate_load_theme" file="SUBSDIR/quickQuote.hooks.php" function="QQ_integrate_load_theme" /> | ||
<remove-file name="SUBSDIR/quickQuote.hooks.php" /> | ||
<remove-file name="THEMEDIR/scripts/quickQuote.js" /> | ||
<remove-file name="LANGUAGEDIR/english/quickQuote.english.php" /> | ||
</uninstall> | ||
</package-info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
$txt['quick_quote'] = 'Quick quote'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
/** | ||
* @package Quick quote | ||
* @author Frenzie | ||
* @license BSD | ||
*/ | ||
|
||
if (!defined('ELK')) | ||
die('No access...'); | ||
|
||
function QQ_integrate_load_theme() | ||
{ | ||
global $txt, $modSettings; | ||
|
||
addInlineJavascript(' | ||
quickQuote.txt = ' . $txt['quick_quote'] . ';', true); | ||
|
||
loadJavascriptFile('quickQuote.js'); | ||
} |
Oops, something went wrong.