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
| stages: | |
| - deploy_dev | |
| - deploy_staging | |
| - deploy_live | |
| before_script: | |
| - 'which ssh-agent || ( apk add --update openssh )' | |
| - apk add --update bash | |
| - apk add --update git | |
| - eval $(ssh-agent -s) |
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 | |
| /** | |
| * You can quick test with http://phptester.net/ | |
| **/ | |
| $account_number = '123123123'; | |
| $credit_card_number = '4242424242424242'; | |
| $account_length = strlen($account_number); | |
| $credit_card_length = strlen($credit_card_number); |
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 | |
| /* | |
| * Template Name: Your Template | |
| * Version: 1.0 | |
| */ | |
| if ( ! class_exists( 'GFForms' ) ) { | |
| 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 | |
| namespace GFPDF\Templates\Config; | |
| use GFPDF\Helper\Helper_Interface_Config; | |
| /* Exit if accessed directly */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } |
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 | |
| /** | |
| * These functions to process ebook submit in my project | |
| */ | |
| add_action('wp_ajax_validate_ebook_submit_form_callback', 'validate_ebook_submit_form_callback'); | |
| add_action('wp_ajax_nopriv_validate_ebook_submit_form_callback', 'validate_ebook_submit_form_callback'); | |
| function validate_ebook_submit_form_callback() { | |
| if ( |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| .grid { | |
| column-count: 2; | |
| column-gap: 1rem; | |
| } |
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
| <div id="tribe-events-content" class="tribe-events-single"> | |
| <p class="tribe-events-back"> | |
| <a href="<?php echo esc_url( tribe_get_events_link() ); ?>"> <?php printf( '« ' . esc_html_x( 'All %s', '%s Events plural label', 'the-events-calendar' ), $events_label_plural ); ?></a> | |
| </p> | |
| <!-- Notices --> | |
| <?php tribe_the_notices() ?> | |
| <?php the_title( '<h1 class="tribe-events-single-event-title">', '</h1>' ); ?> |
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 | |
| /** | |
| * Data-module là nơi tôi gọi tới function Header(el) trong Javascript | |
| **/ | |
| ?> | |
| <header class="header" data-module="header"> | |
| <div class="header__wrapper"> | |
| <?php | |
| if( has_nav_menu('header' ) { | |
| wp_nav_menu(array( |
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
| {% comment %} | |
| If you have multiple product fields, for example: | |
| blog.settings.product_1 | |
| blog.settings.product_2 | |
| blog.settings.product_3 | |
| {% endcomment %} | |
| {% assign product_handle = '' %} | |
| {% for i in (1..5) %} | |
| {% assign product_handle = 'blog.settings.product_' | append: i %} | |
| {% assign product = all_products[product_handle] %} |