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 | |
| add_action('elementor_pro/search/before_input', function ($module) { | |
| $module->remove_render_attribute('widget_props', 'name'); | |
| $module->remove_render_attribute('widget_props', 'value'); | |
| }); |
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
| jQuery( document ).ready(function($) { | |
| jQuery(window).scroll(function($){ | |
| if ($(this).scrollTop() > 80) { | |
| $('header.elementor-section').addClass('StickyHeader'); | |
| } else { | |
| $('header.elementor-section').removeClass('StickyHeader'); | |
| } | |
| }); | |
| }); |
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 | |
| // http://lifeonlars.com/wordpress/how-to-add-multiple-featured-images-in-wordpress/ | |
| // https://wp-qa.com/how-to-add-multiple-featured-image-upload-button-without-plugin-for-wordpress | |
| // add these code in functions.php after add_theme_support( 'post-thumbnails' ); | |
| add_theme_support( 'post-thumbnails' ); | |
| add_image_size( 'case-image', 1371, 893, true ); | |
| add_image_size( 'ipad-image', 2383, 1867, true ); | |
| add_image_size( 'feature-image', 960, 500, true ); |
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 | |
| //Add image field in taxonomy page | |
| add_action( 'our_portfolio_category_add_form_fields', 'add_custom_taxonomy_image', 10, 2 ); | |
| function add_custom_taxonomy_image ( $taxonomy ) { | |
| ?> | |
| <div class="form-field term-group"> | |
| <label for="image_id"><?php _e('Image', 'taxt-domain'); ?></label> | |
| <input type="hidden" id="image_id" name="image_id" class="custom_media_url" value=""> |
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
| jQuery( document ).ready(function($) { | |
| var sections = $('.animateiT'), | |
| nav = $('.jump-left'), | |
| nav_height = nav.outerHeight(); | |
| $(window).on('scroll', function() { | |
| var cur_pos = $(this).scrollTop(); | |
| sections.each(function() { | |
| var top = $(this).offset().top - 300; | |
| var bottom = top + $(this).outerHeight(); | |
| if (cur_pos >= top && cur_pos <= bottom) { |
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 | |
| // Website 1 | |
| /* API for Post Sync */ | |
| function send_post_to_campus($post_id) { | |
| if (wp_is_post_revision($post_id)) { | |
| error_log('Skipping post revision ID: ' . $post_id); | |
| return; |
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 | |
| <?php | |
| /* Register CPT */ | |
| function cwptheme_post_type() { | |
| $post_types_arr = array( 'Slider', 'Work', 'Staff', 'Map', 'Careers', 'Media', 'Events', 'Litigation', 'Advocacy', 'Guides' ); | |
| foreach( $post_types_arr as $post_type_a){ | |
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 | |
| function cs_footer() { ?> | |
| <script> | |
| jQuery(function($){ | |
| $(document).on('click','.elementor-location-popup a', function(event){ | |
| elementorProFrontend.modules.popup.closePopup( {}, event); | |
| }); | |
| }); | |
| </script> |
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
| -- skills_assessment_schema.sql | |
| -- Use the database | |
| --CREATE DATABASE IF NOT EXISTS skills_assessment; | |
| --USE skills_assessment; | |
| -- Table for storing local user information | |
| CREATE TABLE IF NOT EXISTS users ( | |
| id INT AUTO_INCREMENT PRIMARY KEY, | |
| idUserInstitution VARCHAR(255) UNIQUE, -- Assuming this is unique per institution | |
| idUser VARCHAR(255) UNIQUE, -- Assuming this is globally unique |
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 | |
| // process_opportunity.php (or your chosen script name for this specific workflow) | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); // Use E_ALL for comprehensive error reporting | |
| // Adjust paths as necessary based on your project structure | |
| require_once __DIR__ . '/../vendor/autoload.php'; | |
| require_once './ApiClient/BaseApiClient.php'; |