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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
concat: { | |
options: { | |
separator: '', | |
}, | |
dist: { | |
src: ['../scripts/*.functions.js'], | |
dest: '../js/application.js', | |
}, |
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
<?php | |
class Feasts extends Plugins | |
{ | |
public function action_init() { | |
DB::register_table( 'saints' ); | |
self::setup_db(); | |
} | |
/** | |
* setup_db function. |
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
public function action_init() { | |
DB::register_table( 'activity' ); | |
} | |
public function action_plugin_activation( $file ) { | |
$q = "CREATE TABLE " . DB::table('activity') . " ( | |
id int(11) unsigned NOT NULL AUTO_INCREMENT, | |
user_id int(11) DEFAULT NULL, | |
owner_id int(11) DEFAULT NULL, | |
company_id int(11) DEFAULT NULL, |
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
.chatbox { | |
position: fixed; | |
position:expression("absolute"); | |
width: 300px; | |
display:none; | |
} | |
.chatbox .head { | |
background-color: #2c2c2c; | |
background-image: -moz-linear-gradient(top, #333333, #222222); |
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
<?php | |
class Conversations extends Plugin | |
{ | |
public function action_init() { | |
DB::register_table( 'quickchats' ); | |
DB::register_table( 'quickchat_lines' ); | |
} | |
public function action_plugin_activation() { | |
Post::add_new_type( 'quickchat' ); |
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
<div id="chatbox_1" data-box="1" class="chatbox"> | |
<div class="head"> | |
<div class="title"> | |
<img src="http://website.com/images/john-q-public.png"><strong>John Q. Public</strong> | |
</div> | |
<div class="options"> | |
<a class="minimize" href="#minimize">-</a> | |
<a class="remove" href="#close">x</a> | |
</div> | |
<br clear="all"> |
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
<?php | |
/** | |
* Quickchats Class | |
* | |
*/ | |
class Quickchats extends Posts | |
{ | |
public static function get($paramarray = array()) { | |
$defaults = array( | |
'content_type' => 'quickchat', |
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
<?php | |
class Quickchat extends Post | |
{ | |
public static function get($paramarray = array()) { | |
$defaults = array( | |
'content_type' => 'quickchat', | |
'fetch_fn' => 'get_row', | |
'limit' => 1, | |
'fetch_class' => 'Quickchat', | |
); |
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
<?php | |
class GooglePrettify extends Plugin { | |
public function action_template_header() { | |
Stack::add( 'template_header_javascript', array( $this->get_url() . '/google-code-prettify/prettify.js', 'prettify-js') ); | |
Stack::add( 'template_stylesheet', array( $this->get_url() . '/google-code-prettify/prettify.css', 'screen' ), 'prettify-css'); | |
} | |
} | |
?> |
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
<?php | |
class Conversations extends Plugin | |
{ | |
const APP_ID = 'YOUR_APP_ID'; | |
const API_KEY = 'YOUR API_KEY'; | |
const API_SECRET = 'YOUR_API_SEKRET'; | |
public function action_init() { | |
DB::register_table( 'quickchats' ); | |
DB::register_table( 'quickchat_lines' ); |
OlderNewer