This file contains hidden or 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 | |
| namespace CLToolkit; | |
| use CLToolkit\Traits\Singleton; | |
| use DateTime; | |
| use DateTimeZone; | |
| use Exception; | |
| class Shortcodes { |
This file contains hidden or 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 Events Calendar customizations | |
| * | |
| * @package CauseLabsToolkit | |
| */ | |
| namespace CLToolkit\Integrations; | |
| use CLToolkit\Traits\Singleton; |
This file contains hidden or 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
| /** | |
| * Replace FacetWP default HTML output for "Checkboxes" with Bootstrap custom checkbox markup | |
| * | |
| * @param $output | |
| * @param $params | |
| * | |
| * @return string | |
| */ | |
| add_filter( 'facetwp_facet_html', function( $output, $params ) { | |
| if ( 'checkboxes' !== $params['facet']['type'] ) { |
This file contains hidden or 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
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/MikeGillihan/9bd7610afd4b594d31ee12b81ac88687/raw/.gitignore | |
| # to download this file | |
| # | |
| # By default all files are ignored. You must whitelist any | |
| # mu-plugins, plugins, or themes you want to include in the repo. | |
| # |
This file contains hidden or 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
| ... | |
| /** | |
| * Get all GiveWP donation forms | |
| * | |
| * @return array List of GiveWP forms | |
| */ | |
| public function list_forms() { | |
| $list = array( '' => __( 'Select a Form', GoodModules::$text_domain ) ); | |
| $forms = get_posts( array( |
This file contains hidden or 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
| {"lastUpload":"2019-11-08T23:07:53.840Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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
| # Stop syncing a node_modules directory (via symlink) | |
| noicloud() { | |
| mv node_modules node_modules.nosync | |
| ln -s node_modules.nosync/ node_modules | |
| } | |
| alias nocloud=noicloud |
This file contains hidden or 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
| add_filter( 'heart_this_hearts', 'custom_heart_this_hearts' ); | |
| /** | |
| * Filter the output of the HeartThis for the front page | |
| * | |
| * @param $output | |
| * @param bool $post_id | |
| * | |
| * @return string | |
| */ | |
| function custom_heart_this_hearts( $output, $post_id = false ) { |
This file contains hidden or 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
| function asanaRequest($methodPath, $httpMethod = 'GET', $body = null) | |
| { | |
| $apiKey = 'ASANA_API_KEY_HERE'; /// Get it from http://app.asana.com/-/account_api | |
| $url = "https://app.asana.com/api/1.0/$methodPath"; | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ; | |
| curl_setopt($ch, CURLOPT_USERPWD, $apiKey); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
This file contains hidden or 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
| { | |
| "bold_folder_labels": true, | |
| "caret_extra_bottom": 3, | |
| "caret_extra_top": 3, | |
| "caret_extra_width": 2, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
| "fade_fold_buttons": false, | |
| "font_face": "Source Code Pro", | |
| "font_options": |
NewerOlder