helsingborg-stad / municipio
用于创建市政府网站的Bootstrap主题。
Requires
- php: ^8.1
- composer/installers: ^1.0
- dompdf/dompdf: ^2.0.4
- helsingborg-stad/acf-export-manager: >=1.0.0
- helsingborg-stad/acfservice: ~0.4
- helsingborg-stad/wpservice: ^1.7
- ouun/kirki-module-fonts_upload: ^1.0.1
- pragmarx/ia-arr: ^7.3
- spatie/schema-org: ^3.9
- symfony/polyfill-mbstring: 1.17.0
- symfony/polyfill-php80: ^1.27
Requires (Dev)
- 10up/wp_mock: dev-trunk#1.0.1
- helsingborg-stad/phpcs: ^0.3.1
- php-mock/php-mock-mockery: ^1.4
- php-stubs/wordpress-stubs: ^6.5
Suggests
- helsingborg-stad/component-library: Required for theme to work properly.
- helsingborg-stad/kirki: Required for theme to work properly.
- dev-master
- dev-main
- 5.25.3
- 5.25.2
- 5.25.1
- 5.25.0
- 5.24.5
- 5.24.4
- 5.24.3
- 5.24.2
- 5.24.1
- 5.24.0
- 5.23.1
- 5.23.0
- 5.22.1
- 5.22.0
- 5.21.3
- 5.21.2
- 5.21.1
- 5.21.0
- 5.20.1
- 5.20.0
- 5.19.6
- 5.19.5
- 5.19.4
- 5.19.2
- 5.19.1
- 5.18.7
- 5.18.6
- 5.18.4
- 5.18.3
- 5.18.2
- 5.18.1
- 5.18.0
- 5.17.0
- 5.16.0
- 5.15.16
- 5.15.15
- 5.15.13
- 5.15.11
- 5.15.10
- 5.15.9
- 5.15.7
- 5.15.5
- 5.15.4
- 5.15.3
- 5.15.2
- 5.15.1
- 5.15.0
- 5.14.1
- 5.14.0
- 5.13.0
- 5.12.4
- 5.12.3
- 5.12.2
- 5.12.1
- 5.12.0
- 5.11.3
- 5.11.2
- 5.11.1
- 5.11.0
- 5.10.1
- 5.9.1
- 5.8.15
- 5.8.14
- 5.8.12
- 5.8.11
- 5.8.10
- 5.8.9
- 5.8.8
- 5.8.7
- 5.8.6
- 5.8.5
- 5.8.4
- 5.8.3
- 5.8.1
- 5.8.0
- 5.7.2
- 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4.1.13
- 4.1.12
- 4.1.10
- 4.1.9
- 4.1.8
- 4.1.6
- 4.1.5
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.1
- 4.0.0
- 3.70.8
- 3.70.6
- 3.70.5
- 3.70.4
- 3.70.2
- 3.70.1
- 3.70.0
- 3.69.0
- 3.67.2
- 3.67.1
- 3.67.0
- 3.66.0
- 3.65.0
- 3.64.0
- 3.63.1
- 3.63.0
- 3.62.3
- 3.62.1
- 3.62.0
- 3.61.19
- 3.61.18
- 3.61.17
- 3.61.16
- 3.61.15
- 3.61.14
- 3.61.13
- 3.61.11
- 3.61.10
- 3.61.9
- 3.61.8
- 3.61.7
- 3.61.6
- 3.61.5
- 3.61.4
- 3.61.3
- 3.61.2
- 3.61.1
- 3.61.0
- 3.60.11
- 3.60.10
- 3.60.9
- 3.60.8
- 3.60.7
- 3.60.5
- 3.60.4
- 3.60.3
- 3.60.2
- 3.60.1
- 3.60.0
- 3.59.0
- 3.58.7
- 3.58.6
- 3.58.5
- 3.58.4
- 3.58.3
- 3.58.2
- 3.58.1
- 3.58.0
- 3.57.0
- 3.56.5
- 3.56.4
- 3.56.2
- 3.56.1
- 3.56.0
- 3.55.0
- 3.54.5
- 3.54.4
- 3.54.3
- 3.54.1
- 3.54.0
- 3.53.2
- 3.53.1
- 3.53.0
- 3.52.17
- 3.52.16
- 3.52.15
- 3.52.13
- 3.52.11
- 3.52.9
- 3.52.7
- 3.52.4
- 3.52.1
- 3.51.0
- 3.50.0
- 3.49.12
- 3.49.11
- 3.49.9
- 3.49.6
- 3.49.1
- 3.49.0
- 3.48.13
- 3.48.12
- 3.48.11
- 3.48.10
- 3.48.9
- 3.48.8
- 3.48.7
- 3.48.6
- 3.48.5
- 3.48.3
- 3.48.2
- 3.48.1
- 3.48.0
- 3.47.2
- 3.47.1
- 3.47.0
- 3.46.1
- 3.46.0
- 3.45.0
- 3.44.2
- 3.44.1
- 3.44.0
- 3.43.1
- 3.43.0
- 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1.28.5
- 1.28.4
- 1.28.3
- 1.28.2
- 1.28.1
- 1.28.0
- 1.27.9
- 1.27.8
- 1.27.7
- 1.27.6
- 1.27.5
- 1.27.4
- 1.27.3
- 1.27.2
- 1.27.1
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.5
- 1.24.4
- 1.24.3
- 1.24.2
- 1.24.1
- 1.24.0
- 1.23.6
- 1.23.5
- 1.23.4
- 1.23.3
- 1.23.2
- 1.23.1
- 1.23.0
- 1.22.27
- 1.22.26
- 1.22.25
- 1.22.24
- 1.22.23
- 1.22.21
- 1.22.20
- 1.22.19
- 1.22.18
- 1.22.17
- 1.22.16
- 1.22.15
- 1.22.14
- 1.22.13
- 1.22.12
- 1.22.11
- 1.22.10
- 1.22.9
- 1.22.8
- 1.22.7
- 1.22.6
- 1.22.5
- 1.22.4
- 1.22.3
- 1.22.2
- 1.22.1
- 1.21.1
- 1.21.0
- 1.20.1
- 1.20.0
- 1.19.41
- 1.19.40
- 1.19.39
- 1.19.38
- 1.19.37
- 1.19.36
- 1.19.35
- 1.19.34
- 1.19.33
- 1.19.32
- 1.19.31
- 1.19.30
- 1.19.29
- 1.19.28
- 1.19.27
- 1.19.26
- 1.19.25
- 1.19.24
- 1.19.23
- 1.19.22
- 1.19.21
- 1.19.20
- 1.19.19
- 1.19.18
- 1.19.17
- 1.19.16
- 1.19.15
- 1.19.14
- 1.19.13
- 1.19.12
- 1.19.11
- 1.19.10
- 1.19.9
- 1.19.8
- 1.19.7
- 1.19.6
- 1.19.5
- 1.19.4
- 1.19.3
- 1.19.2
- 1.19.1
- 1.19
- 1.18.9
- 1.18.8
- 1.18.7
- 1.18.6
- 1.18.5
- 1.18.4
- 1.18.3
- 1.18.2
- 1.18.1
- 1.18.0
- 1.17.27
- 1.17.26
- 1.17.25
- 1.17.24
- 1.17.23
- 1.17.22
- 1.17.21
- 1.17.20
- 1.17.19
- 1.17.18
- 1.17.17
- 1.17.16
- 1.17.15
- 1.17.14
- 1.17.13
- 1.17.12
- 1.17.11
- 1.17.10
- 1.17.9
- 1.17.8
- 1.17.6
- 1.17.5
- 1.17.4
- 1.17.3
- 1.17.2
- 1.17.1
- 1.17.0
- 1.16.9
- 1.16.8
- 1.16.7
- 1.16.6
- 1.16.5
- 1.16.4
- 1.16.3
- 1.16.2
- 1.16.1
- 1.16.0
- 1.15.1
- 1.15.0
- 1.14.12
- 1.14.11
- 1.14.10
- 1.14.9
- 1.14.8
- 1.14.7
- 1.14.6
- 1.14.5
- 1.14.4
- 1.14.3
- 1.14.2
- 1.14.1
- 1.14.0
- 1.13.44
- 1.13.43
- 1.13.42
- 1.13.41
- 1.13.40
- 1.13.39
- 1.13.38
- 1.13.37
- 1.13.36
- 1.13.35
- 1.13.34
- 1.13.33
- 1.13.32
- 1.13.31
- 1.13.30
- 1.13.29
- 1.13.28
- 1.13.27
- 1.13.26
- 1.13.25
- 1.13.24
- 1.13.23
- 1.13.22
- 1.13.21
- 1.13.20
- 1.13.19
- 1.13.18
- 1.13.17
- 1.13.16
- 1.13.15
- 1.13.14
- 1.13.13
- 1.13.12
- 1.13.11
- 1.12.10
- 1.12.9
- 1.12.8
- 1.12.7
- 1.12.6
- 1.12.5
- 1.12.4
- 1.12.3
- 1.12.2
- 1.12.1
- 1.12.0
- 1.11.39
- 1.11.38
- 1.11.37
- 1.11.36
- 1.11.35
- 1.11.34
- 1.11.33
- 1.11.32
- 1.11.31
- 1.11.30
- 1.11.29
- 1.11.28
- 1.11.27
- 1.11.26
- 1.11.25
- 1.11.24
- 1.11.23
- 1.11.22
- 1.11.21
- 1.11.20
- 1.11.19
- 1.11.18
- 1.11.17
- 1.11.16
- 1.11.15
- 1.11.4
- 1.11.3
- 1.11.2
- 1.11.1
- 1.11.0
- 1.10.6
- 1.10.5
- 1.10.4
- 1.10.3
- 1.10.2
- 1.10.1
- 1.10.0
- 1.9.7
- 1.9.6
- 1.9.5
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.2
- 1.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1.0.2.13
- 1.0.2.12
- 1.0.2.11
- 1.0.2.10
- 1.0.2.9
- 1.0.2.8
- 1.0.2.7
- 1.0.2.6
- 1.0.2.5
- v1.0.2.4
- v1.0.2.3
- v1.0.2.2
- v1.0.2.1
- v1.0.2
- 1.0.1
- 1.0.0
- v1.0.0-alpha
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.17.1
- 0.2.17
- 0.2.16
- 0.2.15
- 0.2.14
- 0.2.13
- 0.2.12
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.1
- 0.2.0
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-fix/external-content-terms
- dev-fix/sync-happens-multiple-times
- dev-feat/menu-structure
- dev-fix/acf-early
- dev-misc
- dev-external-content-taxonomies-from-meta
- dev-feat/municipio-separator-menu-item
- dev-fix/resolve-is-current-url-err
- dev-fix/allow-dynamic-css-manipulation-by-filter
- dev-fix/corrected-flexible-items
- dev-feat/dynamic-panel-registration
- dev-fix/controller-vars-applicator-performance
- dev-hotfix/ontf-img-cache
- dev-feat/new-menu-option
- dev-feat/municipio-menu-item
- dev-fix/remove-old-kirki-setting
- dev-fix-sentry-test
- dev-feat/post-type-customizer-settings
- dev-feat/using-schema-data-for-place-posts
- dev-feature/Hmta-schemadata-frn-posten-om-ej-ifyllt-CU-86943q8zy
- dev-feature/Filtrera-get_theme_mod-fr-att-hantera-legacy-instllningar-CU-86942ebdg
- dev-feature/navigation-with-tests
- dev-fix/apply-now-CTA-missing-heading
- dev-feature/I-customizern-kunna-valja-att-visa-karta-pa-enskilda-platser-CU-865chp8d5
- dev-refactor/remove-old-material-icons
- dev-fix/use-adress-for-geo-schema
- dev-lit-blocks
- dev-fix/refactor-faulty-appendStructuredData-method-SONARCLOUD-IMPOSED-CHANGES
- dev-fix/Schemadata-fr-Person-fr-skolans-titel-istllet-fr-personens-namn-CU-8693h26qh
- dev-feat/Skapa-sektion-fr-innehllstyper-i-customizern-CU-865cfe7vz
- dev-feature/Skolor---Byt-ut-oss-mot-frskolans-namn-enbart-frskolor-CU-8693ca09u
- dev-feat/line-breaks-in-excerpt
- dev-test/helpers
- dev-feat/cta-application-adjustments
- dev-feat/school-archive-tables
- dev-hotfix/deactivate-faulty-structured-data-schema-org
- dev-feature/Controller-fr-specifik-innehllstyp-ControllerContentType-anvnds-inte-CU-865d4zg31
- dev-3.0/develop
- dev-3.0/fix/archive-thumbnail-size
- dev-chore/post-install-script
- dev-dependabot/npm_and_yarn/socket.io-parser-4.2.4
- dev-dependabot/npm_and_yarn/semver-5.7.2
- dev-feature/Kategorifilter-p-event-frsvinner-nr-en-eller-flera-kategorier-r-valt-CU-865cnw3d5
- dev-feature/move-purpose-settings-to-customizer
- dev-3.0/fix-quicklinks-behavior
- dev-3.0/fix/tabs-menu-default-value
- dev-feature/Nytt-val-fr-Evenemangsvisning-visar-felaktigt-val-CU-865c8umxe
- dev-feature/customizer-installningar-archive-purpose-CU-865c7wf1j
- dev-3.0/feature/place-related-posts-icons
- dev-feature/Instllning-fr-att-inte-anvnda-anpassad-view-fr-purpose-CU-865btwq8q-CU-865btwnv5
- dev-feature/Skapa-ny-arkiv-visning-collection-CU-865btx9z4
- dev-fix/niko-gnällfisen
- dev-3.0/feature/navigations-panel
- dev-3.0/feature/navigation-scoped-settings
- dev-feature/secondary-query-#865bx2c50
- dev-feature/Platsregeln-fr-ACF-ska-knna-av-sub-purpose-CU-865bu6nqv
- dev-feature/coding-standards
- dev-3.0/fix/purpose-crash
- dev-feature/getNamespaceModification
- dev-3.0/fix/search-setting
- dev-3.0/feature/changelog
- dev-feature/Enabler-Refaktorera-Templatephp-CU-865bkb62x
- dev-3.0/feature/business-alignment
- dev-feature/formatting-template-php
- dev-3.0/feature/progress-bar-kirki
- dev-feature/Uppdatera-custom-css-nr-en-ny-design-applicerasladdas-in-CU-865bhf3pk
- dev-3.0/feature/design-library-testing
- dev-feature/innovationhelsingborgse-CU-3vdt45p-subtasks-move-innovation-solutions-into-municipio
- dev-feature/Det-gr-inte-att-hgervnsterjustera-bilder-som-saknar-lnk-i-contentytan-CU-865bc4p2n
- dev-feature/Strukturerad-data-fr-purposeinnehllstyp-Project-CU-865bbzpcb
- dev-fix/blocks-not-getting-post_columns-#3xr4wg0
- dev-3.0/feature/normalizePxFontToEm
- dev-feature/Feedback-filuppladdning-formulr-CU-3qfy5er
- dev-3.0/feature/breadcrumbs-on-onepage
- dev-3.0/feature/iframe-relative
- dev-3.0/feature/iframe-unknown-supplier
- dev-3.0/feature/language-menu-color
- dev-feature/iframe-src
- dev-3.0/feat-php-update
- dev-feature/iframe-acceptance
- dev-ci/builder
- dev-3.0/feature/added-search-page-definition
- dev-new-fo
- dev-feature/more-slider-customization
- dev-feature/customize-form
- dev-wip/kirki-overlay
- dev-wip/kirki
- dev-3.0/feature/admin-text-area
- dev-3.0/feature/refactor-mod-filters
- dev-feature/3.0/search-review
- dev-develop
- dev-signature
This package is auto-updated.
Last update: 2024-09-24 05:53:46 UTC
README
下载主题。
要下载一个无需编译或获取依赖项即可立即工作的完整插件,请访问此处,并从最新版本下载full-release.zip
。
入门
建议您通过我们的构建管理存储库安装municipio捆绑版本。您可以在以下位置找到它。
要开始,您需要安装所需的npm和composer软件包。要安装这些组件,您需要在您的系统上安装Node.js和Composer。
$ cd [THEME-DIR]
$ php build.php
依赖项
Municipio需要ACF PRO。
编码标准
对于PHP,使用PSR-2和PSR-4。
Gulp
您可以使用Gulp编译、连接和压缩SASS和JavaScript。SASS的编译还将自动添加所需的供应商前缀。
要从主题目录中编译js和sass并启动“监视”任务,请运行以下命令
$ gulp
我们添加了对webpack的支持
Webpack比gulp快一些。如果您想使用webpack而不是gulp,只需运行以下命令
$ npm run watch
或者只为单个构建
$ npm run build
NPM脚本
- watch:在监视模式下运行webpack。用于处理客户端代码(如scss、js、ts等)时使用。
- build:dev:使用开发标志构建资产。
- build:为生产构建资产。
- i18n:update:从源文件更新languages/municipio.pot和languages/sv_SE.po。当可翻译的字符串已添加/更新时运行此操作。需要wp-cli。
- i18n:build:更新languages/municipio.mo .po文件。当对相应的.po文件进行更改时运行此操作。需要wp-cli。
Composer
您可以使用以下方式安装composer依赖项。
$ composer install
Composer脚本
composer run test # Run phpunit tests
composer run test:coverage # Run phpunit tests with code coverage
composer run lint # Run phpcs
composer run lint:changed # Run phpcs on changed files (Compares to main branch).
composer run fix # Run phpcbf to apply fixes to code.
composer run fix:changed # Run phpcbf to apply fixes to changed files (Compares to main branch).
常量
块作者页面
默认情况下,作者页面被阻止。要“取消阻止”,请将以下常量添加到wp-config(或其他合适的位置)。
define('MUNICIPIO_BLOCK_AUTHOR_PAGES', false);
从不同主机加载样式指南
用于设置样式指南基本URI的常量。对于第三方站点很有用。
define('MUNICIPIO_STYLEGUIDE_URI', '//example.com/style/guide');
加载特定版本的样式指南
锁定样式指南版本的常量。当您想确保网站的最大稳定性时非常有用。
define('STYLEGUIDE_VERSION', 1.0.32);
加载特定开发版本的样式指南
加载样式指南本地版本的常量。
define('DEV_MODE', true);
BEMIT风格的CSS类名用于主题名称
包含当前主题名称的常量,格式为BEM。当您想直接将组件样式连接到主题时可以使用。您不能更改此。
MUNICIPIO_BEM_THEME_NAME
动作
Municipio/blog/post_info
博客帖子信息标题(单个)
@param object $post
- 帖子对象
do_action('Municipio/author_display/name', $post);
Municipio/share_post/recipients
在通过电子邮件分享帖子时执行操作,例如发送通知
@param object $user
- 发送者的用户对象@param array $recipients
- 电子邮件地址列表
do_action('Municipio/share_post/recipients', $user, $recipients);
Municipio/comment/save_like
在评论点赞时执行操作
@param object $comment
- 评论对象@param int $userId
- 当前用户ID@param bool $create
- 如果创建新的点赞则为真。如果删除则为假
do_action('Municipio/comment/save_like', $comment, $userId, $create);
过滤器
Municipio/Template/viewData
@param array $viewData
- 传递给过滤器的视图数据。
apply_filters('Municipio/Template/viewData', $viewData);
修改器
@param array $viewData
- 传递给过滤器的视图数据。@param string $postType
- 文章类型别名。@param string $template
- 归档模板名称。
apply_filters('Municipio/Template/single/viewData', $viewData, $postType); apply_filters('Municipio/Template/archive/viewData', $viewData, $postType, $template); apply_filters("Municipio/Template/{$postType}/viewData", $viewData); apply_filters("Municipio/Template/{$postType}/single/viewData", $viewData); apply_filters("Municipio/Template/{$postType}/archive/viewData", $viewData, $template);
已弃用
Municipio/controller/base/view_data
Municipio/blade/data
Municipio/Controller/Archive/Data
Municipio/viewData
Municipio/theme/key
过滤主题/样式指南资产密钥。
@param string $key
- 样式指南主题的密钥
apply_filters('Municipio/theme/key', $key);
Municipio/author_display/name
设置作者显示名称
@param string $name
- 默认名称@param string $userId
- 用户的ID
apply_filters('Municipio/author_display/name', $name, $userId);
Municipio/author_display/title
设置作者名称显示的标题标签
@param string $title
- 默认标题
apply_filters('Municipio/author_display/title', $title);
Municipio/ajax_url_in_head
在
@param string $ajax_url
- 默认ajax url
apply_filters('Municipio/ajax_url_in_head', $ajax_url);
Municipio/favicon_sizes
为favicon添加大小到主题选项中
@param array $sizes
- 默认favicon大小
apply_filters('Municipio/favicon_sizes', $sizes);
Municipio/favicon_tag
为favicon添加大小到主题选项中
@param string $tag
- HTML 标签@param array $icon
- 图标数据
apply_filters('Municipio/favicon_tag', $tag, $icon);
Municipio/header_grid_size
应用于头部大小的类字符串。
@param string $classes
-
apply_filters('Municipio/header_grid_size', $classes);
Municipio/mobile_menu_breakpoint
应用于移动汉堡菜单断点的类字符串。
@param string $classes
- 默认站点名称
apply_filters('Municipio/mobile_menu_breakpoint', $classes);
Municipio/logotype_text
应用于主题选项中未上传logotype图像时显示的文本。
@param string $title
- 默认站点名称
apply_filters('Municipio/logotype_text', $title);
Municipio/logotype_class
应用于logotype的类属性
@param array $classes
- 默认类
apply_filters('Municipio/logotype_class', $classes);
Municipio/logotype_tooltip
应用于logotype的类属性
@param string $tooltip
- 默认提示文本
apply_filters('Municipio/logotype_tooltip', $tooltip);
Municipio/blade/template_types
应用于Blade模板类型的列表。
@param array $types
- 默认Blade模板类型
apply_filters('Municipio/blade/template_types', $types);
Municipio/search_result/…
在搜索结果内容上应用多个过滤器
@param string $var
- 变量的内容@param object $post
- 文章对象
apply_filters('Municipio/search_result/date', $date, $post); apply_filters('Municipio/search_result/title', $title, $post); apply_filters('Municipio/search_result/excerpt', $excerpt, $post); apply_filters('Municipio/search_result/permalink_url', $permalink_url, $post); apply_filters('Municipio/search_result/permalink_text', $permalink_text, $post);
Municipio/search_form/…
对搜索表单应用过滤器
@param string $var
- 变量的内容
apply_filters('Municipio/search_form/action', $url);
Municipio/archive/sort_keys
修改归档可用的排序键
@param array $keys
- 键@param string $postType
- 文章类型
apply_filters('Municipio/archive/sort_keys', $keys, $postType);
Municipio/archive/date_filter
修改日期过滤器WHERE子句
@param string $where
- SQL WHERE子句@param string $from
- 查询字符串中的"from"日期@param string $to
- 查询字符串中的"to"日期
apply_filters('Municipio/archive/date_filter', $where, $from, $to);
Municipio/Breadcrumbs
显示/隐藏(true/false)面包屑
@param boolean $bool
- 真或假(显示或隐藏)
apply_filters('Municipio/Breadcrumbs', $bool, get_queried_object())
Municipio/Breadcrumbs/Items
过滤面包屑中的项/链接
@param array $items
- 面包屑项
apply_filters('Municipio/Breadcrumbs/Items', $items, get_queried_object());
Municipio/admin/editor_stylesheet
更改自定义编辑器样式表
@param string $url
- 样式表URL
apply_filters('Municipio/admin/editor_stylesheet', $url);
Municipio/oembed/should_filter_markup
决定是否应过滤oembed标记以用于HbgPrime视频播放器(youtube和vimeo)
@param string $url
- 资源URL@param int $postId
- 当前文章的ID
apply_filters('Municipio/oembed/should_filter_markup', true, $url, $postId);
Municipio/Menu/Vertical/EnabledSidebars
指定当前页面应显示垂直菜单的活动侧边栏。简单的包含侧边栏ID的数组。
@param array $sidebars
- 包含侧边栏ID的平面数组。
apply_filters('Municipio/Menu/Vertical/EnabledSidebars', $sidebars);
Municipio/archive/tax_query
附加分类查询。
@param array $taxQuery
- 包含分类查询。@param object $query
- 当前查询对象。
apply_filters('Municipio/archive/tax_query', $taxQuery, $query);
Municipio/taxonomy/tag_style
为分类标签添加自定义样式。
@param string $style
- 自定义CSS。@param string $term
- 术语。@param string $taxonomy
- 分类。
apply_filters('Municipio/taxonomy/tag_style', $style, $term, $taxonomy);
市镇/菜单/垂直/条目
应在垂直导航菜单中可见的条目。以带有悬停标签的点表示。
@param array $items
- 表示链接的条目数组。
apply_filters('Municipio/Menu/Vertical/EnabledSidebars', array(array('title' => 'Page section title', 'link' => '#anchorlink'));
市镇/ContentType/schemaParams
修改内容类型的模式参数。此过滤器应用于与内容类型关联的模式参数数组,允许扩展或修改该内容类型的结构化数据(schema.org)属性。
@param array $schemaParams
- 内容类型的默认模式参数。@param string $contentTypeKey
- 识别内容类型的键。
add_filter('Municipio/ContentType/schemaParams', function($schemaParams, $contentTypeKey) { if ($contentTypeKey === 'yourContentTypeKey') { $schemaParams['newParameter'] = [ 'schemaType' => 'Text', 'value' => 'Custom Value' ]; } return $schemaParams; }, 10, 2);
市镇/Controller/SingularContentType/listing
通过附加与位置相关的列表项来修改位置内容类型的列表数组。这允许在列表显示中直接包含如街道名称或谷歌地图链接等附加信息。
@param array $listing
- 将要修改的现有列表数组。@param array $fields
- 与帖子关联的字段,用于提取位置信息。
add_filter('Municipio/Controller/SingularContentType/listing', function($listing, $fields) { // Example modification to the listing array if (!empty($fields['custom_field'])) { $listing['custom_field'] = $fields['custom_field']; } return $listing; }, 10, 2);
REST 路由
主题提供了以下 REST API 路由。
[GET] municipio/v1/view/render/{view}
返回 html
@param string $view
- 要渲染的 blade 视图路径。附加到路由。@param object $data
- 要传递给视图的数据。
示例用法
fetch('/wp-json/municipio/v1/view/render/partials/preloader') .then((response) => console.log(response))
开发模式
要从本地样式指南加载资源。将 contant DEV_MODE 设置为 "true"。
define('DEV_MODE', true);
主题字体
市镇集成了 google web-fonts。它启用了智能加载字体,防止使用 Google & Adobe webfont loader 导致的不可见字体。
define('WEB_FONT', 'Roboto'); //The google fonts name (without weights) define('WEB_FONT_REMOTE', true); //Load font kit from cdn
版本 2.0
版本 2.0 的目标是重构主题前端并朝着 BEM (IT) 标准进行标记。将自动添加更多过滤器,类似于 ACF 所做的那样。目前,这些将在以下内容中记录。
弃用功能(注意阶段)
版本 2.0 将引入有关删除某些先前功能的警告。根据计划,此功能将在版本 3.0 中实际删除。将在 3.0 中删除的函数包括。
- Gravitiforms 优化
- 针对评论的 Honeytrap 功能(此功能将移至单独的插件)。还将包括 Google reCAPTCHA。
- 联系小部件(可在模块化中提供替代方案)
- 富文本小部件(嵌入在核心中的替代方案)
- PostType & 分类创建器(移至插件)
- 上传过滤器(移至插件)
过滤器
弃用过滤器
- HbgBlade/data 替换为 Municipio/viewData
- Municipio/ajax_url_in_head 替换为 Municipio/ajaxUrl
- 模块化/CoreTemplatesSearchPaths
Blade 视图过滤器
所有发送(创建)到控制器的变量将自动通过名为变量键的过滤器。
apply_filters('Municipio/{{KEY}}', $var);
全局视图过滤器
您可能希望获取发送到视图的所有内容的完整数组。在上述过滤器运行后,将应用全局过滤器。这取代了旧的过滤器。
apply_filters('Municipio/viewData', $var);
常量
MUNICIPIO_FRAGMENT_CACHE - 设置为 false 以删除片段缓存。
主题视图结构
bem-views
│ [Main folder for theme views, containing WordPress templates like page.blade.php]
│
└───components
│ │ [Components for the theme like card.blade.php]
│ │
└───partials
│ │ [Big chunks that are reused in templates footer.blade.php]
│ │
└───templates
│ [General templates that are included in main WordPress views like master.blade.php]
│ │
└───utilities
│ [Small pieces used by components like button.blade.php]
│ │
└───widgets
│ [Widgetized components]
│
PHP 测试
市镇使用 PHPUnit 进行单元测试。对于模拟和存根,我们使用 WP_Mock。这意味着您可以使用 WP_Mock、Mockery(这是 WP_Mock 的包装器)和 PHPUnit_MockObject 进行模拟和存根。
PHPUnit 测试文件结构
所有测试都存储在 tests/phpunit/tests
文件夹中。文件结构应与主题的文件结构相同。文件名应与您要测试的文件相同。例如,如果您想测试文件 src/Controller/Base.php
,则应创建文件 tests/phpunit/tests/Controller/Base.php
。为了避免测试文件过大,您也可以创建一个与要测试的文件同名的文件夹,并将测试文件放在其中。请注意,为了根据您正在测试的类函数来分隔文件,您应命名文件,例如 Base.functionName.php
。
运行 PHPUnit 测试
在终端中运行 composer test
。
带有代码覆盖率的 PHPUnit 测试
在终端中运行 composer test:coverage
。这将生成一个代码覆盖率报告,位于 tests/phpunit/.coverage
文件夹中。
图像压缩
Municipio 支持使用 shortpixel 进行图像压缩。这将延迟排队一个 cronjob 以压缩新上传的图像。只需在您的配置文件中定义 SHORTPIXEL_API_KEY 常量即可!
压缩级别将为中等/光泽,适用于高质量照片。
与 BrowserStack 的支持进行了测试
本软件已使用 Browserstack 的出色工具进行了测试。