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 | |
| // reference | |
| // https://www.youtube.com/feed/storefront | |
| function custom_swiper_slider_shortcode() { | |
| ob_start(); | |
| // Fetch posts from the 'giveawayslider' custom post type | |
| $args = [ |
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 | |
| /* Litigation Filters */ | |
| function multi_filter_litigation_cases_shortcode($atts) { | |
| // Get filter values from URL parameters or defaults | |
| $state = isset($_GET['state']) ? sanitize_text_field($_GET['state']) : ''; | |
| $issue = isset($_GET['issue']) ? sanitize_text_field($_GET['issue']) : ''; | |
| $case_status = isset($_GET['case_status']) ? sanitize_text_field($_GET['case_status']) : ''; |
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
| /* Ticker */ | |
| @-webkit-keyframes ticker { | |
| 0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); visibility: visible; } | |
| 100% { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } | |
| } | |
| @keyframes ticker { | |
| 0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); visibility: visible; } | |
| 100% { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } | |
| } |
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 | |
| /**/ | |
| /** | |
| * Adding Checkbox and Price Field in Product Admin Panel | |
| */ | |
| function custom_add_envelope_checkbox_and_price() { | |
| echo '<div class="custom-envelop-checkbox">'; | |
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
| <label id="toggle_mode" class="switch" for="checkbox"> | |
| <input type="checkbox" id="checkbox" /> | |
| <div class="slider round"></div> | |
| <span class="mode_text">Light Mode</span> <!-- Default text --> | |
| </label> | |
| <style> | |
| html, body { | |
| overflow-x: hidden; | |
| transition: background-color 0.3s, color 0.3s; /* Smooth transition */ |
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
| <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | |
| <script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | |
| <script src="https://leafletjs.com/examples/choropleth/us-states.js"></script> | |
| <script> | |
| document.addEventListener("DOMContentLoaded", function() { | |
| var map = L.map('map', { | |
| center: [37.8, -96], | |
| zoom: 5, | |
| minZoom: 5, |
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
| <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | |
| <script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | |
| <script src="https://leafletjs.com/examples/choropleth/us-states.js"></script> | |
| <script> | |
| document.addEventListener("DOMContentLoaded", function() { | |
| var map = L.map('map', { | |
| center: [37.8, -96], | |
| zoom: 5, | |
| minZoom: 5, |
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
| <script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | |
| <script src="https://leafletjs.com/examples/choropleth/us-states.js"></script> <!-- US States GeoJSON --> | |
| <script src="https://unpkg.com/leaflet-ajax/dist/leaflet.ajax.min.js"></script> <!-- For loading external GeoJSON --> | |
| <script> | |
| document.addEventListener("DOMContentLoaded", function() { | |
| var map = L.map('map', { | |
| center: [37.8, -96], | |
| zoom: 5, | |
| minZoom: 5, |
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; |