View q2am-check-if-class-exists.php
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 | |
/* | |
* These functions will goes to your qa-plugin.php | |
*/ | |
//registering plugin stuffs | |
qa_register_plugin_layer('q2am-item-output.php', 'Q2AM Item Layer'); | |
qa_register_plugin_module('page', 'q2am-item-page.php', 'q2am_item_page', 'Q2AM Item Page'); | |
qa_register_plugin_module('module', 'q2am-item-admin.php', 'q2am_item_admin', 'Q2AM Item Settings'); | |
qa_register_plugin_phrases('q2am-Item-lang.php', 'q2am_item_lang'); |
View body-class-custom-add.php
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 | |
/* | |
* hook: page name as a body class | |
* | |
* hook by: Q2A Market | |
* author: Jatin Soni | |
* url: http://www.q2amarket.com | |
* version: 1.00 | |
* | |
* Description: |
View q2am-add-readmore-to-question-view.php
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
<? | |
/* | |
* hook: Add read more link to the question view q-content | |
* | |
* hook by: Q2A Market | |
* author: Jatin Soni | |
* url: http://www.q2amarket.com | |
* version: 1.00 | |
* | |
* Description: |
View qa_list_q_thumb.php
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 | |
/** | |
* Add first image to the question list | |
* | |
* Declearation | |
* Base code is taken from Mouseover Layer plugin | |
* | |
* Than I have extracted content using preg_match_all to get first image | |
* and assing that to the q_list | |
* |
View output_split.php
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 | |
/** | |
* The hook allows to remove + sing from upvote count | |
* | |
* How to use it: | |
* Nothing complicated, just place 'output_split' method into your theme file or plugin layer and done. | |
* | |
* Important: | |
* Make sure your theme should not have this function already. If there is than add this code |
View q2am-block-category.php
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 | |
/* | |
* Q2A Market Block Category Content for Loggedin user | |
* | |
* | |
* @author Q2A Market | |
* @category Hook | |
* @Version: 1.00 | |
* @author URL: http://www.q2amarket.com | |
* |
View q2am-hook-hide-meta-who.php
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 | |
/* | |
* hook: hide meta who from questions | |
* | |
* hook by: Q2A Market | |
* author: Jatin Soni | |
* url: http://www.q2amarket.com | |
* | |
* usage: | |
* Place below code into your theme or plugin layer |
View q2am-hook-hide-meta-who-mod.php
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 | |
/* | |
* hook: hide meta who | |
* | |
* hook by: Q2A Market | |
* author: Jatin Soni | |
* url: http://www.q2amarket.com | |
* version: 1.01 | |
* | |
* Description: |
View q2am-block-direct-access.php
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 | |
/* | |
* hook: 404 for non visible menu | |
* | |
* hook by: Q2A Market | |
* hook type: core | |
* author: Jatin Soni | |
* url: http://www.q2amarket.com | |
* version: 1.00 | |
* |
View q2amarket-plugin-path-and-url.php
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 | |
/** | |
* To set pluign path I used below | |
* | |
* Since my core class is in sub-directory of plugin, I had to point upward to get root directory | |
*/ | |
define( 'Q2AM_DIR', q2am_trailingslash_dir( realpath( __DIR__ . '/../..' ) ) ); | |
/* |
OlderNewer