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
//--------------------- Copyright Block ---------------------- | |
/* | |
PrayTimes.js: Prayer Times Calculator (ver 2.3) | |
Copyright (C) 2007-2011 PrayTimes.org | |
Developer: Hamid Zarrabi-Zadeh | |
License: GNU LGPL v3.0 | |
TERMS OF USE: |
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
function ld_display_course_categories ($atts) { | |
$terms = get_the_terms( get_the_ID() , 'ld_course_category' ); | |
if (!$terms) { | |
// No terms, so just quit. | |
return false; | |
} | |
$categories= ""; | |
foreach ( $terms as $term ) { |
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
/* | |
* Temporary function to hide the license key entered for LearnDash LMS | |
* Add the below to your child theme's functions.php file or as a code snippet using a third party plugin such as: https://en-ca.wordpress.org/plugins/code-snippets/ | |
*/ | |
function ld_hide_license_key() { | |
echo '"<script type="text/javascript">jQuery( "#nss_plugin_license_sfwd_lms" ).val( "**********" );</script>"'; | |
} | |
add_action('admin_footer', 'ld_hide_license_key'); |
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
/* | |
* Custom CSS | |
* Added by: LearnDash Customer Support | |
* | |
*/ | |
/* Remove points */ | |
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat:last-child { | |
display: none; | |
} |
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
function custom_orderby( $query_args ) { | |
$query_args[ 'orderby' ] = 'title'; | |
$query_args[ 'order' ] = 'ASC'; | |
return $query_args; | |
} | |
add_filter( 'job_manager_get_listings_args', 'custom_orderby', 99 ); | |
function custom_orderby_cache( $query_args ) { | |
$query_args[ 'cache-bust' ] = time(); |
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
function custom_menu_item_name () { | |
$current_user = wp_get_current_user(); | |
return $current_user->user_login; | |
} | |
add_filter( 'listify_acount_menu_user_label', custom_menu_item_name, 99 ); |
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
#jmfe_widget-2 > h1:before { /* Replace the ID (jmfe_widget-2) with the widget ID from Step 1 */ | |
content: '\f35b'; /* replace the content here with the icon you would like to use.*/ | |
display: inline-block; | |
font-family: Ionicons; | |
speak: none; | |
font-style: normal; | |
font-weight: 400; | |
font-variant: normal; | |
text-transform: none; | |
text-rendering: auto; |
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
function listify_custom_autolocation() { | |
if ( ! ( is_front_page() ) ) { | |
return; | |
} | |
?> | |
<script> | |
jQuery(document).ready(function() { | |
var locate = jQuery( '.locate-me' ); | |
locate.trigger( 'click' ); | |
}); |
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 | |
/** | |
* Displays a quiz. | |
* | |
* Available Variables: | |
* | |
* $course_id : (int) ID of the course | |
* $course : (object) Post object of the course | |
* $course_settings : (array) Settings specific to current course | |
* $course_status : Course Status |
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 | |
/** | |
* Displays a user's profile. | |
* | |
* Available Variables: | |
* | |
* $user_id : Current User ID | |
* $current_user : (object) Currently logged in user object | |
* $user_courses : Array of course ID's of the current user | |
* $quiz_attempts : Array of quiz attempts of the current user |
NewerOlder