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 | |
| //BUILD LOGIN | |
| function bpm_custom_login_shortcode( $atts, $content = null ) { | |
| if( ! is_user_logged_in() ) : | |
| $a = shortcode_atts( array( | |
| 'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], |
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
| // CSS | |
| div.select { | |
| position: relative; | |
| display: block; | |
| width: 100%; | |
| margin-bottom: 1rem; | |
| border: 1px solid lightgrey; | |
| border-radius: 10px; | |
| } |
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 detect_browser() { | |
| $arr_browsers = ["Opera", "Edge", "Chrome", "Safari", "Firefox", "MSIE", "Trident"]; | |
| $agent = $_SERVER['HTTP_USER_AGENT']; | |
| $user_browser = ''; | |
| foreach ($arr_browsers as $browser) { | |
| if (strpos($agent, $browser) !== false) { | |
| $user_browser = $browser; | |
| break; |
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 populate_csv( $entry, $form ) { | |
| /* remove some questions from the output via label filtering */ | |
| $exclusions = array( | |
| 'Field Name One', | |
| 'Field Name Two', | |
| 'Field Name Three', | |
| ); |
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 | |
| /* https://stackoverflow.com/questions/3488373/php-class-to-generate-html#answer-62349439 */ | |
| /** | |
| * HTML - Simplest html element builder | |
| * - @param1 Element name | |
| * - @param2 Class name | |
| * - @param3 ID | |
| * - @param2 Element content | |
| */ | |
| class HTML{ |
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 | |
| /* | |
| * | |
| * | |
| * | |
| * | |
| */ | |
| class Popup__Elm { | |
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 redirect_builder(){ | |
| // CLEAN UP TAGS | |
| // GATHER TAGS | |
| $product_tag = 'product_tag'; | |
| $tags = get_terms( array( | |
| 'taxonomy' => $product_tag, |
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 | |
| /* | |
| * | |
| * | |
| * | |
| * | |
| */ | |
| class Name__Class { |
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 | |
| /* Click_Hide_Admin_Toolbar | |
| * | |
| * | |
| */ | |
| class Click_Hide_Admin_Toolbar { |