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
| foo | |
| bar | |
| baz | |
| qux | |
| quux |
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
| <figure> | |
| <img src="img src" alt="alt attribute"> | |
| <figcaption>image caption</figcaption> | |
| </figure> |
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 | |
| $args = array( | |
| 'search-form', | |
| 'comment-form', | |
| 'comment-list', | |
| 'gallery', | |
| 'caption', | |
| 'widgets' | |
| ); | |
| add_theme_support( 'html5', $args ); |
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
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.php [L] | |
| </IfModule> | |
| # END WordPress |
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
| RewriteBase / | |
| RewriteRule ^login$ wp-login.php |
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 <?php if your functions.php file alread has it. | |
| add_filter('site_url', 'wplogin_filter', 10, 3); | |
| function wplogin_filter( $url, $path, $orig_scheme ) { | |
| $old = array( "/(wp-login.php)/"); | |
| $new = array( "login"); | |
| return preg_replace( $old, $new, $url, 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
| <?php | |
| class ET_Builder_Module_Portfolio extends ET_Builder_Module { | |
| function init() { | |
| $this->name = __( 'Portfolio', 'et_builder' ); | |
| $this->slug = 'et_pb_portfolio'; | |
| $this->whitelisted_fields = array( | |
| 'fullwidth', | |
| 'posts_number', | |
| 'include_categories', |
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 | |
| /* Custom portfolio with custom url for each portfolio item */ | |
| class WPC_ET_Builder_Module_Portfolio extends ET_Builder_Module { | |
| function init() { | |
| $this->name = __( 'Portfolio', 'et_builder' ); | |
| $this->slug = 'et_pb_portfolio'; | |
| $this->whitelisted_fields = array( | |
| 'fullwidth', | |
| 'posts_number', |
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 <?php of your functions.php already has it */ | |
| function divi_child_theme_setup() { | |
| if ( class_exists('ET_Builder_Module')) { | |
| get_template_part( 'custom-modules/cpm' ); | |
| $cpm = new WPC_ET_Builder_Module_Portfolio(); | |
| remove_shortcode( 'et_pb_portfolio' ); | |
| add_shortcode( 'et_pb_portfolio', array($cpm, '_shortcode_callback') ); |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>scope</key> | |
| <string>source.css meta.selector</string> | |
| <key>settings</key> | |
| <dict> | |
| <key>cancelCompletion</key> | |
| <string>.*</string> |