HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/linde-ai/html/assets/README.md
# Assets

This folder stores generic static assets that might be required for a certain WordPress website. This might contain fonts, images, videos, icons and similar assets that are more part of design, rather than content. Assets that are more part of the content will probably come from WordPress directly since they will be editable content.

## Include static assets in Twig files

In order to reference static files inside Twig templates, custom `get_frontend_static_asset` function has to be called from Twig template.

```twig
<!-- "assets/images/my-image.png" corresponds to file that has path "/html/assets/images/my-image.png" -->
<img src="{{ function('get_frontend_static_asset', 'assets/images/my-image.png') }}" />
```

Name of the asset you want to insert requires full path that is has inside `/html` folder. For example, file that has path `/html/assets/images/my-image.png` file has `assets/images/my-image.png` as path inside assets and that is used as argument for this function.

Any folder inside `/assets` also supports nesting so assets can be organized as needed. This directory structure will be reflected in the path that is needed for `get_frontend_static_asset` (e.g. `assets/images/logo/main-logo.png`).

> If you are wondering from where these paths are grabbed and what value they have, just check the generated manifest JSON file (`/wp-content/themes/linde/frontend/manifest.json`) that is being output by Webpack.