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 copy the first line (above) if your functions.php already has it. | |
| * ---------------------------------------------------------------------- */ | |
| function my_et_theme_setup() { | |
| if ( class_exists( 'ET_Builder_Module_Fullwidth_Portfolio' ) && file_exists( 'my-main-modules.php' ) ) { | |
| get_template_part( 'my-main-modules' ); | |
| $et_pb_fullwidth_portfolio = new My_ET_Builder_Module_Fullwidth_Portfolio(); | |
| remove_shortcode('et_pb_fullwidth_portfolio'); | |
| add_shortcode('et_pb_fullwidth_portfolio', array( $et_pb_fullwidth_portfolio, '_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
| #!/bin/sh | |
| # Darkify Slack on Mac OS or Linux. | |
| # curl https://gist.githubusercontent.com/ryanpcmcquen/8a7ddc72460eca0dc1f2dc389674dde1/raw/darkify_slack.sh | sh | |
| if [ "`uname -s`" = "Darwin" ]; then | |
| SLACK_INTEROP_JS="/Applications/Slack.app/Contents/Resources/app.asar.unpacked/dist/ssb-interop.bundle.js" | |
| else | |
| SLACK_INTEROP_JS="/usr/lib/slack/resources/app.asar.unpacked/dist/ssb-interop.bundle.js" | |
| fi |
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 | |
| /** | |
| * Translate post-type-archive-slug when different from post-type-slug. | |
| * | |
| * You can have your archive slug set to, for example /books and the singles on /book/title by setting | |
| * $args['rewrite'] => [ 'slug' => 'book', ... ]; | |
| * $args['has_archive'] => 'books'; | |
| * when registering your post_type | |
| * |
OlderNewer