View gist:5ba4e208c4ac6a279a0e4ba152213900
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
http://localhost:3000/api/v1/sections/ | |
// -> state: down | |
// -> ✅ permissions: included (for sections) | |
http://localhost:3000/api/v1/sections/section1 | |
// -> state: running (but some sections missing) | |
// -> ✅ permissions: included (for sections) | |
http://localhost:3000/api/v1/sections/section1/?getUnits=true | |
// -> ✅ state: running | |
// -> ✅ permissions: included (for units) | |
// -> ✅ blocks: included |
View permissions
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
display.user OR display.progress | |
// if not: not visible | |
access.user | |
// if not: you must buy this | |
access.progress | |
// if not: you must learn more | |
View script.js
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
<script> | |
//Button Code: <button class="plutio-open-chat">Open Chat</div> | |
//Find all Chat Buttons on the Page | |
var plutioChatButtons = document.querySelectorAll('.plutio-open-chat'); | |
//Trigger Open-Chat when one of them is clicked | |
for (var i = 0; i < plutioChatButtons.length; i++) { | |
plutioChatButtons[i].addEventListener('click', function() { | |
event.preventDefault(); | |
$plutio_msg.open(); |
View .gitignore
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
# ignore everything in the root except the "wp-content" directory. | |
!wp-content/ | |
# ignore everything in the "wp-content" directory, except: | |
# "mu-plugins", "plugins", "themes" directory | |
wp-content/* | |
!wp-content/mu-plugins/ | |
!wp-content/plugins/ | |
!wp-content/themes/ |
View gist:4689d01ed5fcac1bac4279bde746c7fe
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 | |
/** | |
* | |
* Shortcode: JetEngine no image fallback | |
* | |
*/ | |
function jetengine_img_handler( $atts, $content = null ) { | |
extract(shortcode_atts(array( | |
'src' => '' | |
), $atts)); |
View functions.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 | |
/** | |
* BP-Default theme functions and definitions | |
* | |
* Sets up the theme and provides some helper functions. Some helper functions | |
* are used in the theme as custom template tags. Others are attached to action and | |
* filter hooks in WordPress and BuddyPress to change core functionality. | |
* | |
* The first function, bp_dtheme_setup(), sets up the theme by registering support | |
* for various features in WordPress, such as post thumbnails and navigation menus, and |
View comments.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 | |
if ( post_password_required() ) { | |
echo '<h3 class="comments-header">' . __( 'Password Protected', 'buddypress' ) . '</h3>'; | |
echo '<p class="alert password-protected">' . __( 'Enter the password to view comments.', 'buddypress' ) . '</p>'; | |
return; | |
} | |
if ( is_page() && !have_comments() && !comments_open() && !pings_open() ) | |
return; |
View comment-template.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 | |
/** | |
* Comment template functions | |
* | |
* These functions are meant to live inside of the WordPress loop. | |
* | |
* @package WordPress | |
* @subpackage Template | |
*/ |
View functions.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 | |
/** | |
* BP-Default theme functions and definitions | |
* | |
* Sets up the theme and provides some helper functions. Some helper functions | |
* are used in the theme as custom template tags. Others are attached to action and | |
* filter hooks in WordPress and BuddyPress to change core functionality. | |
* | |
* The first function, bp_dtheme_setup(), sets up the theme by registering support | |
* for various features in WordPress, such as post thumbnails and navigation menus, and |