Title: Theme Image Block
Author: Happy Prime
Published: <strong>Декабрь 16, 2025-ж.</strong>
Last modified: Февраль 20, 2026-ж.

---

Плагиндерди издөө

![](https://s.w.org/plugins/geopattern-icon/theme-image-block.svg)

# Theme Image Block

 Автору [Happy Prime](https://profiles.wordpress.org/happyprime/)

[Жүктөө](https://downloads.wordpress.org/plugin/theme-image-block.1.1.1.zip)

 * [Кенен маалымат](https://ky.wordpress.org/plugins/theme-image-block/#description)
 * [Сын-пикирлер](https://ky.wordpress.org/plugins/theme-image-block/#reviews)
 *  [Орнотуу](https://ky.wordpress.org/plugins/theme-image-block/#installation)
 * [Development](https://ky.wordpress.org/plugins/theme-image-block/#developers)

 [Колдоо](https://wordpress.org/support/plugin/theme-image-block/)

## Сүрөттөө

The Theme Image Block plugin allows you to register images from your theme and make
them available as blocks in the WordPress editor. This is useful for logos, icons,
and other images that are part of your theme’s design system.

### Usage

### Registering Theme Images

Theme images should be registered using `HappyPrime\ThemeImageBlock\register_theme_image()`.
This is likely best done on the `init` or `after_setup_theme` action.

    ```
    HappyPrime\ThemeImageBlock\register_theme_image(
        'happy-prime-logo',
        [
            'title' => 'Happy Prime Logo',
            'description' => 'The Happy Prime logo.',
            'alt' => 'Happy Prime',
            'path' => 'images/happy-prime-logo.svg',
            'width' => '300',
            'height' => '',
            'variations' => [
                'small' => [
                    'path'   => 'images/happy-prime-logo-small.svg',
                    'width'  => '100',
                    'height' => '100',
                ],
                'medium' => [
                    'path'   => 'images/happy-prime-logo-medium.svg',
                    'width'  => '200',
                    'height' => '200',
                ],
                'large' => [
                    'path'   => 'images/happy-prime-logo-large.svg',
                    'width'  => '300',
                    'height' => '300',
                ],
            ],
            'sizes' => '(max-width: 600px) 100vw, 300px',
        ]
    );
    ```

### Registering Theme Image Styles

Theme image styles should be registered using `HappyPrime\ThemeImageBlock\register_theme_image_style()`.
This is likely best done on the `init` or `after_setup_theme` action.

    ```
    HappyPrime\ThemeImageBlock\register_theme_image_style(
        'hero',
        [
            'name'   => 'Hero',
            'width'  => 'clamp(10rem, 100vw, 60rem)',
            'height' => 'auto',
        ]
    );
    ```

## Блоктор

This plugin provides 1 block.

 *   Theme Image Display an image from the theme's images directory.

## Орнотуу

 1. Install and activate the plugin.
 2. Register theme images using the `register_theme_image()` function.
 3. Register theme image styles using the `register_theme_image_style()` function.
 4. Use the Theme Image block in the editor to insert registered images.

## Сын-пикирлер

There are no reviews for this plugin.

## Contributors & Developers

“Theme Image Block” is open source software. The following people have contributed
to this plugin.

Мүчөлөрү

 *   [ Happy Prime ](https://profiles.wordpress.org/happyprime/)
 *   [ Jeremy Felt ](https://profiles.wordpress.org/jeremyfelt/)
 *   [ slocker ](https://profiles.wordpress.org/slocker/)
 *   [ philcable ](https://profiles.wordpress.org/philcable/)

[Translate “Theme Image Block” into your language.](https://translate.wordpress.org/projects/wp-plugins/theme-image-block)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/theme-image-block/),
check out the [SVN repository](https://plugins.svn.wordpress.org/theme-image-block/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/theme-image-block/)
by [RSS](https://plugins.trac.wordpress.org/log/theme-image-block/?limit=100&mode=stop_on_copy&format=rss).

## Өзгөртүүлөр

### 1.1.1

 * Prevent fatal error on activation.
 * Improve HTML processing when rendering output.
 * Fix reference to renamed global JavaScript variable.
 * Fix textdomain mismatch.
 * Improve support for multiple theme image blocks in one editor view.

### 1.1.0

 * Initial release on wp.org.

### 1.0.0

 * Initial release.

## Мета

 *  Нуска **1.1.1**
 *  Акыркы жаңыртуу **2 ай мурун**
 *  Активдүү орнотуулар **Fewer than 10**
 *  WordPress нускасы ** 6.8 же андан жогору **
 *  Tested up to **6.9.4**
 *  PHP нускасы ** 7.4 же андан жогору **
 *  Тил
 * [English (US)](https://wordpress.org/plugins/theme-image-block/)
 * Тег:
 * [images](https://ky.wordpress.org/plugins/tags/images/)[media](https://ky.wordpress.org/plugins/tags/media/)
 *  [Advanced View](https://ky.wordpress.org/plugins/theme-image-block/advanced/)

## Рейтинг

Азырынча эч кандай сын-пикир жок.

[Your review](https://wordpress.org/support/plugin/theme-image-block/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/theme-image-block/reviews/)

## Мүчөлөрү

 *   [ Happy Prime ](https://profiles.wordpress.org/happyprime/)
 *   [ Jeremy Felt ](https://profiles.wordpress.org/jeremyfelt/)
 *   [ slocker ](https://profiles.wordpress.org/slocker/)
 *   [ philcable ](https://profiles.wordpress.org/philcable/)

## Колдоо

Комментарийлер барбы? Жардам керекпи?

 [Колдоо форумун көрүү](https://wordpress.org/support/plugin/theme-image-block/)