Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenzie committed Apr 5, 2016
1 parent 481dfa4 commit b29ccc6
Show file tree
Hide file tree
Showing 5 changed files with 415 additions and 0 deletions.
23 changes: 23 additions & 0 deletions package-info.xml
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>
3 changes: 3 additions & 0 deletions quickQuote.english.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

$txt['quick_quote'] = 'Quick quote';
20 changes: 20 additions & 0 deletions quickQuote.hooks.php
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');
}
Loading

0 comments on commit b29ccc6

Please sign in to comment.