| 开发者 | hazmeunapagina |
|---|---|
| 更新时间 | 2026年7月22日 06:03 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[hupind_indicadores] shortcode, ready to use in headers, footers, sidebars, Bricks Builder, Elementor and any area of your site.
This project is independent and is not affiliated with any government entity. Data is obtained from the public mindicador.cl API (https://mindicador.cl). The plugin only receives data; it never sends any information to the service.
Main features:
[hupind_indicadores] shortcode with multiple configurable parameters$ (CLP), US$ (USD) or % (percentage)% for prices/currencies, percentage points (pp) for rates and indices[hupind_indicadores show="uf,dolar,euro" layout="horizontal" show_variation="true" show_date="true"]
BEM classes available for styling:
.hupind-indicadores — main wrapper.hupind-indicadores__item — each indicator.hupind-indicadores__item--{id} — per-indicator modifier (--uf, --dolar, etc.).hupind-indicadores__label — indicator name.hupind-indicadores__value — formatted value.hupind-indicadores__variation — change (with --up / --down modifiers).hupind-indicadores__divider — separator between items.hupind-indicadores__updated — update date.hupind-indicadores--error / .hupind-indicadores__error — notice shown when no data is available yethup-indicadores-economicos-chile folder to the /wp-content/plugins/ directory.No. The plugin is fully independent. It works without WooCommerce or any other external plugin.
Data is fetched from the public mindicador.cl API. The refresh frequency depends on the configured cache duration (1 hour by default). Indicators such as the UF are updated daily.
Yes. The plugin does not load any CSS on the frontend on purpose. Use the BEM classes documented in the "CSS classes" accordion of the admin screen to apply your styles from Bricks Builder, Elementor or your own stylesheet. The change colors (green/red) can be changed by defining the CSS variables --hupind-color-up and --hupind-color-down on .hupind-indicadores.
The plugin keeps a permanent fallback transient with the last successful value. Once at least one request has succeeded, that value is served automatically if the API later fails, so the frontend never goes blank. Only on a brand-new install, before the first successful request and while the API is unreachable, is there no value to show; in that case the shortcode outputs a short notice that you can customize with the error_text attribute (set error_text="" to output nothing).
Yes, in two ways: enabling/disabling them from the admin screen, or using the show parameter directly in the shortcode: [hupind_indicadores show="uf,dolar,euro"].
Configurable per indicator from the admin screen (0 to 4 decimals).
[hupind_indicadores] shortcode with parameters: show, layout, separator, class, show_date, show_variation, format, date_format, error_text.error_text) shown only on a fresh install when no value is available yet and the API is unreachable.