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 | |
| // Post Type Subpages: Ajout permaliens sous le titre du Post dans l'Admin | |
| add_action('edit_form_after_title', 'hwk_ptsp_edit_after_title'); | |
| function hwk_ptsp_edit_after_title($post){ | |
| if(!$post_types = hwk_ptsp_get_post_types()) | |
| return; | |
| foreach($post_types as $post_type){ | |
| if(get_post_type() != $post_type['post_type']) |
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 | |
| // Post Type Subpages: YOAST Hooks | |
| if(function_exists('wpseo_replace_vars')): | |
| // Post Type Subpages: YOAST Canonical | |
| add_filter('wpseo_canonical', 'hwk_ptsp_yoast_canonical'); | |
| function hwk_ptsp_yoast_canonical($canonical){ | |
| if( !($post_id = get_the_ID()) || !($post_types = hwk_ptsp_get_post_types()) ) | |
| return $canonical; | |
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
| .acf-fc-popup{ | |
| width:80%; | |
| max-width:1200px; | |
| height:80%; | |
| max-height:1200px; | |
| top:50% !important; | |
| left:50% !important; | |
| -webkit-transform:translate(-50%, -50%); | |
| -ms-transform:translate(-50%, -50%); | |
| transform:translate(-50%, -50%); |
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
| .acf-fc-popup ul li a[data-layout=template-articles]:before{ | |
| content: "\f0f6"; | |
| } | |
| .acf-fc-popup ul li a[data-layout=template-cartes]:before{ | |
| content: "\f00a"; | |
| } | |
| .acf-fc-popup ul li a[data-layout=template-constructeur]:before{ | |
| content: "\f0ad"; |
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( (isset($_SERVER['HTTP_CF_VISITOR']) && (strpos($_SERVER['HTTP_CF_VISITOR'], 'https') !== false)) || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)) ) | |
| $_SERVER['HTTPS'] = 'on'; |
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 | |
| /** | |
| * ACF Form: Deregister ACF style | |
| */ | |
| add_action('wp_print_styles', 'hwk_acf_form_deregister_styles', 99); | |
| function hwk_acf_form_deregister_styles(){ | |
| wp_deregister_style('acf'); | |
| wp_deregister_style('acf-field-group'); | |
| wp_deregister_style('acf-global'); |
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 | |
| /** | |
| * ACF Form Login: Register Form | |
| */ | |
| acf_register_form(array( | |
| 'id' => 'hwk_ajax_acf_login', | |
| 'post_id' => 'hwk_ajax_acf_login', | |
| 'form_attributes' => array( | |
| 'class' => 'acf-form acf-form-ajax', |
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 | |
| /** | |
| * ACF Form Lost Password: Register Form | |
| */ | |
| acf_register_form(array( | |
| 'id' => 'hwk_ajax_acf_lost_password', | |
| 'post_id' => 'hwk_ajax_acf_lost_password', | |
| 'form_attributes' => array( | |
| 'class' => 'acf-form acf-form-ajax', |
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 | |
| /** | |
| * ACF Form Register: Register Form | |
| */ | |
| acf_register_form(array( | |
| 'id' => 'hwk_ajax_acf_register', | |
| 'post_id' => 'hwk_ajax_acf_register', | |
| 'form_attributes' => array( | |
| 'class' => 'acf-form acf-form-ajax', |
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 | |
| acf_enqueue_scripts(); | |
| get_header(); | |
| ?> | |
| <?php if(have_posts()): ?> | |
| <?php while(have_posts()): the_post(); ?> | |
| <div class="col-md-4"> | |
| <div class="h-100 bg-light"> |