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
| /* localize script */ | |
| wp_enqueue_script( 'settings', get_template_directory_uri() . '/js/settings.js', array('jquery'), OO_Version, true ); | |
| wp_localize_script( 'settings', 'localized', array( | |
| 'ajaxurl' => admin_url( 'admin-ajax.php' ) | |
| )); | |
| /* setting.js */ | |
| jQuery(function($){ |
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
| /**************************************************************** | |
| Project: MySavingWallet | |
| Resource: http://www.ibenic.com/wordpress-file-upload-with-ajax/ | |
| HTML FORM | |
| *****************************************************************/ | |
| <dt><?php esc_html_e( 'Support Doc', 'listify_child' ); ?></dt> | |
| <dd> | |
| <section> |
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 youtube video ID from URL | |
| * http://stackoverflow.com/questions/6556559/youtube-api-extract-video-id | |
| * @param string $url | |
| * @return string Youtube video id or FALSE if none found. | |
| */ | |
| function youtube_id_from_url($url) { | |
| $pattern = | |
| '%^# Match any youtube URL | |
| (?:https?://)? # Optional scheme. Either http or https |
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
| /** | |
| * Add custom SimpleLine icons | |
| * | |
| * @param $icons - taken from filter - vc_map param field settings['source'] | |
| * provided icons (default empty array). If array categorized it will | |
| * auto-enable category dropdown | |
| * | |
| * @since 1.0 | |
| * @return array - of icons for iconpicker, can be categorized, or not. | |
| */ |
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
| function mainSlider() { | |
| var BasicSlider = $('.slider-active'); | |
| BasicSlider.on('init', function(e, slick) { | |
| var $firstAnimatingElements = $('.single-slider:first-child').find('[data-animation]'); | |
| doAnimations($firstAnimatingElements); | |
| }); | |
| BasicSlider.on('beforeChange', function(e, slick, currentSlide, nextSlide) { | |
| var $animatingElements = $('.single-slider[data-slick-index="' + nextSlide + '"]').find('[data-animation]'); | |
| doAnimations($animatingElements); | |
| }); |
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
| { | |
| "fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-archive","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-audio-description","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars", |
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 | |
| /** | |
| * start the customisation | |
| */ | |
| function custom_woo_before_shop_link() { | |
| add_filter('woocommerce_loop_add_to_cart_link', 'custom_woo_loop_add_to_cart_link', 10, 2); | |
| add_action('woocommerce_after_shop_loop', 'custom_woo_after_shop_loop'); | |
| } | |
| add_action('woocommerce_before_shop_loop', 'custom_woo_before_shop_link'); |
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
| /* | |
| Add the following to your theme's functions.php file | |
| In this case, I wanted to add a background image outside of the normal controls | |
| so I could darken it by a % using linear gradients. | |
| I added 2 fields to vc_column_inner: | |
| */ | |
| // The background image | |
| vc_add_param("vc_column_inner", array( |
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 custom tax loop --> | |
| <ul class="accordion" data-accordion> | |
| <?php | |
| //Retrieve custom taxonomy terms using get_terms and the custom post type. | |
| $categories = get_terms('state'); | |
| //Iterate through each term | |
| foreach ( $categories as $category ) : | |
| ?> |
NewerOlder