12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
- if (! file_exists($composer = __DIR__.'/vendor/autoload.php')) {
- wp_die(__('Error locating autoloader. Please run <code>composer install</code>.', 'sage'));
- }
- require $composer;
- if (! function_exists('\Roots\bootloader')) {
- wp_die(
- __('You need to install Acorn to use this theme.', 'sage'),
- '',
- [
- 'link_url' => 'https://roots.io/acorn/docs/installation/',
- 'link_text' => __('Acorn Docs: Installation', 'sage'),
- ]
- );
- }
- \Roots\bootloader()->boot();
- collect(['setup', 'filters'])
- ->each(function ($file) {
- if (! locate_template($file = "app/{$file}.php", true, true)) {
- wp_die(
-
- sprintf(__('Error locating <code>%s</code> for inclusion.', 'sage'), $file)
- );
- }
- });
- function ajout_champs() {
- add_post_meta(get_the_ID(), 'Index', true);
- add_post_meta(get_the_ID(), 'Minutage', true);
- add_post_meta(get_the_ID(), 'Images', true);
- add_post_meta(get_the_ID(), 'BandeSon', true);
- add_post_meta(get_the_ID(), 'Ecrits', true);
- add_post_meta(get_the_ID(), 'VoixOffIn', true);
- add_post_meta(get_the_ID(), 'isMainPart', true);
- add_post_meta(get_the_ID(), 'isSubPart', true);
- }
- add_action('init', 'ajout_champs');
|