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
| Options -Indexes |
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
| AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript | |
| BrowserMatch ^Mozilla/4 gzip-only-text/html | |
| BrowserMatch ^Mozilla/4.0[678] no-gzip | |
| BrowserMatch bMSIE !no-gzip !gzip-only-text/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
| <FilesMatch "\.(htm|html|css|js)$"> | |
| AddDefaultCharset UTF-8 | |
| </FilesMatch> |
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("gform_field_input", "ih_gform_field_input", 10, 5); | |
| function ih_gform_field_input($input, $field, $value, $lead_id, $form_id){ | |
| //wp_debug($field); | |
| if($field["type"] == "vehicleyear"){ | |
| //wp_debug($field['choices']); | |
| //$input = 'Aha!'; | |
| } | |
| return $input; | |
| } |
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
| <widget:div id="element_id" class="widget-html">Default text</widget:div> |
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> | |
| $(".create, #create-link").click(function() { | |
| $(".step-wrapper .col").removeClass('selected'); $(".create").addClass('selected'); | |
| $(".details, #hiw-intro").hide(); $("#hiw-create").show(); | |
| $('html, body').animate({scrollTop: 300}, 200); | |
| return false; | |
| }); | |
| $(".share, #share-link").click(function() { | |
| $(".step-wrapper .col").removeClass('selected'); $(".share").addClass('selected'); | |
| $(".details, #hiw-intro").hide(); $("#hiw-share").show(); |
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 | |
| if (!function_exists('pp')) { | |
| function pp($obj) { | |
| $data = json_encode(print_r($obj,true)); | |
| ?> | |
| <script type="text/javascript"> | |
| var obj = <?php echo $data; ?>; | |
| var logger = document.getElementById('bsdLogger'); | |
| if (!logger) { | |
| logger = document.createElement('div'); |
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 | |
| funcion get_years(){ | |
| $results = $wpdb->query("SELECT DISTINCT YEAR(meta_value) as year FROM wp_postmeta WHERE meta_key = 'release_date'"); | |
| echo '<select>'; | |
| foreach($results as $result){ | |
| echo '<option>'.$result->year.'</option>'; | |
| } | |
| echo '</select>'; | |
| } |
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 a custom field to the field editor (See editor screenshot) | |
| */ | |
| add_action("gform_field_standard_settings", "my_standard_settings", 10, 2); | |
| function my_standard_settings($position, $form_id){ | |
| // Create settings on position 25 (right after Field Label) | |
| if($position == 25){ | |
| ?> | |
| <li class="admin_label_setting field_setting" style="display: list-item; "> |
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
| render: function(template, payload) { | |
| var cooq = this; | |
| cooq.add_template_helper_vars(payload, { "user": cooq.this_user }); | |
| return ich[template](payload); | |
| } |