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
| { | |
| // ECHO | |
| "PHP Echo Tag": { | |
| "prefix": "echo", | |
| "body": [ | |
| "<?php echo ${1:\\$var}; ?>" | |
| ], | |
| "description": "Expand \"echo\" into PHP echo block" | |
| }, | |
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 // This like is just for code highlighting purpose, don't copy it... | |
| /** | |
| * Insert link Inside Widget Title | |
| * | |
| * Author: Zeshan Ahmed | |
| * Author URI: https://zeshanahmed.com/ | |
| */ | |
| add_filter( 'dynamic_sidebar_params', 'update_dynamic_sidebar_params' ); | |
| function update_dynamic_sidebar_params( $params ) { |
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 // don't include this line. | |
| /** | |
| * Random Posts | |
| * @param integer $count describe how many random posts you would want to fetch. | |
| * @return string HTML of the returned posts. | |
| */ | |
| function za_random_related_posts( $count = 3 ) { | |
| global $global_exclude_post_ids; |
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 | |
| // SHOW YOAST PRIMARY CATEGORY, OR FIRST CATEGORY | |
| $category = get_the_category(); | |
| $useCatLink = true; | |
| // If post has a category assigned. | |
| if ($category){ | |
| $category_display = ''; | |
| $category_link = ''; | |
| if ( class_exists('WPSEO_Primary_Term') ) |
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
| A File Icon | |
| AdvancedNewFile | |
| Alignment | |
| All Autocomplete | |
| AutoFileName | |
| Autoprefixer | |
| Boxy Theme | |
| Boxy Theme Addon - Widget Font Size | |
| BracketHighlighter | |
| Color Highlighter |
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
| { | |
| // Goes inside Preference.sublime-settings -- User | |
| // | |
| // First "theme" line defines which Boxy theme you've selected | |
| // Rest of the lines are configuration of Boxy theme itself. | |
| // | |
| // Boxy theme full settings: https://github.com/ihodev/sublime-boxy/wiki/Settings#accent | |
| "theme": "Boxy Tomorrow.sublime-theme", | |
| "theme_accent_purple": true, | |
| "theme_bar": true, |
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
| <script> | |
| WebFontConfig = { | |
| google: { | |
| families: ['Montserrat:400,700', 'Open Sans:300,400,600,700', 'Roboto'] | |
| } | |
| }; | |
| (function(d) { | |
| var wf = d.createElement('script'), s = d.scripts[0]; | |
| wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js'; | |
| wf.async = true; |
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 | |
| // Change 'site_folder_name' with your valet site's name, e.g., gutenberg | |
| // Change '/root-folder' with the root folder you want to start | |
| // when you type e.g., gutenberg.dev | |
| class MyValetDriver extends ValetDriver | |
| { | |
| /** | |
| * Determine if the driver serves the request. | |
| * |
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 URL Parameter | |
| * | |
| * By: Zeshan Ahmed | |
| * URI: http://www.zeshanahmed.com/ | |
| * Source: stackoverflow (question unknown) | |
| * | |
| * This function is used to get the parameter from current URL or | |
| * the URL passed via second argument in the function. | |
| * |