wp/wp-content/themes/IN-MOTION-package-u1-child/functions.php
author ymh <ymh.work@gmail.com>
Mon, 08 Sep 2025 19:44:41 +0200
changeset 23 417f20492bf7
parent 17 34716fd837a4
permissions -rw-r--r--
Update Docker configuration and plugin versions - Upgrade MariaDB from 10.6 to 11 with auto-upgrade support - Add WordPress debug environment variable to FPM container - Update PHP-FPM Dockerfile base image - Update Include Mastodon Feed plugin with bug fixes and improvements - Update Portfolio plugin (v2.58) with latest translations and demo data enhancements - Remove old README.md from Mastodon Feed plugin 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?php
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
function my_theme_enqueue_styles() {
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    // $parent_style = 'parent-style'; // we do not do this because in-motion doesnot correctly enqueue styles
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    // wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    wp_enqueue_style( 'IN-MOTION-package-u1-child-style',
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
        get_stylesheet_directory_uri() . '/style.css',
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
        // array( $parent_style ),
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
        array( ),
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
        wp_get_theme()->get('Version')
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    );
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
}
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
17
34716fd837a4 add ressources for a live page
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    16
function additional_scripts() {
34716fd837a4 add ressources for a live page
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    17
    wp_enqueue_script( 'dash-js', get_stylesheet_directory_uri() . '/js/dash.all.min.js','',true );
34716fd837a4 add ressources for a live page
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    18
}
34716fd837a4 add ressources for a live page
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    19
add_action( 'wp_enqueue_scripts', 'additional_scripts' );