regionhalland/region-halland-plugin-acf-page-hero-image

用于在页面上发布英雄图像和背景颜色的功能

v1.10.0 2022-01-19 08:52 UTC

This package is auto-updated.

Last update: 2024-09-19 14:36:12 UTC


README

如何使用Region Halland的插件"RhAcfPageHeroImage"

以下是如何使用插件"RhAcfPageHeroImage"的说明。

应用范围

此插件创建一个在i-frame中显示的链接

许可证模型

此插件使用GPL-3.0许可证模型。您可以通过随附的文件了解更多关于此许可证模型的信息

LICENSE (https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhAcfPageHeroImage?path=%2FLICENSE&version=GBmaster)

安装和激活

A) Hämta pluginen via Git eller läs in det med Composer
B) Installera Region Hallands plugin i Wordpress plugin folder
C) Aktivera pluginet inifrån Wordpress admin

通过Git获取插件

git clone https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhAcfPageHeroImage

通过composer导入插件

这些部分需要添加到您的composer文件中

仓库 = 插件存储的位置,在此例中是github

"repositories": [
  {
    "type": "vcs",
    "url": "https://regionhalland.visualstudio.com/public.RhWpPlugIns/_git/RhAcfPageHeroImage"
  },
],

要求 = 指定您希望使用的插件版本,在此例中为版本1.1.0

注意!请确保您获取的是最新版本。

"require": {
  "regionhalland/region-halland-acf-page-hero-image": "1.1.0"
},

数组可能的样子示例

array (size=30)
  'has_box' => int 1
  'has_link' => int 1
  'has_splash_text' => int 1
  'has_background_color' => int 1
  'has_hero_image' => int 1
  'hero_url' => string 'http://dev-template.local/app/uploads/2020/03/utbildning_aa_large.jpg' (length=69)
  'hero_alt' => string '' (length=0)
  'hero_width' => int 640
  'hero_height' => int 332
  'image_width_id' => int 1
  'image_width_value' => string 'Sidans bredd' (length=12)
  'image_resize_id' => int 2
  'image_resize_value' => string 'Cover' (length=5)
  'image_position_id' => int 1
  'image_position_value' => string 'Mitten' (length=6)
  'image_vertikal_id' => int 1
  'image_vertikal_value' => string 'Ingen marginal' (length=14)
  'background_color' => string '#81d742' (length=7)
  'rubrik_text' => string 'min rubrik' (length=10)
  'splash_text' => string 'min splash' (length=10)
  'ingress_text' => string 'min ingress' (length=11)
  'link_title' => string 'Extrainfo 1' (length=11)
  'link_url' => string 'http://dev-template.local/extrainfo/extrainfo-1/' (length=48)
  'link_target' => string '' (length=0)
  'image_place_x_id' => int 1
  'image_place_x_value' => string 'Vänster' (length=8)
  'padding_top_id' => int 1
  'padding_top_value' => string 'Minimal' (length=7)
  'padding_bottom_id' => int 1
  'padding_bottom_value' => string 'Minimal' (length=7)

版本历史

1.9.0

  • 添加了"文化节"和"文化活动"的显示

1.8.5

  • 交换了"Splash text"和"英雄标题"的位置

1.8.4

  • 修复了语法错误
  • 为调整大小的单选按钮添加了垂直布局

1.8.3

  • 改进了帮助文本

1.8.2

  • 检查heroImageId

1.8.1

  • 还返回图像ID

1.8.0

  • 将acf顶部组名称从"group_1000107"更改为"group_2000352"

1.7.1

  • 删除了一个遗漏的var_dump :)

1.7.0

  • 添加了splash-text
  • 添加了多个控制,以便更轻松地处理

1.6.0

  • 添加了用于在Packagist上发布的工作流程

1.5.0

  • 更改了composer名称

1.4.1

  • 修复了"image_vertikal_id"的bug

1.4.0

  • 添加了链接、简介、图像位置和垂直边距

1.3.0

  • 调整了控件,以便检查数据是否存在

1.2.0

  • 添加了检查数组是否存在的控件

1.1.0

  • 将y方向的放置位置从整体比例更改为设置padding top/bottom单独。

1.0.0

  • 第一个版本