Compare commits
38 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
edf1bac99d | |
|
|
d6a46976ef | |
|
|
fca2af463e | |
|
|
28183c4288 | |
|
|
b52f0cd3ba | |
|
|
edcc0c871f | |
|
|
ed376e7d24 | |
|
|
7cb32137bc | |
|
|
f9339e6c62 | |
|
|
159a580148 | |
|
|
0e92288e89 | |
|
|
6d124e29a6 | |
|
|
3d8015189f | |
|
|
cb9cd3202f | |
|
|
9fa1872316 | |
|
|
71ccf95660 | |
|
|
8120ffb25f | |
|
|
cf89855d79 | |
|
|
637ca1cdaf | |
|
|
21b17166ed | |
|
|
11ad5fbed7 | |
|
|
db33de9f44 | |
|
|
7a1f957f65 | |
|
|
8acfcae4a6 | |
|
|
b600ab1267 | |
|
|
074f2efe49 | |
|
|
2a860e5e95 | |
|
|
4f4758c75f | |
|
|
7dc881bc8f | |
|
|
cd33190597 | |
|
|
ec410b235d | |
|
|
2196a551b5 | |
|
|
6773aef359 | |
|
|
6cf14add0e | |
|
|
ef46740af7 | |
|
|
f856221b28 | |
|
|
830e8b94a8 | |
|
|
61bf366867 |
|
|
@ -15,96 +15,34 @@ function run( $command, &$result_code = null ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* ACF PRO license.
|
||||
* Pronamic ACF authorization.
|
||||
*/
|
||||
$acf_pro_license = getenv( 'ACF_PRO_LICENSE' );
|
||||
$pronamic_acf_authorization = getenv( 'PRONAMIC_ACF_AUTHORIZATION' );
|
||||
|
||||
if ( empty( $acf_pro_license ) ) {
|
||||
echo 'ACF PRO license not defined in `ACF_PRO_LICENSE` environment variable.';
|
||||
if ( empty( $pronamic_acf_authorization ) ) {
|
||||
echo 'Pronamic ACF authorization not defined in `PRONAMIC_ACF_AUTHORIZATION` environment variable.';
|
||||
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
$header_authorization = 'Authorization: Bearer ' . $pronamic_acf_authorization;
|
||||
|
||||
/**
|
||||
* Request info.
|
||||
*/
|
||||
line( '::group::Check ACF' );
|
||||
|
||||
$url = 'https://connect.advancedcustomfields.com/v2/plugins/update-check';
|
||||
|
||||
$basename = 'advanced-custom-fields-pro/acf.php';
|
||||
|
||||
$data_plugins = [
|
||||
$basename => [
|
||||
'id' => 'pro',
|
||||
'key' => $acf_pro_license,
|
||||
'slug' => 'advanced-custom-fields-pro',
|
||||
'basename' => $basename,
|
||||
'version' => '1.0.0',
|
||||
]
|
||||
];
|
||||
|
||||
$data_wp = [
|
||||
'wp_name' => 'acf',
|
||||
'wp_version' => '6.3',
|
||||
];
|
||||
|
||||
$data_acf = [
|
||||
'acf_version' => '1.0.0',
|
||||
'acf_pro' => true,
|
||||
'block_count' => 0,
|
||||
];
|
||||
$url = 'https://acf-connect.pronamic.directory/version';
|
||||
|
||||
$data = run(
|
||||
sprintf(
|
||||
'curl --data %s --data %s --data %s --request POST %s',
|
||||
escapeshellarg( 'plugins=' . json_encode( $data_plugins ) ),
|
||||
escapeshellarg( 'wp=' . json_encode( $data_wp ) ),
|
||||
escapeshellarg( 'acf=' . json_encode( $data_acf ) ),
|
||||
'curl --header %s --request GET %s',
|
||||
escapeshellarg( $header_authorization ),
|
||||
escapeshellarg( $url )
|
||||
)
|
||||
);
|
||||
|
||||
$result = json_decode( $data );
|
||||
|
||||
var_dump( $result );
|
||||
|
||||
if ( ! is_object( $result ) ) {
|
||||
throw new Exception(
|
||||
sprintf(
|
||||
'Unknow response from: %s.',
|
||||
$url
|
||||
)
|
||||
);
|
||||
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
if ( ! property_exists( $result, 'plugins' ) ) {
|
||||
echo 'No plugins';
|
||||
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
$plugins = $result->plugins;
|
||||
|
||||
if ( ! property_exists( $plugins, $basename ) ) {
|
||||
echo 'No plugin';
|
||||
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
$plugin = $plugins->{$basename};
|
||||
|
||||
if ( ! property_exists( $plugin, 'new_version' ) ) {
|
||||
echo 'Unknown version';
|
||||
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
$version = $plugin->new_version;
|
||||
|
||||
$url = $plugin->package;
|
||||
$version = $data;
|
||||
|
||||
line(
|
||||
sprintf(
|
||||
|
|
@ -113,6 +51,36 @@ line(
|
|||
)
|
||||
);
|
||||
|
||||
line( '::endgroup::' );
|
||||
|
||||
/**
|
||||
* GitHub release view.
|
||||
*/
|
||||
line( '::group::Check GitHub release' );
|
||||
|
||||
$tag = 'v' . $version;
|
||||
|
||||
run(
|
||||
sprintf(
|
||||
'gh release view %s',
|
||||
$tag
|
||||
),
|
||||
$result_code
|
||||
);
|
||||
|
||||
$release_found = ( 0 === $result_code );
|
||||
|
||||
line( '::endgroup::' );
|
||||
|
||||
if ( $release_found ) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Download.
|
||||
*/
|
||||
$url = 'https://acf-connect.pronamic.directory/package';
|
||||
|
||||
line(
|
||||
sprintf(
|
||||
'ACF ZIP URL: %s',
|
||||
|
|
@ -120,8 +88,6 @@ line(
|
|||
)
|
||||
);
|
||||
|
||||
line( '::endgroup::' );
|
||||
|
||||
/**
|
||||
* Files.
|
||||
*/
|
||||
|
|
@ -139,7 +105,7 @@ mkdir( $plugins_dir );
|
|||
|
||||
$plugin_dir = $plugins_dir . '/advanced-custom-fields-pro';
|
||||
|
||||
$zip_file = $archives_dir . '/advanced-custom-fields-pro-' . $version . '.zip';
|
||||
$zip_file = $archives_dir . '/advanced-custom-fields-pro.' . $version . '.zip';
|
||||
|
||||
/**
|
||||
* Download ZIP.
|
||||
|
|
@ -148,7 +114,8 @@ line( '::group::Download ACF' );
|
|||
|
||||
run(
|
||||
sprintf(
|
||||
'curl %s --output %s',
|
||||
'curl --header %s --request GET %s --output %s',
|
||||
escapeshellarg( $header_authorization ),
|
||||
escapeshellarg( $url ),
|
||||
$zip_file
|
||||
)
|
||||
|
|
@ -237,34 +204,17 @@ run( 'gh auth status' );
|
|||
|
||||
run( 'git push origin main' );
|
||||
|
||||
/**
|
||||
* GitHub release view.
|
||||
*/
|
||||
$tag = 'v' . $version;
|
||||
|
||||
run(
|
||||
sprintf(
|
||||
'gh release view %s',
|
||||
$tag
|
||||
),
|
||||
$result_code
|
||||
);
|
||||
|
||||
$release_not_found = ( 1 === $result_code );
|
||||
|
||||
/**
|
||||
* GitHub release.
|
||||
*
|
||||
* @todo https://memberpress.com/wp-json/wp/v2/pages?slug=change-log
|
||||
* @link https://cli.github.com/manual/gh_release_create
|
||||
*/
|
||||
if ( $release_not_found ) {
|
||||
run(
|
||||
sprintf(
|
||||
'gh release create %s %s --title %s',
|
||||
$tag,
|
||||
$zip_file,
|
||||
$version
|
||||
)
|
||||
);
|
||||
}
|
||||
run(
|
||||
sprintf(
|
||||
'gh release create %s %s --title %s',
|
||||
$tag,
|
||||
$zip_file,
|
||||
$version
|
||||
)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,31 @@
|
|||
name: Deploy to Pronamic WordPress directory
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: 'Release tag to deploy'
|
||||
type: string
|
||||
release:
|
||||
types: [released]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
environment:
|
||||
name: Pronamic WordPress directory
|
||||
url: https://wp.pronamic.directory/plugins/advanced-custom-fields-pro/
|
||||
|
||||
permissions:
|
||||
contents: 'read'
|
||||
id-token: 'write'
|
||||
|
||||
steps:
|
||||
- name: Deploy
|
||||
uses: pronamic/action-wp-pronamic-directory-plugin-deploy@main
|
||||
with:
|
||||
username: ${{ vars.WP_PRONAMIC_DIRECTORY_USERNAME }}
|
||||
password: ${{ secrets.WP_PRONAMIC_DIRECTORY_PASSWORD }}
|
||||
slug: advanced-custom-fields-pro
|
||||
tag: ${{ inputs.tag || github.event.release.tag_name }}
|
||||
|
|
@ -11,10 +11,10 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
ACF_PRO_LICENSE: ${{ secrets.ACF_PRO_LICENSE }}
|
||||
PRONAMIC_ACF_AUTHORIZATION: ${{ secrets.PRONAMIC_ACF_AUTHORIZATION }}
|
||||
run: php .github/scripts/release.php
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
# Advanced Custom Fields
|
||||
|
||||
Welcome to the official Advanced Custom Fields repository on GitHub. ACF is a WordPress plugin used to take full control of your edit screens & custom field data.
|
||||
|
||||
## Documentation
|
||||
|
||||
Do you need help getting started with ACF, or do you have questions about one of the ACF features? You can [search through our documentation here](https://www.advancedcustomfields.com/resources/). If you don't find the answers you're looking for, you can start a new forum thread in the [support forum](https://support.advancedcustomfields.com/) or contact our [support team](https://www.advancedcustomfields.com/contact/)
|
||||
|
||||
If you've got feedback or a feature suggestion for ACF, please use our [feedback board](https://www.advancedcustomfields.com/feedback/)
|
||||
|
||||
## Support
|
||||
|
||||
This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core issues only.
|
||||
Support can take place in the appropriate channels:
|
||||
|
||||
* Community forum
|
||||
* Email based ticket system
|
||||
|
||||
These channels can be accessed from our [support website](https://support.advancedcustomfields.com/).
|
||||
|
||||
## Contributing
|
||||
|
||||
If you have a patch, or stumbled upon an issue with ACF core, you can contribute this back to the code. Please create a new github issue with as much information as possible, and a PR if appropriate.
|
||||
|
||||
## Translations
|
||||
|
||||
If you're looking to translate ACF, you can submit new PRO translations via a PR on this repo. Any strings from the free version are imported from [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/advanced-custom-fields/stable/). For more information, please view our [translation guide](https://www.advancedcustomfields.com/resources/how-to-help-translate-acf-into-other-languages/)
|
||||
189
acf.php
|
|
@ -2,21 +2,31 @@
|
|||
/**
|
||||
* Advanced Custom Fields PRO
|
||||
*
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* @wordpress-plugin
|
||||
* Plugin Name: Advanced Custom Fields PRO
|
||||
* Plugin URI: https://www.advancedcustomfields.com
|
||||
* Description: Customize WordPress with powerful, professional and intuitive fields.
|
||||
* Version: 6.2.2
|
||||
* Version: 6.7.0.2
|
||||
* Author: WP Engine
|
||||
* Author URI: https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields
|
||||
* Update URI: https://www.advancedcustomfields.com/pro
|
||||
* Text Domain: acf
|
||||
* Domain Path: /lang
|
||||
* Requires PHP: 7.0
|
||||
* Requires at least: 5.8
|
||||
* Requires PHP: 7.4
|
||||
* Requires at least: 6.2
|
||||
*/
|
||||
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
|
|
@ -28,7 +38,6 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
/**
|
||||
* The main ACF class
|
||||
*/
|
||||
#[AllowDynamicProperties]
|
||||
class ACF {
|
||||
|
||||
/**
|
||||
|
|
@ -36,7 +45,7 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
public $version = '6.2.2';
|
||||
public $version = '6.7.0.2';
|
||||
|
||||
/**
|
||||
* The plugin settings array.
|
||||
|
|
@ -59,13 +68,53 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
*/
|
||||
public $instances = array();
|
||||
|
||||
/**
|
||||
* The loop instance.
|
||||
*
|
||||
* @var acf_loop
|
||||
*/
|
||||
public $loop;
|
||||
|
||||
/**
|
||||
* The revisions instance.
|
||||
*
|
||||
* @var acf_revisions
|
||||
*/
|
||||
public $revisions;
|
||||
|
||||
/**
|
||||
* The fields instance.
|
||||
*
|
||||
* @var acf_fields
|
||||
*/
|
||||
public $fields;
|
||||
|
||||
/**
|
||||
* The form front instance.
|
||||
*
|
||||
* @var acf_form_front
|
||||
*/
|
||||
public $form_front;
|
||||
|
||||
/**
|
||||
* The validation instance.
|
||||
*
|
||||
* @var acf_validation
|
||||
*/
|
||||
public $validation;
|
||||
|
||||
/**
|
||||
* The admin tools instance.
|
||||
*
|
||||
* @var acf_admin_tools
|
||||
*/
|
||||
public $admin_tools;
|
||||
|
||||
/**
|
||||
* A dummy constructor to ensure ACF is only setup once.
|
||||
*
|
||||
* @date 23/06/12
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct() {
|
||||
// Do nothing.
|
||||
|
|
@ -76,8 +125,6 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function initialize() {
|
||||
|
||||
|
|
@ -90,9 +137,12 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
$this->define( 'ACF_FIELD_API_VERSION', 5 );
|
||||
$this->define( 'ACF_UPGRADE_VERSION', '5.5.0' ); // Highest version with an upgrade routine. See upgrades.php.
|
||||
|
||||
// Register activation hook.
|
||||
register_activation_hook( __FILE__, array( $this, 'acf_plugin_activated' ) );
|
||||
|
||||
// Define settings.
|
||||
$this->settings = array(
|
||||
'name' => __( 'Advanced Custom Fields', 'acf' ),
|
||||
'name' => 'Advanced Custom Fields',
|
||||
'slug' => dirname( ACF_BASENAME ),
|
||||
'version' => ACF_VERSION,
|
||||
'basename' => ACF_BASENAME,
|
||||
|
|
@ -130,8 +180,13 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
'preload_blocks' => true,
|
||||
'enable_shortcode' => true,
|
||||
'enable_bidirection' => true,
|
||||
'enable_block_bindings' => true,
|
||||
'enable_meta_box_cb_edit' => true,
|
||||
);
|
||||
|
||||
// Include autoloader.
|
||||
include_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
// Include utility functions.
|
||||
include_once ACF_PATH . 'includes/acf-utility-functions.php';
|
||||
|
||||
|
|
@ -147,8 +202,18 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
acf_include( 'includes/locations/abstract-acf-legacy-location.php' );
|
||||
acf_include( 'includes/locations/abstract-acf-location.php' );
|
||||
|
||||
// Initialise autoloaded classes.
|
||||
new ACF\Site_Health\Site_Health();
|
||||
|
||||
// Include functions.
|
||||
acf_include( 'includes/acf-helper-functions.php' );
|
||||
|
||||
acf_new_instance( 'ACF\Meta\Comment' );
|
||||
acf_new_instance( 'ACF\Meta\Post' );
|
||||
acf_new_instance( 'ACF\Meta\Term' );
|
||||
acf_new_instance( 'ACF\Meta\User' );
|
||||
acf_new_instance( 'ACF\Meta\Option' );
|
||||
|
||||
acf_include( 'includes/acf-hook-functions.php' );
|
||||
acf_include( 'includes/acf-field-functions.php' );
|
||||
acf_include( 'includes/acf-bidirectional-functions.php' );
|
||||
|
|
@ -164,6 +229,14 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
acf_include( 'includes/acf-input-functions.php' );
|
||||
acf_include( 'includes/acf-wp-functions.php' );
|
||||
|
||||
// Override the shortcode default value based on the version when installed.
|
||||
$first_activated_version = acf_get_version_when_first_activated();
|
||||
|
||||
// Only enable shortcode by default for versions prior to 6.3
|
||||
if ( $first_activated_version && version_compare( $first_activated_version, '6.3', '>=' ) ) {
|
||||
$this->settings['enable_shortcode'] = false;
|
||||
}
|
||||
|
||||
// Include core.
|
||||
acf_include( 'includes/fields.php' );
|
||||
acf_include( 'includes/locations.php' );
|
||||
|
|
@ -177,7 +250,6 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
acf_include( 'includes/loop.php' );
|
||||
acf_include( 'includes/media.php' );
|
||||
acf_include( 'includes/revisions.php' );
|
||||
acf_include( 'includes/updates.php' );
|
||||
acf_include( 'includes/upgrades.php' );
|
||||
acf_include( 'includes/validation.php' );
|
||||
acf_include( 'includes/rest-api.php' );
|
||||
|
|
@ -216,17 +288,16 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
acf_include( 'includes/admin/admin-upgrade.php' );
|
||||
}
|
||||
|
||||
// Include polyfill for < PHP7 unserialize.
|
||||
if ( PHP_VERSION_ID < 70000 ) {
|
||||
acf_include( 'vendor/polyfill-unserialize/src/Unserialize.php' );
|
||||
acf_include( 'vendor/polyfill-unserialize/src/DisallowedClassesSubstitutor.php' );
|
||||
}
|
||||
|
||||
// Include legacy.
|
||||
acf_include( 'includes/legacy/legacy-locations.php' );
|
||||
|
||||
// Include PRO.
|
||||
acf_include( 'pro/acf-pro.php' );
|
||||
// Include updater if included with this build.
|
||||
acf_include( 'includes/Updater/init.php' );
|
||||
|
||||
// Include PRO if included with this build.
|
||||
if ( ! defined( 'ACF_PREVENT_PRO_LOAD' ) || ( defined( 'ACF_PREVENT_PRO_LOAD' ) && ! ACF_PREVENT_PRO_LOAD ) ) {
|
||||
acf_include( 'pro/acf-pro.php' );
|
||||
}
|
||||
|
||||
if ( is_admin() && function_exists( 'acf_is_pro' ) && ! acf_is_pro() ) {
|
||||
acf_include( 'includes/admin/admin-options-pages-preview.php' );
|
||||
|
|
@ -248,8 +319,6 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
*
|
||||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function init() {
|
||||
|
||||
|
|
@ -269,6 +338,9 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
// Load textdomain file.
|
||||
acf_load_textdomain();
|
||||
|
||||
// Make plugin name translatable.
|
||||
acf_update_setting( 'name', __( 'Advanced Custom Fields', 'acf' ) );
|
||||
|
||||
// Include 3rd party compatiblity.
|
||||
acf_include( 'includes/third-party.php' );
|
||||
|
||||
|
|
@ -314,6 +386,7 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
acf_include( 'includes/fields/class-acf-field-date_time_picker.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-time_picker.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-color_picker.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-icon_picker.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-message.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-accordion.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-tab.php' );
|
||||
|
|
@ -390,6 +463,11 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
*/
|
||||
do_action( 'acf/include_taxonomies', ACF_MAJOR_VERSION );
|
||||
|
||||
// If we're on 6.5 or newer, load block bindings.
|
||||
if ( version_compare( get_bloginfo( 'version' ), '6.5', '>=' ) ) {
|
||||
new ACF\Blocks\Bindings();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fires after ACF is completely "initialized".
|
||||
*
|
||||
|
|
@ -406,8 +484,6 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
*
|
||||
* @date 22/10/2015
|
||||
* @since 5.3.2
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_post_types() {
|
||||
$cap = acf_get_setting( 'capability' );
|
||||
|
|
@ -486,8 +562,6 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
*
|
||||
* @date 22/10/2015
|
||||
* @since 5.3.2
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register_post_status() {
|
||||
|
||||
|
|
@ -618,7 +692,7 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
* @date 3/5/17
|
||||
* @since 5.5.13
|
||||
*
|
||||
* @param string $name The constant name.
|
||||
* @param string $name The constant name.
|
||||
* @param mixed $value The constant value.
|
||||
* @return void
|
||||
*/
|
||||
|
|
@ -660,7 +734,7 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param string $name The setting name.
|
||||
* @param string $name The setting name.
|
||||
* @param mixed $value The setting value.
|
||||
* @return true
|
||||
*/
|
||||
|
|
@ -688,7 +762,7 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
* @date 28/09/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param string $name The data name.
|
||||
* @param string $name The data name.
|
||||
* @param mixed $value The data value.
|
||||
* @return void
|
||||
*/
|
||||
|
|
@ -733,7 +807,7 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
* @since 5.9.0
|
||||
*
|
||||
* @param string $key Key name.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
public function __isset( $key ) {
|
||||
return in_array( $key, array( 'locations', 'json' ), true );
|
||||
|
|
@ -757,6 +831,58 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Plugin Activation Hook
|
||||
*
|
||||
* @since 6.2.6
|
||||
*/
|
||||
public function acf_plugin_activated() {
|
||||
// Set the first activated version of ACF.
|
||||
if ( null === get_option( 'acf_first_activated_version', null ) ) {
|
||||
// If acf_version is set, this isn't the first activated version, so leave it unset so it's legacy.
|
||||
if ( null === get_option( 'acf_version', null ) ) {
|
||||
update_option( 'acf_first_activated_version', ACF_VERSION, true );
|
||||
|
||||
do_action( 'acf/first_activated' );
|
||||
}
|
||||
}
|
||||
|
||||
if ( acf_is_pro() ) {
|
||||
do_action( 'acf/activated_pro' );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* An ACF specific getter to replace `home_url` in our license checks to ensure we can avoid third party filters.
|
||||
*
|
||||
* @since 6.0.1
|
||||
* @since 6.2.8 - Renamed to acf_pro_get_home_url to match pro exclusive function naming.
|
||||
* @since 6.3.10 - Renamed to acf_get_home_url now updater logic applies to free.
|
||||
*
|
||||
* @return string $home_url The output from home_url, sans known third party filters which cause license activation issues.
|
||||
*/
|
||||
function acf_get_home_url() {
|
||||
if ( acf_is_pro() ) {
|
||||
// Disable WPML and TranslatePress's home url overrides for our license check.
|
||||
add_filter( 'wpml_get_home_url', 'acf_pro_license_ml_intercept', 99, 2 );
|
||||
add_filter( 'trp_home_url', 'acf_pro_license_ml_intercept', 99, 2 );
|
||||
|
||||
if ( acf_pro_is_legacy_multisite() && acf_is_multisite_sub_site() ) {
|
||||
$home_url = get_home_url( get_main_site_id() );
|
||||
} else {
|
||||
$home_url = home_url();
|
||||
}
|
||||
|
||||
// Re-enable WPML and TranslatePress's home url overrides.
|
||||
remove_filter( 'wpml_get_home_url', 'acf_pro_license_ml_intercept', 99 );
|
||||
remove_filter( 'trp_home_url', 'acf_pro_license_ml_intercept', 99 );
|
||||
} else {
|
||||
$home_url = home_url();
|
||||
}
|
||||
|
||||
return $home_url;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -783,5 +909,4 @@ if ( ! class_exists( 'ACF' ) ) {
|
|||
|
||||
// Instantiate.
|
||||
acf();
|
||||
|
||||
} // class_exists check
|
||||
|
|
|
|||
|
|
@ -1,321 +0,0 @@
|
|||
/*!***************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/advanced-custom-fields-pro/assets/src/sass/acf-dark.scss ***!
|
||||
\***************************************************************************************************************************************************************************************************************/
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Dark mode
|
||||
*
|
||||
* WordPress plugin: https://en-au.wordpress.org/plugins/dark-mode/
|
||||
* Github Documentation: https://github.com/danieltj27/Dark-Mode/wiki/Help:-Plugin-Compatibility-Guide
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Global
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-box {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-box .title,
|
||||
.acf-box .footer {
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-box h2 {
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-box table, .acf-box tbody, .acf-box tr {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.acf-thead {
|
||||
color: #bbc8d4;
|
||||
border-color: #191f25;
|
||||
}
|
||||
|
||||
.acf-tfoot {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-table.-clear,
|
||||
.acf-table.-clear tr {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.acf-loading-overlay {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Fields
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-fields > .acf-field {
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-fields.-left > .acf-field:before {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-fields.-border {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
|
||||
.acf-field[data-width] + .acf-field[data-width] {
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-input-prepend,
|
||||
.acf-input-append {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
|
||||
.acf-fields > .acf-tab-wrap {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-fields > .acf-tab-wrap .acf-tab-group {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-fields > .acf-tab-wrap .acf-tab-group li a {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-fields > .acf-tab-wrap .acf-tab-group li a:hover {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-fields > .acf-tab-wrap .acf-tab-group li.active a {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
|
||||
.acf-fields.-sidebar:before {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-fields.-sidebar.-left:before {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
background: #23282d;
|
||||
}
|
||||
.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li a {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li.active a {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-file-uploader .show-if-value {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-file-uploader .show-if-value .file-icon {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-oembed {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-oembed .title {
|
||||
background-color: #50626f;
|
||||
border-color: #191f25;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.acf-gallery {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-gallery .acf-gallery-main {
|
||||
background: #23282d;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .margin {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side .acf-gallery-side-info {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-gallery .acf-gallery-toolbar {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-button-group label:not(.selected) {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-switch:not(.-on) {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-switch:not(.-on) .acf-switch-slider {
|
||||
background-color: #50626f;
|
||||
border-color: #191f25;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.acf-link .link-wrap {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-relationship .filters {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-relationship .selection {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-relationship .selection .choices,
|
||||
.acf-relationship .selection .choices-list,
|
||||
.acf-relationship .selection .values {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-taxonomy-field .categorychecklist-holder {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-google-map {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-google-map .title {
|
||||
background-color: #50626f;
|
||||
border-color: #191f25;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.acf-accordion {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
|
||||
.acf-field.acf-accordion .acf-accordion-content > .acf-fields {
|
||||
border-color: #191f25;
|
||||
}
|
||||
|
||||
.acf-flexible-content .layout {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-handle {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-handle .acf-fc-layout-order {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
|
||||
#wpbody .acf-table {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
#wpbody .acf-table > tbody > tr,
|
||||
#wpbody .acf-table > thead > tr {
|
||||
background: transparent;
|
||||
}
|
||||
#wpbody .acf-table > tbody > tr > td,
|
||||
#wpbody .acf-table > tbody > tr > th,
|
||||
#wpbody .acf-table > thead > tr > td,
|
||||
#wpbody .acf-table > thead > tr > th {
|
||||
border-color: #191f25;
|
||||
}
|
||||
|
||||
.acf-field select optgroup, .acf-field select optgroup:nth-child(2n) {
|
||||
background: #50626f;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Field Group
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
#acf-field-group-fields .acf-field-list-wrap {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-list .no-fields-message {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
border-color: #23282d;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object table, #acf-field-group-fields .acf-field-object tbody, #acf-field-group-fields .acf-field-object tr, #acf-field-group-fields .acf-field-object td, #acf-field-group-fields .acf-field-object th {
|
||||
background: transparent;
|
||||
border-color: #23282d;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object .acf-field .acf-label {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object.ui-sortable-helper {
|
||||
border-color: #191f25;
|
||||
box-shadow: none;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object.ui-sortable-placeholder {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
box-shadow: none;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object + .acf-field-object-tab::before,
|
||||
#acf-field-group-fields .acf-field-object + .acf-field-object-accordion::before {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Admin: Tools
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-meta-box-wrap .acf-fields {
|
||||
background-color: #50626f;
|
||||
border-color: #191f25;
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=acf-dark.css.map*/
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -1,144 +0,0 @@
|
|||
/*!******************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/advanced-custom-fields-pro/assets/src/sass/pro/acf-pro-field-group.scss ***!
|
||||
\******************************************************************************************************************************************************************************************************************************/
|
||||
@charset "UTF-8";
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Vars
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/* colors */
|
||||
/* acf-field */
|
||||
/* responsive */
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* ACF 6 ↓
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Mixins
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Flexible Content
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-field-setting-fc_layout .acf-toggle-fc-layout {
|
||||
width: 34px;
|
||||
height: 31px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
left: 20.83%;
|
||||
right: 20.83%;
|
||||
top: 33.33%;
|
||||
bottom: 33.33%;
|
||||
}
|
||||
.acf-field-setting-fc_layout .toggle-indicator::before {
|
||||
z-index: -1;
|
||||
content: "";
|
||||
display: inline-flex;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-left: -28px;
|
||||
background-color: currentColor;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
-webkit-mask-size: contain;
|
||||
mask-size: contain;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
mask-repeat: no-repeat;
|
||||
-webkit-mask-position: center;
|
||||
mask-position: center;
|
||||
-webkit-mask-image: url(../../../images/icons/icon-chevron-down.svg);
|
||||
mask-image: url(../../../images/icons/icon-chevron-down.svg);
|
||||
}
|
||||
.rtl .acf-field-setting-fc_layout .toggle-indicator::before {
|
||||
margin-left: 0px;
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
z-index: 100;
|
||||
left: 8px;
|
||||
}
|
||||
|
||||
.acf-field-setting-fc_layout .toggle-indicator.open::before {
|
||||
-webkit-mask-image: url(../../../images/icons/icon-chevron-up.svg);
|
||||
mask-image: url(../../../images/icons/icon-chevron-up.svg);
|
||||
}
|
||||
.acf-field-setting-fc_layout .toggle-indicator.closed::before {
|
||||
-webkit-mask-image: url(../../../images/icons/icon-chevron-down.svg);
|
||||
mask-image: url(../../../images/icons/icon-chevron-down.svg);
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-flexible-content-field-label-name {
|
||||
padding-left: 5px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta {
|
||||
margin: 0 0 10px;
|
||||
padding: 0;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta li {
|
||||
margin: 0 0 10px;
|
||||
padding: 0;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display {
|
||||
float: left;
|
||||
width: 100%;
|
||||
padding-right: 5px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-left {
|
||||
width: calc(50% - 4px);
|
||||
float: left;
|
||||
clear: left;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-right {
|
||||
width: calc(50% - 4px);
|
||||
float: left;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-min {
|
||||
width: calc(25% - 5px);
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-max {
|
||||
width: calc(25% - 10px);
|
||||
float: left;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-label .acf-input-prepend,
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-name .acf-input-prepend,
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display .acf-input-prepend {
|
||||
min-width: 60px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc_draggable,
|
||||
.acf-field-setting-fc_layout .reorder-layout {
|
||||
cursor: grab;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fl-actions a {
|
||||
padding: 1px 0;
|
||||
font-size: 13px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Clone
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-field-object-clone {
|
||||
/* group */
|
||||
/* seamless */
|
||||
}
|
||||
.acf-field-object-clone[data-display=seamless] .acf-field-setting-instructions,
|
||||
.acf-field-object-clone[data-display=seamless] .acf-field-setting-layout,
|
||||
.acf-field-object-clone[data-display=seamless] .acf-field-setting-wrapper,
|
||||
.acf-field-object-clone[data-display=seamless] .acf-field-setting-conditional_logic {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=acf-pro-field-group.css.map*/
|
||||
|
|
@ -1 +1 @@
|
|||
.acf-field-setting-fc_layout .acf-toggle-fc-layout{width:34px;height:31px;margin:0;padding:0;border:0;background:rgba(0,0,0,0);cursor:pointer;left:20.83%;right:20.83%;top:33.33%;bottom:33.33%}.acf-field-setting-fc_layout .toggle-indicator::before{z-index:-1;content:"";display:inline-flex;width:20px;height:20px;margin-left:-28px;background-color:currentColor;border:none;border-radius:0;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(../../../images/icons/icon-chevron-down.svg);mask-image:url(../../../images/icons/icon-chevron-down.svg)}.rtl .acf-field-setting-fc_layout .toggle-indicator::before{margin-left:0px;position:absolute;top:9px;z-index:100;left:8px}.acf-field-setting-fc_layout .toggle-indicator.open::before{-webkit-mask-image:url(../../../images/icons/icon-chevron-up.svg);mask-image:url(../../../images/icons/icon-chevron-up.svg)}.acf-field-setting-fc_layout .toggle-indicator.closed::before{-webkit-mask-image:url(../../../images/icons/icon-chevron-down.svg);mask-image:url(../../../images/icons/icon-chevron-down.svg)}.acf-field-setting-fc_layout .acf-flexible-content-field-label-name{padding-left:5px}.acf-field-setting-fc_layout .acf-fc-meta{margin:0 0 10px;padding:0}.acf-field-setting-fc_layout .acf-fc-meta li{margin:0 0 10px;padding:0}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display{float:left;width:100%;padding-right:5px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-left{width:calc(50% - 4px);float:left;clear:left;margin-right:4px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-right{width:calc(50% - 4px);float:left;margin-left:4px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-min{width:calc(25% - 5px);float:left;margin-right:5px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-max{width:calc(25% - 10px);float:left;margin-left:4px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-label .acf-input-prepend,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-name .acf-input-prepend,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display .acf-input-prepend{min-width:60px}.acf-field-setting-fc_layout .acf-fc_draggable,.acf-field-setting-fc_layout .reorder-layout{cursor:grab}.acf-field-setting-fc_layout .acf-fl-actions a{padding:1px 0;font-size:13px;line-height:20px}.acf-field-object-clone[data-display=seamless] .acf-field-setting-instructions,.acf-field-object-clone[data-display=seamless] .acf-field-setting-layout,.acf-field-object-clone[data-display=seamless] .acf-field-setting-wrapper,.acf-field-object-clone[data-display=seamless] .acf-field-setting-conditional_logic{display:none}
|
||||
.acf-field-setting-fc_layout .acf-toggle-fc-layout{width:34px;height:31px;margin:0;padding:0;border:0;background:rgba(0,0,0,0);cursor:pointer;left:20.83%;right:20.83%;top:33.33%;bottom:33.33%}.acf-field-setting-fc_layout .toggle-indicator::before{z-index:-1;content:"";display:inline-flex;width:20px;height:20px;margin-left:-28px;background-color:currentColor;border:none;border-radius:0;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(../../../images/icons/icon-chevron-down.svg);mask-image:url(../../../images/icons/icon-chevron-down.svg)}.rtl .acf-field-setting-fc_layout .toggle-indicator::before{margin-left:0px;position:absolute;top:9px;z-index:100;left:8px}.acf-field-setting-fc_layout .toggle-indicator.open::before{-webkit-mask-image:url(../../../images/icons/icon-chevron-up.svg);mask-image:url(../../../images/icons/icon-chevron-up.svg)}.acf-field-setting-fc_layout .toggle-indicator.closed::before{-webkit-mask-image:url(../../../images/icons/icon-chevron-down.svg);mask-image:url(../../../images/icons/icon-chevron-down.svg)}.acf-field-setting-fc_layout .acf-flexible-content-field-label-name{padding-left:5px}.acf-field-setting-fc_layout .acf-fc-meta{margin:0 0 10px;padding:0}.acf-field-setting-fc_layout .acf-fc-meta li{margin:0 0 10px;padding:0}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display{float:left;width:100%;padding-right:5px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-left{width:calc(50% - 4px);float:left;clear:left;margin-right:4px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-right{width:calc(50% - 4px);float:left;margin-left:4px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-min{width:calc(25% - 5px);float:left;margin-right:5px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-max{width:calc(25% - 10px);float:left;margin-left:4px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-label .acf-input-prepend,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-name .acf-input-prepend,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display .acf-input-prepend{min-width:60px}.acf-field-setting-fc_layout .acf-fc_draggable,.acf-field-setting-fc_layout .reorder-layout{cursor:grab}.acf-field-setting-fc_layout .acf-fl-actions a{padding:1px 0;font-size:13px;line-height:20px}.acf-field-object-clone[data-display=seamless] .acf-field-setting-instructions,.acf-field-object-clone[data-display=seamless] .acf-field-setting-layout,.acf-field-object-clone[data-display=seamless] .acf-field-setting-wrapper,.acf-field-object-clone[data-display=seamless] .acf-field-setting-conditional_logic{display:none}.acf-pro-inactive-license .acf-pro-field-object .li-field-label:before{-webkit-mask-image:url("../../../images/icons/icon-lock.svg") !important;mask-image:url("../../../images/icons/icon-lock.svg") !important;pointer-events:none}.acf-pro-inactive-license .acf-pro-field-object .edit-field{pointer-events:none;color:#667085}.acf-pro-inactive-license .acf-pro-field-object .row-options{display:none}
|
||||
|
|
|
|||
|
|
@ -1,773 +0,0 @@
|
|||
/*!************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/advanced-custom-fields-pro/assets/src/sass/pro/acf-pro-input.scss ***!
|
||||
\************************************************************************************************************************************************************************************************************************/
|
||||
@charset "UTF-8";
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Vars
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/* colors */
|
||||
/* acf-field */
|
||||
/* responsive */
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* ACF 6 ↓
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Mixins
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Repeater
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-repeater {
|
||||
/* table */
|
||||
/* row handle (add/remove) */
|
||||
/* add in spacer to th (force correct width) */
|
||||
/* row */
|
||||
/* sortable */
|
||||
/* layouts */
|
||||
/*
|
||||
&.-row > table > tbody > tr:before,
|
||||
&.-block > table > tbody > tr:before {
|
||||
content: "";
|
||||
display: table-row;
|
||||
height: 2px;
|
||||
background: #f00;
|
||||
}
|
||||
*/
|
||||
/* empty */
|
||||
/* collapsed */
|
||||
/* collapsed (block layout) */
|
||||
/* collapsed (table layout) */
|
||||
}
|
||||
.acf-repeater > table {
|
||||
margin: 0 0 8px;
|
||||
background: #F9F9F9;
|
||||
}
|
||||
.acf-repeater > table > tbody tr.acf-divider:not(:first-child) > td {
|
||||
border-top: 10px solid #EAECF0;
|
||||
}
|
||||
.acf-repeater .acf-row-handle {
|
||||
width: 16px;
|
||||
text-align: center !important;
|
||||
vertical-align: middle !important;
|
||||
position: relative;
|
||||
/* icons */
|
||||
/* .order */
|
||||
/* remove */
|
||||
}
|
||||
.acf-repeater .acf-row-handle .acf-order-input-wrap {
|
||||
width: 45px;
|
||||
}
|
||||
.acf-repeater .acf-row-handle .acf-order-input::-webkit-outer-spin-button,
|
||||
.acf-repeater .acf-row-handle .acf-order-input::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
.acf-repeater .acf-row-handle .acf-order-input {
|
||||
-moz-appearance: textfield;
|
||||
text-align: center;
|
||||
}
|
||||
.acf-repeater .acf-row-handle .acf-icon {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
margin: -8px 0 0 -2px;
|
||||
/* minus icon */
|
||||
}
|
||||
.acf-repeater .acf-row-handle .acf-icon.-minus {
|
||||
top: 50%;
|
||||
/* ie fix */
|
||||
}
|
||||
body.browser-msie .acf-repeater .acf-row-handle .acf-icon.-minus {
|
||||
top: 25px;
|
||||
}
|
||||
.acf-repeater .acf-row-handle.order {
|
||||
background: #f4f4f4;
|
||||
cursor: move;
|
||||
color: #aaa;
|
||||
text-shadow: #fff 0 1px 0;
|
||||
}
|
||||
.acf-repeater .acf-row-handle.order:hover {
|
||||
color: #666;
|
||||
}
|
||||
.acf-repeater .acf-row-handle.order + td {
|
||||
border-left-color: #DFDFDF;
|
||||
}
|
||||
.acf-repeater .acf-row-handle.pagination {
|
||||
cursor: auto;
|
||||
}
|
||||
.acf-repeater .acf-row-handle.remove {
|
||||
background: #F9F9F9;
|
||||
border-left-color: #DFDFDF;
|
||||
}
|
||||
.acf-repeater th.acf-row-handle:before {
|
||||
content: "";
|
||||
width: 16px;
|
||||
display: block;
|
||||
height: 1px;
|
||||
}
|
||||
.acf-repeater .acf-row {
|
||||
/* hide clone */
|
||||
/* hover */
|
||||
}
|
||||
.acf-repeater .acf-row.acf-clone {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-repeater .acf-row:hover, .acf-repeater .acf-row.-hover {
|
||||
/* icons */
|
||||
}
|
||||
.acf-repeater .acf-row:hover > .acf-row-handle .acf-icon, .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon {
|
||||
display: block;
|
||||
}
|
||||
.acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.show-on-shift, .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon.show-on-shift {
|
||||
display: none;
|
||||
}
|
||||
body.acf-keydown-shift .acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.show-on-shift, body.acf-keydown-shift .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon.show-on-shift {
|
||||
display: block;
|
||||
}
|
||||
body.acf-keydown-shift .acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.hide-on-shift, body.acf-keydown-shift .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon.hide-on-shift {
|
||||
display: none;
|
||||
}
|
||||
.acf-repeater > table > tbody > tr.ui-sortable-helper {
|
||||
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.acf-repeater > table > tbody > tr.ui-sortable-placeholder {
|
||||
visibility: visible !important;
|
||||
}
|
||||
.acf-repeater > table > tbody > tr.ui-sortable-placeholder td {
|
||||
background: #F9F9F9;
|
||||
}
|
||||
.acf-repeater.-row > table > tbody > tr > td, .acf-repeater.-block > table > tbody > tr > td {
|
||||
border-top-color: #E1E1E1;
|
||||
}
|
||||
.acf-repeater.-empty > table > thead > tr > th {
|
||||
border-bottom: 0 none;
|
||||
}
|
||||
.acf-repeater.-empty.-row > table, .acf-repeater.-empty.-block > table {
|
||||
display: none;
|
||||
}
|
||||
.acf-repeater .acf-row.-collapsed > .acf-field {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-repeater .acf-row.-collapsed > td.acf-field.-collapsed-target {
|
||||
display: table-cell !important;
|
||||
}
|
||||
.acf-repeater .acf-row.-collapsed > .acf-fields > * {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-repeater .acf-row.-collapsed > .acf-fields > .acf-field.-collapsed-target {
|
||||
display: block !important;
|
||||
}
|
||||
.acf-repeater .acf-row.-collapsed > .acf-fields > .acf-field.-collapsed-target[data-width] {
|
||||
float: none !important;
|
||||
width: auto !important;
|
||||
}
|
||||
.acf-repeater.-table .acf-row.-collapsed .acf-field.-collapsed-target {
|
||||
border-left-color: #dfdfdf;
|
||||
}
|
||||
.acf-repeater.-max .acf-icon[data-event=add-row] {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-repeater .acf-actions .acf-button {
|
||||
float: right;
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
.acf-repeater .acf-actions .acf-tablenav {
|
||||
float: right;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.acf-repeater .acf-actions .acf-tablenav .current-page {
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Flexible Content
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-flexible-content {
|
||||
position: relative;
|
||||
}
|
||||
.acf-flexible-content > .clones {
|
||||
display: none;
|
||||
}
|
||||
.acf-flexible-content > .values {
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
.acf-flexible-content > .values > .ui-sortable-placeholder {
|
||||
visibility: visible !important;
|
||||
border: 1px dashed #b4b9be;
|
||||
box-shadow: none;
|
||||
background: transparent;
|
||||
}
|
||||
.acf-flexible-content .layout {
|
||||
position: relative;
|
||||
margin: 20px 0 0;
|
||||
background: #fff;
|
||||
border: 1px solid #ccd0d4;
|
||||
}
|
||||
.acf-flexible-content .layout:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-handle {
|
||||
display: block;
|
||||
position: relative;
|
||||
padding: 8px 10px;
|
||||
cursor: move;
|
||||
border-bottom: #ccd0d4 solid 1px;
|
||||
color: #444;
|
||||
font-size: 14px;
|
||||
line-height: 1.4em;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-order {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 10px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
line-height: 20px;
|
||||
margin: 0 2px 0 0;
|
||||
background: #F1F1F1;
|
||||
font-size: 12px;
|
||||
color: #444;
|
||||
}
|
||||
html[dir=rtl] .acf-flexible-content .layout .acf-fc-layout-order {
|
||||
float: right;
|
||||
margin-right: 0;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-controls {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon {
|
||||
display: block;
|
||||
float: left;
|
||||
margin: 0 0 0 5px;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-plus, .acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-minus, .acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-duplicate {
|
||||
visibility: hidden;
|
||||
}
|
||||
html[dir=rtl] .acf-flexible-content .layout .acf-fc-layout-controls {
|
||||
right: auto;
|
||||
left: 9px;
|
||||
}
|
||||
.acf-flexible-content .layout.is-selected {
|
||||
border-color: #7e8993;
|
||||
}
|
||||
.acf-flexible-content .layout.is-selected .acf-fc-layout-handle {
|
||||
border-color: #7e8993;
|
||||
}
|
||||
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-plus, .acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-minus, .acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-duplicate, .acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-plus, .acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-minus, .acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-duplicate {
|
||||
visibility: visible;
|
||||
}
|
||||
.acf-flexible-content .layout.-collapsed > .acf-fc-layout-handle {
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
.acf-flexible-content .layout.-collapsed > .acf-fields,
|
||||
.acf-flexible-content .layout.-collapsed > .acf-table {
|
||||
display: none;
|
||||
}
|
||||
.acf-flexible-content .layout > .acf-table {
|
||||
border: 0 none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.acf-flexible-content .layout > .acf-table > tbody > tr {
|
||||
background: #fff;
|
||||
}
|
||||
.acf-flexible-content .layout > .acf-table > thead > tr > th {
|
||||
background: #F9F9F9;
|
||||
}
|
||||
.acf-flexible-content .no-value-message {
|
||||
padding: 19px;
|
||||
border: #ccc dashed 2px;
|
||||
text-align: center;
|
||||
display: none;
|
||||
}
|
||||
.acf-flexible-content.-empty > .no-value-message {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.acf-fc-popup {
|
||||
padding: 5px 0;
|
||||
z-index: 900001;
|
||||
min-width: 135px;
|
||||
}
|
||||
.acf-fc-popup ul, .acf-fc-popup li {
|
||||
list-style: none;
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.acf-fc-popup li {
|
||||
position: relative;
|
||||
float: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.acf-fc-popup .badge {
|
||||
display: inline-block;
|
||||
border-radius: 8px;
|
||||
font-size: 9px;
|
||||
line-height: 15px;
|
||||
padding: 0 5px;
|
||||
background: #d54e21;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
vertical-align: top;
|
||||
margin: 0 0 0 5px;
|
||||
}
|
||||
.acf-fc-popup a {
|
||||
color: #eee;
|
||||
padding: 5px 10px;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
.acf-fc-popup a:hover {
|
||||
background: #0073aa;
|
||||
color: #fff;
|
||||
}
|
||||
.acf-fc-popup a.disabled {
|
||||
color: #888;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Galery
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-gallery {
|
||||
border: #ccd0d4 solid 1px;
|
||||
height: 400px;
|
||||
position: relative;
|
||||
/* main */
|
||||
/* attachments */
|
||||
/* attachment */
|
||||
/* toolbar */
|
||||
/* sidebar */
|
||||
/* side info */
|
||||
/* side data */
|
||||
/* column widths */
|
||||
/* resizable */
|
||||
}
|
||||
.acf-gallery .acf-gallery-main {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: #fff;
|
||||
z-index: 2;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachments {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 48px;
|
||||
left: 0;
|
||||
padding: 5px;
|
||||
overflow: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment {
|
||||
width: 25%;
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
/* hover */
|
||||
/* sortable */
|
||||
/* active */
|
||||
/* icon */
|
||||
/* rtl */
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .margin {
|
||||
margin: 5px;
|
||||
border: #d5d9dd solid 1px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: #eee;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .margin:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 100%;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .thumbnail {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: translate(50%, 50%);
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-attachment .thumbnail {
|
||||
transform: translate(-50%, 50%);
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .thumbnail img {
|
||||
display: block;
|
||||
height: auto;
|
||||
max-height: 100%;
|
||||
width: auto;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-attachment .thumbnail img {
|
||||
transform: translate(50%, -50%);
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .filename {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 5%;
|
||||
background: #F4F4F4;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
border-top: #DFDFDF solid 1px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
max-height: 90%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .actions {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
display: none;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment:hover .actions {
|
||||
display: block;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment.ui-sortable-helper .margin {
|
||||
border: none;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment.ui-sortable-placeholder .margin {
|
||||
background: #F1F1F1;
|
||||
border: none;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment.ui-sortable-placeholder .margin * {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment.active .margin {
|
||||
box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 5px #0073aa;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment.-icon .thumbnail img {
|
||||
transform: translate(-50%, -70%);
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-attachment {
|
||||
float: right;
|
||||
}
|
||||
.acf-gallery.sidebar-open {
|
||||
/* hide attachment actions when sidebar is open */
|
||||
/* allow sidebar to move over main for small widths (widget edit box) */
|
||||
}
|
||||
.acf-gallery.sidebar-open .acf-gallery-attachment .actions {
|
||||
display: none;
|
||||
}
|
||||
.acf-gallery.sidebar-open .acf-gallery-side {
|
||||
z-index: 2;
|
||||
}
|
||||
.acf-gallery .acf-gallery-toolbar {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
padding: 10px;
|
||||
border-top: #d5d9dd solid 1px;
|
||||
background: #fff;
|
||||
min-height: 28px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-toolbar .acf-hl li {
|
||||
line-height: 24px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-toolbar .bulk-actions-select {
|
||||
width: auto;
|
||||
margin: 0 1px 0 0;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 0;
|
||||
background: #F9F9F9;
|
||||
border-left: #ccd0d4 solid 1px;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side .acf-gallery-side-inner {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 349px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
margin: -10px 0 15px -10px;
|
||||
background: #F1F1F1;
|
||||
border-bottom: #DFDFDF solid 1px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info:after {
|
||||
display: block;
|
||||
clear: both;
|
||||
content: "";
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-side-info {
|
||||
margin-left: 0;
|
||||
margin-right: -10px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info img {
|
||||
float: left;
|
||||
width: auto;
|
||||
max-width: 65px;
|
||||
max-height: 65px;
|
||||
margin: 0 10px 1px 0;
|
||||
background: #FFFFFF;
|
||||
padding: 3px;
|
||||
border: #ccd0d4 solid 1px;
|
||||
border-radius: 1px;
|
||||
/* rtl */
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-side-info img {
|
||||
float: right;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info p {
|
||||
font-size: 13px;
|
||||
line-height: 15px;
|
||||
margin: 3px 0;
|
||||
word-break: break-all;
|
||||
color: #666;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info p strong {
|
||||
color: #000;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info a.acf-gallery-edit {
|
||||
color: #21759b;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info a.acf-gallery-remove {
|
||||
color: #bc0b0b;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 48px;
|
||||
left: 0;
|
||||
overflow: auto;
|
||||
overflow-x: inherit;
|
||||
padding: 10px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data .acf-label,
|
||||
.acf-gallery .acf-gallery-side-data th.label {
|
||||
color: #666666;
|
||||
font-size: 12px;
|
||||
line-height: 25px;
|
||||
padding: 0 4px 8px 0 !important;
|
||||
width: auto !important;
|
||||
vertical-align: top;
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-side-data .acf-label,
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-side-data th.label {
|
||||
padding: 0 0 8px 4px !important;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data .acf-label label,
|
||||
.acf-gallery .acf-gallery-side-data th.label label {
|
||||
font-weight: normal;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data .acf-input,
|
||||
.acf-gallery .acf-gallery-side-data td.field {
|
||||
padding: 0 0 8px !important;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data textarea {
|
||||
min-height: 0;
|
||||
height: 60px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data p.help {
|
||||
font-size: 12px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data p.help:hover {
|
||||
font-weight: normal;
|
||||
}
|
||||
.acf-gallery[data-columns="1"] .acf-gallery-attachment {
|
||||
width: 100%;
|
||||
}
|
||||
.acf-gallery[data-columns="2"] .acf-gallery-attachment {
|
||||
width: 50%;
|
||||
}
|
||||
.acf-gallery[data-columns="3"] .acf-gallery-attachment {
|
||||
width: 33.333%;
|
||||
}
|
||||
.acf-gallery[data-columns="4"] .acf-gallery-attachment {
|
||||
width: 25%;
|
||||
}
|
||||
.acf-gallery[data-columns="5"] .acf-gallery-attachment {
|
||||
width: 20%;
|
||||
}
|
||||
.acf-gallery[data-columns="6"] .acf-gallery-attachment {
|
||||
width: 16.666%;
|
||||
}
|
||||
.acf-gallery[data-columns="7"] .acf-gallery-attachment {
|
||||
width: 14.285%;
|
||||
}
|
||||
.acf-gallery[data-columns="8"] .acf-gallery-attachment {
|
||||
width: 12.5%;
|
||||
}
|
||||
.acf-gallery .ui-resizable-handle {
|
||||
display: block;
|
||||
position: absolute;
|
||||
}
|
||||
.acf-gallery .ui-resizable-s {
|
||||
bottom: -5px;
|
||||
cursor: ns-resize;
|
||||
height: 7px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* media modal selected */
|
||||
.acf-media-modal .attachment.acf-selected {
|
||||
box-shadow: 0 0 0 3px #fff inset, 0 0 0 7px #0073aa inset !important;
|
||||
}
|
||||
.acf-media-modal .attachment.acf-selected .check {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-media-modal .attachment.acf-selected .thumbnail {
|
||||
opacity: 0.25 !important;
|
||||
}
|
||||
.acf-media-modal .attachment.acf-selected .attachment-preview:before {
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.acf-admin-single-options-page .select2-dropdown {
|
||||
border-color: #6BB5D8 !important;
|
||||
margin-top: -5px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.1);
|
||||
}
|
||||
.acf-admin-single-options-page .select2-dropdown.select2-dropdown--above {
|
||||
margin-top: 0;
|
||||
}
|
||||
.acf-admin-single-options-page .select2-container--default .select2-results__option[aria-selected=true] {
|
||||
background-color: #F9FAFB !important;
|
||||
color: #667085;
|
||||
}
|
||||
.acf-admin-single-options-page .select2-container--default .select2-results__option[aria-selected=true]:hover {
|
||||
color: #399CCB;
|
||||
}
|
||||
.acf-admin-single-options-page .select2-container--default .select2-results__option--highlighted[aria-selected] {
|
||||
color: #fff !important;
|
||||
background-color: #0783BE !important;
|
||||
}
|
||||
.acf-admin-single-options-page .select2-dropdown .select2-results__option {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.acf-create-options-page-popup ~ .select2-container {
|
||||
z-index: 999999999;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
*
|
||||
* ACF Blocks
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
.acf-block-component .components-placeholder {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.acf-block-component .acf-block-fields {
|
||||
background: #fff;
|
||||
text-align: left;
|
||||
font-size: 13px;
|
||||
line-height: 1.4em;
|
||||
color: #444;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
}
|
||||
.acf-block-component .acf-block-fields.acf-empty-block-fields {
|
||||
border: 1px solid #1e1e1e;
|
||||
padding: 12px;
|
||||
}
|
||||
.components-panel .acf-block-component .acf-block-fields.acf-empty-block-fields {
|
||||
border: none;
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
html[dir=rtl] .acf-block-component .acf-block-fields {
|
||||
text-align: right;
|
||||
}
|
||||
.acf-block-component .acf-block-fields p {
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.acf-block-body .acf-block-fields {
|
||||
border: #adb2ad solid 1px;
|
||||
}
|
||||
.acf-block-body .acf-block-fields .acf-tab-wrap .acf-tab-group {
|
||||
margin-left: 0;
|
||||
padding: 16px 20px 0;
|
||||
}
|
||||
.acf-block-body .acf-fields > .acf-field {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
.acf-block-body .acf-fields > .acf-field.acf-accordion {
|
||||
border-color: #adb2ad;
|
||||
}
|
||||
.acf-block-body .acf-fields > .acf-field.acf-accordion .acf-accordion-title {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
.acf-block-body .acf-button, .acf-block-body .acf-link a.button {
|
||||
color: #2271b1 !important;
|
||||
border-color: #2271b1;
|
||||
background: #f6f7f7;
|
||||
vertical-align: top;
|
||||
}
|
||||
.acf-block-body .acf-button.button-primary:hover, .acf-block-body .acf-link a.button.button-primary:hover {
|
||||
color: white !important;
|
||||
}
|
||||
.acf-block-body .acf-button:hover, .acf-block-body .acf-link a.button:hover {
|
||||
color: #0a4b78 !important;
|
||||
}
|
||||
.acf-block-body .acf-block-preview {
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
.acf-block-panel .acf-block-fields {
|
||||
border-top: #ddd solid 1px;
|
||||
border-bottom: #ddd solid 1px;
|
||||
min-height: 1px;
|
||||
}
|
||||
.acf-block-panel .acf-block-fields:empty {
|
||||
border-top: none;
|
||||
}
|
||||
.acf-block-panel .acf-block-fields .acf-tab-wrap {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.components-panel__body .acf-block-panel {
|
||||
margin: 16px -16px -16px;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=acf-pro-input.css.map*/
|
||||
|
|
@ -0,0 +1 @@
|
|||
[data-acf-inline-contenteditable="1"][contenteditable=true]:empty::before{content:attr(data-acf-placeholder);opacity:.62}[data-acf-inline-contenteditable="1"][contenteditable=true]:empty{border:1px dashed rgba(255,0,0,0)}[data-acf-inline-fields-uid]:hover,[data-acf-inline-contenteditable]:hover{outline:2px solid var(--wp-admin-theme-color);outline-offset:2px}.acf-block-has-validation-error{border:2px solid #d94f4f}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1 @@
|
|||
(()=>{var e;(e=jQuery)(".acf-escaped-html-notice").on("click",".acf-show-more-details",function(t){t.preventDefault();const c=e(t.target),a=c.closest(".acf-escaped-html-notice").find(".acf-error-details");a.is(":hidden")?(a.slideDown(100),c.text(acf_escaped_html_notice.hide_details)):(a.slideUp(100),c.text(acf_escaped_html_notice.show_details))})})();
|
||||
|
|
@ -1,401 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/_acf-internal-post-type.js":
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-internal-post-type.js ***!
|
||||
\*********************************************************************************/
|
||||
/***/ (function() {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
* internalPostTypeSettingsManager
|
||||
*
|
||||
* Model for handling events in the settings metaboxes of internal post types
|
||||
*
|
||||
* @since 6.1
|
||||
*/
|
||||
const internalPostTypeSettingsManager = new acf.Model({
|
||||
id: 'internalPostTypeSettingsManager',
|
||||
wait: 'ready',
|
||||
events: {
|
||||
'blur .acf_slugify_to_key': 'onChangeSlugify',
|
||||
'blur .acf_singular_label': 'onChangeSingularLabel',
|
||||
'blur .acf_plural_label': 'onChangePluralLabel',
|
||||
'change .acf_hierarchical_switch': 'onChangeHierarchical',
|
||||
'click .acf-regenerate-labels': 'onClickRegenerateLabels',
|
||||
'click .acf-clear-labels': 'onClickClearLabels',
|
||||
'change .rewrite_slug_field': 'onChangeURLSlug',
|
||||
'keyup .rewrite_slug_field': 'onChangeURLSlug'
|
||||
},
|
||||
onChangeSlugify: function (e, $el) {
|
||||
const name = $el.val();
|
||||
const $keyInput = $('.acf_slugified_key');
|
||||
|
||||
// Generate field key.
|
||||
if ($keyInput.val().trim() == '') {
|
||||
let slug = acf.strSanitize(name.trim()).replaceAll('_', '-');
|
||||
slug = acf.applyFilters('generate_internal_post_type_name', slug, this);
|
||||
let slugLength = 0;
|
||||
if ('taxonomy' === acf.get('screen')) {
|
||||
slugLength = 32;
|
||||
} else if ('post_type' === acf.get('screen')) {
|
||||
slugLength = 20;
|
||||
}
|
||||
if (slugLength) {
|
||||
slug = slug.substring(0, slugLength);
|
||||
}
|
||||
$keyInput.val(slug);
|
||||
}
|
||||
},
|
||||
initialize: function () {
|
||||
// check we should init.
|
||||
if (!['taxonomy', 'post_type'].includes(acf.get('screen'))) return;
|
||||
|
||||
// select2
|
||||
const template = function (selection) {
|
||||
if ('undefined' === typeof selection.element) {
|
||||
return selection;
|
||||
}
|
||||
const $parentSelect = $(selection.element.parentElement);
|
||||
const $selection = $('<span class="acf-selection"></span>');
|
||||
$selection.html(acf.escHtml(selection.element.innerHTML));
|
||||
let isDefault = false;
|
||||
if ($parentSelect.filter('.acf-taxonomy-manage_terms, .acf-taxonomy-edit_terms, .acf-taxonomy-delete_terms').length && selection.id === 'manage_categories') {
|
||||
isDefault = true;
|
||||
} else if ($parentSelect.filter('.acf-taxonomy-assign_terms').length && selection.id === 'edit_posts') {
|
||||
isDefault = true;
|
||||
} else if (selection.id === 'taxonomy_key' || selection.id === 'post_type_key' || selection.id === 'default') {
|
||||
isDefault = true;
|
||||
}
|
||||
if (isDefault) {
|
||||
$selection.append('<span class="acf-select2-default-pill">' + acf.__('Default') + '</span>');
|
||||
}
|
||||
$selection.data('element', selection.element);
|
||||
return $selection;
|
||||
};
|
||||
acf.newSelect2($('select.query_var'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
acf.newSelect2($('select.acf-taxonomy-manage_terms'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
acf.newSelect2($('select.acf-taxonomy-edit_terms'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
acf.newSelect2($('select.acf-taxonomy-delete_terms'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
acf.newSelect2($('select.acf-taxonomy-assign_terms'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
acf.newSelect2($('select.meta_box'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
const permalinkRewrite = acf.newSelect2($('select.permalink_rewrite'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
$('.rewrite_slug_field').trigger('change');
|
||||
permalinkRewrite.on('change', function (e) {
|
||||
$('.rewrite_slug_field').trigger('change');
|
||||
});
|
||||
},
|
||||
onChangeURLSlug: function (e, $el) {
|
||||
const $field = $('div.acf-field.acf-field-permalink-rewrite');
|
||||
const rewriteType = $field.find('select').find('option:selected').val();
|
||||
const originalInstructions = $field.data(rewriteType + '_instructions');
|
||||
const siteURL = $field.data('site_url');
|
||||
const $permalinkDesc = $field.find('p.description').first();
|
||||
if (rewriteType === 'taxonomy_key' || rewriteType === 'post_type_key') {
|
||||
var slugvalue = $('.acf_slugified_key').val().trim();
|
||||
} else {
|
||||
var slugvalue = $el.val().trim();
|
||||
}
|
||||
if (!slugvalue.length) slugvalue = '{slug}';
|
||||
$permalinkDesc.html($('<span>' + originalInstructions + '</span>').text().replace('{slug}', '<strong>' + $('<span>' + siteURL + '/' + slugvalue + '</span>').text() + '</strong>'));
|
||||
},
|
||||
onChangeSingularLabel: function (e, $el) {
|
||||
const label = $el.val();
|
||||
this.updateLabels(label, 'singular', false);
|
||||
},
|
||||
onChangePluralLabel: function (e, $el) {
|
||||
const label = $el.val();
|
||||
this.updateLabels(label, 'plural', false);
|
||||
},
|
||||
onChangeHierarchical: function (e, $el) {
|
||||
const hierarchical = $el.is(':checked');
|
||||
if ('taxonomy' === acf.get('screen')) {
|
||||
let text = $('.acf-field-meta-box').data('tags_meta_box');
|
||||
if (hierarchical) {
|
||||
text = $('.acf-field-meta-box').data('categories_meta_box');
|
||||
}
|
||||
$('#acf_taxonomy-meta_box').find('option:first').text(text).trigger('change');
|
||||
}
|
||||
this.updatePlaceholders(hierarchical);
|
||||
},
|
||||
onClickRegenerateLabels: function (e, $el) {
|
||||
this.updateLabels($('.acf_singular_label').val(), 'singular', true);
|
||||
this.updateLabels($('.acf_plural_label').val(), 'plural', true);
|
||||
},
|
||||
onClickClearLabels: function (e, $el) {
|
||||
this.clearLabels();
|
||||
},
|
||||
updateLabels(label, type, force) {
|
||||
$('[data-label][data-replace="' + type + '"').each((index, element) => {
|
||||
var $input = $(element).find('input[type="text"]').first();
|
||||
if (!force && $input.val() != '') return;
|
||||
if (label == '') return;
|
||||
$input.val($(element).data('transform') === 'lower' ? $(element).data('label').replace('%s', label.toLowerCase()) : $(element).data('label').replace('%s', label));
|
||||
});
|
||||
},
|
||||
clearLabels() {
|
||||
$('[data-label]').each((index, element) => {
|
||||
$(element).find('input[type="text"]').first().val('');
|
||||
});
|
||||
},
|
||||
updatePlaceholders(heirarchical) {
|
||||
if (acf.get('screen') == 'post_type') {
|
||||
var singular = acf.__('Post');
|
||||
var plural = acf.__('Posts');
|
||||
if (heirarchical) {
|
||||
singular = acf.__('Page');
|
||||
plural = acf.__('Pages');
|
||||
}
|
||||
} else {
|
||||
var singular = acf.__('Tag');
|
||||
var plural = acf.__('Tags');
|
||||
if (heirarchical) {
|
||||
singular = acf.__('Category');
|
||||
plural = acf.__('Categories');
|
||||
}
|
||||
}
|
||||
$('[data-label]').each((index, element) => {
|
||||
var useReplacement = $(element).data('replace') === 'plural' ? plural : singular;
|
||||
if ($(element).data('transform') === 'lower') {
|
||||
useReplacement = useReplacement.toLowerCase();
|
||||
}
|
||||
$(element).find('input[type="text"]').first().attr('placeholder', $(element).data('label').replace('%s', useReplacement));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* advancedSettingsMetaboxManager
|
||||
*
|
||||
* Screen options functionality for internal post types
|
||||
*
|
||||
* @since 6.1
|
||||
*/
|
||||
const advancedSettingsMetaboxManager = new acf.Model({
|
||||
id: 'advancedSettingsMetaboxManager',
|
||||
wait: 'load',
|
||||
events: {
|
||||
'change .acf-advanced-settings-toggle': 'onToggleACFAdvancedSettings',
|
||||
'change #screen-options-wrap #acf-advanced-settings-hide': 'onToggleScreenOptionsAdvancedSettings'
|
||||
},
|
||||
initialize: function () {
|
||||
this.$screenOptionsToggle = $('#screen-options-wrap #acf-advanced-settings-hide:first');
|
||||
this.$ACFAdvancedToggle = $('.acf-advanced-settings-toggle:first');
|
||||
this.render();
|
||||
},
|
||||
isACFAdvancedSettingsChecked: function () {
|
||||
// Screen option is hidden by filter.
|
||||
if (!this.$ACFAdvancedToggle.length) {
|
||||
return false;
|
||||
}
|
||||
return this.$ACFAdvancedToggle.prop('checked');
|
||||
},
|
||||
isScreenOptionsAdvancedSettingsChecked: function () {
|
||||
// Screen option is hidden by filter.
|
||||
if (!this.$screenOptionsToggle.length) {
|
||||
return false;
|
||||
}
|
||||
return this.$screenOptionsToggle.prop('checked');
|
||||
},
|
||||
onToggleScreenOptionsAdvancedSettings: function () {
|
||||
if (this.isScreenOptionsAdvancedSettingsChecked()) {
|
||||
if (!this.isACFAdvancedSettingsChecked()) {
|
||||
this.$ACFAdvancedToggle.trigger('click');
|
||||
}
|
||||
} else {
|
||||
if (this.isACFAdvancedSettingsChecked()) {
|
||||
this.$ACFAdvancedToggle.trigger('click');
|
||||
}
|
||||
}
|
||||
},
|
||||
onToggleACFAdvancedSettings: function () {
|
||||
if (this.isACFAdvancedSettingsChecked()) {
|
||||
if (!this.isScreenOptionsAdvancedSettingsChecked()) {
|
||||
this.$screenOptionsToggle.trigger('click');
|
||||
}
|
||||
} else {
|
||||
if (this.isScreenOptionsAdvancedSettingsChecked()) {
|
||||
this.$screenOptionsToggle.trigger('click');
|
||||
}
|
||||
}
|
||||
},
|
||||
render: function () {
|
||||
// On render, sync screen options to ACF's setting.
|
||||
this.onToggleACFAdvancedSettings();
|
||||
}
|
||||
});
|
||||
const linkFieldGroupsManger = new acf.Model({
|
||||
id: 'linkFieldGroupsManager',
|
||||
events: {
|
||||
'click .acf-link-field-groups': 'linkFieldGroups'
|
||||
},
|
||||
linkFieldGroups: function () {
|
||||
let popup = false;
|
||||
const step1 = function () {
|
||||
$.ajax({
|
||||
url: acf.get('ajaxurl'),
|
||||
data: acf.prepareForAjax({
|
||||
action: 'acf/link_field_groups'
|
||||
}),
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
success: step2
|
||||
});
|
||||
};
|
||||
const step2 = function (response) {
|
||||
popup = acf.newPopup({
|
||||
title: response.data.title,
|
||||
content: response.data.content,
|
||||
width: '600px'
|
||||
});
|
||||
popup.$el.addClass('acf-link-field-groups-popup');
|
||||
popup.on('submit', 'form', step3);
|
||||
};
|
||||
const step3 = function (e) {
|
||||
e.preventDefault();
|
||||
const $select = popup.$('select');
|
||||
const val = $select.val();
|
||||
if (!val.length) {
|
||||
$select.focus();
|
||||
return;
|
||||
}
|
||||
acf.startButtonLoading(popup.$('.button'));
|
||||
|
||||
// get HTML
|
||||
$.ajax({
|
||||
url: acf.get('ajaxurl'),
|
||||
data: acf.prepareForAjax({
|
||||
action: 'acf/link_field_groups',
|
||||
field_groups: val
|
||||
}),
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
success: step4
|
||||
});
|
||||
};
|
||||
const step4 = function (response) {
|
||||
popup.content(response.data.content);
|
||||
if (wp.a11y && wp.a11y.speak && acf.__) {
|
||||
wp.a11y.speak(acf.__('Field groups linked successfully.'), 'polite');
|
||||
}
|
||||
popup.$('button.acf-close-popup').focus();
|
||||
};
|
||||
step1();
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ !function() {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function() { return module['default']; } :
|
||||
/******/ function() { return module; };
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ !function() {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, definition) {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ !function() {
|
||||
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ !function() {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||||
!function() {
|
||||
"use strict";
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/acf-internal-post-type.js ***!
|
||||
\********************************************************************************/
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _acf_internal_post_type_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_acf-internal-post-type.js */ "./src/advanced-custom-fields-pro/assets/src/js/_acf-internal-post-type.js");
|
||||
/* harmony import */ var _acf_internal_post_type_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_acf_internal_post_type_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
|
||||
}();
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf-internal-post-type.js.map
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -1,619 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-clone.js":
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-clone.js ***!
|
||||
\********************************************************************************/
|
||||
/***/ (function() {
|
||||
|
||||
(function ($) {
|
||||
/**
|
||||
* CloneDisplayFieldSetting
|
||||
*
|
||||
* Extra logic for this field setting
|
||||
*
|
||||
* @date 18/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
|
||||
var CloneDisplayFieldSetting = acf.FieldSetting.extend({
|
||||
type: 'clone',
|
||||
name: 'display',
|
||||
render: function () {
|
||||
// vars
|
||||
var display = this.field.val();
|
||||
|
||||
// set data attribute used by CSS to hide/show
|
||||
this.$fieldObject.attr('data-display', display);
|
||||
}
|
||||
});
|
||||
acf.registerFieldSetting(CloneDisplayFieldSetting);
|
||||
|
||||
/**
|
||||
* ClonePrefixLabelFieldSetting
|
||||
*
|
||||
* Extra logic for this field setting
|
||||
*
|
||||
* @date 18/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
|
||||
var ClonePrefixLabelFieldSetting = acf.FieldSetting.extend({
|
||||
type: 'clone',
|
||||
name: 'prefix_label',
|
||||
render: function () {
|
||||
// vars
|
||||
var prefix = '';
|
||||
|
||||
// if checked
|
||||
if (this.field.val()) {
|
||||
prefix = this.fieldObject.prop('label') + ' ';
|
||||
}
|
||||
|
||||
// update HTML
|
||||
this.$('code').html(prefix + '%field_label%');
|
||||
}
|
||||
});
|
||||
acf.registerFieldSetting(ClonePrefixLabelFieldSetting);
|
||||
|
||||
/**
|
||||
* ClonePrefixNameFieldSetting
|
||||
*
|
||||
* Extra logic for this field setting
|
||||
*
|
||||
* @date 18/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
|
||||
var ClonePrefixNameFieldSetting = acf.FieldSetting.extend({
|
||||
type: 'clone',
|
||||
name: 'prefix_name',
|
||||
render: function () {
|
||||
// vars
|
||||
var prefix = '';
|
||||
|
||||
// if checked
|
||||
if (this.field.val()) {
|
||||
prefix = this.fieldObject.prop('name') + '_';
|
||||
}
|
||||
|
||||
// update HTML
|
||||
this.$('code').html(prefix + '%field_name%');
|
||||
}
|
||||
});
|
||||
acf.registerFieldSetting(ClonePrefixNameFieldSetting);
|
||||
|
||||
/**
|
||||
* cloneFieldSelectHelper
|
||||
*
|
||||
* Customizes the clone field setting Select2 isntance
|
||||
*
|
||||
* @date 18/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
|
||||
var cloneFieldSelectHelper = new acf.Model({
|
||||
filters: {
|
||||
select2_args: 'select2Args'
|
||||
},
|
||||
select2Args: function (options, $select, data, $el, instance) {
|
||||
// check
|
||||
if (data.ajaxAction == 'acf/fields/clone/query') {
|
||||
// remain open on select
|
||||
options.closeOnSelect = false;
|
||||
|
||||
// customize ajaxData function
|
||||
instance.data.ajaxData = this.ajaxData;
|
||||
}
|
||||
|
||||
// return
|
||||
return options;
|
||||
},
|
||||
ajaxData: function (data) {
|
||||
// find current fields
|
||||
data.fields = {};
|
||||
|
||||
// loop
|
||||
acf.getFieldObjects().map(function (fieldObject) {
|
||||
// append
|
||||
data.fields[fieldObject.prop('key')] = {
|
||||
key: fieldObject.prop('key'),
|
||||
type: fieldObject.prop('type'),
|
||||
label: fieldObject.prop('label'),
|
||||
ancestors: fieldObject.getParents().length
|
||||
};
|
||||
});
|
||||
|
||||
// append title
|
||||
data.title = $('#title').val();
|
||||
|
||||
// return
|
||||
return data;
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-flexible-content.js":
|
||||
/*!*******************************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-flexible-content.js ***!
|
||||
\*******************************************************************************************/
|
||||
/***/ (function() {
|
||||
|
||||
(function ($) {
|
||||
/**
|
||||
* CloneDisplayFieldSetting
|
||||
*
|
||||
* Extra logic for this field setting
|
||||
*
|
||||
* @date 18/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
|
||||
var FlexibleContentLayoutFieldSetting = acf.FieldSetting.extend({
|
||||
type: 'flexible_content',
|
||||
name: 'fc_layout',
|
||||
events: {
|
||||
'blur .layout-label': 'onChangeLabel',
|
||||
'click .add-layout': 'onClickAdd',
|
||||
'click .acf-field-settings-fc_head': 'onClickEdit',
|
||||
'click .acf-field-setting-fc-duplicate': 'onClickDuplicate',
|
||||
'click .acf-field-setting-fc-delete': 'onClickDelete',
|
||||
'changed:layoutLabel': 'updateLayoutTitles'
|
||||
},
|
||||
$input: function (name) {
|
||||
return $('#' + this.getInputId() + '-' + name);
|
||||
},
|
||||
$list: function () {
|
||||
return this.$('.acf-field-list:first');
|
||||
},
|
||||
getInputId: function () {
|
||||
return this.fieldObject.getInputId() + '-layouts-' + this.field.get('id');
|
||||
},
|
||||
// get all sub fields
|
||||
getFields: function () {
|
||||
return acf.getFieldObjects({
|
||||
parent: this.$el
|
||||
});
|
||||
},
|
||||
// get imediate children
|
||||
getChildren: function () {
|
||||
return acf.getFieldObjects({
|
||||
list: this.$list()
|
||||
});
|
||||
},
|
||||
initialize: function () {
|
||||
// add sortable
|
||||
var $tbody = this.$el.parent();
|
||||
if (!$tbody.hasClass('ui-sortable')) {
|
||||
$tbody.sortable({
|
||||
items: '> .acf-field-setting-fc_layout',
|
||||
handle: '.acf-fc_draggable',
|
||||
forceHelperSize: true,
|
||||
forcePlaceholderSize: true,
|
||||
scroll: true,
|
||||
stop: this.proxy(function (event, ui) {
|
||||
this.fieldObject.save();
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// add meta to sub fields
|
||||
this.updateFieldLayouts();
|
||||
this.updateLayoutTitles();
|
||||
},
|
||||
updateFieldLayouts: function () {
|
||||
this.getChildren().map(this.updateFieldLayout, this);
|
||||
},
|
||||
updateFieldLayout: function (field) {
|
||||
field.prop('parent_layout', this.get('id'));
|
||||
},
|
||||
updateLayoutTitles: function () {
|
||||
const label = this.get('layoutLabel');
|
||||
const parentLabel = this.$el.find('> .acf-label .acf-fc-layout-name');
|
||||
if (label) {
|
||||
parentLabel.html(label);
|
||||
}
|
||||
},
|
||||
onClickEdit: function (e) {
|
||||
const $target = $(e.target);
|
||||
if ($target.hasClass('acf-btn') || $target.parent().hasClass('acf-btn')) {
|
||||
return;
|
||||
}
|
||||
this.isOpen() ? this.close() : this.open();
|
||||
},
|
||||
isOpen: function (e) {
|
||||
const $settings = this.$el.children('.acf-field-layout-settings');
|
||||
return $settings.hasClass('open');
|
||||
},
|
||||
open: function (element, isAddingLayout) {
|
||||
const $settings = element ? element.children('.acf-field-layout-settings') : this.$el.children('.acf-field-layout-settings');
|
||||
const toggle = element ? element.find('.toggle-indicator').first() : this.$el.find('.toggle-indicator').first();
|
||||
|
||||
// action (show)
|
||||
acf.doAction('show', $settings);
|
||||
|
||||
// open
|
||||
if (isAddingLayout) {
|
||||
$settings.slideDown({
|
||||
complete: function () {
|
||||
$settings.find('.layout-label').trigger('focus');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$settings.slideDown();
|
||||
}
|
||||
toggle.addClass('open');
|
||||
if (toggle.hasClass('closed')) {
|
||||
toggle.removeClass('closed');
|
||||
}
|
||||
$settings.addClass('open');
|
||||
},
|
||||
close: function () {
|
||||
const $settings = this.$el.children('.acf-field-layout-settings');
|
||||
const toggle = this.$el.find('.toggle-indicator').first();
|
||||
|
||||
// close
|
||||
$settings.slideUp();
|
||||
$settings.removeClass('open');
|
||||
toggle.removeClass('open');
|
||||
if (!toggle.hasClass('closed')) {
|
||||
toggle.addClass('closed');
|
||||
}
|
||||
|
||||
// action (hide)
|
||||
acf.doAction('hide', $settings);
|
||||
},
|
||||
onChangeLabel: function (e, $el) {
|
||||
var label = $el.val();
|
||||
this.set('layoutLabel', label);
|
||||
this.$el.attr('data-layout-label', label);
|
||||
var $name = this.$input('name');
|
||||
|
||||
// render name
|
||||
if ($name.val() == '') {
|
||||
acf.val($name, acf.strSanitize(label));
|
||||
}
|
||||
},
|
||||
onClickAdd: function (e, $el) {
|
||||
e.preventDefault();
|
||||
var prevKey = this.get('id');
|
||||
var newKey = acf.uniqid('layout_');
|
||||
|
||||
// duplicate
|
||||
$layout = acf.duplicate({
|
||||
$el: this.$el,
|
||||
search: prevKey,
|
||||
replace: newKey,
|
||||
after: function ($el, $el2) {
|
||||
var $list = $el2.find('.acf-field-list:first');
|
||||
|
||||
// remove sub fields
|
||||
$list.children('.acf-field-object').remove();
|
||||
|
||||
// show empty
|
||||
$list.addClass('-empty');
|
||||
|
||||
// reset layout meta values
|
||||
$el2.attr('data-layout-label', '');
|
||||
$el2.find('.acf-fc-meta input').val('');
|
||||
$el2.find('.acf-fc-layout-name').html(acf.__('Layout'));
|
||||
}
|
||||
});
|
||||
|
||||
// get layout
|
||||
var layout = acf.getFieldSetting($layout);
|
||||
|
||||
// update hidden input
|
||||
layout.$input('key').val(newKey);
|
||||
!this.isOpen() ? this.open(layout.$el, true) : layout.$el.find('.layout-label').trigger('focus');
|
||||
|
||||
// save
|
||||
this.fieldObject.save();
|
||||
},
|
||||
onClickDuplicate: function (e, $el) {
|
||||
e.preventDefault();
|
||||
var prevKey = this.get('id');
|
||||
var newKey = acf.uniqid('layout_');
|
||||
|
||||
// duplicate
|
||||
$layout = acf.duplicate({
|
||||
$el: this.$el,
|
||||
search: prevKey,
|
||||
replace: newKey
|
||||
});
|
||||
|
||||
// get all fields in new layout similar to fieldManager.onDuplicateField().
|
||||
// important to run field.wipe() before making any changes to the "parent_layout" prop
|
||||
// to ensure the correct input is modified.
|
||||
var children = acf.getFieldObjects({
|
||||
parent: $layout
|
||||
});
|
||||
if (children.length) {
|
||||
// loop
|
||||
children.map(function (child) {
|
||||
// wipe field
|
||||
child.wipe();
|
||||
|
||||
// if the child is open, re-fire the open method to ensure it's initialised correctly.
|
||||
if (child.isOpen()) {
|
||||
child.open();
|
||||
}
|
||||
|
||||
// update parent
|
||||
child.updateParent();
|
||||
});
|
||||
|
||||
// action
|
||||
acf.doAction('duplicate_field_objects', children, this.fieldObject, this.fieldObject);
|
||||
}
|
||||
|
||||
// get layout
|
||||
var layout = acf.getFieldSetting($layout);
|
||||
|
||||
// update hidden input
|
||||
layout.$input('key').val(newKey);
|
||||
!this.isOpen() ? this.open(layout.$el, true) : layout.$el.find('.layout-label').trigger('focus');
|
||||
// save
|
||||
this.fieldObject.save();
|
||||
},
|
||||
onClickDelete: function (e, $el) {
|
||||
e.preventDefault();
|
||||
// Bypass confirmation when holding down "shift" key.
|
||||
if (e.shiftKey) {
|
||||
return this.delete();
|
||||
}
|
||||
|
||||
// add class
|
||||
this.$el.addClass('-hover');
|
||||
|
||||
// add tooltip
|
||||
var tooltip = acf.newTooltip({
|
||||
confirmRemove: true,
|
||||
target: $el,
|
||||
context: this,
|
||||
confirm: function () {
|
||||
this.delete();
|
||||
},
|
||||
cancel: function () {
|
||||
this.$el.removeClass('-hover');
|
||||
}
|
||||
});
|
||||
},
|
||||
delete: function () {
|
||||
var $siblings = this.$el.siblings('.acf-field-setting-fc_layout');
|
||||
|
||||
// validate
|
||||
if (!$siblings.length) {
|
||||
alert(acf.__('Flexible Content requires at least 1 layout'));
|
||||
return false;
|
||||
}
|
||||
|
||||
// delete sub fields
|
||||
this.getFields().map(function (child) {
|
||||
child.delete({
|
||||
animate: false
|
||||
});
|
||||
});
|
||||
|
||||
// remove tr
|
||||
acf.remove(this.$el);
|
||||
|
||||
// save
|
||||
this.fieldObject.save();
|
||||
}
|
||||
});
|
||||
acf.registerFieldSetting(FlexibleContentLayoutFieldSetting);
|
||||
|
||||
/**
|
||||
* flexibleContentHelper
|
||||
*
|
||||
* description
|
||||
*
|
||||
* @date 19/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param type $var Description. Default.
|
||||
* @return type Description.
|
||||
*/
|
||||
|
||||
var flexibleContentHelper = new acf.Model({
|
||||
actions: {
|
||||
sortstop_field_object: 'updateParentLayout',
|
||||
change_field_object_parent: 'updateParentLayout'
|
||||
},
|
||||
updateParentLayout: function (fieldObject) {
|
||||
var parent = fieldObject.getParent();
|
||||
|
||||
// delete meta
|
||||
if (!parent || parent.prop('type') !== 'flexible_content') {
|
||||
fieldObject.prop('parent_layout', null);
|
||||
return;
|
||||
}
|
||||
|
||||
// get layout
|
||||
var $layout = fieldObject.$el.closest('.acf-field-setting-fc_layout');
|
||||
var layout = acf.getFieldSetting($layout);
|
||||
|
||||
// check if previous prop exists
|
||||
// - if not, set prop to allow following code to trigger 'change' and save the field
|
||||
if (!fieldObject.has('parent_layout')) {
|
||||
fieldObject.prop('parent_layout', 0);
|
||||
}
|
||||
|
||||
// update meta
|
||||
fieldObject.prop('parent_layout', layout.get('id'));
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-repeater.js":
|
||||
/*!***********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-repeater.js ***!
|
||||
\***********************************************************************************/
|
||||
/***/ (function() {
|
||||
|
||||
(function ($) {
|
||||
/*
|
||||
* Repeater
|
||||
*
|
||||
* This field type requires some extra logic for its settings
|
||||
*
|
||||
* @type function
|
||||
* @date 24/10/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param n/a
|
||||
* @return n/a
|
||||
*/
|
||||
|
||||
var RepeaterCollapsedFieldSetting = acf.FieldSetting.extend({
|
||||
type: 'repeater',
|
||||
name: 'collapsed',
|
||||
events: {
|
||||
'focus select': 'onFocus'
|
||||
},
|
||||
onFocus: function (e, $el) {
|
||||
// vars
|
||||
var $select = $el;
|
||||
|
||||
// collapsed
|
||||
var choices = [];
|
||||
|
||||
// keep 'null' choice
|
||||
choices.push({
|
||||
label: $select.find('option[value=""]').text(),
|
||||
value: ''
|
||||
});
|
||||
|
||||
// find sub fields
|
||||
var $list = this.fieldObject.$('.acf-field-list:first');
|
||||
var fields = acf.getFieldObjects({
|
||||
list: $list
|
||||
});
|
||||
|
||||
// loop
|
||||
fields.map(function (field) {
|
||||
choices.push({
|
||||
label: field.prop('label'),
|
||||
value: field.prop('key')
|
||||
});
|
||||
});
|
||||
|
||||
// render
|
||||
acf.renderSelect($select, choices);
|
||||
}
|
||||
});
|
||||
acf.registerFieldSetting(RepeaterCollapsedFieldSetting);
|
||||
})(jQuery);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ !function() {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function() { return module['default']; } :
|
||||
/******/ function() { return module; };
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ !function() {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, definition) {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ !function() {
|
||||
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ !function() {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||||
!function() {
|
||||
"use strict";
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/acf-pro-field-group.js ***!
|
||||
\*********************************************************************************/
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _acf_setting_repeater_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_acf-setting-repeater.js */ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-repeater.js");
|
||||
/* harmony import */ var _acf_setting_repeater_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_acf_setting_repeater_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _acf_setting_flexible_content_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_acf-setting-flexible-content.js */ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-flexible-content.js");
|
||||
/* harmony import */ var _acf_setting_flexible_content_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_acf_setting_flexible_content_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _acf_setting_clone_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_acf-setting-clone.js */ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-clone.js");
|
||||
/* harmony import */ var _acf_setting_clone_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_acf_setting_clone_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
|
||||
|
||||
|
||||
}();
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf-pro-field-group.js.map
|
||||
|
|
@ -1,259 +0,0 @@
|
|||
/******/ (function() { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-ui-options-page.js":
|
||||
/*!**********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-ui-options-page.js ***!
|
||||
\**********************************************************************************/
|
||||
/***/ (function() {
|
||||
|
||||
(function ($, undefined) {
|
||||
const parentPageSelectTemplate = function (selection) {
|
||||
if ('undefined' === typeof selection.element) {
|
||||
return selection;
|
||||
}
|
||||
|
||||
// Hides the optgroup for the "No Parent" option.
|
||||
if (selection.children && 'None' === selection.text) {
|
||||
return;
|
||||
}
|
||||
if ('acfOptionsPages' === selection.text) {
|
||||
selection.text = acf.__('Options Pages');
|
||||
}
|
||||
return $('<span class="acf-selection"></span>').data('element', selection.element).html(acf.escHtml(selection.text));
|
||||
};
|
||||
const defaultPillTemplate = function (selection) {
|
||||
if ('undefined' === typeof selection.element) {
|
||||
return selection;
|
||||
}
|
||||
const $selection = $('<span class="acf-selection"></span>');
|
||||
$selection.html(acf.escHtml(selection.element.innerHTML));
|
||||
if (selection.id === 'options' || selection.id === 'edit_posts') {
|
||||
$selection.append('<span class="acf-select2-default-pill">' + acf.__('Default') + '</span>');
|
||||
}
|
||||
$selection.data('element', selection.element);
|
||||
return $selection;
|
||||
};
|
||||
const UIOptionsPageManager = new acf.Model({
|
||||
id: 'UIOptionsPageManager',
|
||||
wait: 'ready',
|
||||
events: {
|
||||
'change .acf-options-page-parent_slug': 'toggleMenuPositionDesc'
|
||||
},
|
||||
initialize: function () {
|
||||
if ('ui_options_page' !== acf.get('screen')) {
|
||||
return;
|
||||
}
|
||||
acf.newSelect2($('select.acf-options-page-parent_slug'), {
|
||||
field: false,
|
||||
templateSelection: parentPageSelectTemplate,
|
||||
templateResult: parentPageSelectTemplate,
|
||||
dropdownCssClass: 'field-type-select-results'
|
||||
});
|
||||
acf.newSelect2($('select.acf-options-page-capability'), {
|
||||
field: false,
|
||||
templateSelection: defaultPillTemplate,
|
||||
templateResult: defaultPillTemplate
|
||||
});
|
||||
acf.newSelect2($('select.acf-options-page-data_storage'), {
|
||||
field: false,
|
||||
templateSelection: defaultPillTemplate,
|
||||
templateResult: defaultPillTemplate
|
||||
});
|
||||
this.toggleMenuPositionDesc();
|
||||
},
|
||||
toggleMenuPositionDesc: function (e, $el) {
|
||||
const parentPage = $('select.acf-options-page-parent_slug').val();
|
||||
if ('none' === parentPage) {
|
||||
$('.acf-menu-position-desc-child').hide();
|
||||
$('.acf-menu-position-desc-parent').show();
|
||||
} else {
|
||||
$('.acf-menu-position-desc-parent').hide();
|
||||
$('.acf-menu-position-desc-child').show();
|
||||
}
|
||||
}
|
||||
});
|
||||
const optionsPageModalManager = new acf.Model({
|
||||
id: 'optionsPageModalManager',
|
||||
events: {
|
||||
'change .location-rule-value': 'createOptionsPage'
|
||||
},
|
||||
createOptionsPage: function (e) {
|
||||
const $locationSelect = $(e.target);
|
||||
if ('add_new_options_page' !== $locationSelect.val()) {
|
||||
return;
|
||||
}
|
||||
let popup = false;
|
||||
const getForm = function () {
|
||||
const fieldGroupTitle = $('.acf-headerbar-title-field').val();
|
||||
const ajaxData = {
|
||||
action: 'acf/create_options_page',
|
||||
acf_parent_page_choices: this.acf.data.acfParentPageChoices ? this.acf.data.acfParentPageChoices : []
|
||||
};
|
||||
if (fieldGroupTitle.length) {
|
||||
ajaxData.field_group_title = fieldGroupTitle;
|
||||
}
|
||||
$.ajax({
|
||||
url: acf.get('ajaxurl'),
|
||||
data: acf.prepareForAjax(ajaxData),
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
success: populateForm
|
||||
});
|
||||
};
|
||||
const populateForm = function (response) {
|
||||
popup = acf.newPopup({
|
||||
title: response.data.title,
|
||||
content: response.data.content,
|
||||
width: '600px'
|
||||
});
|
||||
popup.$el.addClass('acf-create-options-page-popup');
|
||||
|
||||
// Hack to focus with the cursor at the end of the input.
|
||||
const $pageTitle = popup.$el.find('#acf_ui_options_page-page_title');
|
||||
const pageTitleVal = $pageTitle.val();
|
||||
$pageTitle.focus().val('').val(pageTitleVal);
|
||||
acf.newSelect2($('#acf_ui_options_page-parent_slug'), {
|
||||
field: false,
|
||||
templateSelection: parentPageSelectTemplate,
|
||||
templateResult: parentPageSelectTemplate,
|
||||
dropdownCssClass: 'field-type-select-results'
|
||||
});
|
||||
popup.on('submit', 'form', validateForm);
|
||||
};
|
||||
const validateForm = function (e) {
|
||||
e.preventDefault();
|
||||
acf.validateForm({
|
||||
form: $('#acf-create-options-page-form'),
|
||||
success: submitForm,
|
||||
failure: onFail
|
||||
});
|
||||
};
|
||||
const submitForm = function () {
|
||||
const formValues = $('#acf-create-options-page-form').serializeArray();
|
||||
const ajaxData = {
|
||||
action: 'acf/create_options_page'
|
||||
};
|
||||
formValues.forEach(setting => {
|
||||
ajaxData[setting.name] = setting.value;
|
||||
});
|
||||
$.ajax({
|
||||
url: acf.get('ajaxurl'),
|
||||
data: acf.prepareForAjax(ajaxData),
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
success: populateLocationSelect
|
||||
});
|
||||
};
|
||||
const onFail = function (e) {
|
||||
const $form = $('#acf-create-options-page-form');
|
||||
const $fieldNotices = $form.find('.acf-field .acf-error-message');
|
||||
|
||||
// Hide the general validation failed notice.
|
||||
$form.find('.acf-notice').first().remove();
|
||||
|
||||
// Update class for inline notices and move into field label.
|
||||
$fieldNotices.each(function () {
|
||||
const $label = $(this).closest('.acf-field').find('.acf-label:first');
|
||||
$(this).attr('class', 'acf-options-page-modal-error').appendTo($label);
|
||||
});
|
||||
};
|
||||
const populateLocationSelect = function (response) {
|
||||
if (response.success && response.data.menu_slug) {
|
||||
$locationSelect.prepend('<option value="' + response.data.menu_slug + '">' + response.data.page_title + '</option>');
|
||||
$locationSelect.val(response.data.menu_slug);
|
||||
popup.close();
|
||||
} else if (!response.success && response.data.error) {
|
||||
alert(response.data.error);
|
||||
}
|
||||
};
|
||||
getForm();
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ !function() {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function() { return module['default']; } :
|
||||
/******/ function() { return module; };
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ !function() {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, definition) {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ !function() {
|
||||
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ !function() {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||||
!function() {
|
||||
"use strict";
|
||||
/*!*************************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/acf-pro-ui-options-page.js ***!
|
||||
\*************************************************************************************/
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _acf_ui_options_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_acf-ui-options-page */ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-ui-options-page.js");
|
||||
/* harmony import */ var _acf_ui_options_page__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_acf_ui_options_page__WEBPACK_IMPORTED_MODULE_0__);
|
||||
|
||||
}();
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf-pro-ui-options-page.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
!function(){var e={412:function(){!function(e,t){const a=function(t){return void 0===t.element?t:t.children&&"None"===t.text?void 0:("acfOptionsPages"===t.text&&(t.text=acf.__("Options Pages")),e('<span class="acf-selection"></span>').data("element",t.element).html(acf.escHtml(t.text)))},n=function(t){if(void 0===t.element)return t;const a=e('<span class="acf-selection"></span>');return a.html(acf.escHtml(t.element.innerHTML)),"options"!==t.id&&"edit_posts"!==t.id||a.append('<span class="acf-select2-default-pill">'+acf.__("Default")+"</span>"),a.data("element",t.element),a};new acf.Model({id:"UIOptionsPageManager",wait:"ready",events:{"change .acf-options-page-parent_slug":"toggleMenuPositionDesc"},initialize:function(){"ui_options_page"===acf.get("screen")&&(acf.newSelect2(e("select.acf-options-page-parent_slug"),{field:!1,templateSelection:a,templateResult:a,dropdownCssClass:"field-type-select-results"}),acf.newSelect2(e("select.acf-options-page-capability"),{field:!1,templateSelection:n,templateResult:n}),acf.newSelect2(e("select.acf-options-page-data_storage"),{field:!1,templateSelection:n,templateResult:n}),this.toggleMenuPositionDesc())},toggleMenuPositionDesc:function(t,a){"none"===e("select.acf-options-page-parent_slug").val()?(e(".acf-menu-position-desc-child").hide(),e(".acf-menu-position-desc-parent").show()):(e(".acf-menu-position-desc-parent").hide(),e(".acf-menu-position-desc-child").show())}}),new acf.Model({id:"optionsPageModalManager",events:{"change .location-rule-value":"createOptionsPage"},createOptionsPage:function(t){const n=e(t.target);if("add_new_options_page"!==n.val())return;let o=!1;const c=function(t){o=acf.newPopup({title:t.data.title,content:t.data.content,width:"600px"}),o.$el.addClass("acf-create-options-page-popup");const n=o.$el.find("#acf_ui_options_page-page_title"),c=n.val();n.focus().val("").val(c),acf.newSelect2(e("#acf_ui_options_page-parent_slug"),{field:!1,templateSelection:a,templateResult:a,dropdownCssClass:"field-type-select-results"}),o.on("submit","form",s)},s=function(t){t.preventDefault(),acf.validateForm({form:e("#acf-create-options-page-form"),success:i,failure:l})},i=function(){const t=e("#acf-create-options-page-form").serializeArray(),a={action:"acf/create_options_page"};t.forEach((e=>{a[e.name]=e.value})),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:r})},l=function(t){const a=e("#acf-create-options-page-form"),n=a.find(".acf-field .acf-error-message");a.find(".acf-notice").first().remove(),n.each((function(){const t=e(this).closest(".acf-field").find(".acf-label:first");e(this).attr("class","acf-options-page-modal-error").appendTo(t)}))},r=function(e){e.success&&e.data.menu_slug?(n.prepend('<option value="'+e.data.menu_slug+'">'+e.data.page_title+"</option>"),n.val(e.data.menu_slug),o.close()):!e.success&&e.data.error&&alert(e.data.error)};!function(){const t=e(".acf-headerbar-title-field").val(),a={action:"acf/create_options_page",acf_parent_page_choices:this.acf.data.acfParentPageChoices?this.acf.data.acfParentPageChoices:[]};t.length&&(a.field_group_title=t),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:c})}()}})}(jQuery)}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var c=t[n]={exports:{}};return e[n](c,c.exports,a),c.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";a(412)}()}();
|
||||
(()=>{var e={805:()=>{!function(e){const t=function(t){return void 0===t.element?t:t.children&&"None"===t.text?void 0:("acfOptionsPages"===t.text&&(t.text=acf.__("Options Pages")),e('<span class="acf-selection"></span>').data("element",t.element).html(acf.strEscape(t.text)))},a=function(t){if(void 0===t.element)return t;const a=e('<span class="acf-selection"></span>');return a.html(acf.strEscape(t.element.innerHTML)),"options"!==t.id&&"edit_posts"!==t.id||a.append('<span class="acf-select2-default-pill">'+acf.__("Default")+"</span>"),a.data("element",t.element),a};new acf.Model({id:"UIOptionsPageManager",wait:"ready",events:{"change .acf-options-page-parent_slug":"toggleMenuPositionDesc"},initialize:function(){"ui_options_page"===acf.get("screen")&&(acf.newSelect2(e("select.acf-options-page-parent_slug"),{field:!1,templateSelection:t,templateResult:t,dropdownCssClass:"field-type-select-results"}),acf.newSelect2(e("select.acf-options-page-capability"),{field:!1,templateSelection:a,templateResult:a}),acf.newSelect2(e("select.acf-options-page-data_storage"),{field:!1,templateSelection:a,templateResult:a}),this.toggleMenuPositionDesc())},toggleMenuPositionDesc:function(t,a){"none"===e("select.acf-options-page-parent_slug").val()?(e(".acf-menu-position-desc-child").hide(),e(".acf-menu-position-desc-parent").show()):(e(".acf-menu-position-desc-parent").hide(),e(".acf-menu-position-desc-child").show())}}),new acf.Model({id:"optionsPageModalManager",events:{"change .location-rule-value":"createOptionsPage"},createOptionsPage:function(a){const n=e(a.target);if("add_new_options_page"!==n.val())return;let o=!1;const s=function(a){o=acf.newPopup({title:a.data.title,content:a.data.content,width:"600px"}),o.$el.addClass("acf-create-options-page-popup");const n=o.$el.find("#acf_ui_options_page-page_title"),s=n.val();n.trigger("focus").val("").val(s),acf.newSelect2(e("#acf_ui_options_page-parent_slug"),{field:!1,templateSelection:t,templateResult:t,dropdownCssClass:"field-type-select-results"}),o.on("submit","form",c)},c=function(t){t.preventDefault(),acf.validateForm({form:e("#acf-create-options-page-form"),success:i,failure:l})},i=function(){const t=e("#acf-create-options-page-form").serializeArray(),a={action:"acf/create_options_page"};t.forEach(e=>{a[e.name]=e.value}),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:p})},l=function(t){const a=e("#acf-create-options-page-form"),n=a.find(".acf-field .acf-error-message");a.find(".acf-notice").first().remove(),n.each(function(){const t=e(this).closest(".acf-field").find(".acf-label:first");e(this).attr("class","acf-options-page-modal-error").appendTo(t)})},p=function(e){e.success&&e.data.menu_slug?(n.prepend('<option value="'+e.data.menu_slug+'">'+e.data.page_title+"</option>"),n.val(e.data.menu_slug),o.close()):!e.success&&e.data.error&&alert(e.data.error)};!function(){const t=e(".acf-headerbar-title-field").val(),a={action:"acf/create_options_page",acf_parent_page_choices:this.acf.data.optionPageParentOptions?this.acf.data.optionPageParentOptions:[]};t.length&&(a.field_group_title=t),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:s})}()}})}(jQuery)}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,a),s.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";a(805)})()})();
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
Before Width: | Height: | Size: 3.4 KiB |
|
|
@ -1,7 +1,15 @@
|
|||
<svg width="55" height="24" viewBox="0 0 55 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M43.9986 23.8816H38.0521V0.0253448H53.9034V5.58064H43.9986V9.83762H53.334V15.2547H43.9986V23.8825V23.8816Z" fill="white"/>
|
||||
<path opacity="0.05" d="M36.4832 13.8697H42.3772C41.5051 19.9417 36.3849 23.9574 30.1814 23.9574C23.3882 23.9574 17.8572 18.8809 17.8572 12.0448C17.843 10.4551 18.1521 8.879 18.7658 7.41239C19.3795 5.94579 20.2849 4.61924 21.4271 3.51334C23.7714 1.24304 26.9182 -0.00834104 30.1814 0.0320335C36.3275 0.0320335 41.5908 4.07879 42.3392 10.0536H36.4511C34.6807 3.2856 23.649 3.94741 23.649 12.0448C23.649 20.1432 34.8189 20.7398 36.4832 13.8716V13.8697Z" fill="white"/>
|
||||
<path d="M35.2772 13.8697C34.266 17.2858 30.667 19.317 27.1244 18.4664C23.5798 17.6128 21.3588 14.187 22.0946 10.7047C22.8294 7.22146 26.2572 4.92655 29.8582 5.50758C31.3334 5.70738 32.6937 6.41247 33.7074 7.50273C34.408 8.22394 34.9337 9.0963 35.2442 10.0526H40.96C40.2116 4.06425 34.9337 0.0320875 28.8022 0.0320875C25.5386 -0.00942939 22.391 1.24129 20.0459 3.51144C18.903 4.61761 17.997 5.94473 17.3831 7.41208C16.7693 8.87942 16.4603 10.4563 16.4751 12.0468C16.4751 18.8829 21.9739 23.9574 28.8042 23.9574C35.0028 23.9574 40.1084 19.9418 40.996 13.8697H35.2763H35.2772Z" fill="white"/>
|
||||
<path opacity="0.05" d="M17.5146 20.4109H9.2391L7.88629 23.8776H1.55337L11.245 0H15.4689L25.5459 23.8854H18.8597L17.5127 20.4109H17.5146ZM11.5914 14.5004L11.3841 15.0396H15.4017L15.2625 14.6347L13.3919 9.51446L11.5914 14.5004Z" fill="white"/>
|
||||
<path d="M15.9476 20.4109H7.68573L6.33389 23.8776H0L9.69257 0H13.9165L23.9935 23.8854H17.3102L15.9476 20.4109ZM10.0381 14.5004L9.83174 15.0396H13.8493L13.7092 14.6347L11.8396 9.51446L10.039 14.5004H10.0381Z" fill="white"/>
|
||||
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.9 1.10017L1.1 8.90139C0.39375 9.60775 0 10.5579 0 11.5518V38.1247C0 39.1624 0.8375 40 1.875 40H38.125C39.1625 40 40 39.1624 40 38.1247V1.87529C40 0.837631 39.1625 0 38.125 0H11.5562C10.5625 0 9.60625 0.393812 8.90625 1.10017H8.9Z" fill="url(#paint0_radial_117_9708)"/>
|
||||
<path d="M9.10713 1.60017H9.11468L9.2614 1.45212C9.86638 0.84164 10.6943 0.5 11.5562 0.5H38.125C38.8863 0.5 39.5 1.1137 39.5 1.87529V38.1247C39.5 38.8863 38.8863 39.5 38.125 39.5H1.875C1.11372 39.5 0.5 38.8863 0.5 38.1247V11.5518C0.5 10.6909 0.840778 9.86781 1.45358 9.25492L9.10713 1.60017Z" stroke="white" stroke-opacity="0.25"/>
|
||||
<path d="M28.3014 26.3536H25.4056V14.7H33.1249V17.4137H28.3014V19.4932H32.8476V22.1394H28.3014V26.3541V26.3536Z" fill="white"/>
|
||||
<path opacity="0.05" d="M24.6417 21.4627H27.512C27.0873 24.4289 24.5938 26.3905 21.5728 26.3905C18.2646 26.3905 15.5712 23.9107 15.5712 20.5713C15.5642 19.7947 15.7148 19.0248 16.0136 18.3084C16.3125 17.5919 16.7534 16.9439 17.3096 16.4037C18.4513 15.2947 19.9837 14.6834 21.5728 14.7031C24.5659 14.7031 27.129 16.6799 27.4935 19.5986H24.6261C23.7639 16.2925 18.3917 16.6157 18.3917 20.5713C18.3917 24.5273 23.8312 24.8187 24.6417 21.4637V21.4627Z" fill="#002447"/>
|
||||
<path d="M24.0543 21.4627C23.5619 23.1315 21.8092 24.1237 20.084 23.7082C18.3579 23.2912 17.2763 21.6177 17.6346 19.9167C17.9925 18.2151 19.6617 17.094 21.4154 17.3779C22.1338 17.4755 22.7962 17.8199 23.2899 18.3525C23.631 18.7048 23.8871 19.1309 24.0382 19.5981H26.8218C26.4573 16.6728 23.887 14.7031 20.9011 14.7031C19.3118 14.6828 17.779 15.2938 16.637 16.4028C16.0804 16.9431 15.6392 17.5914 15.3402 18.3082C15.0413 19.025 14.8908 19.7953 14.898 20.5723C14.898 23.9117 17.5759 26.3905 20.9021 26.3905C23.9207 26.3905 26.4071 24.4289 26.8393 21.4627H24.0539H24.0543Z" fill="white"/>
|
||||
<path opacity="0.05" d="M15.4044 24.6581H11.3744L10.7156 26.3516H7.63153L12.3512 14.6875H14.4081L19.3155 26.3554H16.0594L15.4034 24.6581H15.4044ZM12.5199 21.7709L12.4189 22.0343H14.3754L14.3077 21.8365L13.3967 19.3353L12.5199 21.7709Z" fill="#002447"/>
|
||||
<path d="M14.6412 24.6581H10.6178L9.9595 26.3516H6.875L11.5951 14.6875H13.6521L18.5594 26.3554H15.3048L14.6412 24.6581ZM11.7634 21.7709L11.6629 22.0343H13.6194L13.5511 21.8365L12.6407 19.3353L11.7638 21.7709H11.7634Z" fill="white"/>
|
||||
<defs>
|
||||
<radialGradient id="paint0_radial_117_9708" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="rotate(45) scale(56.5685)">
|
||||
<stop stop-color="#0ECAD4"/>
|
||||
<stop offset="1" stop-color="#006BD6"/>
|
||||
</radialGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.6 KiB |
|
|
@ -0,0 +1,27 @@
|
|||
<svg width="41" height="40" viewBox="0 0 41 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_120_9753)">
|
||||
<path d="M7.54459 0.932623L0.932477 7.54576C0.333784 8.14455 0 8.95 0 9.79254V32.3186C0 33.1982 0.709954 33.9083 1.58945 33.9083H32.3188C33.1983 33.9083 33.9083 33.1982 33.9083 32.3186V1.5897C33.9083 0.710065 33.1983 0 32.3188 0H9.79631C8.9539 0 8.14328 0.333837 7.54988 0.932623H7.54459Z" fill="url(#paint0_radial_120_9753)"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.54988 0.932623C8.14328 0.333837 8.9539 0 9.79631 0H32.3188C33.1983 0 33.9083 0.710065 33.9083 1.5897V32.3186C33.9083 33.1982 33.1983 33.9083 32.3188 33.9083H1.58945C0.709954 33.9083 0 33.1982 0 32.3186V9.79254C0 8.95 0.333784 8.14455 0.932477 7.54576L7.54459 0.932623H7.54988ZM7.95885 1.93262L1.63964 8.25282C1.22784 8.66468 1 9.21605 1 9.79254V32.3186C1 32.646 1.26239 32.9083 1.58945 32.9083H32.3188C32.6459 32.9083 32.9083 32.646 32.9083 32.3186V1.5897C32.9083 1.2622 32.6459 1 32.3188 1H9.79631C9.21748 1 8.66355 1.22949 8.26018 1.63652L7.96675 1.93262H7.95885Z" fill="white" fill-opacity="0.25"/>
|
||||
<path d="M23.9913 22.3401H21.5365V12.4612H28.0802V14.7616H23.9913V16.5245H27.8452V18.7677H23.9913V22.3405V22.3401Z" fill="white"/>
|
||||
<path opacity="0.05" d="M20.8889 18.1942H23.3221C22.9621 20.7086 20.8484 22.3715 18.2874 22.3715C15.4831 22.3715 13.1998 20.2693 13.1998 17.4385C13.1939 16.7802 13.3215 16.1276 13.5749 15.5202C13.8282 14.9129 14.202 14.3636 14.6735 13.9056C15.6413 12.9655 16.9403 12.4473 18.2874 12.464C20.8247 12.464 22.9975 14.1398 23.3064 16.6139H20.8757C20.1449 13.8113 15.5907 14.0854 15.5907 17.4385C15.5907 20.7921 20.2019 21.0391 20.8889 18.195V18.1942Z" fill="#002447"/>
|
||||
<path d="M20.3911 18.1942C19.9736 19.6088 18.4879 20.4499 17.0254 20.0977C15.5621 19.7442 14.6453 18.3256 14.949 16.8836C15.2524 15.4412 16.6674 14.4908 18.154 14.7314C18.763 14.8142 19.3245 15.1062 19.743 15.5576C20.0322 15.8563 20.2492 16.2175 20.3774 16.6136H22.737C22.4281 14.1338 20.2492 12.464 17.7181 12.464C16.3708 12.4468 15.0714 12.9648 14.1033 13.9048C13.6315 14.3629 13.2575 14.9125 13.004 15.5201C12.7506 16.1277 12.6231 16.7807 12.6292 17.4393C12.6292 20.2702 14.8992 22.3715 17.7189 22.3715C20.2778 22.3715 22.3855 20.7087 22.7519 18.1942H20.3907H20.3911Z" fill="white"/>
|
||||
<path opacity="0.05" d="M13.0584 20.9029H9.64211L9.08365 22.3384H6.4693L10.4702 12.4507H12.2139L16.3738 22.3417H13.6137L13.0576 20.9029H13.0584ZM10.6132 18.4553L10.5276 18.6786H12.1861L12.1287 18.5109L11.3565 16.3906L10.6132 18.4553Z" fill="#002447"/>
|
||||
<path d="M12.4115 20.9029H9.00082L8.44275 22.3384H5.828L9.82928 12.4507H11.573L15.733 22.3417H12.974L12.4115 20.9029ZM9.97191 18.4553L9.88673 18.6786H11.5453L11.4874 18.5109L10.7156 16.3906L9.97231 18.4553H9.97191Z" fill="white"/>
|
||||
<rect x="18" y="26" width="22.29" height="13.1994" rx="6.59972" fill="url(#paint1_radial_120_9753)"/>
|
||||
<rect x="18.5" y="26.5" width="21.29" height="12.1994" rx="6.09972" stroke="white" stroke-opacity="0.4"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M33.1989 35.2127C32.7879 35.2127 32.4199 35.1185 32.0948 34.9299C31.7698 34.7414 31.5129 34.47 31.3242 34.1157C31.1376 33.7615 31.0442 33.3357 31.0442 32.8385C31.0442 32.3392 31.1376 31.9124 31.3242 31.5581C31.5129 31.2018 31.7698 30.9293 32.0948 30.7408C32.4199 30.5523 32.7879 30.458 33.1989 30.458C33.6078 30.458 33.9737 30.5523 34.2967 30.7408C34.6217 30.9293 34.8775 31.2018 35.0642 31.5581C35.2529 31.9124 35.3473 32.3392 35.3473 32.8385C35.3473 33.3357 35.2529 33.7625 35.0642 34.1188C34.8775 34.4731 34.6217 34.7445 34.2967 34.9331C33.9737 35.1195 33.6078 35.2127 33.1989 35.2127ZM33.1989 34.47C33.4526 34.47 33.677 34.4079 33.872 34.2836C34.0692 34.1572 34.2233 33.9728 34.3344 33.7304C34.4456 33.4859 34.5011 33.1886 34.5011 32.8385C34.5011 32.4842 34.4456 32.1859 34.3344 31.9435C34.2233 31.699 34.0692 31.5146 33.872 31.3903C33.677 31.2639 33.4526 31.2007 33.1989 31.2007C32.9431 31.2007 32.7166 31.2639 32.5195 31.3903C32.3224 31.5167 32.1672 31.7021 32.0539 31.9466C31.9428 32.189 31.8872 32.4863 31.8872 32.8385C31.8872 33.1886 31.9428 33.4849 32.0539 33.7273C32.1672 33.9697 32.3224 34.1541 32.5195 34.2804C32.7166 34.4068 32.9431 34.47 33.1989 34.47ZM27.3415 35.1506C27.2035 35.1506 27.0915 35.0387 27.0915 34.9006V30.7702C27.0915 30.6321 27.2035 30.5202 27.3415 30.5202H28.8436C29.2022 30.5202 29.5041 30.5823 29.7495 30.7066C29.9948 30.8309 30.1804 31.005 30.3062 31.2287C30.4321 31.4504 30.495 31.7083 30.495 32.0025C30.495 32.2967 30.431 32.5526 30.3031 32.7701C30.1773 32.9876 29.9906 33.1555 29.7432 33.2736C29.7138 33.2876 29.6837 33.3007 29.6527 33.3131L30.463 34.7797C30.5551 34.9463 30.4346 35.1506 30.2442 35.1506H29.8763C29.7846 35.1506 29.7002 35.1004 29.6565 35.0197L28.8061 33.4507H27.9314V34.9006C27.9314 35.0387 27.8195 35.1506 27.6814 35.1506H27.3415ZM28.7209 32.7639H27.9314V31.4663C27.9314 31.3282 28.0433 31.2163 28.1814 31.2163H28.7146C28.9285 31.2163 29.1026 31.2474 29.2368 31.3095C29.3731 31.3717 29.4737 31.4618 29.5387 31.5799C29.6037 31.6959 29.6362 31.8368 29.6362 32.0025C29.6362 32.1641 29.6037 32.3019 29.5387 32.4158C29.4737 32.5298 29.3741 32.6168 29.2399 32.6769C29.1057 32.7349 28.9327 32.7639 28.7209 32.7639ZM23.0153 34.9006C23.0153 35.0387 23.1272 35.1506 23.2653 35.1506H23.6051C23.7432 35.1506 23.8551 35.0387 23.8551 34.9006V33.5843H24.7547C25.1154 33.5843 25.4195 33.518 25.6669 33.3854C25.9144 33.2528 26.101 33.0716 26.2268 32.8416C26.3547 32.6116 26.4187 32.3485 26.4187 32.0522C26.4187 31.758 26.3558 31.496 26.23 31.266C26.1041 31.034 25.9185 30.8516 25.6732 30.719C25.4279 30.5865 25.1259 30.5202 24.7673 30.5202H23.2653C23.1272 30.5202 23.0153 30.6321 23.0153 30.7702V34.9006ZM23.8551 32.9006H24.6446C24.8564 32.9006 25.0294 32.8644 25.1636 32.7919C25.2999 32.7194 25.3995 32.6189 25.4625 32.4904C25.5275 32.362 25.56 32.2159 25.56 32.0522C25.56 31.8886 25.5275 31.7435 25.4625 31.6172C25.3995 31.4908 25.2999 31.3924 25.1636 31.3219C25.0273 31.2515 24.8522 31.2163 24.6383 31.2163H24.1051C23.967 31.2163 23.8551 31.3282 23.8551 31.4663V32.9006Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<radialGradient id="paint0_radial_120_9753" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="rotate(45) scale(47.9535)">
|
||||
<stop stop-color="#0ECAD4"/>
|
||||
<stop offset="1" stop-color="#006BD6"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint1_radial_120_9753" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(40.3484 39.1008) rotate(-149.621) scale(25.9053 22.7152)">
|
||||
<stop stop-color="#0ECAD4"/>
|
||||
<stop offset="1" stop-color="#7A45E5"/>
|
||||
</radialGradient>
|
||||
<clipPath id="clip0_120_9753">
|
||||
<rect width="40.2902" height="39.1996" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.5 KiB |
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 5C10 3.89543 10.8954 3 12 3C13.1046 3 14 3.89543 14 5C14 6.10457 13.1046 7 12 7C10.8954 7 10 6.10457 10 5Z" fill="black"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12Z" fill="black"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 19C10 17.8954 10.8954 17 12 17C13.1046 17 14 17.8954 14 19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19Z" fill="black"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M17 5C17 3.89543 17.8954 3 19 3C20.1046 3 21 3.89543 21 5C21 6.10457 20.1046 7 19 7C17.8954 7 17 6.10457 17 5Z" fill="black"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12Z" fill="black"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M17 19C17 17.8954 17.8954 17 19 17C20.1046 17 21 17.8954 21 19C21 20.1046 20.1046 21 19 21C17.8954 21 17 20.1046 17 19Z" fill="black"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 5C3 3.89543 3.89543 3 5 3C6.10457 3 7 3.89543 7 5C7 6.10457 6.10457 7 5 7C3.89543 7 3 6.10457 3 5Z" fill="black"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12Z" fill="black"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 19C3 17.8954 3.89543 17 5 17C6.10457 17 7 17.8954 7 19C7 20.1046 6.10457 21 5 21C3.89543 21 3 20.1046 3 19Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
After Width: | Height: | Size: 10 KiB |
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M15 16.5V21.5H16.5V16.5H21.5V15H16.5V10H15V15H10V16.5H15Z" fill="#1E1E1E"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 188 B |
|
|
@ -0,0 +1,10 @@
|
|||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_346_12818)">
|
||||
<path d="M17.3323 14.9998L10.3199 1.61248C9.92991 0.877484 9.02242 0.592487 8.29493 0.974983C8.01743 1.10998 7.79993 1.33498 7.65743 1.60498L0.645004 14.9923H0.637504C0.247508 15.7198 0.532505 16.6273 1.2675 17.0098C1.4775 17.1223 1.71749 17.1748 1.95749 17.1748H15.9748C16.7998 17.1748 17.4748 16.4998 17.4748 15.6748C17.4748 15.4273 17.4148 15.1873 17.3023 14.9773L17.3323 14.9998ZM8.24243 6.31718C8.24243 5.89718 8.57242 5.56719 8.99242 5.56719C9.40491 5.56719 9.74241 5.89718 9.74241 6.31718V10.8171C9.74241 11.2296 9.40491 11.5671 8.99242 11.5671C8.57242 11.5671 8.24243 11.2296 8.24243 10.8171V6.31718ZM9.02992 14.9496H9.00742C8.39243 14.9421 7.88243 14.4546 7.85993 13.8471C7.83743 13.2321 8.30993 12.7221 8.92492 12.6996C8.92492 12.6921 8.93242 12.6921 8.93992 12.6921H8.95492C9.56241 12.6921 10.0724 13.1721 10.0949 13.7871C10.1174 14.3946 9.63741 14.9046 9.02992 14.9346C9.01492 14.9346 9.00742 14.9346 8.99992 14.9346L9.02992 14.9496Z" fill="#F56E28"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_346_12818">
|
||||
<rect width="18" height="18" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.625 9.5H19.375C19.444 9.5 19.5 9.556 19.5 9.625V19.375C19.5 19.4082 19.4868 19.4399 19.4634 19.4634C19.4399 19.4868 19.4082 19.5 19.375 19.5H9.625C9.59185 19.5 9.56005 19.4868 9.53661 19.4634C9.51317 19.4399 9.5 19.4082 9.5 19.375V9.625C9.5 9.556 9.556 9.5 9.625 9.5ZM8 9.625C8 8.728 8.728 8 9.625 8H19.375C20.273 8 21 8.728 21 9.625V19.375C21 20.273 20.273 21 19.375 21H9.625C9.19402 21 8.7807 20.8288 8.47595 20.524C8.17121 20.2193 8 19.806 8 19.375V9.625ZM22.5 21.281V12.281H24V21.281C24 22.8 22.77 24 21.251 24H10.25V22.5H21.251C21.941 22.5 22.5 21.972 22.5 21.281Z" fill="#1E1E1E"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 743 B |
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M14 3L11 0L2.5 8.5L1.5 12.5L5.5 11.5L14 3ZM7 14.5H0V16H7V14.5Z" fill="#1E1E1E"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 193 B |
|
|
@ -0,0 +1,4 @@
|
|||
<svg width="18" height="17" viewBox="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0.999607 10C1.67043 10.3354 1.6703 10.3357 1.67017 10.3359L1.67298 10.3305C1.67621 10.3242 1.68184 10.3135 1.68988 10.2985C1.70595 10.2686 1.7316 10.2218 1.76695 10.1608C1.8377 10.0385 1.94692 9.8592 2.09541 9.6419C2.39312 9.2062 2.84436 8.624 3.45435 8.0431C4.67308 6.88241 6.49719 5.75 8.9996 5.75C11.502 5.75 13.3261 6.88241 14.5449 8.0431C15.1549 8.624 15.6061 9.2062 15.9038 9.6419C16.0523 9.8592 16.1615 10.0385 16.2323 10.1608C16.2676 10.2218 16.2933 10.2686 16.3093 10.2985C16.3174 10.3135 16.323 10.3242 16.3262 10.3305L16.3291 10.3359C16.3289 10.3357 16.3288 10.3354 16.9996 10C17.6704 9.6646 17.6703 9.6643 17.6701 9.664L17.6688 9.6614L17.6662 9.6563L17.6583 9.6408C17.6517 9.6282 17.6427 9.6108 17.631 9.5892C17.6078 9.5459 17.5744 9.4852 17.5306 9.4096C17.4432 9.2584 17.3141 9.0471 17.1423 8.7956C16.7994 8.2938 16.2819 7.626 15.5794 6.9569C14.1731 5.61759 11.9972 4.25 8.9996 4.25C6.00203 4.25 3.82614 5.61759 2.41987 6.9569C1.71736 7.626 1.19984 8.2938 0.856937 8.7956C0.685107 9.0471 0.556047 9.2584 0.468597 9.4096C0.424837 9.4852 0.391417 9.5459 0.368177 9.5892C0.356557 9.6108 0.347477 9.6282 0.340917 9.6408L0.332967 9.6563L0.330407 9.6614L0.329477 9.6632C0.329307 9.6635 0.328787 9.6646 0.999607 10ZM8.9996 13C10.9326 13 12.4996 11.433 12.4996 9.5C12.4996 7.567 10.9326 6 8.9996 6C7.0666 6 5.49961 7.567 5.49961 9.5C5.49961 11.433 7.0666 13 8.9996 13Z" fill="#1E1E1E"/>
|
||||
<rect x="12.317" y="1.31699" width="2" height="16" transform="rotate(30 12.317 1.31699)" fill="#1E1E1E" stroke="white"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
|
|
@ -0,0 +1,5 @@
|
|||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M7.16671 8.83337V3.83337H8.83337V8.83337H7.16671Z" fill="white"/>
|
||||
<path d="M7.16671 10.5V12.1667H8.83337V10.5H7.16671Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.2917 8.00004C15.2917 12.0271 12.0271 15.2917 8.00004 15.2917C3.97296 15.2917 0.708374 12.0271 0.708374 8.00004C0.708374 3.97296 3.97296 0.708374 8.00004 0.708374C12.0271 0.708374 15.2917 3.97296 15.2917 8.00004ZM8.00004 14.0417C11.3368 14.0417 14.0417 11.3368 14.0417 8.00004C14.0417 4.66332 11.3368 1.95837 8.00004 1.95837C4.66332 1.95837 1.95837 4.66332 1.95837 8.00004C1.95837 11.3368 4.66332 14.0417 8.00004 14.0417Z" fill="white"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 736 B |
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M17 23H15V21H17V23ZM17 17H15V15H17V17ZM17 11H15V9H17V11Z" fill="#1E1E1E"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 187 B |
|
|
@ -0,0 +1,5 @@
|
|||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g transform="translate(4,3)">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 5.5C11.5346 5.49986 11.0806 5.64404 10.7006 5.91269C10.3205 6.18133 10.0331 6.56121 9.878 7H14.122C13.9667 6.56129 13.6793 6.18149 13.2993 5.91287C12.9193 5.64425 12.4654 5.50001 12 5.5ZM12 4C11.1356 4.00001 10.2977 4.29859 9.62801 4.84525C8.95836 5.3919 8.49807 6.15306 8.325 7H5V8.5H6.27L7.088 17.497C7.15014 18.1805 7.46559 18.816 7.97239 19.2788C8.47919 19.7415 9.14071 19.9981 9.827 19.998H14.174C14.86 19.9978 15.5211 19.7413 16.0277 19.2788C16.5342 18.8163 16.8496 18.1811 16.912 17.498L17.73 8.5H19V7H15.675C15.5019 6.15306 15.0416 5.3919 14.372 4.84525C13.7023 4.29859 12.8644 4.00001 12 4ZM16.224 8.5H7.776L8.582 17.361C8.6102 17.6717 8.75357 17.9606 8.98394 18.171C9.21431 18.3814 9.51502 18.498 9.827 18.498H14.174C14.486 18.498 14.7867 18.3814 15.0171 18.171C15.2474 17.9606 15.3908 17.6717 15.419 17.361L16.224 8.5Z" fill="#B80F38"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="18" height="9" viewBox="0 0 18 9" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0.999607 6C1.67043 6.3354 1.6703 6.3357 1.67017 6.3359L1.67298 6.3305C1.67621 6.3242 1.68184 6.3135 1.68988 6.2985C1.70595 6.2686 1.7316 6.2218 1.76695 6.1608C1.8377 6.0385 1.94692 5.8592 2.09541 5.6419C2.39312 5.2062 2.84436 4.624 3.45435 4.0431C4.67308 2.88241 6.49719 1.75 8.9996 1.75C11.502 1.75 13.3261 2.88241 14.5449 4.0431C15.1549 4.624 15.6061 5.2062 15.9038 5.6419C16.0523 5.8592 16.1615 6.0385 16.2323 6.1608C16.2676 6.2218 16.2933 6.2686 16.3093 6.2985C16.3174 6.3135 16.323 6.3242 16.3262 6.3305L16.3291 6.3359C16.3289 6.3357 16.3288 6.3354 16.9996 6C17.6704 5.6646 17.6703 5.6643 17.6701 5.664L17.6688 5.6614L17.6662 5.6563L17.6583 5.6408C17.6517 5.6282 17.6427 5.6108 17.631 5.5892C17.6078 5.5459 17.5744 5.4852 17.5306 5.4096C17.4432 5.2584 17.3141 5.0471 17.1423 4.7956C16.7994 4.2938 16.2819 3.626 15.5794 2.9569C14.1731 1.61759 11.9972 0.25 8.9996 0.25C6.00203 0.25 3.82614 1.61759 2.41987 2.9569C1.71736 3.626 1.19984 4.2938 0.856937 4.7956C0.685107 5.0471 0.556047 5.2584 0.468597 5.4096C0.424837 5.4852 0.391417 5.5459 0.368177 5.5892C0.356557 5.6108 0.347477 5.6282 0.340917 5.6408L0.332967 5.6563L0.330407 5.6614L0.329477 5.6632C0.329307 5.6635 0.328787 5.6646 0.999607 6ZM8.9996 9C10.9326 9 12.4996 7.433 12.4996 5.5C12.4996 3.567 10.9326 2 8.9996 2C7.0666 2 5.49961 3.567 5.49961 5.5C5.49961 7.433 7.0666 9 8.9996 9Z" fill="#1E1E1E"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<svg width="55" height="24" viewBox="0 0 55 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="55" height="23.6867" rx="11.8434" fill="url(#paint0_radial_117_9719)"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.6667 9.33333C10.6667 7.49238 12.1591 6 14 6C15.8409 6 17.3333 7.49238 17.3333 9.33333V10.528C17.4903 10.5624 17.641 10.6125 17.7866 10.6867C18.2048 10.8997 18.5447 11.2397 18.7578 11.6578C18.8952 11.9274 18.9499 12.2145 18.9754 12.5268C19 12.8274 19 13.1965 19 13.6437V13.9118C19 14.359 19 14.7281 18.9754 15.0288C18.9499 15.3411 18.8952 15.6281 18.7578 15.8978C18.5447 16.3159 18.2048 16.6558 17.7866 16.8689C17.517 17.0063 17.23 17.061 16.9177 17.0866C16.617 17.1111 16.2479 17.1111 15.8007 17.1111H12.1993C11.7521 17.1111 11.383 17.1111 11.0823 17.0866C10.77 17.061 10.483 17.0063 10.2134 16.8689C9.79522 16.6558 9.45526 16.3159 9.24221 15.8978C9.10482 15.6281 9.05007 15.3411 9.02455 15.0288C8.99999 14.7281 8.99999 14.359 9 13.9118V13.6437C8.99999 13.1965 8.99999 12.8274 9.02455 12.5268C9.05007 12.2145 9.10482 11.9274 9.24221 11.6578C9.45526 11.2397 9.79522 10.8997 10.2134 10.6867C10.359 10.6125 10.5097 10.5624 10.6667 10.528V9.33333ZM11.7778 10.4453C11.9098 10.4444 12.0502 10.4444 12.1993 10.4444H15.8007C15.9498 10.4444 16.0902 10.4444 16.2222 10.4453V9.33333C16.2222 8.10603 15.2273 7.11111 14 7.11111C12.7727 7.11111 11.7778 8.10603 11.7778 9.33333V10.4453ZM11.1728 11.5764C10.9292 11.5963 10.8047 11.6324 10.7178 11.6767C10.5087 11.7832 10.3387 11.9532 10.2322 12.1622C10.1879 12.2491 10.1519 12.3737 10.132 12.6172C10.1115 12.8673 10.1111 13.1908 10.1111 13.6667V13.8889C10.1111 14.3648 10.1115 14.6883 10.132 14.9383C10.1519 15.1819 10.1879 15.3064 10.2322 15.3933C10.3387 15.6024 10.5087 15.7724 10.7178 15.8789C10.8047 15.9232 10.9292 15.9592 11.1728 15.9791C11.4228 15.9996 11.7463 16 12.2222 16H15.7778C16.2537 16 16.5772 15.9996 16.8272 15.9791C17.0708 15.9592 17.1953 15.9232 17.2822 15.8789C17.4913 15.7724 17.6613 15.6024 17.7678 15.3933C17.8121 15.3064 17.8481 15.1819 17.868 14.9383C17.8885 14.6883 17.8889 14.3648 17.8889 13.8889V13.6667C17.8889 13.1908 17.8885 12.8673 17.868 12.6172C17.8481 12.3737 17.8121 12.2491 17.7678 12.1622C17.6613 11.9532 17.4913 11.7832 17.2822 11.6767C17.1953 11.6324 17.0708 11.5963 16.8272 11.5764C16.5772 11.556 16.2537 11.5556 15.7778 11.5556H12.2222C11.7463 11.5556 11.4228 11.556 11.1728 11.5764Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M42.2748 15.8218C41.5372 15.8218 40.8768 15.6526 40.2935 15.3143C39.7103 14.976 39.2493 14.489 38.9106 13.8532C38.5757 13.2174 38.4082 12.4534 38.4082 11.5611C38.4082 10.6651 38.5757 9.89925 38.9106 9.26349C39.2493 8.62402 39.7103 8.13512 40.2935 7.7968C40.8768 7.45847 41.5372 7.28931 42.2748 7.28931C43.0086 7.28931 43.6653 7.45847 44.2448 7.7968C44.8281 8.13512 45.2872 8.62402 45.6221 9.26349C45.9608 9.89925 46.1301 10.6651 46.1301 11.5611C46.1301 12.4534 45.9608 13.2193 45.6221 13.8588C45.2872 14.4945 44.8281 14.9816 44.2448 15.3199C43.6653 15.6545 43.0086 15.8218 42.2748 15.8218ZM42.2748 14.489C42.7302 14.489 43.1328 14.3774 43.4828 14.1543C43.8365 13.9276 44.1131 13.5967 44.3125 13.1617C44.512 12.723 44.6117 12.1895 44.6117 11.5611C44.6117 10.9254 44.512 10.39 44.3125 9.95502C44.1131 9.51631 43.8365 9.18542 43.4828 8.96235C43.1328 8.73556 42.7302 8.62216 42.2748 8.62216C41.8157 8.62216 41.4093 8.73556 41.0556 8.96235C40.7018 9.18914 40.4234 9.52189 40.2202 9.96059C40.0207 10.3956 39.921 10.9291 39.921 11.5611C39.921 12.1895 40.0207 12.7211 40.2202 13.1561C40.4234 13.5911 40.7018 13.922 41.0556 14.1488C41.4093 14.3756 41.8157 14.489 42.2748 14.489ZM31.565 15.7103C31.4269 15.7103 31.315 15.5983 31.315 15.4603V7.65083C31.315 7.51276 31.4269 7.40083 31.565 7.40083H34.4591C35.1026 7.40083 35.6445 7.51237 36.0847 7.73544C36.525 7.95851 36.8581 8.27082 37.0838 8.67234C37.3096 9.07016 37.4225 9.53303 37.4225 10.061C37.4225 10.5889 37.3078 11.0481 37.0782 11.4384C36.8524 11.8288 36.5175 12.13 36.0735 12.3419C36.0208 12.367 35.9667 12.3907 35.9111 12.4128L37.5281 15.3394C37.6201 15.506 37.4996 15.7103 37.3092 15.7103H36.1941C36.1024 15.7103 36.018 15.66 35.9743 15.5794L34.3918 12.6598H32.8221V15.4603C32.8221 15.5983 32.7102 15.7103 32.5721 15.7103H31.565ZM34.2389 11.4273H32.8221V8.90004C32.8221 8.76197 32.9341 8.65004 33.0721 8.65004H34.2276C34.6115 8.65004 34.9238 8.70581 35.1647 8.81734C35.4093 8.92888 35.5899 9.0906 35.7065 9.30252C35.8232 9.51072 35.8815 9.76354 35.8815 10.061C35.8815 10.351 35.8232 10.5982 35.7065 10.8027C35.5899 11.0072 35.4111 11.1633 35.1703 11.2711C34.9295 11.3752 34.619 11.4273 34.2389 11.4273ZM24 15.4603C24 15.5983 24.1119 15.7103 24.25 15.7103H25.2571C25.3952 15.7103 25.5071 15.5983 25.5071 15.4603V12.8996H27.1215C27.7688 12.8996 28.3144 12.7806 28.7585 12.5426C29.2025 12.3047 29.5374 11.9794 29.7632 11.5667C29.9928 11.154 30.1075 10.6819 30.1075 10.1502C30.1075 9.62226 29.9946 9.15195 29.7689 8.73927C29.5431 8.32287 29.21 7.99569 28.7697 7.75775C28.3295 7.51981 27.7876 7.40083 27.1441 7.40083H24.25C24.1119 7.40083 24 7.51276 24 7.65083V15.4603ZM25.5071 11.6727H26.9239C27.304 11.6727 27.6145 11.6076 27.8553 11.4775C28.0999 11.3474 28.2787 11.167 28.3916 10.9365C28.5082 10.706 28.5665 10.4439 28.5665 10.1502C28.5665 9.85649 28.5082 9.59623 28.3916 9.36944C28.2787 9.14265 28.0999 8.96606 27.8553 8.83965C27.6107 8.71324 27.2965 8.65004 26.9127 8.65004H25.7571C25.6191 8.65004 25.5071 8.76197 25.5071 8.90004V11.6727Z" fill="white"/>
|
||||
<defs>
|
||||
<radialGradient id="paint0_radial_117_9719" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(55.1441 23.5097) rotate(-156.91) scale(59.9465 43.4653)">
|
||||
<stop stop-color="#0ECAD4"/>
|
||||
<stop offset="1" stop-color="#7A45E5"/>
|
||||
</radialGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.6 KiB |
|
|
@ -0,0 +1,10 @@
|
|||
<svg width="40" height="24" viewBox="0 0 40 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="40" height="23.6867" rx="11.8434" fill="url(#paint0_radial_109_8486)"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M27.2748 16.5325C26.5372 16.5325 25.8768 16.3633 25.2935 16.025C24.7103 15.6867 24.2493 15.1996 23.9106 14.5639C23.5757 13.9281 23.4082 13.1641 23.4082 12.2718C23.4082 11.3758 23.5757 10.6099 23.9106 9.97419C24.2493 9.33471 24.7103 8.84581 25.2935 8.50749C25.8768 8.16916 26.5372 8 27.2748 8C28.0086 8 28.6653 8.16916 29.2448 8.50749C29.8281 8.84581 30.2872 9.33471 30.6221 9.97419C30.9608 10.6099 31.1301 11.3758 31.1301 12.2718C31.1301 13.1641 30.9608 13.93 30.6221 14.5695C30.2872 15.2052 29.8281 15.6923 29.2448 16.0306C28.6653 16.3652 28.0086 16.5325 27.2748 16.5325ZM27.2748 15.1996C27.7302 15.1996 28.1328 15.0881 28.4828 14.865C28.8365 14.6383 29.1131 14.3074 29.3125 13.8724C29.512 13.4337 29.6117 12.9001 29.6117 12.2718C29.6117 11.6361 29.512 11.1007 29.3125 10.6657C29.1131 10.227 28.8365 9.89611 28.4828 9.67304C28.1328 9.44625 27.7302 9.33286 27.2748 9.33286C26.8157 9.33286 26.4093 9.44625 26.0556 9.67304C25.7018 9.89983 25.4234 10.2326 25.2202 10.6713C25.0207 11.1063 24.921 11.6398 24.921 12.2718C24.921 12.9001 25.0207 13.4318 25.2202 13.8668C25.4234 14.3018 25.7018 14.6327 26.0556 14.8595C26.4093 15.0863 26.8157 15.1996 27.2748 15.1996ZM16.565 16.421C16.4269 16.421 16.315 16.309 16.315 16.171V8.36153C16.315 8.22346 16.4269 8.11153 16.565 8.11153H19.4591C20.1026 8.11153 20.6445 8.22306 21.0847 8.44614C21.525 8.66921 21.8581 8.98151 22.0838 9.38304C22.3096 9.78085 22.4225 10.2437 22.4225 10.7717C22.4225 11.2996 22.3078 11.7588 22.0782 12.1491C21.8524 12.5395 21.5175 12.8407 21.0735 13.0526C21.0208 13.0777 20.9667 13.1014 20.9111 13.1235L22.5281 16.0501C22.6201 16.2167 22.4996 16.421 22.3092 16.421H21.1941C21.1024 16.421 21.018 16.3707 20.9743 16.2901L19.3918 13.3705H17.8221V16.171C17.8221 16.309 17.7102 16.421 17.5721 16.421H16.565ZM19.2389 12.138H17.8221V9.61073C17.8221 9.47266 17.9341 9.36073 18.0721 9.36073H19.2276C19.6115 9.36073 19.9238 9.4165 20.1647 9.52803C20.4093 9.63957 20.5899 9.8013 20.7065 10.0132C20.8232 10.2214 20.8815 10.4742 20.8815 10.7717C20.8815 11.0617 20.8232 11.3089 20.7065 11.5134C20.5899 11.7179 20.4111 11.874 20.1703 11.9818C19.9295 12.0859 19.619 12.138 19.2389 12.138ZM9 16.171C9 16.309 9.11193 16.421 9.25 16.421H10.2571C10.3952 16.421 10.5071 16.309 10.5071 16.171V13.6103H12.1215C12.7688 13.6103 13.3144 13.4913 13.7585 13.2533C14.2025 13.0154 14.5374 12.6901 14.7632 12.2774C14.9928 11.8647 15.1075 11.3925 15.1075 10.8609C15.1075 10.333 14.9946 9.86264 14.7689 9.44996C14.5431 9.03356 14.21 8.70639 13.7697 8.46844C13.3295 8.2305 12.7876 8.11153 12.1441 8.11153H9.25C9.11193 8.11153 9 8.22346 9 8.36153V16.171ZM10.5071 12.3834H11.9239C12.304 12.3834 12.6145 12.3183 12.8553 12.1882C13.0999 12.058 13.2787 11.8777 13.3916 11.6472C13.5082 11.4167 13.5665 11.1546 13.5665 10.8609C13.5665 10.5672 13.5082 10.3069 13.3916 10.0801C13.2787 9.85335 13.0999 9.67675 12.8553 9.55034C12.6107 9.42393 12.2965 9.36073 11.9127 9.36073H10.7571C10.6191 9.36073 10.5071 9.47266 10.5071 9.61073V12.3834Z" fill="white"/>
|
||||
<defs>
|
||||
<radialGradient id="paint0_radial_109_8486" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(40.1048 23.5097) rotate(-149.621) scale(46.4877 40.763)">
|
||||
<stop stop-color="#0ECAD4"/>
|
||||
<stop offset="1" stop-color="#7A45E5"/>
|
||||
</radialGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.4 KiB |
|
|
@ -1,14 +1,22 @@
|
|||
<svg width="104" height="20" viewBox="0 0 104 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.923096 1.52942L2.45251 0H7.35447V6.43138H0.923096V1.52942ZM7.70741 0H14.1388V4.90196L12.5702 6.43138H9.23682L7.70741 4.90196V0ZM16.0211 6.78432L14.4917 8.31373V11.6863L16.0211 13.2157H20.9231V6.78432H16.0211ZM7.70741 20H14.1388V15.098L12.5702 13.5686H9.23682L7.70741 15.098V20ZM20.9231 20V15.098L19.3937 13.5686H14.4917V20H20.9231ZM14.4917 0V4.90196L16.0211 6.43138H20.9231V0H14.4917ZM10.0211 10C10.0211 10.4706 10.4133 10.902 10.9231 10.902C11.4329 10.902 11.8251 10.5098 11.8251 10C11.8251 9.52941 11.4329 9.09804 10.9231 9.09804C10.4525 9.09804 10.0211 9.4902 10.0211 10ZM7.35447 6.78432H0.923096V13.2157H5.78584L7.35447 11.6863V6.78432ZM5.78584 13.5686L7.35447 15.098V18.4706L5.78584 20H0.923096V13.5686H5.78584Z" fill="#0ECAD4"/>
|
||||
<path d="M80.4769 3.11705C80.3614 3.11705 80.2844 3.04002 80.2844 2.92447V2.11567C80.2844 2.00012 80.3614 1.9231 80.4769 1.9231H80.9389C81.0544 1.9231 81.1314 2.00012 81.1314 2.11567V2.92447C81.1314 3.04002 81.0544 3.11705 80.9389 3.11705H80.4769Z" fill="#002838"/>
|
||||
<path d="M80.6309 15.4031C80.5154 15.4031 80.4384 15.3261 80.4384 15.2106V6.23672C80.4384 6.12117 80.5154 6.04414 80.6309 6.04414H80.8234C80.9389 6.04414 81.0159 6.12117 81.0159 6.23672V15.2106C81.0159 15.3261 80.9389 15.4031 80.8234 15.4031H80.6309Z" fill="#002838"/>
|
||||
<path d="M33.8928 15.5957C33.7773 15.5957 33.7388 15.5572 33.7003 15.4417L32.1218 9.85707H32.0833L30.5049 15.4417C30.4664 15.5572 30.4279 15.5957 30.3124 15.5957H28.4644C28.3489 15.5957 28.3104 15.5572 28.2719 15.4417L25.5385 5.73603C25.5385 5.659 25.5385 5.58197 25.654 5.58197H28.0794C28.1949 5.58197 28.2719 5.659 28.2719 5.73603L29.5809 11.5517H29.6194L31.1593 5.73603C31.1978 5.62049 31.2363 5.58197 31.3518 5.58197H32.8533C32.9688 5.58197 33.0073 5.62049 33.0458 5.73603L34.6628 11.5517H34.7013L35.9333 5.73603C35.9333 5.659 36.0103 5.58197 36.1258 5.58197H38.5512C38.6282 5.58197 38.6667 5.659 38.6667 5.73603L35.9718 15.4417C35.9333 15.5572 35.8948 15.5957 35.7793 15.5957H33.8928Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M40.5917 15.5957C40.5147 15.5957 40.4377 15.5187 40.4377 15.4417V5.73603C40.4377 5.659 40.5147 5.58197 40.5917 5.58197H44.5956C47.0211 5.58197 48.2915 6.96849 48.2915 8.89421C48.2915 10.8199 47.0211 12.245 44.5956 12.245H43.1326C43.0556 12.245 43.0556 12.2835 43.0556 12.322V15.4031C43.0556 15.4802 42.9786 15.5572 42.9016 15.5572H40.5917V15.5957ZM45.7121 8.93273C45.7121 8.23947 45.2501 7.81581 44.4416 7.81581H43.1326C43.0556 7.81581 43.0556 7.85432 43.0556 7.89283V10.0111C43.0556 10.0882 43.0941 10.0882 43.1326 10.0882H44.4416C45.2501 10.0882 45.7121 9.62598 45.7121 8.93273Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M51.4485 10.6659C51.4485 11.9754 51.5255 12.6301 51.718 13.1693C52.257 14.7869 53.4119 15.5957 55.1444 15.5957C56.6074 15.5957 57.7238 14.941 58.3783 14.0166C58.4553 13.9396 58.4553 13.8241 58.3398 13.747L58.2243 13.6315C58.1473 13.5545 58.0318 13.5545 57.9549 13.67C57.3774 14.4403 56.4149 15.018 55.1059 15.018C53.7199 15.018 52.6804 14.4018 52.2184 12.9767C52.0645 12.4761 51.9875 11.8983 51.9875 10.8584C51.9875 10.7814 52.026 10.7044 52.103 10.7044H58.3783C58.5323 10.7044 58.6093 10.6274 58.6093 10.5118C58.6093 9.31787 58.5323 8.70164 58.3398 8.16244C57.8394 6.58335 56.6459 5.77454 55.0289 5.77454C53.4504 5.77454 52.2185 6.58335 51.718 8.16244C51.564 8.70164 51.4485 9.3949 51.4485 10.6659ZM58.0703 10.0496C58.0703 10.1267 58.0318 10.1652 57.9549 10.1652H52.18C52.103 10.1652 52.0645 10.1267 52.0645 10.0496C52.0645 9.35638 52.1415 8.8557 52.2955 8.39353C52.7189 7.00701 53.7199 6.35225 55.0674 6.35225C56.4149 6.35225 57.4159 7.04552 57.8393 8.39353C57.9933 8.8557 58.0703 9.3949 58.0703 10.0496Z" fill="#002838"/>
|
||||
<path d="M67.5412 15.4031C67.4257 15.4031 67.3487 15.3261 67.3487 15.2106V9.58748C67.3487 7.35364 66.4247 6.39077 64.6152 6.39077C63.0368 6.39077 61.7278 7.46918 61.7278 9.31787V15.2491C61.7278 15.3646 61.6508 15.4417 61.5353 15.4417H61.3428C61.2273 15.4417 61.1503 15.3646 61.1503 15.2491V6.27523C61.1503 6.15969 61.2273 6.08266 61.3428 6.08266H61.5353C61.6508 6.08266 61.7278 6.15969 61.7278 6.27523V7.58472H61.7663C62.2283 6.50632 63.3062 5.85157 64.6537 5.85157C66.7712 5.85157 67.9647 7.04552 67.9647 9.47193V15.2491C67.9647 15.3646 67.8877 15.4417 67.7722 15.4417H67.5412V15.4031Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M70.8136 17.56C70.6981 17.5985 70.6981 17.714 70.7751 17.8296C71.2371 18.5613 72.3536 19.1776 73.7011 19.2161C75.857 19.2161 77.243 18.0606 77.243 15.4802V6.27523C77.243 6.15969 77.166 6.08266 77.0505 6.08266H76.858C76.7425 6.08266 76.6655 6.15969 76.6655 6.27523V7.62324H76.627C76.165 6.58335 75.3565 5.85157 73.7011 5.85157C72.1226 5.85157 71.0446 6.69888 70.5826 8.0854C70.3901 8.74015 70.2746 9.58748 70.2746 10.7429C70.2746 11.8983 70.3516 12.7457 70.5826 13.4004C71.0446 14.7869 72.1226 15.6342 73.7011 15.6342C75.3565 15.6342 76.165 14.9025 76.627 13.8626H76.6655V15.4417C76.6655 17.7525 75.5105 18.6384 73.7396 18.6384C72.5846 18.6384 71.7761 18.2147 71.2371 17.5214C71.1601 17.4059 71.0831 17.3674 70.9676 17.4444L70.8136 17.56ZM76.6655 10.7044C76.6655 11.8983 76.5885 12.5916 76.396 13.1693C75.9725 14.5558 74.933 15.0565 73.778 14.9795C72.5076 14.9795 71.6221 14.3633 71.1986 13.1308C71.0061 12.5531 70.8906 11.7443 70.8906 10.6659C70.8906 9.58747 71.0061 8.77867 71.1986 8.20095C71.5836 6.96849 72.5076 6.35225 73.778 6.35225C74.933 6.35225 75.934 6.85295 76.396 8.23947C76.5885 8.81719 76.6655 9.54896 76.6655 10.7044Z" fill="#002838"/>
|
||||
<path d="M90.4097 15.2106C90.4097 15.3261 90.4867 15.4031 90.6022 15.4031V15.4417H90.8332C90.9487 15.4417 91.0257 15.3646 91.0257 15.2491V9.47193C91.0257 7.04552 89.8323 5.85157 87.7148 5.85157C86.3673 5.85157 85.2893 6.50632 84.8273 7.58472H84.7888V6.27523C84.7888 6.15969 84.7118 6.08266 84.5963 6.08266H84.4039C84.2884 6.08266 84.2114 6.15969 84.2114 6.27523V15.2491C84.2114 15.3646 84.2884 15.4417 84.4039 15.4417H84.5963C84.7118 15.4417 84.7888 15.3646 84.7888 15.2491V9.31787C84.7888 7.46918 86.0978 6.39077 87.6763 6.39077C89.4858 6.39077 90.4097 7.35364 90.4097 9.58748V15.2106Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M93.6437 13.1693C93.4512 12.6301 93.3742 11.9754 93.3742 10.6659C93.3742 9.3949 93.4897 8.70164 93.6437 8.16244C94.1442 6.58335 95.3761 5.77454 96.9546 5.77454C98.5716 5.77454 99.7651 6.58335 100.266 8.16244C100.458 8.70164 100.535 9.31787 100.535 10.5118C100.535 10.6274 100.458 10.7044 100.304 10.7044H94.0672C93.9902 10.7044 93.9517 10.7814 93.9517 10.8584C93.9517 11.8983 94.0287 12.4761 94.1827 12.9767C94.6447 14.4018 95.6841 15.018 97.0701 15.018C98.3791 15.018 99.3416 14.4403 99.9191 13.67C99.9961 13.5545 100.112 13.5545 100.189 13.6315L100.304 13.747C100.42 13.8241 100.42 13.9396 100.343 14.0166C99.6881 14.941 98.5716 15.5957 97.1086 15.5957C95.3376 15.5957 94.1442 14.7869 93.6437 13.1693ZM99.8421 10.1652C99.9191 10.1652 99.9576 10.1267 99.9576 10.0496C99.9576 9.3949 99.8806 8.8557 99.7266 8.39353C99.3031 7.04552 98.3021 6.35225 96.9546 6.35225C95.6071 6.35225 94.6062 7.00701 94.1827 8.39353C94.0287 8.8557 93.9517 9.35638 93.9517 10.0496C93.9517 10.1267 93.9902 10.1652 94.0672 10.1652H99.8421Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M102.422 7.5462C102.422 7.58472 102.422 7.58472 102.46 7.58472H102.537C102.537 7.58472 102.576 7.58472 102.576 7.5462V7.08404H102.845L103.115 7.58472C103.134 7.58472 103.143 7.59435 103.153 7.60398C103.163 7.61361 103.172 7.62324 103.192 7.62324H103.307C103.346 7.62324 103.384 7.58472 103.346 7.5462L103.076 7.04552C103.269 7.00701 103.346 6.85295 103.346 6.69889C103.346 6.46781 103.191 6.31375 102.922 6.31375H102.46C102.441 6.31375 102.431 6.31375 102.426 6.31856C102.422 6.32337 102.422 6.333 102.422 6.35225V7.5462ZM102.922 6.50632C103.076 6.50632 103.153 6.58335 103.153 6.69889C103.153 6.81444 103.076 6.89147 102.922 6.89147H102.614V6.50632H102.922Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M102.845 5.81305C102.191 5.81305 101.69 6.31374 101.69 6.96849C101.69 7.62323 102.191 8.12392 102.845 8.12392C103.499 8.12392 104 7.62323 104 6.96849C104 6.31374 103.499 5.81305 102.845 5.81305ZM102.845 6.00563C103.384 6.00563 103.807 6.39077 103.807 6.96849C103.807 7.50769 103.384 7.93135 102.845 7.93135C102.306 7.93135 101.883 7.5462 101.883 6.96849C101.883 6.42929 102.268 6.00563 102.845 6.00563Z" fill="#002838"/>
|
||||
<svg width="1064" height="208" viewBox="0 0 1064 208" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M1060.27 64.01C1059.68 62.62 1058.85 61.4 1057.8 60.34C1056.74 59.29 1055.52 58.46 1054.13 57.87C1052.74 57.28 1051.25 56.98 1049.65 56.98C1048.05 56.98 1046.57 57.28 1045.17 57.87C1043.78 58.46 1042.56 59.29 1041.5 60.34C1040.44 61.4 1039.62 62.62 1039.02 64.01C1038.43 65.4 1038.13 66.89 1038.13 68.49C1038.13 70.09 1038.43 71.57 1039.02 72.97C1039.61 74.36 1040.44 75.58 1041.5 76.64C1042.55 77.7 1043.78 78.52 1045.17 79.11C1046.56 79.7 1048.05 80 1049.65 80C1051.25 80 1052.73 79.7 1054.13 79.11C1055.52 78.52 1056.74 77.69 1057.8 76.64C1058.86 75.58 1059.68 74.36 1060.27 72.97C1060.86 71.58 1061.16 70.09 1061.16 68.49C1061.16 66.89 1060.86 65.41 1060.27 64.01ZM1057.75 73.19C1056.91 74.61 1055.78 75.73 1054.36 76.58C1052.94 77.42 1051.37 77.85 1049.65 77.85C1047.93 77.85 1046.35 77.43 1044.94 76.58C1043.53 75.74 1042.4 74.61 1041.55 73.19C1040.71 71.77 1040.28 70.2 1040.28 68.48C1040.28 66.76 1040.7 65.18 1041.55 63.77C1042.39 62.36 1043.52 61.23 1044.94 60.38C1046.36 59.54 1047.93 59.11 1049.65 59.11C1051.37 59.11 1052.95 59.53 1054.36 60.38C1055.78 61.22 1056.9 62.35 1057.75 63.77C1058.59 65.19 1059.02 66.76 1059.02 68.48C1059.02 70.2 1058.6 71.78 1057.75 73.19Z" fill="#002447"/>
|
||||
<path d="M1052.32 69.44C1052.32 69.44 1052.34 69.44 1052.35 69.43C1052.87 69.15 1053.3 68.75 1053.64 68.23C1053.98 67.71 1054.15 67.09 1054.15 66.37C1054.15 65.65 1053.98 65.04 1053.65 64.55C1053.32 64.06 1052.9 63.68 1052.4 63.43C1051.9 63.18 1051.38 63.05 1050.84 63.05H1046C1045.86 63.05 1045.75 63.16 1045.75 63.3V73.42C1045.75 73.56 1045.86 73.67 1046 73.67H1047.36C1047.5 73.67 1047.61 73.56 1047.61 73.42V69.86H1050.53L1052.45 73.54C1052.49 73.62 1052.58 73.67 1052.67 73.67H1054.19C1054.37 73.67 1054.49 73.48 1054.4 73.32L1052.33 69.45L1052.32 69.44ZM1051.55 67.87C1051.16 68.22 1050.72 68.4 1050.23 68.4H1047.6V64.5H1050.28C1050.74 64.5 1051.16 64.64 1051.55 64.93C1051.94 65.22 1052.13 65.7 1052.13 66.37C1052.13 67.04 1051.94 67.52 1051.55 67.87Z" fill="#002447"/>
|
||||
<path d="M387.93 56.01H364.88C364.41 56.01 364 56.33 363.9 56.79C362.34 64.07 350.48 119.72 349.82 124.39C349.77 124.74 349.55 124.74 349.5 124.39C348.76 119.72 335.93 63.99 334.27 56.77C334.17 56.32 333.76 56 333.3 56H311.79C311.32 56 310.92 56.31 310.82 56.77C309.15 63.98 296.28 119.72 295.56 124.39C295.49 124.82 295.24 124.82 295.17 124.39C294.49 119.72 282.67 64.08 281.12 56.79C281.02 56.33 280.62 56 280.14 56H257.09C256.43 56 255.95 56.62 256.12 57.26L281.19 151.13C281.31 151.57 281.7 151.87 282.16 151.87H306.4C306.86 151.87 307.26 151.56 307.37 151.11C308.89 144.7 319.55 99.78 321.96 89.27C322.08 88.75 322.81 88.75 322.93 89.27C325.37 99.77 336.16 144.71 337.69 151.11C337.8 151.56 338.2 151.87 338.66 151.87H362.84C363.29 151.87 363.69 151.57 363.81 151.13L388.88 57.26C389.05 56.63 388.57 56 387.91 56L387.93 56.01Z" fill="#002447"/>
|
||||
<path d="M462.52 60.19C457.29 57.4 451.07 56.01 443.86 56.01H406.59C406.04 56.01 405.59 56.46 405.59 57.01V150.88C405.59 151.43 406.04 151.88 406.59 151.88H427.3C427.85 151.88 428.3 151.43 428.3 150.88V121.96H443.21C450.54 121.96 456.87 120.59 462.19 117.84C467.51 115.1 471.61 111.28 474.48 106.39C477.35 101.5 478.79 95.75 478.79 89.15C478.79 82.55 477.38 76.82 474.57 71.84C471.76 66.86 467.74 62.98 462.51 60.19H462.52ZM455.41 96.93C454.21 99.16 452.41 100.9 450 102.14C447.6 103.38 444.62 104.01 441.06 104.01H428.31V74.41H441C444.56 74.41 447.55 75.01 449.97 76.21C452.39 77.41 454.2 79.12 455.41 81.33C456.61 83.54 457.21 86.15 457.21 89.15C457.21 92.15 456.61 94.71 455.41 96.94V96.93Z" fill="#002447"/>
|
||||
<path d="M583.93 67.87C580.2 64.11 576 61.31 571.33 59.47C566.66 57.63 561.8 56.71 556.75 56.71C548.73 56.71 541.69 58.77 535.63 62.89C529.56 67.01 524.84 72.66 521.47 79.85C518.09 87.04 516.41 95.28 516.41 104.55C516.41 113.82 518.13 122.04 521.56 129.17C524.99 136.31 529.85 141.89 536.14 145.93C542.43 149.96 549.88 151.98 558.5 151.98C564.7 151.98 570.19 150.98 574.97 148.97C579.75 146.97 583.71 144.32 586.87 141.02C589.75 138.01 591.91 134.78 593.35 131.32C593.57 130.78 593.27 130.17 592.72 129.99L583.98 127.21C583.49 127.06 582.98 127.3 582.77 127.76C581.68 130.14 580.14 132.35 578.14 134.39C575.92 136.67 573.17 138.5 569.91 139.87C566.64 141.24 562.87 141.93 558.59 141.93C552.28 141.93 546.8 140.44 542.16 137.44C537.52 134.45 533.94 130.25 531.41 124.84C529.05 119.79 527.81 113.95 527.65 107.34H594.97C595.52 107.34 595.97 106.89 595.97 106.34V102.48C595.97 94.69 594.9 87.91 592.76 82.14C590.62 76.38 587.68 71.61 583.95 67.85L583.93 67.87ZM531.28 83.55C533.72 78.5 537.13 74.44 541.49 71.36C545.85 68.29 550.95 66.75 556.77 66.75C562.59 66.75 567.67 68.26 571.84 71.28C576.01 74.3 579.22 78.42 581.47 83.63C583.3 87.87 584.38 92.57 584.72 97.71H527.69C527.98 92.62 529.17 87.9 531.28 83.55Z" fill="#002447"/>
|
||||
<path d="M672.03 60.62C667.34 58.01 661.86 56.71 655.6 56.71C648.63 56.71 642.44 58.49 637.03 62.06C632.71 64.91 629.32 69.2 626.84 74.89L626.78 58.94C626.78 58.39 626.33 57.94 625.78 57.94H616.99C616.44 57.94 615.99 58.39 615.99 58.94V149C615.99 149.55 616.44 150 616.99 150H626.19C626.74 150 627.19 149.55 627.19 149V92.61C627.19 87.34 628.3 82.77 630.52 78.9C632.74 75.03 635.78 72.07 639.62 70.01C643.46 67.95 647.8 66.92 652.63 66.92C659.71 66.92 665.36 69.1 669.59 73.47C673.82 77.83 675.93 83.78 675.93 91.3V149.01C675.93 149.56 676.38 150.01 676.93 150.01H686.05C686.6 150.01 687.05 149.56 687.05 149.01V90.48C687.05 83.18 685.72 77.03 683.06 72.03C680.4 67.04 676.72 63.23 672.03 60.63V60.62Z" fill="#002447"/>
|
||||
<path d="M783.6 57.94H774.73C774.18 57.94 773.73 58.39 773.73 58.94V75.64H772.58C771.37 72.84 769.63 69.97 767.35 67.04C765.07 64.1 762.07 61.65 758.33 59.67C754.6 57.69 749.93 56.71 744.33 56.71C736.81 56.71 730.19 58.69 724.48 62.64C718.77 66.59 714.32 72.1 711.14 79.15C707.96 86.2 706.36 94.43 706.36 103.81C706.36 113.19 707.98 121.27 711.22 128.02C714.46 134.77 718.92 139.96 724.6 143.58C730.28 147.2 736.77 149.01 744.07 149.01C749.56 149.01 754.17 148.12 757.9 146.33C761.63 144.55 764.67 142.27 767 139.5C769.33 136.73 771.1 133.91 772.31 131.06H773.38V151.73C773.38 160.18 770.91 166.43 765.97 170.46C761.03 174.5 754.5 176.51 746.37 176.51C741.26 176.51 736.95 175.81 733.44 174.41C729.93 173.01 727.06 171.2 724.83 168.98C722.88 167.03 721.28 165.03 720.03 162.97C719.74 162.5 719.13 162.34 718.66 162.62L711.11 167.2C710.66 167.48 710.49 168.06 710.74 168.53C712.51 171.81 714.89 174.74 717.88 177.33C721.12 180.13 725.11 182.34 729.86 183.96C734.61 185.58 740.11 186.39 746.37 186.39C753.73 186.39 760.29 185.17 766.05 182.73C771.81 180.29 776.34 176.54 779.64 171.49C782.93 166.44 784.58 160.02 784.58 152.22V58.94C784.58 58.39 784.13 57.94 783.58 57.94H783.6ZM770.28 122.54C768.08 127.84 764.91 131.9 760.77 134.73C756.62 137.56 751.62 138.97 745.74 138.97C739.86 138.97 734.68 137.48 730.51 134.48C726.34 131.49 723.15 127.33 720.96 122.01C718.76 116.69 717.67 110.54 717.67 103.56C717.67 96.58 718.75 90.5 720.92 84.95C723.09 79.41 726.26 75 730.43 71.73C734.6 68.46 739.71 66.83 745.75 66.83C751.79 66.83 756.78 68.41 760.9 71.56C765.02 74.72 768.16 79.05 770.33 84.57C772.5 90.09 773.58 96.41 773.58 103.55C773.58 110.69 772.48 117.23 770.29 122.53L770.28 122.54Z" fill="#002447"/>
|
||||
<path d="M823.62 57.94H814.42C813.868 57.94 813.42 58.3877 813.42 58.94V149C813.42 149.552 813.868 150 814.42 150H823.62C824.172 150 824.62 149.552 824.62 149V58.94C824.62 58.3877 824.172 57.94 823.62 57.94Z" fill="#002447"/>
|
||||
<path d="M819.02 44.89C822.516 44.89 825.35 42.0559 825.35 38.56C825.35 35.064 822.516 32.23 819.02 32.23C815.524 32.23 812.69 35.064 812.69 38.56C812.69 42.0559 815.524 44.89 819.02 44.89Z" fill="#002447"/>
|
||||
<path d="M910.3 60.62C905.61 58.01 900.13 56.71 893.87 56.71C886.9 56.71 880.71 58.49 875.3 62.06C870.98 64.91 867.59 69.2 865.11 74.89L865.05 58.94C865.05 58.39 864.6 57.94 864.05 57.94H855.26C854.71 57.94 854.26 58.39 854.26 58.94V149C854.26 149.55 854.71 150 855.26 150H864.46C865.01 150 865.46 149.55 865.46 149V92.61C865.46 87.34 866.57 82.77 868.79 78.9C871.01 75.03 874.05 72.07 877.89 70.01C881.73 67.95 886.07 66.92 890.9 66.92C897.98 66.92 903.63 69.1 907.86 73.47C912.09 77.83 914.2 83.78 914.2 91.3V149.01C914.2 149.56 914.65 150.01 915.2 150.01H924.32C924.87 150.01 925.32 149.56 925.32 149.01V90.48C925.32 83.18 923.99 77.03 921.33 72.03C918.67 67.04 914.99 63.23 910.3 60.63V60.62Z" fill="#002447"/>
|
||||
<path d="M1012.78 67.87C1009.05 64.11 1004.85 61.31 1000.18 59.47C995.51 57.63 990.65 56.71 985.6 56.71C977.58 56.71 970.54 58.77 964.48 62.89C958.41 67.01 953.69 72.66 950.32 79.85C946.94 87.04 945.26 95.28 945.26 104.55C945.26 113.82 946.98 122.04 950.41 129.17C953.84 136.31 958.7 141.89 964.99 145.93C971.28 149.96 978.73 151.98 987.35 151.98C993.55 151.98 999.04 150.98 1003.82 148.97C1008.6 146.97 1012.56 144.32 1015.72 141.02C1018.6 138.01 1020.76 134.78 1022.2 131.32C1022.42 130.78 1022.12 130.17 1021.57 129.99L1012.83 127.21C1012.34 127.06 1011.83 127.3 1011.62 127.76C1010.53 130.14 1008.99 132.35 1006.99 134.39C1004.77 136.67 1002.02 138.5 998.76 139.87C995.49 141.24 991.72 141.93 987.44 141.93C981.13 141.93 975.65 140.44 971.01 137.44C966.37 134.45 962.79 130.25 960.26 124.84C957.9 119.79 956.66 113.95 956.5 107.34H1023.82C1024.37 107.34 1024.82 106.89 1024.82 106.34V102.48C1024.82 94.69 1023.75 87.91 1021.61 82.14C1019.47 76.38 1016.53 71.61 1012.8 67.85L1012.78 67.87ZM960.12 83.55C962.56 78.5 965.97 74.44 970.33 71.36C974.69 68.29 979.79 66.75 985.61 66.75C991.43 66.75 996.51 68.26 1000.68 71.28C1004.85 74.3 1008.06 78.42 1010.31 83.63C1012.14 87.87 1013.22 92.57 1013.56 97.71H956.53C956.82 92.62 958.01 87.9 960.12 83.55Z" fill="#002447"/>
|
||||
<path d="M133 208C134.66 208 136 206.66 136 205V162.49C136 160.9 135.37 159.37 134.24 158.25L121.75 145.76C120.62 144.63 119.1 144 117.51 144H90.48C88.89 144 87.36 144.63 86.24 145.76L73.75 158.25C72.62 159.38 71.99 160.9 71.99 162.49V205C71.99 206.66 73.33 208 74.99 208H133Z" fill="#0ECAD4"/>
|
||||
<path d="M158.24 73.76L145.75 86.25C144.62 87.38 143.99 88.9 143.99 90.49V117.52C143.99 119.11 144.62 120.64 145.75 121.76L158.24 134.25C159.37 135.38 160.89 136.01 162.48 136.01H204.99C206.65 136.01 207.99 134.67 207.99 133.01V75.01C207.99 73.35 206.65 72.01 204.99 72.01H162.48C160.89 72.01 159.36 72.64 158.24 73.77V73.76Z" fill="#0ECAD4"/>
|
||||
<path d="M75 0C73.34 0 72 1.34 72 3V45.51C72 47.1 72.63 48.63 73.76 49.75L86.25 62.24C87.38 63.37 88.9 64 90.49 64H117.52C119.11 64 120.64 63.37 121.76 62.24L134.25 49.75C135.38 48.62 136.01 47.1 136.01 45.51V3C136.01 1.34 134.67 0 133.01 0H75Z" fill="#0ECAD4"/>
|
||||
<path d="M205 144H162.49C160.9 144 159.37 144.63 158.25 145.76L145.76 158.25C144.63 159.38 144 160.9 144 162.49V205C144 206.66 145.34 208 147 208H205C206.66 208 208 206.66 208 205V147C208 145.34 206.66 144 205 144Z" fill="#0ECAD4"/>
|
||||
<path d="M61 0H18.49C16.89 0 15.37 0.63 14.24 1.76L1.76 14.24C0.63 15.37 0 16.89 0 18.49V61C0 62.66 1.34 64 3 64H45.51C47.1 64 48.63 63.37 49.75 62.24L62.24 49.75C63.37 48.62 64 47.1 64 45.51V3C64 1.34 62.66 0 61 0Z" fill="#0ECAD4"/>
|
||||
<path d="M144 3V45.51C144 47.1 144.63 48.63 145.76 49.75L158.25 62.24C159.38 63.37 160.9 64 162.49 64H205C206.66 64 208 62.66 208 61V3C208 1.34 206.66 0 205 0H147C145.34 0 144 1.34 144 3Z" fill="#0ECAD4"/>
|
||||
<path d="M104 120C95.16 120 88 112.84 88 104C88 95.16 95.17 88 104 88C112.83 88 120 95.16 120 104C120 112.84 112.83 120 104 120Z" fill="#0ECAD4"/>
|
||||
<path d="M0 147V205C0 206.66 1.34 208 3 208H61C62.66 208 64 206.66 64 205V162.49C64 160.9 63.37 159.37 62.24 158.25L49.75 145.76C48.62 144.63 47.1 144 45.51 144H3C1.34 144 0 145.34 0 147Z" fill="#0ECAD4"/>
|
||||
<path d="M62.24 86.24L49.75 73.75C48.62 72.62 47.1 71.99 45.51 71.99H3C1.34 72 0 73.34 0 75V133C0 134.66 1.34 136 3 136H46.2C47.79 136 49.32 135.37 50.44 134.24L62.24 122.45C63.37 121.32 64 119.8 64 118.21V90.49C64 88.9 63.37 87.37 62.24 86.25V86.24Z" fill="#0ECAD4"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 12 KiB |
|
|
@ -1,14 +1,22 @@
|
|||
<svg width="104" height="20" viewBox="0 0 104 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.923096 1.52942L2.45251 0H7.35447V6.43138H0.923096V1.52942ZM7.70741 0H14.1388V4.90196L12.5702 6.43138H9.23682L7.70741 4.90196V0ZM16.0211 6.78432L14.4917 8.31373V11.6863L16.0211 13.2157H20.9231V6.78432H16.0211ZM7.70741 20H14.1388V15.098L12.5702 13.5686H9.23682L7.70741 15.098V20ZM20.9231 20V15.098L19.3937 13.5686H14.4917V20H20.9231ZM14.4917 0V4.90196L16.0211 6.43138H20.9231V0H14.4917ZM10.0211 10C10.0211 10.4706 10.4133 10.902 10.9231 10.902C11.4329 10.902 11.8251 10.5098 11.8251 10C11.8251 9.52941 11.4329 9.09804 10.9231 9.09804C10.4525 9.09804 10.0211 9.4902 10.0211 10ZM7.35447 6.78432H0.923096V13.2157H5.78584L7.35447 11.6863V6.78432ZM5.78584 13.5686L7.35447 15.098V18.4706L5.78584 20H0.923096V13.5686H5.78584Z" fill="#0ECAD4"/>
|
||||
<path d="M80.4769 3.11705C80.3614 3.11705 80.2844 3.04002 80.2844 2.92447V2.11567C80.2844 2.00012 80.3614 1.9231 80.4769 1.9231H80.9389C81.0544 1.9231 81.1314 2.00012 81.1314 2.11567V2.92447C81.1314 3.04002 81.0544 3.11705 80.9389 3.11705H80.4769Z" fill="white"/>
|
||||
<path d="M80.6309 15.4031C80.5154 15.4031 80.4384 15.3261 80.4384 15.2106V6.23672C80.4384 6.12117 80.5154 6.04414 80.6309 6.04414H80.8234C80.9389 6.04414 81.0159 6.12117 81.0159 6.23672V15.2106C81.0159 15.3261 80.9389 15.4031 80.8234 15.4031H80.6309Z" fill="white"/>
|
||||
<path d="M33.8928 15.5957C33.7773 15.5957 33.7388 15.5572 33.7003 15.4417L32.1218 9.85707H32.0833L30.5049 15.4417C30.4664 15.5572 30.4279 15.5957 30.3124 15.5957H28.4644C28.3489 15.5957 28.3104 15.5572 28.2719 15.4417L25.5385 5.73603C25.5385 5.659 25.5385 5.58197 25.654 5.58197H28.0794C28.1949 5.58197 28.2719 5.659 28.2719 5.73603L29.5809 11.5517H29.6194L31.1593 5.73603C31.1978 5.62049 31.2363 5.58197 31.3518 5.58197H32.8533C32.9688 5.58197 33.0073 5.62049 33.0458 5.73603L34.6628 11.5517H34.7013L35.9333 5.73603C35.9333 5.659 36.0103 5.58197 36.1258 5.58197H38.5512C38.6282 5.58197 38.6667 5.659 38.6667 5.73603L35.9718 15.4417C35.9333 15.5572 35.8948 15.5957 35.7793 15.5957H33.8928Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M40.5917 15.5957C40.5147 15.5957 40.4377 15.5187 40.4377 15.4417V5.73603C40.4377 5.659 40.5147 5.58197 40.5917 5.58197H44.5956C47.0211 5.58197 48.2915 6.96849 48.2915 8.89421C48.2915 10.8199 47.0211 12.245 44.5956 12.245H43.1326C43.0556 12.245 43.0556 12.2835 43.0556 12.322V15.4031C43.0556 15.4802 42.9786 15.5572 42.9016 15.5572H40.5917V15.5957ZM45.7121 8.93273C45.7121 8.23947 45.2501 7.81581 44.4416 7.81581H43.1326C43.0556 7.81581 43.0556 7.85432 43.0556 7.89283V10.0111C43.0556 10.0882 43.0941 10.0882 43.1326 10.0882H44.4416C45.2501 10.0882 45.7121 9.62598 45.7121 8.93273Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M51.4485 10.6659C51.4485 11.9754 51.5255 12.6301 51.718 13.1693C52.257 14.7869 53.4119 15.5957 55.1444 15.5957C56.6074 15.5957 57.7238 14.941 58.3783 14.0166C58.4553 13.9396 58.4553 13.8241 58.3398 13.747L58.2243 13.6315C58.1473 13.5545 58.0318 13.5545 57.9549 13.67C57.3774 14.4403 56.4149 15.018 55.1059 15.018C53.7199 15.018 52.6804 14.4018 52.2184 12.9767C52.0645 12.4761 51.9875 11.8983 51.9875 10.8584C51.9875 10.7814 52.026 10.7044 52.103 10.7044H58.3783C58.5323 10.7044 58.6093 10.6274 58.6093 10.5118C58.6093 9.31787 58.5323 8.70164 58.3398 8.16244C57.8394 6.58335 56.6459 5.77454 55.0289 5.77454C53.4504 5.77454 52.2185 6.58335 51.718 8.16244C51.564 8.70164 51.4485 9.3949 51.4485 10.6659ZM58.0703 10.0496C58.0703 10.1267 58.0318 10.1652 57.9549 10.1652H52.18C52.103 10.1652 52.0645 10.1267 52.0645 10.0496C52.0645 9.35638 52.1415 8.8557 52.2955 8.39353C52.7189 7.00701 53.7199 6.35225 55.0674 6.35225C56.4149 6.35225 57.4159 7.04552 57.8393 8.39353C57.9933 8.8557 58.0703 9.3949 58.0703 10.0496Z" fill="white"/>
|
||||
<path d="M67.5412 15.4031C67.4257 15.4031 67.3487 15.3261 67.3487 15.2106V9.58748C67.3487 7.35364 66.4247 6.39077 64.6152 6.39077C63.0368 6.39077 61.7278 7.46918 61.7278 9.31787V15.2491C61.7278 15.3646 61.6508 15.4417 61.5353 15.4417H61.3428C61.2273 15.4417 61.1503 15.3646 61.1503 15.2491V6.27523C61.1503 6.15969 61.2273 6.08266 61.3428 6.08266H61.5353C61.6508 6.08266 61.7278 6.15969 61.7278 6.27523V7.58472H61.7663C62.2283 6.50632 63.3062 5.85157 64.6537 5.85157C66.7712 5.85157 67.9647 7.04552 67.9647 9.47193V15.2491C67.9647 15.3646 67.8877 15.4417 67.7722 15.4417H67.5412V15.4031Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M70.8136 17.56C70.6981 17.5985 70.6981 17.714 70.7751 17.8296C71.2371 18.5613 72.3536 19.1776 73.7011 19.2161C75.857 19.2161 77.243 18.0606 77.243 15.4802V6.27523C77.243 6.15969 77.166 6.08266 77.0505 6.08266H76.858C76.7425 6.08266 76.6655 6.15969 76.6655 6.27523V7.62324H76.627C76.165 6.58335 75.3565 5.85157 73.7011 5.85157C72.1226 5.85157 71.0446 6.69888 70.5826 8.0854C70.3901 8.74015 70.2746 9.58748 70.2746 10.7429C70.2746 11.8983 70.3516 12.7457 70.5826 13.4004C71.0446 14.7869 72.1226 15.6342 73.7011 15.6342C75.3565 15.6342 76.165 14.9025 76.627 13.8626H76.6655V15.4417C76.6655 17.7525 75.5105 18.6384 73.7396 18.6384C72.5846 18.6384 71.7761 18.2147 71.2371 17.5214C71.1601 17.4059 71.0831 17.3674 70.9676 17.4444L70.8136 17.56ZM76.6655 10.7044C76.6655 11.8983 76.5885 12.5916 76.396 13.1693C75.9725 14.5558 74.933 15.0565 73.778 14.9795C72.5076 14.9795 71.6221 14.3633 71.1986 13.1308C71.0061 12.5531 70.8906 11.7443 70.8906 10.6659C70.8906 9.58747 71.0061 8.77867 71.1986 8.20095C71.5836 6.96849 72.5076 6.35225 73.778 6.35225C74.933 6.35225 75.934 6.85295 76.396 8.23947C76.5885 8.81719 76.6655 9.54896 76.6655 10.7044Z" fill="white"/>
|
||||
<path d="M90.4097 15.2106C90.4097 15.3261 90.4867 15.4031 90.6022 15.4031V15.4417H90.8332C90.9487 15.4417 91.0257 15.3646 91.0257 15.2491V9.47193C91.0257 7.04552 89.8323 5.85157 87.7148 5.85157C86.3673 5.85157 85.2893 6.50632 84.8273 7.58472H84.7888V6.27523C84.7888 6.15969 84.7118 6.08266 84.5963 6.08266H84.4039C84.2884 6.08266 84.2114 6.15969 84.2114 6.27523V15.2491C84.2114 15.3646 84.2884 15.4417 84.4039 15.4417H84.5963C84.7118 15.4417 84.7888 15.3646 84.7888 15.2491V9.31787C84.7888 7.46918 86.0978 6.39077 87.6763 6.39077C89.4858 6.39077 90.4097 7.35364 90.4097 9.58748V15.2106Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M93.6437 13.1693C93.4512 12.6301 93.3742 11.9754 93.3742 10.6659C93.3742 9.3949 93.4897 8.70164 93.6437 8.16244C94.1442 6.58335 95.3761 5.77454 96.9546 5.77454C98.5716 5.77454 99.7651 6.58335 100.266 8.16244C100.458 8.70164 100.535 9.31787 100.535 10.5118C100.535 10.6274 100.458 10.7044 100.304 10.7044H94.0672C93.9902 10.7044 93.9517 10.7814 93.9517 10.8584C93.9517 11.8983 94.0287 12.4761 94.1827 12.9767C94.6447 14.4018 95.6841 15.018 97.0701 15.018C98.3791 15.018 99.3416 14.4403 99.9191 13.67C99.9961 13.5545 100.112 13.5545 100.189 13.6315L100.304 13.747C100.42 13.8241 100.42 13.9396 100.343 14.0166C99.6881 14.941 98.5716 15.5957 97.1086 15.5957C95.3376 15.5957 94.1442 14.7869 93.6437 13.1693ZM99.8421 10.1652C99.9191 10.1652 99.9576 10.1267 99.9576 10.0496C99.9576 9.3949 99.8806 8.8557 99.7266 8.39353C99.3031 7.04552 98.3021 6.35225 96.9546 6.35225C95.6071 6.35225 94.6062 7.00701 94.1827 8.39353C94.0287 8.8557 93.9517 9.35638 93.9517 10.0496C93.9517 10.1267 93.9902 10.1652 94.0672 10.1652H99.8421Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M102.422 7.5462C102.422 7.58472 102.422 7.58472 102.46 7.58472H102.537C102.537 7.58472 102.576 7.58472 102.576 7.5462V7.08404H102.845L103.115 7.58472C103.134 7.58472 103.143 7.59435 103.153 7.60398C103.163 7.61361 103.172 7.62324 103.192 7.62324H103.307C103.346 7.62324 103.384 7.58472 103.346 7.5462L103.076 7.04552C103.269 7.00701 103.346 6.85295 103.346 6.69889C103.346 6.46781 103.191 6.31375 102.922 6.31375H102.46C102.441 6.31375 102.431 6.31375 102.426 6.31856C102.422 6.32337 102.422 6.333 102.422 6.35225V7.5462ZM102.922 6.50632C103.076 6.50632 103.153 6.58335 103.153 6.69889C103.153 6.81444 103.076 6.89147 102.922 6.89147H102.614V6.50632H102.922Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M102.845 5.81305C102.191 5.81305 101.69 6.31374 101.69 6.96849C101.69 7.62323 102.191 8.12392 102.845 8.12392C103.499 8.12392 104 7.62323 104 6.96849C104 6.31374 103.499 5.81305 102.845 5.81305ZM102.845 6.00563C103.384 6.00563 103.807 6.39077 103.807 6.96849C103.807 7.50769 103.384 7.93135 102.845 7.93135C102.306 7.93135 101.883 7.5462 101.883 6.96849C101.883 6.42929 102.268 6.00563 102.845 6.00563Z" fill="white"/>
|
||||
<svg width="1064" height="208" viewBox="0 0 1064 208" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M1060.27 64.01C1059.68 62.62 1058.85 61.4 1057.8 60.34C1056.74 59.29 1055.52 58.46 1054.13 57.87C1052.74 57.28 1051.25 56.98 1049.65 56.98C1048.05 56.98 1046.57 57.28 1045.17 57.87C1043.78 58.46 1042.56 59.29 1041.5 60.34C1040.44 61.4 1039.62 62.62 1039.02 64.01C1038.43 65.4 1038.13 66.89 1038.13 68.49C1038.13 70.09 1038.43 71.57 1039.02 72.97C1039.61 74.36 1040.44 75.58 1041.5 76.64C1042.55 77.7 1043.78 78.52 1045.17 79.11C1046.56 79.7 1048.05 80 1049.65 80C1051.25 80 1052.73 79.7 1054.13 79.11C1055.52 78.52 1056.74 77.69 1057.8 76.64C1058.86 75.58 1059.68 74.36 1060.27 72.97C1060.86 71.58 1061.16 70.09 1061.16 68.49C1061.16 66.89 1060.86 65.41 1060.27 64.01ZM1057.75 73.19C1056.91 74.61 1055.78 75.73 1054.36 76.58C1052.94 77.42 1051.37 77.85 1049.65 77.85C1047.93 77.85 1046.35 77.43 1044.94 76.58C1043.53 75.74 1042.4 74.61 1041.55 73.19C1040.71 71.77 1040.28 70.2 1040.28 68.48C1040.28 66.76 1040.7 65.18 1041.55 63.77C1042.39 62.36 1043.52 61.23 1044.94 60.38C1046.36 59.54 1047.93 59.11 1049.65 59.11C1051.37 59.11 1052.95 59.53 1054.36 60.38C1055.78 61.22 1056.9 62.35 1057.75 63.77C1058.59 65.19 1059.02 66.76 1059.02 68.48C1059.02 70.2 1058.6 71.78 1057.75 73.19Z" fill="white"/>
|
||||
<path d="M1052.32 69.44C1052.32 69.44 1052.34 69.44 1052.35 69.43C1052.87 69.15 1053.3 68.75 1053.64 68.23C1053.98 67.71 1054.15 67.09 1054.15 66.37C1054.15 65.65 1053.98 65.04 1053.65 64.55C1053.32 64.06 1052.9 63.68 1052.4 63.43C1051.9 63.18 1051.38 63.05 1050.84 63.05H1046C1045.86 63.05 1045.75 63.16 1045.75 63.3V73.42C1045.75 73.56 1045.86 73.67 1046 73.67H1047.36C1047.5 73.67 1047.61 73.56 1047.61 73.42V69.86H1050.53L1052.45 73.54C1052.49 73.62 1052.58 73.67 1052.67 73.67H1054.19C1054.37 73.67 1054.49 73.48 1054.4 73.32L1052.33 69.45L1052.32 69.44ZM1051.55 67.87C1051.16 68.22 1050.72 68.4 1050.23 68.4H1047.6V64.5H1050.28C1050.74 64.5 1051.16 64.64 1051.55 64.93C1051.94 65.22 1052.13 65.7 1052.13 66.37C1052.13 67.04 1051.94 67.52 1051.55 67.87Z" fill="white"/>
|
||||
<path d="M387.93 56.01H364.88C364.41 56.01 364 56.33 363.9 56.79C362.34 64.07 350.48 119.72 349.82 124.39C349.77 124.74 349.55 124.74 349.5 124.39C348.76 119.72 335.93 63.99 334.27 56.77C334.17 56.32 333.76 56 333.3 56H311.79C311.32 56 310.92 56.31 310.82 56.77C309.15 63.98 296.28 119.72 295.56 124.39C295.49 124.82 295.24 124.82 295.17 124.39C294.49 119.72 282.67 64.08 281.12 56.79C281.02 56.33 280.62 56 280.14 56H257.09C256.43 56 255.95 56.62 256.12 57.26L281.19 151.13C281.31 151.57 281.7 151.87 282.16 151.87H306.4C306.86 151.87 307.26 151.56 307.37 151.11C308.89 144.7 319.55 99.78 321.96 89.27C322.08 88.75 322.81 88.75 322.93 89.27C325.37 99.77 336.16 144.71 337.69 151.11C337.8 151.56 338.2 151.87 338.66 151.87H362.84C363.29 151.87 363.69 151.57 363.81 151.13L388.88 57.26C389.05 56.63 388.57 56 387.91 56L387.93 56.01Z" fill="white"/>
|
||||
<path d="M462.52 60.19C457.29 57.4 451.07 56.01 443.86 56.01H406.59C406.04 56.01 405.59 56.46 405.59 57.01V150.88C405.59 151.43 406.04 151.88 406.59 151.88H427.3C427.85 151.88 428.3 151.43 428.3 150.88V121.96H443.21C450.54 121.96 456.87 120.59 462.19 117.84C467.51 115.1 471.61 111.28 474.48 106.39C477.35 101.5 478.79 95.75 478.79 89.15C478.79 82.55 477.38 76.82 474.57 71.84C471.76 66.86 467.74 62.98 462.51 60.19H462.52ZM455.41 96.93C454.21 99.16 452.41 100.9 450 102.14C447.6 103.38 444.62 104.01 441.06 104.01H428.31V74.41H441C444.56 74.41 447.55 75.01 449.97 76.21C452.39 77.41 454.2 79.12 455.41 81.33C456.61 83.54 457.21 86.15 457.21 89.15C457.21 92.15 456.61 94.71 455.41 96.94V96.93Z" fill="white"/>
|
||||
<path d="M583.93 67.87C580.2 64.11 576 61.31 571.33 59.47C566.66 57.63 561.8 56.71 556.75 56.71C548.73 56.71 541.69 58.77 535.63 62.89C529.56 67.01 524.84 72.66 521.47 79.85C518.09 87.04 516.41 95.28 516.41 104.55C516.41 113.82 518.13 122.04 521.56 129.17C524.99 136.31 529.85 141.89 536.14 145.93C542.43 149.96 549.88 151.98 558.5 151.98C564.7 151.98 570.19 150.98 574.97 148.97C579.75 146.97 583.71 144.32 586.87 141.02C589.75 138.01 591.91 134.78 593.35 131.32C593.57 130.78 593.27 130.17 592.72 129.99L583.98 127.21C583.49 127.06 582.98 127.3 582.77 127.76C581.68 130.14 580.14 132.35 578.14 134.39C575.92 136.67 573.17 138.5 569.91 139.87C566.64 141.24 562.87 141.93 558.59 141.93C552.28 141.93 546.8 140.44 542.16 137.44C537.52 134.45 533.94 130.25 531.41 124.84C529.05 119.79 527.81 113.95 527.65 107.34H594.97C595.52 107.34 595.97 106.89 595.97 106.34V102.48C595.97 94.69 594.9 87.91 592.76 82.14C590.62 76.38 587.68 71.61 583.95 67.85L583.93 67.87ZM531.28 83.55C533.72 78.5 537.13 74.44 541.49 71.36C545.85 68.29 550.95 66.75 556.77 66.75C562.59 66.75 567.67 68.26 571.84 71.28C576.01 74.3 579.22 78.42 581.47 83.63C583.3 87.87 584.38 92.57 584.72 97.71H527.69C527.98 92.62 529.17 87.9 531.28 83.55Z" fill="white"/>
|
||||
<path d="M672.03 60.62C667.34 58.01 661.86 56.71 655.6 56.71C648.63 56.71 642.44 58.49 637.03 62.06C632.71 64.91 629.32 69.2 626.84 74.89L626.78 58.94C626.78 58.39 626.33 57.94 625.78 57.94H616.99C616.44 57.94 615.99 58.39 615.99 58.94V149C615.99 149.55 616.44 150 616.99 150H626.19C626.74 150 627.19 149.55 627.19 149V92.61C627.19 87.34 628.3 82.77 630.52 78.9C632.74 75.03 635.78 72.07 639.62 70.01C643.46 67.95 647.8 66.92 652.63 66.92C659.71 66.92 665.36 69.1 669.59 73.47C673.82 77.83 675.93 83.78 675.93 91.3V149.01C675.93 149.56 676.38 150.01 676.93 150.01H686.05C686.6 150.01 687.05 149.56 687.05 149.01V90.48C687.05 83.18 685.72 77.03 683.06 72.03C680.4 67.04 676.72 63.23 672.03 60.63V60.62Z" fill="white"/>
|
||||
<path d="M783.6 57.94H774.73C774.18 57.94 773.73 58.39 773.73 58.94V75.64H772.58C771.37 72.84 769.63 69.97 767.35 67.04C765.07 64.1 762.07 61.65 758.33 59.67C754.6 57.69 749.93 56.71 744.33 56.71C736.81 56.71 730.19 58.69 724.48 62.64C718.77 66.59 714.32 72.1 711.14 79.15C707.96 86.2 706.36 94.43 706.36 103.81C706.36 113.19 707.98 121.27 711.22 128.02C714.46 134.77 718.92 139.96 724.6 143.58C730.28 147.2 736.77 149.01 744.07 149.01C749.56 149.01 754.17 148.12 757.9 146.33C761.63 144.55 764.67 142.27 767 139.5C769.33 136.73 771.1 133.91 772.31 131.06H773.38V151.73C773.38 160.18 770.91 166.43 765.97 170.46C761.03 174.5 754.5 176.51 746.37 176.51C741.26 176.51 736.95 175.81 733.44 174.41C729.93 173.01 727.06 171.2 724.83 168.98C722.88 167.03 721.28 165.03 720.03 162.97C719.74 162.5 719.13 162.34 718.66 162.62L711.11 167.2C710.66 167.48 710.49 168.06 710.74 168.53C712.51 171.81 714.89 174.74 717.88 177.33C721.12 180.13 725.11 182.34 729.86 183.96C734.61 185.58 740.11 186.39 746.37 186.39C753.73 186.39 760.29 185.17 766.05 182.73C771.81 180.29 776.34 176.54 779.64 171.49C782.93 166.44 784.58 160.02 784.58 152.22V58.94C784.58 58.39 784.13 57.94 783.58 57.94H783.6ZM770.28 122.54C768.08 127.84 764.91 131.9 760.77 134.73C756.62 137.56 751.62 138.97 745.74 138.97C739.86 138.97 734.68 137.48 730.51 134.48C726.34 131.49 723.15 127.33 720.96 122.01C718.76 116.69 717.67 110.54 717.67 103.56C717.67 96.58 718.75 90.5 720.92 84.95C723.09 79.41 726.26 75 730.43 71.73C734.6 68.46 739.71 66.83 745.75 66.83C751.79 66.83 756.78 68.41 760.9 71.56C765.02 74.72 768.16 79.05 770.33 84.57C772.5 90.09 773.58 96.41 773.58 103.55C773.58 110.69 772.48 117.23 770.29 122.53L770.28 122.54Z" fill="white"/>
|
||||
<path d="M823.62 57.94H814.42C813.868 57.94 813.42 58.3877 813.42 58.94V149C813.42 149.552 813.868 150 814.42 150H823.62C824.172 150 824.62 149.552 824.62 149V58.94C824.62 58.3877 824.172 57.94 823.62 57.94Z" fill="white"/>
|
||||
<path d="M819.02 44.89C822.516 44.89 825.35 42.0559 825.35 38.56C825.35 35.064 822.516 32.23 819.02 32.23C815.524 32.23 812.69 35.064 812.69 38.56C812.69 42.0559 815.524 44.89 819.02 44.89Z" fill="white"/>
|
||||
<path d="M910.3 60.62C905.61 58.01 900.13 56.71 893.87 56.71C886.9 56.71 880.71 58.49 875.3 62.06C870.98 64.91 867.59 69.2 865.11 74.89L865.05 58.94C865.05 58.39 864.6 57.94 864.05 57.94H855.26C854.71 57.94 854.26 58.39 854.26 58.94V149C854.26 149.55 854.71 150 855.26 150H864.46C865.01 150 865.46 149.55 865.46 149V92.61C865.46 87.34 866.57 82.77 868.79 78.9C871.01 75.03 874.05 72.07 877.89 70.01C881.73 67.95 886.07 66.92 890.9 66.92C897.98 66.92 903.63 69.1 907.86 73.47C912.09 77.83 914.2 83.78 914.2 91.3V149.01C914.2 149.56 914.65 150.01 915.2 150.01H924.32C924.87 150.01 925.32 149.56 925.32 149.01V90.48C925.32 83.18 923.99 77.03 921.33 72.03C918.67 67.04 914.99 63.23 910.3 60.63V60.62Z" fill="white"/>
|
||||
<path d="M1012.78 67.87C1009.05 64.11 1004.85 61.31 1000.18 59.47C995.51 57.63 990.65 56.71 985.6 56.71C977.58 56.71 970.54 58.77 964.48 62.89C958.41 67.01 953.69 72.66 950.32 79.85C946.94 87.04 945.26 95.28 945.26 104.55C945.26 113.82 946.98 122.04 950.41 129.17C953.84 136.31 958.7 141.89 964.99 145.93C971.28 149.96 978.73 151.98 987.35 151.98C993.55 151.98 999.04 150.98 1003.82 148.97C1008.6 146.97 1012.56 144.32 1015.72 141.02C1018.6 138.01 1020.76 134.78 1022.2 131.32C1022.42 130.78 1022.12 130.17 1021.57 129.99L1012.83 127.21C1012.34 127.06 1011.83 127.3 1011.62 127.76C1010.53 130.14 1008.99 132.35 1006.99 134.39C1004.77 136.67 1002.02 138.5 998.76 139.87C995.49 141.24 991.72 141.93 987.44 141.93C981.13 141.93 975.65 140.44 971.01 137.44C966.37 134.45 962.79 130.25 960.26 124.84C957.9 119.79 956.66 113.95 956.5 107.34H1023.82C1024.37 107.34 1024.82 106.89 1024.82 106.34V102.48C1024.82 94.69 1023.75 87.91 1021.61 82.14C1019.47 76.38 1016.53 71.61 1012.8 67.85L1012.78 67.87ZM960.12 83.55C962.56 78.5 965.97 74.44 970.33 71.36C974.69 68.29 979.79 66.75 985.61 66.75C991.43 66.75 996.51 68.26 1000.68 71.28C1004.85 74.3 1008.06 78.42 1010.31 83.63C1012.14 87.87 1013.22 92.57 1013.56 97.71H956.53C956.82 92.62 958.01 87.9 960.12 83.55Z" fill="white"/>
|
||||
<path d="M133 208C134.66 208 136 206.66 136 205V162.49C136 160.9 135.37 159.37 134.24 158.25L121.75 145.76C120.62 144.63 119.1 144 117.51 144H90.48C88.89 144 87.36 144.63 86.24 145.76L73.75 158.25C72.62 159.38 71.99 160.9 71.99 162.49V205C71.99 206.66 73.33 208 74.99 208H133Z" fill="#0ECAD4"/>
|
||||
<path d="M158.24 73.76L145.75 86.25C144.62 87.38 143.99 88.9 143.99 90.49V117.52C143.99 119.11 144.62 120.64 145.75 121.76L158.24 134.25C159.37 135.38 160.89 136.01 162.48 136.01H204.99C206.65 136.01 207.99 134.67 207.99 133.01V75.01C207.99 73.35 206.65 72.01 204.99 72.01H162.48C160.89 72.01 159.36 72.64 158.24 73.77V73.76Z" fill="#0ECAD4"/>
|
||||
<path d="M75 0C73.34 0 72 1.34 72 3V45.51C72 47.1 72.63 48.63 73.76 49.75L86.25 62.24C87.38 63.37 88.9 64 90.49 64H117.52C119.11 64 120.64 63.37 121.76 62.24L134.25 49.75C135.38 48.62 136.01 47.1 136.01 45.51V3C136.01 1.34 134.67 0 133.01 0H75Z" fill="#0ECAD4"/>
|
||||
<path d="M205 144H162.49C160.9 144 159.37 144.63 158.25 145.76L145.76 158.25C144.63 159.38 144 160.9 144 162.49V205C144 206.66 145.34 208 147 208H205C206.66 208 208 206.66 208 205V147C208 145.34 206.66 144 205 144Z" fill="#0ECAD4"/>
|
||||
<path d="M61 0H18.49C16.89 0 15.37 0.63 14.24 1.76L1.76 14.24C0.63 15.37 0 16.89 0 18.49V61C0 62.66 1.34 64 3 64H45.51C47.1 64 48.63 63.37 49.75 62.24L62.24 49.75C63.37 48.62 64 47.1 64 45.51V3C64 1.34 62.66 0 61 0Z" fill="#0ECAD4"/>
|
||||
<path d="M144 3V45.51C144 47.1 144.63 48.63 145.76 49.75L158.25 62.24C159.38 63.37 160.9 64 162.49 64H205C206.66 64 208 62.66 208 61V3C208 1.34 206.66 0 205 0H147C145.34 0 144 1.34 144 3Z" fill="#0ECAD4"/>
|
||||
<path d="M104 120C95.16 120 88 112.84 88 104C88 95.16 95.17 88 104 88C112.83 88 120 95.16 120 104C120 112.84 112.83 120 104 120Z" fill="#0ECAD4"/>
|
||||
<path d="M0 147V205C0 206.66 1.34 208 3 208H61C62.66 208 64 206.66 64 205V162.49C64 160.9 63.37 159.37 62.24 158.25L49.75 145.76C48.62 144.63 47.1 144 45.51 144H3C1.34 144 0 145.34 0 147Z" fill="#0ECAD4"/>
|
||||
<path d="M62.24 86.24L49.75 73.75C48.62 72.62 47.1 71.99 45.51 71.99H3C1.34 72 0 73.34 0 75V133C0 134.66 1.34 136 3 136H46.2C47.79 136 49.32 135.37 50.44 134.24L62.24 122.45C63.37 121.32 64 119.8 64 118.21V90.49C64 88.9 63.37 87.37 62.24 86.25V86.24Z" fill="#0ECAD4"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 12 KiB |
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,554 @@
|
|||
<?php
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
namespace ACF;
|
||||
|
||||
use WP_Error;
|
||||
|
||||
// Exit if accessed directly.
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'Updater' ) ) {
|
||||
|
||||
/**
|
||||
* class for handling API services.
|
||||
*/
|
||||
class Updater {
|
||||
|
||||
/**
|
||||
* The Updater version
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $version = '3.0';
|
||||
|
||||
/**
|
||||
* The array of registered plugins
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $plugins = array();
|
||||
|
||||
/**
|
||||
* Counts the number of plugin update checks
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
public $checked = 0;
|
||||
|
||||
/**
|
||||
* Sets up the class functionality.
|
||||
*
|
||||
* @since 5.0.0
|
||||
*/
|
||||
public function __construct() {
|
||||
|
||||
// disable showing PRO updates if show updates is hidden.
|
||||
if ( acf_is_pro() && ! acf_pro_is_updates_page_visible() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// append update information to transient on both save and get.
|
||||
add_filter( 'site_transient_update_plugins', array( $this, 'modify_plugins_transient' ), 10, 1 );
|
||||
|
||||
// clear ACF transient when updates complete.
|
||||
add_filter( 'upgrader_process_complete', array( $this, 'clear_transients_on_upgrade' ), 5, 2 );
|
||||
|
||||
// modify plugin data visible in the 'View details' popup.
|
||||
add_filter( 'plugins_api', array( $this, 'modify_plugin_details' ), 10, 3 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears ACF plugin update transients when ACF is updated.
|
||||
*
|
||||
* This method is hooked to the 'upgrader_process_complete' action and will
|
||||
* delete the 'acf_plugin_updates' transient when the ACF plugin is updated,
|
||||
* ensuring fresh update data is fetched on the next check.
|
||||
*
|
||||
* @since 6.5.1
|
||||
*
|
||||
* @param WP_Upgrader $upgrader_object The upgrader instance.
|
||||
* @param array $options Array of update details including:
|
||||
* - 'action' (string) The action performed (e.g., 'update').
|
||||
* - 'type' (string) The type of update (e.g., 'plugin').
|
||||
* - 'plugins' (array) Array of plugin basenames that were updated.
|
||||
*/
|
||||
public function clear_transients_on_upgrade( $upgrader_object, $options ) {
|
||||
// Check if this was a plugin update
|
||||
if ( $options['action'] === 'update' && $options['type'] === 'plugin' ) {
|
||||
// Check if we were one of the updated plugins
|
||||
if ( isset( $options['plugins'] ) ) {
|
||||
$acf_basename = acf_get_setting( 'basename' );
|
||||
if ( in_array( $acf_basename, $options['plugins'], true ) ) {
|
||||
$plugin = $this->get_plugin_by( 'basename', $acf_basename );
|
||||
$plugin_id = $plugin ? $plugin['id'] : false;
|
||||
$this->refresh_plugins_transient( $plugin_id );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registeres a plugin for updates.
|
||||
*
|
||||
* @since 5.5.10
|
||||
*
|
||||
* @param array $plugin The plugin array.
|
||||
* @return void
|
||||
*/
|
||||
public function add_plugin( $plugin ) {
|
||||
|
||||
// validate.
|
||||
$plugin = wp_parse_args(
|
||||
$plugin,
|
||||
array(
|
||||
'id' => '',
|
||||
'key' => '',
|
||||
'slug' => '',
|
||||
'basename' => '',
|
||||
'version' => '',
|
||||
)
|
||||
);
|
||||
|
||||
// Check if is_plugin_active() function exists. This is required on the front end of the
|
||||
// site, since it is in a file that is normally only loaded in the admin.
|
||||
if ( ! function_exists( 'is_plugin_active' ) ) {
|
||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||
}
|
||||
|
||||
// add if is active plugin (not included in theme).
|
||||
if ( is_plugin_active( $plugin['basename'] ) ) {
|
||||
$this->plugins[ $plugin['basename'] ] = $plugin;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a registered plugin for the give key and value.
|
||||
*
|
||||
* @since 5.7.2
|
||||
*
|
||||
* @param string $key The array key to compare.
|
||||
* @param string $value The value to compare against.
|
||||
* @return array|false
|
||||
*/
|
||||
public function get_plugin_by( $key = '', $value = null ) {
|
||||
foreach ( $this->plugins as $plugin ) {
|
||||
if ( $plugin[ $key ] === $value ) {
|
||||
return $plugin;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes a request to the ACF connect server.
|
||||
*
|
||||
* @since 5.5.10
|
||||
*
|
||||
* @param string $endpoint The API endpoint.
|
||||
* @param array $body The body to post.
|
||||
* @return (array|string|WP_Error)
|
||||
*/
|
||||
public function request( $endpoint = '', $body = null ) {
|
||||
|
||||
$site_url = acf_get_home_url();
|
||||
if ( empty( $site_url ) || ! is_string( $site_url ) ) {
|
||||
$site_url = '';
|
||||
}
|
||||
|
||||
$headers = array(
|
||||
'X-ACF-Version' => ACF_VERSION,
|
||||
'X-ACF-URL' => $site_url,
|
||||
);
|
||||
|
||||
// Add update channel header if defined.
|
||||
if ( defined( 'ACF_UPDATE_CHANNEL' ) && ACF_UPDATE_CHANNEL ) {
|
||||
$headers['X-ACF-Update-Channel'] = ACF_UPDATE_CHANNEL;
|
||||
}
|
||||
|
||||
// Add plugin override header if defined.
|
||||
if ( defined( 'ACF_RELEASE_ACCESS_KEY' ) && ACF_RELEASE_ACCESS_KEY ) {
|
||||
$headers['X-ACF-Release-Access-Key'] = ACF_RELEASE_ACCESS_KEY;
|
||||
}
|
||||
|
||||
$url = "https://connect.advancedcustomfields.com/$endpoint";
|
||||
|
||||
// Staging environment.
|
||||
if ( defined( 'ACF_DEV_API' ) && ACF_DEV_API ) {
|
||||
$url = trailingslashit( ACF_DEV_API ) . $endpoint;
|
||||
acf_log( $url, $body );
|
||||
}
|
||||
|
||||
// If we're posting an ACF license key, set it as the header.
|
||||
if ( is_array( $body ) && isset( $body['acf_license'] ) ) {
|
||||
$headers['X-ACF-License'] = $body['acf_license'];
|
||||
}
|
||||
|
||||
// Determine URL.
|
||||
if ( acf_is_pro() ) {
|
||||
if ( empty( $headers['X-ACF-License'] ) ) {
|
||||
$license_key = acf_pro_get_license_key();
|
||||
if ( empty( $license_key ) || ! is_string( $license_key ) ) {
|
||||
$license_key = '';
|
||||
}
|
||||
$headers['X-ACF-License'] = $license_key;
|
||||
}
|
||||
$headers['X-ACF-Plugin'] = 'pro';
|
||||
} else {
|
||||
$headers['X-ACF-Plugin'] = 'acf';
|
||||
}
|
||||
|
||||
// Make request.
|
||||
$raw_response = wp_remote_post(
|
||||
$url,
|
||||
array(
|
||||
'timeout' => 20,
|
||||
'body' => $body,
|
||||
'headers' => $headers,
|
||||
)
|
||||
);
|
||||
|
||||
// Handle response error.
|
||||
if ( is_wp_error( $raw_response ) ) {
|
||||
return $raw_response;
|
||||
|
||||
// Handle http error.
|
||||
} elseif ( wp_remote_retrieve_response_code( $raw_response ) !== 200 ) {
|
||||
return new WP_Error( 'server_error', wp_remote_retrieve_response_message( $raw_response ) );
|
||||
}
|
||||
|
||||
// Decode JSON response.
|
||||
$json = json_decode( wp_remote_retrieve_body( $raw_response ), true );
|
||||
|
||||
// Allow non json value.
|
||||
if ( $json === null ) {
|
||||
return wp_remote_retrieve_body( $raw_response );
|
||||
}
|
||||
|
||||
return $json;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns update information for the given plugin id.
|
||||
*
|
||||
* @since 5.5.10
|
||||
*
|
||||
* @param string $id The plugin id such as 'pro'.
|
||||
* @param boolean $force_check Bypasses cached result. Defaults to false.
|
||||
* @return array|WP_Error
|
||||
*/
|
||||
public function get_plugin_info( $id = '', $force_check = false ) {
|
||||
$transient_name = 'acf_plugin_info_' . $id;
|
||||
|
||||
// check cache but allow for $force_check override.
|
||||
if ( ! $force_check ) {
|
||||
$transient = get_transient( $transient_name );
|
||||
if ( $transient !== false ) {
|
||||
return $transient;
|
||||
}
|
||||
}
|
||||
|
||||
$response = $this->request( 'v2/plugins/get-info?p=' . $id );
|
||||
|
||||
// convert string (misc error) to WP_Error object.
|
||||
if ( is_string( $response ) ) {
|
||||
$response = new WP_Error( 'server_error', esc_html( $response ) );
|
||||
}
|
||||
|
||||
// allow json to include expiration but force minimum and max for safety.
|
||||
$expiration = $this->get_expiration( $response, DAY_IN_SECONDS );
|
||||
|
||||
// update transient.
|
||||
set_transient( $transient_name, $response, $expiration );
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns specific data from the 'update-check' response.
|
||||
*
|
||||
* @since 5.7.2
|
||||
*
|
||||
* @param string $basename The plugin basename.
|
||||
* @param boolean $force_check Bypasses cached result. Defaults to false.
|
||||
* @return array|false
|
||||
*/
|
||||
public function get_plugin_update( $basename = '', $force_check = false ) {
|
||||
// get updates.
|
||||
$updates = $this->get_plugin_updates( $force_check );
|
||||
|
||||
// check for and return update.
|
||||
if ( is_array( $updates ) && isset( $updates['plugins'][ $basename ] ) ) {
|
||||
return $updates['plugins'][ $basename ];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if an update is available, but can't be updated to.
|
||||
*
|
||||
* @since 6.2.1
|
||||
*
|
||||
* @param string $basename The plugin basename.
|
||||
* @param boolean $force_check Bypasses cached result. Defaults to false.
|
||||
* @return array|false
|
||||
*/
|
||||
public function get_no_update( $basename = '', $force_check = false ) {
|
||||
// get updates.
|
||||
$updates = $this->get_plugin_updates( $force_check );
|
||||
|
||||
// check for and return update.
|
||||
if ( is_array( $updates ) && isset( $updates['no_update'][ $basename ] ) ) {
|
||||
return $updates['no_update'][ $basename ];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checks for plugin updates.
|
||||
*
|
||||
* @since 5.6.9
|
||||
* @since 5.7.2 Added 'checked' comparison
|
||||
*
|
||||
* @param boolean $force_check Bypasses cached result. Defaults to false.
|
||||
* @return array|WP_Error.
|
||||
*/
|
||||
public function get_plugin_updates( $force_check = false ) {
|
||||
$transient_name = 'acf_plugin_updates';
|
||||
|
||||
// Don't call our site if no plugins have registered updates.
|
||||
if ( empty( $this->plugins ) ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
// Construct array of 'checked' plugins.
|
||||
// Sort by key to avoid detecting change due to "include order".
|
||||
$checked = array();
|
||||
foreach ( $this->plugins as $basename => $plugin ) {
|
||||
$checked[ $basename ] = $plugin['version'];
|
||||
}
|
||||
ksort( $checked );
|
||||
|
||||
// $force_check prevents transient lookup.
|
||||
if ( ! $force_check ) {
|
||||
$transient = get_transient( $transient_name );
|
||||
|
||||
// If cached response was found, compare $transient['checked'] against $checked and ignore if they don't match (plugins/versions have changed).
|
||||
if ( is_array( $transient ) ) {
|
||||
$transient_checked = isset( $transient['checked'] ) ? $transient['checked'] : array();
|
||||
if ( wp_json_encode( $checked ) !== wp_json_encode( $transient_checked ) ) {
|
||||
$transient = false;
|
||||
}
|
||||
}
|
||||
if ( $transient !== false ) {
|
||||
return $transient;
|
||||
}
|
||||
}
|
||||
|
||||
$post = array(
|
||||
'plugins' => wp_json_encode( $this->plugins ),
|
||||
'wp' => wp_json_encode(
|
||||
array(
|
||||
'wp_name' => get_bloginfo( 'name' ),
|
||||
'wp_url' => acf_get_home_url(),
|
||||
'wp_version' => get_bloginfo( 'version' ),
|
||||
'wp_language' => get_bloginfo( 'language' ),
|
||||
'wp_timezone' => get_option( 'timezone_string' ),
|
||||
'wp_multisite' => (int) is_multisite(),
|
||||
'php_version' => PHP_VERSION,
|
||||
)
|
||||
),
|
||||
'acf' => wp_json_encode(
|
||||
array(
|
||||
'acf_version' => get_option( 'acf_version' ),
|
||||
'acf_pro' => acf_is_pro(),
|
||||
'block_count' => function_exists( 'acf_pro_get_registered_block_count' ) ? acf_pro_get_registered_block_count() : 0,
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
// Check update from connect.
|
||||
$response = $this->request( 'v2/plugins/update-check', $post );
|
||||
|
||||
// Append checked reference.
|
||||
if ( is_array( $response ) ) {
|
||||
$response['checked'] = $checked;
|
||||
|
||||
if ( isset( $response['license_status'] ) && function_exists( 'acf_pro_update_license_status' ) ) {
|
||||
acf_pro_update_license_status( $response['license_status'] );
|
||||
unset( $response['license_status'] );
|
||||
}
|
||||
}
|
||||
|
||||
// Allow json to include expiration but force minimum and max for safety.
|
||||
$expiration = $this->get_expiration( $response );
|
||||
|
||||
// Update transient and return.
|
||||
set_transient( $transient_name, $response, $expiration );
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function safely gets the expiration value from a response.
|
||||
*
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param mixed $response The response from the server. Default false.
|
||||
* @param integer $min The minimum expiration limit. Default 3 hours.
|
||||
* @param integer $max The maximum expiration limit. Default 7 days.
|
||||
* @return integer
|
||||
*/
|
||||
public function get_expiration( $response = false, $min = 10800, $max = 604800 ) {
|
||||
$expiration = 0;
|
||||
|
||||
// Check possible error conditions.
|
||||
if ( is_wp_error( $response ) || is_string( $response ) ) {
|
||||
return 15 * MINUTE_IN_SECONDS;
|
||||
}
|
||||
|
||||
// Use the server requested expiration if present.
|
||||
if ( is_array( $response ) && isset( $response['expiration'] ) ) {
|
||||
$expiration = (int) $response['expiration'];
|
||||
}
|
||||
|
||||
// Use the minimum if neither check matches, or ensure the server expiration isn't lower than our minimum.
|
||||
if ( $expiration < $min ) {
|
||||
return $min;
|
||||
}
|
||||
|
||||
// Ensure the server expiration isn't higher than our max.
|
||||
if ( $expiration > $max ) {
|
||||
return $max;
|
||||
}
|
||||
|
||||
return $expiration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes cached ACF plugin update transients and allows a fresh lookup.
|
||||
*
|
||||
* @since 5.5.10
|
||||
*
|
||||
* @param string|false $id Optional. The plugin ID to clear specific plugin info transient.
|
||||
* If provided, will delete the 'acf_plugin_info_{id}' transient.
|
||||
* Defaults to false.
|
||||
*/
|
||||
public function refresh_plugins_transient( $id = false ) {
|
||||
delete_transient( 'acf_plugin_updates' );
|
||||
if ( ! empty( $id ) && is_string( $id ) ) {
|
||||
delete_transient( 'acf_plugin_info_' . $id );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when WP updates the 'update_plugins' site transient. Used to inject ACF plugin update info.
|
||||
*
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param object $transient The current transient value.
|
||||
* @return object $transient The modified transient value.
|
||||
*/
|
||||
public function modify_plugins_transient( $transient ) {
|
||||
// Bail early if no response (error).
|
||||
if ( ! isset( $transient->response ) ) {
|
||||
return $transient;
|
||||
}
|
||||
|
||||
// Ensure no_update is set for back compat.
|
||||
if ( ! isset( $transient->no_update ) ) {
|
||||
$transient->no_update = array();
|
||||
}
|
||||
|
||||
// Force-check (only once).
|
||||
$force_check = ( $this->checked == 0 ) ? ! empty( $_GET['force-check'] ) : false; // phpcs:ignore -- False positive, value not used.
|
||||
|
||||
// Fetch updates (this filter is called multiple times during a single page load).
|
||||
$updates = $this->get_plugin_updates( $force_check );
|
||||
|
||||
// Append ACF pro plugins.
|
||||
if ( is_array( $updates ) ) {
|
||||
if ( ! empty( $updates['plugins'] ) ) {
|
||||
foreach ( $updates['plugins'] as $basename => $update ) {
|
||||
$transient->response[ $basename ] = (object) $update;
|
||||
}
|
||||
}
|
||||
if ( ! empty( $updates['no_update'] ) ) {
|
||||
foreach ( $updates['no_update'] as $basename => $update ) {
|
||||
$transient->no_update[ $basename ] = (object) $update;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
++$this->checked;
|
||||
|
||||
return $transient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the plugin data visible in the 'View details' popup
|
||||
*
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param object $result The current result of plugin data.
|
||||
* @param string $action The action being performed.
|
||||
* @param object $args Data about the plugin being retried.
|
||||
* @return $result
|
||||
*/
|
||||
public function modify_plugin_details( $result, $action = null, $args = null ) {
|
||||
|
||||
$plugin = false;
|
||||
|
||||
// Only for 'plugin_information' action.
|
||||
if ( $action !== 'plugin_information' ) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Find plugin via slug.
|
||||
$plugin = $this->get_plugin_by( 'slug', $args->slug );
|
||||
if ( ! $plugin ) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Get data from connect or cache.
|
||||
$response = $this->get_plugin_info( $plugin['id'] );
|
||||
|
||||
// Bail early if no response.
|
||||
if ( ! is_array( $response ) ) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Remove tags (different context).
|
||||
unset( $response['tags'] );
|
||||
|
||||
// Convert to object.
|
||||
$response = (object) $response;
|
||||
|
||||
$sections = array(
|
||||
'description' => '',
|
||||
'installation' => '',
|
||||
'changelog' => '',
|
||||
'upgrade_notice' => '',
|
||||
);
|
||||
foreach ( $sections as $k => $v ) {
|
||||
$sections[ $k ] = $response->$k;
|
||||
}
|
||||
$response->sections = $sections;
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// There are many ways to WordPress.
|
||||
|
|
@ -0,0 +1,130 @@
|
|||
<?php
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Include updater.
|
||||
acf_include( 'includes/Updater/Updater.php' );
|
||||
|
||||
if ( ! class_exists( 'ACF_Updates' ) ) {
|
||||
/**
|
||||
* The main function responsible for returning the acf_updates singleton.
|
||||
* Use this function like you would a global variable, except without needing to declare the global.
|
||||
*
|
||||
* Example: <?php $acf_updates = acf_updates(); ?>
|
||||
*
|
||||
* @since 5.5.12
|
||||
*
|
||||
* @return ACF\Updater The singleton instance of Updater.
|
||||
*/
|
||||
function acf_updates() {
|
||||
global $acf_updates;
|
||||
if ( ! isset( $acf_updates ) ) {
|
||||
$acf_updates = new ACF\Updater();
|
||||
}
|
||||
return $acf_updates;
|
||||
}
|
||||
|
||||
/**
|
||||
* Alias of acf_updates()->add_plugin().
|
||||
*
|
||||
* @since 5.5.10
|
||||
*
|
||||
* @param array $plugin Plugin data array.
|
||||
*/
|
||||
function acf_register_plugin_update( $plugin ) {
|
||||
acf_updates()->add_plugin( $plugin );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a dummy ACF_Updates class for back compat.
|
||||
*/
|
||||
class ACF_Updates {} //phpcs:ignore -- Back compat.
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers updates for the free version of ACF hosted on connect.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function acf_register_free_updates() {
|
||||
// If we're ACF free, register the updater.
|
||||
if ( function_exists( 'acf_is_pro' ) && ! acf_is_pro() ) {
|
||||
acf_register_plugin_update(
|
||||
array(
|
||||
'id' => 'acf',
|
||||
'slug' => acf_get_setting( 'slug' ),
|
||||
'basename' => acf_get_setting( 'basename' ),
|
||||
'version' => acf_get_setting( 'version' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
add_action( 'acf/init', 'acf_register_free_updates' );
|
||||
|
||||
/**
|
||||
* Filters the "Update Source" param in the ACF site health.
|
||||
*
|
||||
* @since 6.3.11.1
|
||||
*
|
||||
* @param string $update_source The original update source.
|
||||
* @return string
|
||||
*/
|
||||
function acf_direct_update_source( $update_source ) {
|
||||
return __( 'ACF Direct', 'acf' );
|
||||
}
|
||||
add_filter( 'acf/site_health/update_source', 'acf_direct_update_source' );
|
||||
|
||||
/**
|
||||
* Unsets ACF from reporting back to the WP.org API.
|
||||
*
|
||||
* @param array $args An array of HTTP request arguments.
|
||||
* @param string $url The request URL.
|
||||
* @return array|mixed
|
||||
*/
|
||||
function acf_unset_plugin_from_org_reporting( $args, $url ) {
|
||||
// Bail if not a plugins request.
|
||||
if ( empty( $args['body']['plugins'] ) ) {
|
||||
return $args;
|
||||
}
|
||||
|
||||
// Bail if not a request to the wp.org API.
|
||||
$parsed_url = wp_parse_url( $url );
|
||||
if ( empty( $parsed_url['host'] ) || 'api.wordpress.org' !== $parsed_url['host'] ) {
|
||||
return $args;
|
||||
}
|
||||
|
||||
$plugins = json_decode( $args['body']['plugins'], true );
|
||||
if ( empty( $plugins ) ) {
|
||||
return $args;
|
||||
}
|
||||
|
||||
// Remove ACF from reporting.
|
||||
if ( ! empty( $plugins['plugins'][ ACF_BASENAME ] ) ) {
|
||||
unset( $plugins['plugins'][ ACF_BASENAME ] );
|
||||
}
|
||||
|
||||
if ( ! empty( $plugins['active'] ) && is_array( $plugins['active'] ) ) {
|
||||
$is_active = array_search( ACF_BASENAME, $plugins['active'], true );
|
||||
if ( $is_active !== false ) {
|
||||
unset( $plugins['active'][ $is_active ] );
|
||||
$plugins['active'] = array_values( $plugins['active'] );
|
||||
}
|
||||
}
|
||||
|
||||
// Add the plugins list (minus ACF) back to $args.
|
||||
$args['body']['plugins'] = wp_json_encode( $plugins );
|
||||
|
||||
return $args;
|
||||
}
|
||||
add_filter( 'http_request_args', 'acf_unset_plugin_from_org_reporting', 10, 2 );
|
||||
|
|
@ -1,8 +1,12 @@
|
|||
<?php
|
||||
/**
|
||||
* General functions relating to the bidirectional feature of some fields.
|
||||
*
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
@ -10,10 +14,10 @@
|
|||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $target_item_ids The post, user or term IDs which should be updated with the origin item ID.
|
||||
* @param int|string $post_id The ACF encoded origin post, user or term ID.
|
||||
* @param array $field The field being updated on the origin post, user or term ID.
|
||||
* @param string|false $target_prefix The ACF prefix for a post, user or term ID required for the update_field call for this field type.
|
||||
* @param array $target_item_ids The post, user or term IDs which should be updated with the origin item ID.
|
||||
* @param integer|string $post_id The ACF encoded origin post, user or term ID.
|
||||
* @param array $field The field being updated on the origin post, user or term ID.
|
||||
* @param string|false $target_prefix The ACF prefix for a post, user or term ID required for the update_field call for this field type.
|
||||
*/
|
||||
function acf_update_bidirectional_values( $target_item_ids, $post_id, $field, $target_prefix = false ) {
|
||||
|
||||
|
|
@ -57,7 +61,7 @@ function acf_update_bidirectional_values( $target_item_ids, $post_id, $field, $t
|
|||
|
||||
// Prefix additions and subtractions for destinations which aren't posts.
|
||||
if ( ! empty( $target_prefix ) ) {
|
||||
$mapper = function( $v ) use ( $target_prefix ) {
|
||||
$mapper = function ( $v ) use ( $target_prefix ) {
|
||||
return $target_prefix . '_' . $v;
|
||||
};
|
||||
$additions = array_map( $mapper, $additions );
|
||||
|
|
@ -89,6 +93,7 @@ function acf_update_bidirectional_values( $target_item_ids, $post_id, $field, $t
|
|||
* @since 6.2
|
||||
*
|
||||
* @param string $object_type The object type that will be updated on the target field, such as 'term', 'user' or 'post'.
|
||||
*
|
||||
* @return array An array of valid field type names (slugs) for the target of the bidirectional field.
|
||||
*/
|
||||
function acf_get_valid_bidirectional_target_types( $object_type ) {
|
||||
|
|
@ -153,7 +158,7 @@ function acf_build_bidirectional_relationship_field_target_args( $results, $opti
|
|||
|
||||
$field_groups = array_filter(
|
||||
acf_get_field_groups(),
|
||||
function( $field_group ) {
|
||||
function ( $field_group ) {
|
||||
return $field_group['active'];
|
||||
}
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
// Register store.
|
||||
acf_register_store( 'fields' )->prop( 'multisite', true );
|
||||
|
|
@ -176,7 +185,7 @@ function acf_get_field_post( $id = 0 ) {
|
|||
* @since 5.0.0
|
||||
*
|
||||
* @param string $id The identifier.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_field_key( $id = '' ) {
|
||||
|
||||
|
|
@ -309,7 +318,6 @@ function acf_translate_field( $field = array() ) {
|
|||
|
||||
// Translate field settings if textdomain is set.
|
||||
if ( $l10n && $l10n_textdomain ) {
|
||||
|
||||
$field['label'] = acf_translate( $field['label'] );
|
||||
$field['instructions'] = acf_translate( $field['instructions'] );
|
||||
|
||||
|
|
@ -395,7 +403,7 @@ function acf_get_fields( $parent ) {
|
|||
* @date 18/1/19
|
||||
* @since 5.7.10
|
||||
*
|
||||
* @param int $id The field group or field id.
|
||||
* @param integer $id The field group or field id.
|
||||
* @return array
|
||||
*/
|
||||
function acf_get_raw_fields( $id = 0 ) {
|
||||
|
|
@ -450,7 +458,7 @@ function acf_get_raw_fields( $id = 0 ) {
|
|||
* @since 5.0.0
|
||||
*
|
||||
* @param array $parent The field group or field array.
|
||||
* @return int
|
||||
* @return integer
|
||||
*/
|
||||
function acf_get_field_count( $parent ) {
|
||||
|
||||
|
|
@ -470,7 +478,7 @@ function acf_get_field_count( $parent ) {
|
|||
* @since 5.0.0
|
||||
*
|
||||
* @param int $count The number of fields.
|
||||
* @param array $parent The field group or field array.
|
||||
* @param array $parent The field group or field array.
|
||||
*/
|
||||
return apply_filters( 'acf/get_field_count', count( $raw_fields ), $parent );
|
||||
}
|
||||
|
|
@ -483,7 +491,7 @@ function acf_get_field_count( $parent ) {
|
|||
* @date 8/03/2016
|
||||
* @since 5.3.2
|
||||
*
|
||||
* @param array $field The field being cloned.
|
||||
* @param array $field The field being cloned.
|
||||
* @param array $clone_field The clone field.
|
||||
* @return array
|
||||
*/
|
||||
|
|
@ -572,9 +580,9 @@ acf_add_filter_variations( 'acf/prepare_field', array( 'type', 'name', 'key' ),
|
|||
* @since 5.0.0
|
||||
* @since 5.6.9 Changed parameter order.
|
||||
*
|
||||
* @param array $fields An array of fields.
|
||||
* @param (int|string) $post_id The post ID to load values from.
|
||||
* @param string $element The wrapping element type.
|
||||
* @param array $fields An array of fields.
|
||||
* @param (int|string) $post_id The post ID to load values from.
|
||||
* @param string $element The wrapping element type.
|
||||
* @param string $instruction The instruction render position (label|field).
|
||||
* @return void
|
||||
*/
|
||||
|
|
@ -604,7 +612,6 @@ function acf_render_fields( $fields, $post_id = 0, $el = 'div', $instruction = '
|
|||
// Loop over and render fields.
|
||||
if ( $fields ) {
|
||||
foreach ( $fields as $field ) {
|
||||
|
||||
$field = apply_filters( 'acf/pre_render_field', $field, $post_id );
|
||||
|
||||
// Load value if not already loaded.
|
||||
|
|
@ -618,10 +625,10 @@ function acf_render_fields( $fields, $post_id = 0, $el = 'div', $instruction = '
|
|||
}
|
||||
|
||||
/**
|
||||
* Fires after fields have been rendered.
|
||||
* Fires after fields have been rendered.
|
||||
*
|
||||
* @date 12/02/2014
|
||||
* @since 5.0.0
|
||||
* @date 12/02/2014
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param array $fields An array of fields.
|
||||
* @param (int|string) $post_id The post ID to load values from.
|
||||
|
|
@ -634,10 +641,10 @@ function acf_render_fields( $fields, $post_id = 0, $el = 'div', $instruction = '
|
|||
*
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param array $field The field array.
|
||||
* @param string $element The wrapping element type.
|
||||
* @param string $instruction The instruction render position (label|field).
|
||||
* @param bool $field_setting If a field setting is being rendered.
|
||||
* @param array $field The field array.
|
||||
* @param string $element The wrapping element type.
|
||||
* @param string $instruction The instruction render position (label|field).
|
||||
* @param boolean $field_setting If a field setting is being rendered.
|
||||
* @return void
|
||||
*/
|
||||
function acf_render_field_wrap( $field, $element = 'div', $instruction = 'label', $field_setting = false ) {
|
||||
|
|
@ -746,30 +753,32 @@ function acf_render_field_wrap( $field, $element = 'div', $instruction = 'label'
|
|||
$wrapper['data-conditions'] = $field['conditions'];
|
||||
}
|
||||
|
||||
// Vars for render.
|
||||
// Escaped vars for render.
|
||||
$attributes_html = acf_esc_attrs( $wrapper );
|
||||
$element = esc_attr( $element );
|
||||
$inner_element = esc_attr( $inner_element );
|
||||
|
||||
// Render HTML
|
||||
echo "<$element $attributes_html>" . "\n";
|
||||
echo "<$element $attributes_html>\n"; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped earlier in function.
|
||||
if ( $element !== 'td' ) {
|
||||
echo "<$inner_element class=\"acf-label\">" . "\n";
|
||||
echo "<$inner_element class=\"acf-label\">\n"; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped earlier in function.
|
||||
acf_render_field_label( $field );
|
||||
if ( $instruction == 'label' ) {
|
||||
acf_render_field_instructions( $field, $field_setting );
|
||||
}
|
||||
echo "</$inner_element>" . "\n";
|
||||
echo "</$inner_element>\n"; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped earlier in function.
|
||||
}
|
||||
echo "<$inner_element class=\"acf-input\">" . "\n";
|
||||
echo "<$inner_element class=\"acf-input\">\n"; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped earlier in function.
|
||||
acf_render_field( $field );
|
||||
if ( ! $field_setting && $instruction == 'field' ) {
|
||||
acf_render_field_instructions( $field );
|
||||
}
|
||||
echo "</$inner_element>" . "\n";
|
||||
echo "</$inner_element>\n"; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped earlier in function.
|
||||
|
||||
if ( $field_setting && $instruction == 'field' ) {
|
||||
if ( $field_setting && $instruction === 'field' ) {
|
||||
acf_render_field_instructions( $field );
|
||||
}
|
||||
echo "</$element>" . "\n";
|
||||
echo "</$element>\n"; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped earlier in function.
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -828,7 +837,12 @@ function acf_render_field_label( $field ) {
|
|||
|
||||
// Output label.
|
||||
if ( $label ) {
|
||||
echo '<label' . ( $field['id'] ? ' for="' . esc_attr( $field['id'] ) . '"' : '' ) . '>' . acf_esc_html( $label ) . '</label>';
|
||||
// For multi-choice fields (radio, checkbox, taxonomy, button_group), don't use 'for' attribute but add ID for aria-labelledby
|
||||
if ( in_array( $field['type'], array( 'radio', 'checkbox', 'taxonomy', 'button_group' ), true ) && $field['id'] ) {
|
||||
echo '<label id="' . esc_attr( $field['id'] ) . '-label">' . acf_esc_html( $label ) . '</label>';
|
||||
} else {
|
||||
echo '<label' . ( $field['id'] ? ' for="' . esc_attr( $field['id'] ) . '"' : '' ) . '>' . acf_esc_html( $label ) . '</label>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -840,14 +854,14 @@ function acf_render_field_label( $field ) {
|
|||
* @date 4/11/2013
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param array $field The field array.
|
||||
* @param array $field The field array.
|
||||
* @param string $context The output context (admin).
|
||||
* @return string The field label in HTML format.
|
||||
*/
|
||||
function acf_get_field_label( $field, $context = '' ) {
|
||||
|
||||
// Get label.
|
||||
$label = $field['label'];
|
||||
$label = esc_html( $field['label'] );
|
||||
|
||||
// Display empty text when editing field.
|
||||
if ( $context == 'admin' && $label === '' ) {
|
||||
|
|
@ -889,13 +903,13 @@ function acf_render_field_instructions( $field, $tooltip = false ) {
|
|||
$instructions = acf_esc_html( $field['instructions'] );
|
||||
|
||||
if ( $tooltip ) {
|
||||
printf( '<div class="acf-tip"><i tabindex="0" class="acf-icon acf-icon-help acf-js-tooltip" title="%s">?</i></div>', $instructions );
|
||||
printf( '<div class="acf-tip"><i tabindex="0" class="acf-icon acf-icon-help acf-js-tooltip" title="%s">?</i></div>', esc_attr( $instructions ) ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped earlier in function.
|
||||
} else {
|
||||
printf( '<p class="description">%s</p>', $instructions );
|
||||
printf( '<p class="description">%s</p>', $instructions ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped earlier in function.
|
||||
}
|
||||
} elseif ( ! empty( $field['hint'] ) ) {
|
||||
$instructions = acf_esc_html( $field['hint'] );
|
||||
printf( '<p class="description">%s</p>', $instructions );
|
||||
printf( '<p class="description">%s</p>', $instructions ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped earlier in function.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -907,9 +921,9 @@ function acf_render_field_instructions( $field, $tooltip = false ) {
|
|||
* @date 21/1/19
|
||||
* @since 5.7.10
|
||||
*
|
||||
* @param array $field The field array.
|
||||
* @param array $setting The settings field array.
|
||||
* @param bool $global Whether this setting is a global or field type specific one.
|
||||
* @param array $field The field array.
|
||||
* @param array $setting The settings field array.
|
||||
* @param boolean $global Whether this setting is a global or field type specific one.
|
||||
* @return void
|
||||
*/
|
||||
function acf_render_field_setting( $field, $setting, $global = false ) {
|
||||
|
|
@ -973,7 +987,7 @@ function acf_render_field_setting( $field, $setting, $global = false ) {
|
|||
* @date 21/1/19
|
||||
* @since 5.7.10
|
||||
*
|
||||
* @param array $field The field array.
|
||||
* @param array $field The field array.
|
||||
* @param array $specific An array of specific field attributes to update.
|
||||
* @return array
|
||||
*/
|
||||
|
|
@ -1079,12 +1093,12 @@ acf_add_filter_variations( 'acf/update_field', array( 'type', 'name', 'key' ), 0
|
|||
* @date 21/1/19
|
||||
* @since 5.7.10
|
||||
*
|
||||
* @param string $slug The post slug.
|
||||
* @param int $post_ID Post ID.
|
||||
* @param string $post_status The post status.
|
||||
* @param string $post_type Post type.
|
||||
* @param int $post_parent Post parent ID
|
||||
* @param string $original_slug The original post slug.
|
||||
* @param string $slug The post slug.
|
||||
* @param integer $post_ID Post ID.
|
||||
* @param string $post_status The post status.
|
||||
* @param string $post_type Post type.
|
||||
* @param integer $post_parent Post parent ID
|
||||
* @param string $original_slug The original post slug.
|
||||
*/
|
||||
function _acf_apply_unique_field_slug( $slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug ) {
|
||||
|
||||
|
|
@ -1133,7 +1147,7 @@ function acf_flush_field_cache( $field ) {
|
|||
* @since 5.7.10
|
||||
*
|
||||
* @param (int|string) $id The field ID, key or name.
|
||||
* @return bool True if field was deleted.
|
||||
* @return boolean True if field was deleted.
|
||||
*/
|
||||
function acf_delete_field( $id = 0 ) {
|
||||
|
||||
|
|
@ -1177,7 +1191,7 @@ acf_add_action_variations( 'acf/delete_field', array( 'type', 'name', 'key' ), 0
|
|||
* @since 5.0.0
|
||||
*
|
||||
* @param (int|string) $id The field ID, key or name.
|
||||
* @return bool True if field was trashed.
|
||||
* @return boolean True if field was trashed.
|
||||
*/
|
||||
function acf_trash_field( $id = 0 ) {
|
||||
|
||||
|
|
@ -1215,7 +1229,7 @@ function acf_trash_field( $id = 0 ) {
|
|||
* @since 5.0.0
|
||||
*
|
||||
* @param (int|string) $id The field ID, key or name.
|
||||
* @return bool True if field was trashed.
|
||||
* @return boolean True if field was trashed.
|
||||
*/
|
||||
function acf_untrash_field( $id = 0 ) {
|
||||
|
||||
|
|
@ -1254,9 +1268,9 @@ function acf_untrash_field( $id = 0 ) {
|
|||
*
|
||||
* @since 5.9.5
|
||||
*
|
||||
* @param string $new_status The new status of the post being restored.
|
||||
* @param int $post_id The ID of the post being restored.
|
||||
* @param string $previous_status The status of the post at the point where it was trashed.
|
||||
* @param string $new_status The new status of the post being restored.
|
||||
* @param integer $post_id The ID of the post being restored.
|
||||
* @param string $previous_status The status of the post at the point where it was trashed.
|
||||
* @return string.
|
||||
*/
|
||||
function _acf_untrash_field_post_status( $new_status, $post_id, $previous_status ) {
|
||||
|
|
@ -1295,7 +1309,7 @@ function acf_prefix_fields( &$fields, $prefix = 'acf' ) {
|
|||
* @date 21/1/19
|
||||
* @since 5.7.10
|
||||
*
|
||||
* @param (int|string) $id The field ID, key or name.
|
||||
* @param (int|string) $id The field ID, key or name.
|
||||
* @param array $field The parent field array.
|
||||
* @return (array|false)
|
||||
*/
|
||||
|
|
@ -1323,7 +1337,6 @@ function acf_get_sub_field( $id, $field ) {
|
|||
|
||||
// return
|
||||
return $sub_field;
|
||||
|
||||
}
|
||||
|
||||
// Register variation.
|
||||
|
|
@ -1337,7 +1350,7 @@ acf_add_filter_variations( 'acf/get_sub_field', array( 'type' ), 2 );
|
|||
* @date 12/2/19
|
||||
* @since 5.7.11
|
||||
*
|
||||
* @param (int|string) $id The field ID, key or name.
|
||||
* @param (int|string) $id The field ID, key or name.
|
||||
* @param array $haystack The array of fields.
|
||||
* @return (int|false)
|
||||
*/
|
||||
|
|
@ -1368,8 +1381,8 @@ function acf_search_fields( $id, $fields ) {
|
|||
* @since 5.7.10
|
||||
*
|
||||
* @param array $field The field array.
|
||||
* @param mixed $id An optional identifier to search for.
|
||||
* @return bool
|
||||
* @param mixed $id An optional identifier to search for.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_field( $field = false, $id = '' ) {
|
||||
return (
|
||||
|
|
@ -1412,8 +1425,8 @@ function acf_get_field_ancestors( $field ) {
|
|||
* @date 16/06/2014
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param array $fields An array of fields.
|
||||
* @param int $parent_id The new parent ID.
|
||||
* @param array $fields An array of fields.
|
||||
* @param integer $parent_id The new parent ID.
|
||||
* @return array
|
||||
*/
|
||||
function acf_duplicate_fields( $fields = array(), $parent_id = 0 ) {
|
||||
|
|
@ -1448,9 +1461,9 @@ function acf_duplicate_fields( $fields = array(), $parent_id = 0 ) {
|
|||
* @date 16/06/2014
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param (int|string) $id The field ID, key or name.
|
||||
* @param int $parent_id The new parent ID.
|
||||
* @return bool True if field was duplicated.
|
||||
* @param (int|string) $id The field ID, key or name.
|
||||
* @param integer $parent_id The new parent ID.
|
||||
* @return boolean True if field was duplicated.
|
||||
*/
|
||||
function acf_duplicate_field( $id = 0, $parent_id = 0 ) {
|
||||
|
||||
|
|
@ -1588,7 +1601,7 @@ function acf_prepare_fields_for_import( $fields = array() ) {
|
|||
}
|
||||
|
||||
// Iterate.
|
||||
$i++;
|
||||
++$i;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* acf_get_field_group
|
||||
|
|
@ -54,7 +63,7 @@ function acf_get_field_group_post( $id = 0 ) {
|
|||
* @since 5.0.0
|
||||
*
|
||||
* @param string $id The identifier.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_field_group_key( $id = '' ) {
|
||||
return acf_is_internal_post_type_key( $id, 'acf-field-group' );
|
||||
|
|
@ -142,7 +151,7 @@ function acf_get_raw_field_groups() {
|
|||
* @since 5.0.0
|
||||
*
|
||||
* @param array $field_groups An array of field groups.
|
||||
* @param array $args An array of location args.
|
||||
* @param array $args An array of location args.
|
||||
* @return array
|
||||
*/
|
||||
function acf_filter_field_groups( $field_groups, $args = array() ) {
|
||||
|
|
@ -158,8 +167,8 @@ function acf_filter_field_groups( $field_groups, $args = array() ) {
|
|||
* @since 5.0.0
|
||||
*
|
||||
* @param array $field_groups An array of field groups.
|
||||
* @param array $args An array of location args.
|
||||
* @return bool
|
||||
* @param array $args An array of location args.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_get_field_group_visibility( $field_group, $args = array() ) {
|
||||
|
||||
|
|
@ -225,12 +234,12 @@ function acf_update_field_group( $field_group ) {
|
|||
* @date 21/1/19
|
||||
* @since 5.7.10
|
||||
*
|
||||
* @param string $slug The post slug.
|
||||
* @param int $post_ID Post ID.
|
||||
* @param string $post_status The post status.
|
||||
* @param string $post_type Post type.
|
||||
* @param int $post_parent Post parent ID
|
||||
* @param string $original_slug The original post slug.
|
||||
* @param string $slug The post slug.
|
||||
* @param integer $post_ID Post ID.
|
||||
* @param string $post_status The post status.
|
||||
* @param string $post_type Post type.
|
||||
* @param integer $post_parent Post parent ID
|
||||
* @param string $original_slug The original post slug.
|
||||
*/
|
||||
function _acf_apply_unique_field_group_slug( $slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug ) {
|
||||
|
||||
|
|
@ -267,7 +276,7 @@ function acf_flush_field_group_cache( $field_group ) {
|
|||
* @since 5.7.10
|
||||
*
|
||||
* @param (int|string) $id The field group ID, key or name.
|
||||
* @return bool True if field group was deleted.
|
||||
* @return boolean True if field group was deleted.
|
||||
*/
|
||||
function acf_delete_field_group( $id = 0 ) {
|
||||
return acf_delete_internal_post_type( $id, 'acf-field-group' );
|
||||
|
|
@ -282,7 +291,7 @@ function acf_delete_field_group( $id = 0 ) {
|
|||
* @since 5.0.0
|
||||
*
|
||||
* @param (int|string) $id The field group ID, key or name.
|
||||
* @return bool True if field group was trashed.
|
||||
* @return boolean True if field group was trashed.
|
||||
*/
|
||||
function acf_trash_field_group( $id = 0 ) {
|
||||
return acf_trash_internal_post_type( $id, 'acf-field-group' );
|
||||
|
|
@ -297,7 +306,7 @@ function acf_trash_field_group( $id = 0 ) {
|
|||
* @since 5.0.0
|
||||
*
|
||||
* @param (int|string) $id The field_group ID, key or name.
|
||||
* @return bool True if field_group was trashed.
|
||||
* @return boolean True if field_group was trashed.
|
||||
*/
|
||||
function acf_untrash_field_group( $id = 0 ) {
|
||||
return acf_untrash_internal_post_type( $id, 'acf-field-group' );
|
||||
|
|
@ -310,9 +319,9 @@ function acf_untrash_field_group( $id = 0 ) {
|
|||
*
|
||||
* @since 5.9.5
|
||||
*
|
||||
* @param string $new_status The new status of the post being restored.
|
||||
* @param int $post_id The ID of the post being restored.
|
||||
* @param string $previous_status The status of the post at the point where it was trashed.
|
||||
* @param string $new_status The new status of the post being restored.
|
||||
* @param integer $post_id The ID of the post being restored.
|
||||
* @param string $previous_status The status of the post at the point where it was trashed.
|
||||
* @return string.
|
||||
*/
|
||||
function _acf_untrash_field_group_post_status( $new_status, $post_id, $previous_status ) {
|
||||
|
|
@ -328,8 +337,8 @@ function _acf_untrash_field_group_post_status( $new_status, $post_id, $previous_
|
|||
* @since 5.7.10
|
||||
*
|
||||
* @param array $field_group The field group array.
|
||||
* @param mixed $id An optional identifier to search for.
|
||||
* @return bool
|
||||
* @param mixed $id An optional identifier to search for.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_field_group( $field_group = false ) {
|
||||
return acf_is_internal_post_type( $field_group, 'acf-field-group' );
|
||||
|
|
@ -343,8 +352,8 @@ function acf_is_field_group( $field_group = false ) {
|
|||
* @date 16/06/2014
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param (int|string) $id The field_group ID, key or name.
|
||||
* @param int $new_post_id Optional post ID to override.
|
||||
* @param (int|string) $id The field_group ID, key or name.
|
||||
* @param integer $new_post_id Optional post ID to override.
|
||||
* @return array The new field group.
|
||||
*/
|
||||
function acf_duplicate_field_group( $id = 0, $new_post_id = 0 ) {
|
||||
|
|
@ -354,9 +363,9 @@ function acf_duplicate_field_group( $id = 0, $new_post_id = 0 ) {
|
|||
/**
|
||||
* Activates or deactivates a field group.
|
||||
*
|
||||
* @param int|string $id The field_group ID, key or name.
|
||||
* @param bool $activate True if the post should be activated.
|
||||
* @return bool
|
||||
* @param integer|string $id The field_group ID, key or name.
|
||||
* @param boolean $activate True if the post should be activated.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_update_field_group_active_status( $id, $activate = true ) {
|
||||
return acf_update_internal_post_type_active_status( $id, $activate, 'acf-field-group' );
|
||||
|
|
@ -428,7 +437,7 @@ function acf_get_field_group_style( $field_group ) {
|
|||
* @date 23/9/18
|
||||
* @since 5.7.7
|
||||
*
|
||||
* @param int $post_id The field group ID.
|
||||
* @param integer $post_id The field group ID.
|
||||
* @return string
|
||||
*/
|
||||
function acf_get_field_group_edit_link( $post_id ) {
|
||||
|
|
@ -481,14 +490,14 @@ function acf_import_field_group( $field_group ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns an array of tabs for the field group settings.
|
||||
* We combine a list of default tabs with filtered tabs.
|
||||
* I.E. Default tabs should be static and should not be changed by the
|
||||
* filtered tabs.
|
||||
* Returns an array of tabs for the field group settings.
|
||||
* We combine a list of default tabs with filtered tabs.
|
||||
* I.E. Default tabs should be static and should not be changed by the
|
||||
* filtered tabs.
|
||||
*
|
||||
* @since 6.1
|
||||
* @since 6.1
|
||||
*
|
||||
* @return array Key/value array of the default settings tabs for field group settings.
|
||||
* @return array Key/value array of the default settings tabs for field group settings.
|
||||
*/
|
||||
function acf_get_combined_field_group_settings_tabs() {
|
||||
$default_field_group_settings_tabs = array(
|
||||
|
|
@ -510,3 +519,61 @@ function acf_get_combined_field_group_settings_tabs() {
|
|||
|
||||
return $combined_field_group_settings_tabs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a field group has the provided location rule.
|
||||
*
|
||||
* @since 6.2.8
|
||||
*
|
||||
* @param integer $post_id The post ID of the field group.
|
||||
* @param string $location The location type to check for.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_field_group_has_location_type( int $post_id, string $location ) {
|
||||
if ( empty( $post_id ) || empty( $location ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$field_group = acf_get_field_group( (int) $post_id );
|
||||
|
||||
if ( empty( $field_group['location'] ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach ( $field_group['location'] as $rule_group ) {
|
||||
$params = array_column( $rule_group, 'param' );
|
||||
|
||||
if ( in_array( $location, $params, true ) ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the field group title, or display title if set.
|
||||
*
|
||||
* @since 6.6
|
||||
*
|
||||
* @param array|integer $field_group The field group array or ID.
|
||||
* @return string The field group title.
|
||||
*/
|
||||
function acf_get_field_group_title( $field_group ): string {
|
||||
if ( is_numeric( $field_group ) ) {
|
||||
$field_group = acf_get_field_group( $field_group );
|
||||
}
|
||||
|
||||
$title = '';
|
||||
if ( ! empty( $field_group['title'] ) && is_string( $field_group['title'] ) ) {
|
||||
$title = $field_group['title'];
|
||||
}
|
||||
|
||||
// Override with the Display Title if set.
|
||||
if ( ! empty( $field_group['display_title'] ) && is_string( $field_group['display_title'] ) ) {
|
||||
$title = $field_group['display_title'];
|
||||
}
|
||||
|
||||
// Filter and return.
|
||||
return apply_filters( 'acf/get_field_group_title', esc_html( $title ), $field_group );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
// Register store for form data.
|
||||
acf_register_store( 'form' );
|
||||
|
|
@ -113,9 +122,9 @@ function acf_form_data( $data = array() ) {
|
|||
* @date 15/10/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param int|string $post_id The post id.
|
||||
* @param array $values An array of values to override $_POST.
|
||||
* @return bool True if save was successful.
|
||||
* @param integer|string $post_id The post id.
|
||||
* @param array $values An array of values to override $_POST.
|
||||
* @return boolean True if save was successful.
|
||||
*/
|
||||
function acf_save_post( $post_id = 0, $values = null ) {
|
||||
|
||||
|
|
@ -155,7 +164,7 @@ function acf_save_post( $post_id = 0, $values = null ) {
|
|||
* @date 11/1/19
|
||||
* @since 5.7.10
|
||||
*
|
||||
* @param int|string $post_id The post id.
|
||||
* @param integer|string $post_id The post id.
|
||||
* @return void
|
||||
*/
|
||||
function _acf_do_save_post( $post_id = 0 ) {
|
||||
|
|
|
|||
|
|
@ -1,38 +1,41 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* acf_is_empty
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns true if the value provided is considered "empty". Allows numbers such as 0.
|
||||
*
|
||||
* @date 6/7/16
|
||||
* @since 5.4.0
|
||||
*
|
||||
* @param mixed $var The value to check.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_empty( $var ) {
|
||||
return ( ! $var && ! is_numeric( $var ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* acf_not_empty
|
||||
*
|
||||
* Returns true if the value provided is considered "not empty". Allows numbers such as 0.
|
||||
*
|
||||
* @date 15/7/19
|
||||
* @since 5.8.1
|
||||
*
|
||||
* @param mixed $var The value to check.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_not_empty( $var ) {
|
||||
return ( $var || is_numeric( $var ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* acf_uniqid
|
||||
*
|
||||
* Returns a unique numeric based id.
|
||||
*
|
||||
* @date 9/1/19
|
||||
|
|
@ -54,8 +57,6 @@ function acf_uniqid( $prefix = 'acf' ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* acf_merge_attributes
|
||||
*
|
||||
* Merges together two arrays but with extra functionality to append class names.
|
||||
*
|
||||
* @date 22/1/19
|
||||
|
|
@ -130,7 +131,7 @@ function acf_request_args( $args = array() ) {
|
|||
* @date 23/10/20
|
||||
* @since 5.9.2
|
||||
*
|
||||
* @param string $key The property name.
|
||||
* @param string $key The property name.
|
||||
* @param mixed $default The default value to fallback to.
|
||||
* @return mixed
|
||||
*/
|
||||
|
|
@ -277,7 +278,7 @@ function acf_enable_filters( $filters = array() ) {
|
|||
* @since 5.7.14
|
||||
*
|
||||
* @param mixed $value A value to parse.
|
||||
* @return int
|
||||
* @return integer
|
||||
*/
|
||||
function acf_idval( $value ) {
|
||||
|
||||
|
|
@ -372,7 +373,7 @@ function acf_idify( $str = '' ) {
|
|||
* @date 24/12/17
|
||||
* @since 5.6.5
|
||||
*
|
||||
* @param string $str The string to convert.
|
||||
* @param string $str The string to convert.
|
||||
* @param string $glue The glue between each slug piece.
|
||||
* @return string
|
||||
*/
|
||||
|
|
@ -418,7 +419,7 @@ function acf_punctify( $str = '' ) {
|
|||
* @since 5.8.1
|
||||
*
|
||||
* @param string $name The name of the event.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_did( $name ) {
|
||||
|
||||
|
|
@ -446,7 +447,7 @@ function acf_did( $name ) {
|
|||
* @since 5.9.0
|
||||
*
|
||||
* @param string $str The string to review.
|
||||
* @return int
|
||||
* @return integer
|
||||
*/
|
||||
function acf_strlen( $str ) {
|
||||
return mb_strlen( str_replace( "\r\n", "\n", wp_specialchars_decode( wp_unslash( $str ) ) ) );
|
||||
|
|
@ -458,7 +459,7 @@ function acf_strlen( $str ) {
|
|||
* @date 6/4/20
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param mixed $value The value.
|
||||
* @param mixed $value The value.
|
||||
* @param mixed $default_value The default value.
|
||||
* @return mixed
|
||||
*/
|
||||
|
|
@ -473,7 +474,7 @@ function acf_with_default( $value, $default_value ) {
|
|||
* @since 5.9.0
|
||||
*
|
||||
* @param string $action The action name.
|
||||
* @return int|bool
|
||||
* @return integer|boolean
|
||||
*/
|
||||
function acf_doing_action( $action ) {
|
||||
global $wp_filter;
|
||||
|
|
@ -505,12 +506,12 @@ function acf_get_current_url() {
|
|||
*
|
||||
* @since 6.0.0
|
||||
*
|
||||
* @param string $url The URL to be tagged.
|
||||
* @param string $campaign The campaign tag.
|
||||
* @param string $content The UTM content tag.
|
||||
* @param bool $anchor An optional anchor ID.
|
||||
* @param string $source An optional UTM source tag.
|
||||
* @param string $medium An optional UTM medium tag.
|
||||
* @param string $url The URL to be tagged.
|
||||
* @param string $campaign The campaign tag.
|
||||
* @param string $content The UTM content tag.
|
||||
* @param boolean $anchor An optional anchor ID.
|
||||
* @param string $source An optional UTM source tag.
|
||||
* @param string $medium An optional UTM medium tag.
|
||||
* @return string
|
||||
*/
|
||||
function acf_add_url_utm_tags( $url, $campaign, $content, $anchor = false, $source = '', $medium = '' ) {
|
||||
|
|
@ -549,7 +550,7 @@ function acf_add_url_utm_tags( $url, $campaign, $content, $anchor = false, $sour
|
|||
*
|
||||
* @param mixed $args The data to sanitize.
|
||||
*
|
||||
* @return array|bool|float|int|mixed|string
|
||||
* @return array|boolean|float|integer|mixed|string
|
||||
*/
|
||||
function acf_sanitize_request_args( $args = array() ) {
|
||||
switch ( gettype( $args ) ) {
|
||||
|
|
@ -625,7 +626,7 @@ function acf_sanitize_files_array( array $args = array() ) {
|
|||
*
|
||||
* @since 6.0.5
|
||||
*
|
||||
* @param array $array The file upload array.
|
||||
* @param array $array The file upload array.
|
||||
* @param string $sanitize_function Callback used to sanitize array value.
|
||||
* @return array
|
||||
*/
|
||||
|
|
@ -659,11 +660,7 @@ function acf_sanitize_files_value_array( $array, $sanitize_function ) {
|
|||
*/
|
||||
function acf_maybe_unserialize( $data ) {
|
||||
if ( is_serialized( $data ) ) { // Don't attempt to unserialize data that wasn't serialized going in.
|
||||
if ( PHP_VERSION_ID >= 70000 ) {
|
||||
return @unserialize( trim( $data ), array( 'allowed_classes' => false ) ); //phpcs:ignore -- code only runs on PHP7+
|
||||
} else {
|
||||
return @\ACF\Brumann\Polyfill\unserialize::unserialize( trim( $data ), array( 'allowed_classes' => false ) );
|
||||
}
|
||||
return @unserialize( trim( $data ), array( 'allowed_classes' => false ) ); //phpcs:ignore -- allowed classes is false.
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
|
@ -679,3 +676,45 @@ function acf_maybe_unserialize( $data ) {
|
|||
function acf_is_pro() {
|
||||
return defined( 'ACF_PRO' ) && ACF_PRO;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if ACF is a beta-like release.
|
||||
*
|
||||
* @since 6.3
|
||||
*
|
||||
* @return boolean True if the current install version contains a dash, indicating a alpha, beta or RC release.
|
||||
*/
|
||||
function acf_is_beta() {
|
||||
return defined( 'ACF_VERSION' ) && strpos( ACF_VERSION, '-' ) !== false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the version of ACF when it was first activated.
|
||||
* However, if ACF was first activated prior to the introduction of the acf_first_activated_version option,
|
||||
* this function returns false (boolean) to indicate that the version could not be determined.
|
||||
*
|
||||
* @since 6.3
|
||||
*
|
||||
* @return string|boolean The (string) version of ACF when it was first activated, or false (boolean) if the version could not be determined.
|
||||
*/
|
||||
function acf_get_version_when_first_activated() {
|
||||
// Check if ACF is network-activated on a multisite.
|
||||
if ( is_multisite() ) {
|
||||
$acf_dir_and_filename = basename( ACF_PATH ) . '/acf.php';
|
||||
$plugins = get_site_option( 'active_sitewide_plugins' );
|
||||
|
||||
if ( isset( $plugins[ $acf_dir_and_filename ] ) ) {
|
||||
$main_site_id = get_main_site_id();
|
||||
|
||||
if ( empty( $main_site_id ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// ACF is network activated, so get the version from main site's options.
|
||||
return get_blog_option( $main_site_id, 'acf_first_activated_version', false );
|
||||
}
|
||||
}
|
||||
|
||||
// Check if ACF is activated on this single site.
|
||||
return get_option( 'acf_first_activated_version', false );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
// Register store.
|
||||
acf_register_store( 'hook-variations' );
|
||||
|
|
@ -11,9 +20,9 @@ acf_register_store( 'hook-variations' );
|
|||
* @date 26/1/19
|
||||
* @since 5.7.11
|
||||
*
|
||||
* @param string $filter The filter name.
|
||||
* @param array $variations An array variation keys.
|
||||
* @param int $index The param index to find variation values.
|
||||
* @param string $filter The filter name.
|
||||
* @param array $variations An array variation keys.
|
||||
* @param integer $index The param index to find variation values.
|
||||
* @return void
|
||||
*/
|
||||
function acf_add_filter_variations( $filter = '', $variations = array(), $index = 0 ) {
|
||||
|
|
@ -41,9 +50,9 @@ function acf_add_filter_variations( $filter = '', $variations = array(), $index
|
|||
* @date 26/1/19
|
||||
* @since 5.7.11
|
||||
*
|
||||
* @param string $action The action name.
|
||||
* @param array $variations An array variation keys.
|
||||
* @param int $index The param index to find variation values.
|
||||
* @param string $action The action name.
|
||||
* @param array $variations An array variation keys.
|
||||
* @param integer $index The param index to find variation values.
|
||||
* @return void
|
||||
*/
|
||||
function acf_add_action_variations( $action = '', $variations = array(), $index = 0 ) {
|
||||
|
|
@ -129,8 +138,8 @@ acf_register_store( 'deprecated-hooks' );
|
|||
* @date 25/1/19
|
||||
* @since 5.7.11
|
||||
*
|
||||
* @param string $deprecated The deprecated hook.
|
||||
* @param string $version The version this hook was deprecated.
|
||||
* @param string $deprecated The deprecated hook.
|
||||
* @param string $version The version this hook was deprecated.
|
||||
* @param string $replacement The replacement hook.
|
||||
* @return void
|
||||
*/
|
||||
|
|
@ -159,8 +168,8 @@ function acf_add_deprecated_filter( $deprecated, $version, $replacement ) {
|
|||
* @date 25/1/19
|
||||
* @since 5.7.11
|
||||
*
|
||||
* @param string $deprecated The deprecated hook.
|
||||
* @param string $version The version this hook was deprecated.
|
||||
* @param string $deprecated The deprecated hook.
|
||||
* @param string $version The version this hook was deprecated.
|
||||
* @param string $replacement The replacement hook.
|
||||
* @return void
|
||||
*/
|
||||
|
|
@ -207,7 +216,6 @@ function _acf_apply_deprecated_hook() {
|
|||
|
||||
// Log warning.
|
||||
// _deprecated_hook( $deprecated, $version, $hook );
|
||||
|
||||
// Apply the item/do the action.
|
||||
if ( $hook['type'] === 'filter' ) {
|
||||
$args[0] = apply_filters_ref_array( $hook['deprecated'], $args );
|
||||
|
|
@ -220,4 +228,3 @@ function _acf_apply_deprecated_hook() {
|
|||
// Return first arg.
|
||||
return $args[0];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* acf_filter_attrs
|
||||
|
|
@ -70,27 +79,29 @@ function acf_esc_attrs( $attrs ) {
|
|||
*
|
||||
* This function emulates `wp_kses_post()` with a context of "acf" for extensibility.
|
||||
*
|
||||
* @date 16/4/21
|
||||
* @since 5.9.6
|
||||
* @since 5.9.6
|
||||
*
|
||||
* @param string $string
|
||||
* @return string
|
||||
* @param string $string The string to be escaped
|
||||
* @return string|false
|
||||
*/
|
||||
function acf_esc_html( $string = '' ) {
|
||||
|
||||
if ( ! is_scalar( $string ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return wp_kses( (string) $string, 'acf' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Private callback for the "wp_kses_allowed_html" filter used to return allowed HTML for "acf" context.
|
||||
*
|
||||
* @date 16/4/21
|
||||
* @since 5.9.6
|
||||
*
|
||||
* @param array $tags An array of allowed tags.
|
||||
* @param string $context The context name.
|
||||
* @return array.
|
||||
* @param array $tags An array of allowed tags.
|
||||
* @param string $context The context name.
|
||||
* @return array
|
||||
*/
|
||||
|
||||
function _acf_kses_allowed_html( $tags, $context ) {
|
||||
global $allowedposttags;
|
||||
|
||||
|
|
@ -129,7 +140,7 @@ add_filter( 'wp_kses_allowed_html', '_acf_kses_allowed_html', 0, 2 );
|
|||
* @return string
|
||||
*/
|
||||
function acf_hidden_input( $attrs = array() ) {
|
||||
echo acf_get_hidden_input( $attrs );
|
||||
echo acf_get_hidden_input( $attrs ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped by input generation function.
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -159,7 +170,7 @@ function acf_get_hidden_input( $attrs = array() ) {
|
|||
* @return string
|
||||
*/
|
||||
function acf_text_input( $attrs = array() ) {
|
||||
echo acf_get_text_input( $attrs );
|
||||
echo acf_get_text_input( $attrs ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped by input generation function.
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -198,7 +209,7 @@ function acf_get_text_input( $attrs = array() ) {
|
|||
* @return string
|
||||
*/
|
||||
function acf_file_input( $attrs = array() ) {
|
||||
echo acf_get_file_input( $attrs );
|
||||
echo acf_get_file_input( $attrs ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped by input generation function.
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -263,7 +274,7 @@ function acf_get_file_input( $attrs = array() ) {
|
|||
* @return string
|
||||
*/
|
||||
function acf_textarea_input( $attrs = array() ) {
|
||||
echo acf_get_textarea_input( $attrs );
|
||||
echo acf_get_textarea_input( $attrs ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped by input generation function.
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -298,7 +309,7 @@ function acf_get_textarea_input( $attrs = array() ) {
|
|||
* @return string
|
||||
*/
|
||||
function acf_checkbox_input( $attrs = array() ) {
|
||||
echo acf_get_checkbox_input( $attrs );
|
||||
echo acf_get_checkbox_input( $attrs ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped by input generation function.
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -331,7 +342,27 @@ function acf_get_checkbox_input( $attrs = array() ) {
|
|||
|
||||
// Render.
|
||||
$checked = isset( $attrs['checked'] );
|
||||
return '<label' . ( $checked ? ' class="selected"' : '' ) . '><input ' . acf_esc_attr( $attrs ) . '/> ' . acf_esc_html( $label ) . '</label>';
|
||||
|
||||
// Build label attributes array for accessibility and consistency.
|
||||
$label_attrs = array();
|
||||
if ( $checked ) {
|
||||
$label_attrs['class'] = 'selected';
|
||||
}
|
||||
|
||||
if ( ! empty( $attrs['button_group'] ) ) {
|
||||
unset( $attrs['button_group'] );
|
||||
// If tabindex is provided, use it for the label; otherwise, use checked-based default.
|
||||
if ( isset( $attrs['tabindex'] ) ) {
|
||||
$label_attrs['tabindex'] = (string) $attrs['tabindex'];
|
||||
unset( $attrs['tabindex'] );
|
||||
} else {
|
||||
$label_attrs['tabindex'] = $checked ? '0' : '-1';
|
||||
}
|
||||
$label_attrs['role'] = 'radio';
|
||||
$label_attrs['aria-checked'] = $checked ? 'true' : 'false';
|
||||
}
|
||||
|
||||
return '<label' . ( acf_esc_attrs( $label_attrs ) ? ' ' . acf_esc_attrs( $label_attrs ) : '' ) . '><input ' . acf_esc_attrs( $attrs ) . '/> ' . acf_esc_html( $label ) . '</label>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -346,7 +377,7 @@ function acf_get_checkbox_input( $attrs = array() ) {
|
|||
* @return string
|
||||
*/
|
||||
function acf_radio_input( $attrs = array() ) {
|
||||
echo acf_get_radio_input( $attrs );
|
||||
echo acf_get_radio_input( $attrs ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped by input generation function.
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -377,7 +408,7 @@ function acf_get_radio_input( $attrs = array() ) {
|
|||
* @return string
|
||||
*/
|
||||
function acf_select_input( $attrs = array() ) {
|
||||
echo acf_get_select_input( $attrs );
|
||||
echo acf_get_select_input( $attrs ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped by input generation function.
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -410,8 +441,8 @@ function acf_get_select_input( $attrs = array() ) {
|
|||
* @since 5.6.0
|
||||
*
|
||||
* @param array $choices The choices to walk through.
|
||||
* @param array $values The selected choices.
|
||||
* @param array $depth The current walk depth.
|
||||
* @param array $values The selected choices.
|
||||
* @param array $depth The current walk depth.
|
||||
* @return string
|
||||
*/
|
||||
function acf_walk_select_input( $choices = array(), $values = array(), $depth = 0 ) {
|
||||
|
|
@ -446,7 +477,7 @@ function acf_walk_select_input( $choices = array(), $values = array(), $depth =
|
|||
$attrs['selected'] = 'selected';
|
||||
$attrs['data-i'] = $pos;
|
||||
}
|
||||
$html .= sprintf( '<option %s>%s</option>', acf_esc_attr( $attrs ), esc_html( $label ) );
|
||||
$html .= sprintf( '<option %s>%s</option>', acf_esc_attrs( $attrs ), esc_html( $label ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -486,11 +517,10 @@ function acf_esc_atts( $attrs ) {
|
|||
/**
|
||||
* acf_esc_attr
|
||||
*
|
||||
* See acf_esc_attrs().
|
||||
*
|
||||
* @date 13/6/19
|
||||
* @since 5.8.1
|
||||
* @deprecated 5.6.0
|
||||
* @see acf_esc_attrs().
|
||||
*
|
||||
* @param array $attrs The array of attrs.
|
||||
* @return string
|
||||
|
|
@ -509,7 +539,6 @@ function acf_esc_attr( $attrs ) {
|
|||
* @deprecated 5.6.0
|
||||
*
|
||||
* @param array $attrs The array of attrs.
|
||||
* @return string
|
||||
*/
|
||||
function acf_esc_attr_e( $attrs ) {
|
||||
echo acf_esc_attrs( $attrs );
|
||||
|
|
@ -525,7 +554,6 @@ function acf_esc_attr_e( $attrs ) {
|
|||
* @deprecated 5.6.0
|
||||
*
|
||||
* @param array $attrs The array of attrs.
|
||||
* @return string
|
||||
*/
|
||||
function acf_esc_atts_e( $attrs ) {
|
||||
echo acf_esc_attrs( $attrs );
|
||||
|
|
|
|||
|
|
@ -1,15 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Generic functions for accessing ACF objects stored as WordPress post types which aren't handled by type specific functions.
|
||||
*
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* Gets an instance of an ACF_Internal_Post_Type.
|
||||
*
|
||||
* @param string $post_type The ACF internal post type to get the instance for.
|
||||
* @return ACF_Internal_Post_Type|bool The internal post type class instance, or false on failure.
|
||||
* @return ACF_Internal_Post_Type|boolean The internal post type class instance, or false on failure.
|
||||
*/
|
||||
function acf_get_internal_post_type_instance( $post_type = 'acf-field-group' ) {
|
||||
$store = acf_get_store( 'internal-post-types' );
|
||||
|
|
@ -28,8 +32,8 @@ function acf_get_internal_post_type_instance( $post_type = 'acf-field-group' ) {
|
|||
/**
|
||||
* Get an ACF CPT object as an array
|
||||
*
|
||||
* @param int $id The post ID being queried.
|
||||
* @param string $post_type The post type being queried.
|
||||
* @param integer $id The post ID being queried.
|
||||
* @param string $post_type The post type being queried.
|
||||
* @return array|false The post type object.
|
||||
*/
|
||||
function acf_get_internal_post_type( $id, $post_type ) {
|
||||
|
|
@ -47,8 +51,8 @@ function acf_get_internal_post_type( $id, $post_type ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The post ID.
|
||||
* @param string $post_type The post type name.
|
||||
* @param integer|string $id The post ID.
|
||||
* @param string $post_type The post type name.
|
||||
* @return array|false The internal post type array.
|
||||
*/
|
||||
function acf_get_raw_internal_post_type( $id, $post_type ) {
|
||||
|
|
@ -66,9 +70,9 @@ function acf_get_raw_internal_post_type( $id, $post_type ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The post ID, key, or name.
|
||||
* @param string $post_type The post type name.
|
||||
* @return object|bool The post object, or false on failure.
|
||||
* @param integer|string $id The post ID, key, or name.
|
||||
* @param string $post_type The post type name.
|
||||
* @return object|boolean The post object, or false on failure.
|
||||
*/
|
||||
function acf_get_internal_post_type_post( $id, $post_type ) {
|
||||
$instance = acf_get_internal_post_type_instance( $post_type );
|
||||
|
|
@ -87,7 +91,7 @@ function acf_get_internal_post_type_post( $id, $post_type ) {
|
|||
*
|
||||
* @param string $id The identifier.
|
||||
* @param string $post_type The ACF post type the key is for.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_internal_post_type_key( $id = '', $post_type = 'acf-field-group' ) {
|
||||
$instance = acf_get_internal_post_type_instance( $post_type );
|
||||
|
|
@ -105,7 +109,7 @@ function acf_is_internal_post_type_key( $id = '', $post_type = 'acf-field-group'
|
|||
*
|
||||
* @param array $internal_post_type The internal post type array.
|
||||
* @param string $post_type_name The post type name.
|
||||
* @return array|bool
|
||||
* @return array|boolean
|
||||
*/
|
||||
function acf_validate_internal_post_type( $internal_post_type, $post_type_name ) {
|
||||
$instance = acf_get_internal_post_type_instance( $post_type_name );
|
||||
|
|
@ -237,9 +241,9 @@ function acf_flush_internal_post_type_cache( $post, $post_type ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The internal post type ID, key or name.
|
||||
* @param string $post_type_name The post type to be deleted.
|
||||
* @return bool True if field group was deleted.
|
||||
* @param integer|string $id The internal post type ID, key or name.
|
||||
* @param string $post_type_name The post type to be deleted.
|
||||
* @return boolean True if field group was deleted.
|
||||
*/
|
||||
function acf_delete_internal_post_type( $id = 0, $post_type_name = '' ) {
|
||||
$instance = acf_get_internal_post_type_instance( $post_type_name );
|
||||
|
|
@ -256,9 +260,9 @@ function acf_delete_internal_post_type( $id = 0, $post_type_name = '' ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The internal post type ID, key, or name.
|
||||
* @param string $post_type_name The post type being trashed.
|
||||
* @return bool True if post was trashed.
|
||||
* @param integer|string $id The internal post type ID, key, or name.
|
||||
* @param string $post_type_name The post type being trashed.
|
||||
* @return boolean True if post was trashed.
|
||||
*/
|
||||
function acf_trash_internal_post_type( $id = 0, $post_type_name = '' ) {
|
||||
$instance = acf_get_internal_post_type_instance( $post_type_name );
|
||||
|
|
@ -275,9 +279,9 @@ function acf_trash_internal_post_type( $id = 0, $post_type_name = '' ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The internal post type ID, key, or name.
|
||||
* @param string $post_type_name The post type being untrashed.
|
||||
* @return bool True if post was untrashed.
|
||||
* @param integer|string $id The internal post type ID, key, or name.
|
||||
* @param string $post_type_name The post type being untrashed.
|
||||
* @return boolean True if post was untrashed.
|
||||
*/
|
||||
function acf_untrash_internal_post_type( $id = 0, $post_type_name = '' ) {
|
||||
$instance = acf_get_internal_post_type_instance( $post_type_name );
|
||||
|
|
@ -296,7 +300,7 @@ function acf_untrash_internal_post_type( $id = 0, $post_type_name = '' ) {
|
|||
*
|
||||
* @param array $post The ACF post array.
|
||||
* @param string $post_type The ACF post type.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_internal_post_type( $post, $post_type ) {
|
||||
$instance = acf_get_internal_post_type_instance( $post_type );
|
||||
|
|
@ -313,10 +317,10 @@ function acf_is_internal_post_type( $post, $post_type ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The field_group ID, key or name.
|
||||
* @param int $new_post_id Optional ID to override.
|
||||
* @param string $post_type The post type of the post being duplicated.
|
||||
* @return array|bool The new ACF post, or false on failure.
|
||||
* @param integer|string $id The field_group ID, key or name.
|
||||
* @param integer $new_post_id Optional ID to override.
|
||||
* @param string $post_type The post type of the post being duplicated.
|
||||
* @return array|boolean The new ACF post, or false on failure.
|
||||
*/
|
||||
function acf_duplicate_internal_post_type( $id = 0, $new_post_id = 0, $post_type = 'acf-field-group' ) {
|
||||
$instance = acf_get_internal_post_type_instance( $post_type );
|
||||
|
|
@ -331,10 +335,10 @@ function acf_duplicate_internal_post_type( $id = 0, $new_post_id = 0, $post_type
|
|||
/**
|
||||
* Activates or deactivates an ACF post.
|
||||
*
|
||||
* @param int|string $id The field_group ID, key or name.
|
||||
* @param bool $activate True if the post should be activated.
|
||||
* @param string $post_type The post type being activated/deactivated.
|
||||
* @return bool
|
||||
* @param integer|string $id The field_group ID, key or name.
|
||||
* @param boolean $activate True if the post should be activated.
|
||||
* @param string $post_type The post type being activated/deactivated.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_update_internal_post_type_active_status( $id, $activate = true, $post_type = 'acf-field-group' ) {
|
||||
$instance = acf_get_internal_post_type_instance( $post_type );
|
||||
|
|
@ -351,8 +355,8 @@ function acf_update_internal_post_type_active_status( $id, $activate = true, $po
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int $post_id The ACF post ID.
|
||||
* @param string $post_type The ACF post type to get the edit link for.
|
||||
* @param integer $post_id The ACF post ID.
|
||||
* @param string $post_type The ACF post type to get the edit link for.
|
||||
* @return string
|
||||
*/
|
||||
function acf_get_internal_post_type_edit_link( $post_id, $post_type ) {
|
||||
|
|
@ -391,7 +395,7 @@ function acf_prepare_internal_post_type_for_export( $post = array(), $post_type
|
|||
*
|
||||
* @param array $post The ACF post array.
|
||||
* @param string $post_type The post type of the ACF post being exported.
|
||||
* @return string|bool
|
||||
* @return string|boolean
|
||||
*/
|
||||
function acf_export_internal_post_type_as_php( $post, $post_type = 'acf-field-group' ) {
|
||||
$instance = acf_get_internal_post_type_instance( $post_type );
|
||||
|
|
@ -445,7 +449,7 @@ function acf_import_internal_post_type( $post, $post_type ) {
|
|||
* Tries to determine the ACF post type for the provided key.
|
||||
*
|
||||
* @param string $key The key to check.
|
||||
* @return string|bool
|
||||
* @return string|boolean
|
||||
*/
|
||||
function acf_determine_internal_post_type( $key ) {
|
||||
$store = acf_get_store( 'internal-post-types' );
|
||||
|
|
@ -465,6 +469,33 @@ function acf_determine_internal_post_type( $key ) {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the provided key is an identifiable ACF post type.
|
||||
*
|
||||
* @since 6.2.8
|
||||
*
|
||||
* @param string $key The key to check.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_valid_internal_post_type_key( string $key ) {
|
||||
return (bool) acf_determine_internal_post_type( $key );
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the provided post type object contains a valid internal post type key.
|
||||
*
|
||||
* @since 6.2.8
|
||||
*
|
||||
* @param array $internal_post_type The post type object array to check it's key.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_internal_post_object_contains_valid_key( array $internal_post_type ) {
|
||||
if ( ! is_array( $internal_post_type ) || empty( $internal_post_type['key'] ) || ! is_string( $internal_post_type['key'] ) ) {
|
||||
return false;
|
||||
}
|
||||
return acf_is_valid_internal_post_type_key( $internal_post_type['key'] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of tabs for the post type advanced settings.
|
||||
*
|
||||
|
|
@ -623,7 +654,7 @@ function acf_add_internal_post_type_validation_error( $name, $message = '', $pos
|
|||
* @since 6.1.5
|
||||
*
|
||||
* @param string $action The action being performed.
|
||||
* @return array|bool
|
||||
* @return array|boolean
|
||||
*/
|
||||
function acf_get_post_type_from_request_args( $action = '' ) {
|
||||
$acf_use_post_type = (int) acf_request_arg( 'use_post_type', 0 );
|
||||
|
|
@ -641,7 +672,7 @@ function acf_get_post_type_from_request_args( $action = '' ) {
|
|||
* @since 6.1.5
|
||||
*
|
||||
* @param string $action The action being performed.
|
||||
* @return array|bool
|
||||
* @return array|boolean
|
||||
*/
|
||||
function acf_get_taxonomy_from_request_args( $action = '' ) {
|
||||
$acf_use_taxonomy = (int) acf_request_arg( 'use_taxonomy', 0 );
|
||||
|
|
@ -659,7 +690,7 @@ function acf_get_taxonomy_from_request_args( $action = '' ) {
|
|||
* @since 6.2
|
||||
*
|
||||
* @param string $action The action being performed.
|
||||
* @return array|bool
|
||||
* @return array|boolean
|
||||
*/
|
||||
function acf_get_ui_options_page_from_request_args( $action = '' ) {
|
||||
$acf_use_options_page = (int) acf_request_arg( 'use_options_page', 0 );
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns an array of "ACF only" meta for the given post_id.
|
||||
|
|
@ -11,44 +20,21 @@
|
|||
* @return array
|
||||
*/
|
||||
function acf_get_meta( $post_id = 0 ) {
|
||||
|
||||
// Allow filter to short-circuit load_value logic.
|
||||
$null = apply_filters( 'acf/pre_load_meta', null, $post_id );
|
||||
if ( $null !== null ) {
|
||||
return ( $null === '__return_null' ) ? null : $null;
|
||||
}
|
||||
|
||||
// Decode $post_id for $type and $id.
|
||||
$decoded = acf_decode_post_id( $post_id );
|
||||
// Decode the $post_id for $type and $id.
|
||||
$decoded = acf_decode_post_id( $post_id );
|
||||
$instance = acf_get_meta_instance( $decoded['type'] );
|
||||
$meta = array();
|
||||
|
||||
/**
|
||||
* Determine CRUD function.
|
||||
*
|
||||
* - Relies on decoded post_id result to identify option or meta types.
|
||||
* - Uses xxx_metadata(type) instead of xxx_type_meta() to bypass additional logic that could alter the ID.
|
||||
*/
|
||||
if ( $decoded['type'] === 'option' ) {
|
||||
$allmeta = acf_get_option_meta( $decoded['id'] );
|
||||
} else {
|
||||
$allmeta = get_metadata( $decoded['type'], $decoded['id'], '' );
|
||||
if ( $instance ) {
|
||||
$meta = $instance->get_meta( $decoded['id'] );
|
||||
}
|
||||
|
||||
// Loop over meta and check that a reference exists for each value.
|
||||
$meta = array();
|
||||
if ( $allmeta ) {
|
||||
foreach ( $allmeta as $key => $value ) {
|
||||
|
||||
// If a reference exists for this value, add it to the meta array.
|
||||
if ( isset( $allmeta[ "_$key" ] ) ) {
|
||||
$meta[ $key ] = $allmeta[ $key ][0];
|
||||
$meta[ "_$key" ] = $allmeta[ "_$key" ][0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Unserialized results (get_metadata does not unserialize if $key is empty).
|
||||
$meta = array_map( 'acf_maybe_unserialize', $meta );
|
||||
|
||||
/**
|
||||
* Filters the $meta array after it has been loaded.
|
||||
*
|
||||
|
|
@ -74,7 +60,6 @@ function acf_get_meta( $post_id = 0 ) {
|
|||
* @return array
|
||||
*/
|
||||
function acf_get_option_meta( $prefix = '' ) {
|
||||
|
||||
// Globals.
|
||||
global $wpdb;
|
||||
|
||||
|
|
@ -116,9 +101,9 @@ function acf_get_option_meta( $prefix = '' ) {
|
|||
* @date 16/10/2015
|
||||
* @since 5.2.3
|
||||
*
|
||||
* @param int|string $post_id The post id.
|
||||
* @param string $name The meta name.
|
||||
* @param bool $hidden If the meta is hidden (starts with an underscore).
|
||||
* @param integer|string $post_id The post id.
|
||||
* @param string $name The meta name.
|
||||
* @param boolean $hidden If the meta is hidden (starts with an underscore).
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
|
|
@ -159,12 +144,12 @@ function acf_get_metadata( $post_id = 0, $name = '', $hidden = false ) {
|
|||
* @date 16/10/2015
|
||||
* @since 5.2.3
|
||||
*
|
||||
* @param int|string $post_id The post id.
|
||||
* @param string $name The meta name.
|
||||
* @param mixed $value The meta value.
|
||||
* @param bool $hidden If the meta is hidden (starts with an underscore).
|
||||
* @param integer|string $post_id The post id.
|
||||
* @param string $name The meta name.
|
||||
* @param mixed $value The meta value.
|
||||
* @param boolean $hidden If the meta is hidden (starts with an underscore).
|
||||
*
|
||||
* @return int|bool Meta ID if the key didn't exist, true on successful update, false on failure.
|
||||
* @return integer|boolean Meta ID if the key didn't exist, true on successful update, false on failure.
|
||||
*/
|
||||
function acf_update_metadata( $post_id = 0, $name = '', $value = '', $hidden = false ) {
|
||||
// Allow filter to short-circuit logic.
|
||||
|
|
@ -204,11 +189,11 @@ function acf_update_metadata( $post_id = 0, $name = '', $value = '', $hidden = f
|
|||
* @date 16/10/2015
|
||||
* @since 5.2.3
|
||||
*
|
||||
* @param int|string $post_id The post id.
|
||||
* @param string $name The meta name.
|
||||
* @param bool $hidden If the meta is hidden (starts with an underscore).
|
||||
* @param integer|string $post_id The post id.
|
||||
* @param string $name The meta name.
|
||||
* @param boolean $hidden If the meta is hidden (starts with an underscore).
|
||||
*
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_delete_metadata( $post_id = 0, $name = '', $hidden = false ) {
|
||||
// Allow filter to short-circuit logic.
|
||||
|
|
@ -241,32 +226,23 @@ function acf_delete_metadata( $post_id = 0, $name = '', $hidden = false ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* acf_copy_postmeta
|
||||
*
|
||||
* Copies meta from one post to another. Useful for saving and restoring revisions.
|
||||
*
|
||||
* @date 25/06/2016
|
||||
* @since 5.3.8
|
||||
*
|
||||
* @param (int|string) $from_post_id The post id to copy from.
|
||||
* @param (int|string) $to_post_id The post id to paste to.
|
||||
* @return void
|
||||
* @param integer|string $from_post_id The post id to copy from.
|
||||
* @param integer|string $to_post_id The post id to paste to.
|
||||
* @return void
|
||||
*/
|
||||
function acf_copy_metadata( $from_post_id = 0, $to_post_id = 0 ) {
|
||||
|
||||
// Get all postmeta.
|
||||
// Get all metadata.
|
||||
$meta = acf_get_meta( $from_post_id );
|
||||
|
||||
// Check meta.
|
||||
if ( $meta ) {
|
||||
$decoded = acf_decode_post_id( $to_post_id );
|
||||
$instance = acf_get_meta_instance( $decoded['type'] );
|
||||
|
||||
// Slash data. WP expects all data to be slashed and will unslash it (fixes '\' character issues).
|
||||
$meta = wp_slash( $meta );
|
||||
|
||||
// Loop over meta.
|
||||
foreach ( $meta as $name => $value ) {
|
||||
acf_update_metadata( $to_post_id, $name, $value );
|
||||
}
|
||||
if ( $meta && $instance ) {
|
||||
$instance->update_meta( $decoded['id'], $meta );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -279,8 +255,8 @@ function acf_copy_metadata( $from_post_id = 0, $to_post_id = 0 ) {
|
|||
* @since 5.3.8
|
||||
* @deprecated 5.7.11
|
||||
*
|
||||
* @param int $from_post_id The post id to copy from.
|
||||
* @param int $to_post_id The post id to paste to.
|
||||
* @param integer $from_post_id The post id to copy from.
|
||||
* @param integer $to_post_id The post id to paste to.
|
||||
* @return void
|
||||
*/
|
||||
function acf_copy_postmeta( $from_post_id = 0, $to_post_id = 0 ) {
|
||||
|
|
@ -296,7 +272,7 @@ function acf_copy_postmeta( $from_post_id = 0, $to_post_id = 0 ) {
|
|||
* @date 21/1/19
|
||||
* @since 5.7.10
|
||||
*
|
||||
* @param string $key The meta name (field name).
|
||||
* @param string $key The meta name (field name).
|
||||
* @param (int|string) $post_id The post_id where this field's value is saved.
|
||||
* @return (array|false) The field array.
|
||||
*/
|
||||
|
|
@ -327,7 +303,7 @@ function acf_get_meta_field( $key = 0, $post_id = 0 ) {
|
|||
*
|
||||
* @param (int|string) $post_id The post id.
|
||||
* @param string type The reference type (fields|groups).
|
||||
* @param string $name An optional specific name
|
||||
* @param string $name An optional specific name
|
||||
* @return mixed
|
||||
*/
|
||||
function acf_get_metaref( $post_id = 0, $type = 'fields', $name = '' ) {
|
||||
|
|
@ -358,7 +334,7 @@ function acf_get_metaref( $post_id = 0, $type = 'fields', $name = '' ) {
|
|||
* @date 16/10/2015
|
||||
* @since 5.2.3
|
||||
*
|
||||
* @param (int|string) $post_id The post id.
|
||||
* @param (int|string) $post_id The post id.
|
||||
* @param string type The reference type (fields|groups).
|
||||
* @param array $references An array of references.
|
||||
* @return (int|bool) Meta ID if the key didn't exist, true on successful update, false on failure.
|
||||
|
|
@ -382,3 +358,155 @@ function acf_update_metaref( $post_id = 0, $type = 'fields', $references = array
|
|||
// Update metadata.
|
||||
return acf_update_metadata( $post_id, "_acf_$type", $references );
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves an ACF meta instance for the provided meta type.
|
||||
*
|
||||
* @since 6.4
|
||||
*
|
||||
* @param string $type The meta type as decoded from the post ID.
|
||||
* @return object|null
|
||||
*/
|
||||
function acf_get_meta_instance( string $type ): ?object {
|
||||
$instance = null;
|
||||
$meta_locations = acf_get_store( 'acf-meta-locations' );
|
||||
|
||||
if ( $meta_locations && $meta_locations->has( $type ) ) {
|
||||
$instance = acf_get_instance( $meta_locations->get( $type ) );
|
||||
}
|
||||
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets metadata from the database.
|
||||
*
|
||||
* @since 6.4
|
||||
*
|
||||
* @param integer|string $post_id The post id.
|
||||
* @param array $field The field array.
|
||||
* @param boolean $hidden True if we should return the reference key.
|
||||
* @return mixed
|
||||
*/
|
||||
function acf_get_metadata_by_field( $post_id = 0, $field = array(), bool $hidden = false ) {
|
||||
if ( empty( $field['name'] ) ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Allow filter to short-circuit logic.
|
||||
$null = apply_filters( 'acf/pre_load_metadata', null, $post_id, $field['name'], $hidden );
|
||||
if ( $null !== null ) {
|
||||
return ( $null === '__return_null' ) ? null : $null;
|
||||
}
|
||||
|
||||
// Decode the $post_id for $type and $id.
|
||||
$decoded = acf_decode_post_id( $post_id );
|
||||
$id = $decoded['id'];
|
||||
$type = $decoded['type'];
|
||||
|
||||
// Bail early if no $id (possible during new acf_form).
|
||||
if ( ! $id ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$meta_instance = acf_get_meta_instance( $type );
|
||||
|
||||
if ( ! $meta_instance ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( $hidden ) {
|
||||
return $meta_instance->get_reference( $id, $field['name'] );
|
||||
}
|
||||
|
||||
return $meta_instance->get_value( $id, $field );
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates metadata in the database.
|
||||
*
|
||||
* @since 6.4
|
||||
*
|
||||
* @param integer|string $post_id The post id.
|
||||
* @param array $field The field array.
|
||||
* @param mixed $value The meta value.
|
||||
* @param boolean $hidden True if we should update the reference key.
|
||||
* @return integer|boolean Meta ID if the key didn't exist, true on successful update, false on failure.
|
||||
*/
|
||||
function acf_update_metadata_by_field( $post_id = 0, $field = array(), $value = '', bool $hidden = false ) {
|
||||
if ( empty( $field['name'] ) ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Allow filter to short-circuit logic.
|
||||
$pre = apply_filters( 'acf/pre_update_metadata', null, $post_id, $field['name'], $value, $hidden );
|
||||
if ( $pre !== null ) {
|
||||
return $pre;
|
||||
}
|
||||
|
||||
// Decode the $post_id for $type and $id.
|
||||
$decoded = acf_decode_post_id( $post_id );
|
||||
$id = $decoded['id'];
|
||||
$type = $decoded['type'];
|
||||
|
||||
// Bail early if no $id (possible during new acf_form).
|
||||
if ( ! $id ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$meta_instance = acf_get_meta_instance( $type );
|
||||
|
||||
if ( ! $meta_instance ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( $hidden ) {
|
||||
return $meta_instance->update_reference( $id, $field['name'], $field['key'] );
|
||||
}
|
||||
|
||||
return $meta_instance->update_value( $id, $field, $value );
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes metadata from the database.
|
||||
*
|
||||
* @since 6.4
|
||||
*
|
||||
* @param integer|string $post_id The post id.
|
||||
* @param array $field The field array.
|
||||
* @param boolean $hidden True if we should update the reference key.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_delete_metadata_by_field( $post_id = 0, $field = array(), bool $hidden = false ) {
|
||||
if ( empty( $field['name'] ) ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Allow filter to short-circuit logic.
|
||||
$pre = apply_filters( 'acf/pre_delete_metadata', null, $post_id, $field['name'], $hidden );
|
||||
if ( $pre !== null ) {
|
||||
return $pre;
|
||||
}
|
||||
|
||||
// Decode the $post_id for $type and $id.
|
||||
$decoded = acf_decode_post_id( $post_id );
|
||||
$id = $decoded['id'];
|
||||
$type = $decoded['type'];
|
||||
|
||||
// Bail early if no $id (possible during new acf_form).
|
||||
if ( ! $id ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$meta_instance = acf_get_meta_instance( $type );
|
||||
|
||||
if ( ! $meta_instance ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( $hidden ) {
|
||||
return $meta_instance->delete_reference( $id, $field['name'] );
|
||||
}
|
||||
|
||||
return $meta_instance->delete_value( $id, $field );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns available templates for each post type.
|
||||
|
|
|
|||
|
|
@ -1,14 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Functions for ACF post type objects.
|
||||
*
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get an ACF CPT as an array
|
||||
*
|
||||
* @param int|string $id The post ID being queried.
|
||||
* @param integer|string $id The post ID being queried.
|
||||
* @return array|false The post type object.
|
||||
*/
|
||||
function acf_get_post_type( $id ) {
|
||||
|
|
@ -20,7 +24,7 @@ function acf_get_post_type( $id ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The post ID.
|
||||
* @param integer|string $id The post ID.
|
||||
* @return array|false The internal post type array.
|
||||
*/
|
||||
function acf_get_raw_post_type( $id ) {
|
||||
|
|
@ -32,8 +36,8 @@ function acf_get_raw_post_type( $id ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The post ID, key, or name.
|
||||
* @return object|bool The post object, or false on failure.
|
||||
* @param integer|string $id The post ID, key, or name.
|
||||
* @return object|boolean The post object, or false on failure.
|
||||
*/
|
||||
function acf_get_post_type_post( $id ) {
|
||||
return acf_get_internal_post_type_post( $id, 'acf-post-type' );
|
||||
|
|
@ -45,7 +49,7 @@ function acf_get_post_type_post( $id ) {
|
|||
* @since 6.1
|
||||
*
|
||||
* @param string $id The identifier.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_post_type_key( $id ) {
|
||||
return acf_is_internal_post_type_key( $id, 'acf-post-type' );
|
||||
|
|
@ -57,7 +61,7 @@ function acf_is_post_type_key( $id ) {
|
|||
* @since 6.1
|
||||
*
|
||||
* @param array $post_type The ACF post type array.
|
||||
* @return array|bool
|
||||
* @return array|boolean
|
||||
*/
|
||||
function acf_validate_post_type( array $post_type = array() ) {
|
||||
return acf_validate_internal_post_type( $post_type, 'acf-post-type' );
|
||||
|
|
@ -140,8 +144,8 @@ function acf_flush_post_type_cache( array $post_type ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The ACF post type ID, key or name.
|
||||
* @return bool True if post type was deleted.
|
||||
* @param integer|string $id The ACF post type ID, key or name.
|
||||
* @return boolean True if post type was deleted.
|
||||
*/
|
||||
function acf_delete_post_type( $id = 0 ) {
|
||||
return acf_delete_internal_post_type( $id, 'acf-post-type' );
|
||||
|
|
@ -152,8 +156,8 @@ function acf_delete_post_type( $id = 0 ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The post type ID, key, or name.
|
||||
* @return bool True if post was trashed.
|
||||
* @param integer|string $id The post type ID, key, or name.
|
||||
* @return boolean True if post was trashed.
|
||||
*/
|
||||
function acf_trash_post_type( $id = 0 ) {
|
||||
return acf_trash_internal_post_type( $id, 'acf-post-type' );
|
||||
|
|
@ -164,8 +168,8 @@ function acf_trash_post_type( $id = 0 ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The post type ID, key, or name.
|
||||
* @return bool True if post was untrashed.
|
||||
* @param integer|string $id The post type ID, key, or name.
|
||||
* @return boolean True if post was untrashed.
|
||||
*/
|
||||
function acf_untrash_post_type( $id = 0 ) {
|
||||
return acf_untrash_internal_post_type( $id, 'acf-post-type' );
|
||||
|
|
@ -177,7 +181,7 @@ function acf_untrash_post_type( $id = 0 ) {
|
|||
* @since 6.1
|
||||
*
|
||||
* @param array $post_type The ACF post type array.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_post_type( $post_type ) {
|
||||
return acf_is_internal_post_type( $post_type, 'acf-post-type' );
|
||||
|
|
@ -188,9 +192,9 @@ function acf_is_post_type( $post_type ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The ACF post type ID, key or name.
|
||||
* @param int $new_post_id Optional ID to override.
|
||||
* @return array|bool The new ACF post type, or false on failure.
|
||||
* @param integer|string $id The ACF post type ID, key or name.
|
||||
* @param integer $new_post_id Optional ID to override.
|
||||
* @return array|boolean The new ACF post type, or false on failure.
|
||||
*/
|
||||
function acf_duplicate_post_type( $id = 0, $new_post_id = 0 ) {
|
||||
return acf_duplicate_internal_post_type( $id, $new_post_id, 'acf-post-type' );
|
||||
|
|
@ -199,9 +203,9 @@ function acf_duplicate_post_type( $id = 0, $new_post_id = 0 ) {
|
|||
/**
|
||||
* Activates or deactivates an ACF post type.
|
||||
*
|
||||
* @param int|string $id The ACF post type ID, key or name.
|
||||
* @param bool $activate True if the post type should be activated.
|
||||
* @return bool
|
||||
* @param integer|string $id The ACF post type ID, key or name.
|
||||
* @param boolean $activate True if the post type should be activated.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_update_post_type_active_status( $id, $activate = true ) {
|
||||
return acf_update_internal_post_type_active_status( $id, $activate, 'acf-post-type' );
|
||||
|
|
@ -212,7 +216,7 @@ function acf_update_post_type_active_status( $id, $activate = true ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int $post_id The ACF post type ID.
|
||||
* @param integer $post_id The ACF post type ID.
|
||||
* @return string
|
||||
*/
|
||||
function acf_get_post_type_edit_link( $post_id ) {
|
||||
|
|
@ -237,7 +241,7 @@ function acf_prepare_post_type_for_export( array $post_type = array() ) {
|
|||
* @since 6.1
|
||||
*
|
||||
* @param array $post_type The ACF post type array.
|
||||
* @return string|bool
|
||||
* @return string|boolean
|
||||
*/
|
||||
function acf_export_post_type_as_php( array $post_type ) {
|
||||
return acf_export_internal_post_type_as_php( $post_type, 'acf-post-type' );
|
||||
|
|
|
|||
|
|
@ -1,14 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Functions for ACF taxonomy objects.
|
||||
*
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get an ACF taxonomy as an array
|
||||
*
|
||||
* @param int|string $id The post ID being queried.
|
||||
* @param integer|string $id The post ID being queried.
|
||||
* @return array|false The taxonomy object.
|
||||
*/
|
||||
function acf_get_taxonomy( $id ) {
|
||||
|
|
@ -20,7 +24,7 @@ function acf_get_taxonomy( $id ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The post ID.
|
||||
* @param integer|string $id The post ID.
|
||||
* @return array|false The taxonomy array.
|
||||
*/
|
||||
function acf_get_raw_taxonomy( $id ) {
|
||||
|
|
@ -32,8 +36,8 @@ function acf_get_raw_taxonomy( $id ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The post ID, key, or name.
|
||||
* @return object|bool The post object, or false on failure.
|
||||
* @param integer|string $id The post ID, key, or name.
|
||||
* @return object|boolean The post object, or false on failure.
|
||||
*/
|
||||
function acf_get_taxonomy_post( $id ) {
|
||||
return acf_get_internal_post_type_post( $id, 'acf-taxonomy' );
|
||||
|
|
@ -45,7 +49,7 @@ function acf_get_taxonomy_post( $id ) {
|
|||
* @since 6.1
|
||||
*
|
||||
* @param string $id The identifier.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_taxonomy_key( $id ) {
|
||||
return acf_is_internal_post_type_key( $id, 'acf-taxonomy' );
|
||||
|
|
@ -57,7 +61,7 @@ function acf_is_taxonomy_key( $id ) {
|
|||
* @since 6.1
|
||||
*
|
||||
* @param array $taxonomy The ACF taxonomy array.
|
||||
* @return array|bool
|
||||
* @return array|boolean
|
||||
*/
|
||||
function acf_validate_taxonomy( array $taxonomy = array() ) {
|
||||
return acf_validate_internal_post_type( $taxonomy, 'acf-taxonomy' );
|
||||
|
|
@ -140,8 +144,8 @@ function acf_flush_taxonomy_cache( array $taxonomy ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The ACF taxonomy ID, key or name.
|
||||
* @return bool True if taxonomy was deleted.
|
||||
* @param integer|string $id The ACF taxonomy ID, key or name.
|
||||
* @return boolean True if taxonomy was deleted.
|
||||
*/
|
||||
function acf_delete_taxonomy( $id = 0 ) {
|
||||
return acf_delete_internal_post_type( $id, 'acf-taxonomy' );
|
||||
|
|
@ -152,8 +156,8 @@ function acf_delete_taxonomy( $id = 0 ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The taxonomy ID, key, or name.
|
||||
* @return bool True if taxonomy was trashed.
|
||||
* @param integer|string $id The taxonomy ID, key, or name.
|
||||
* @return boolean True if taxonomy was trashed.
|
||||
*/
|
||||
function acf_trash_taxonomy( $id = 0 ) {
|
||||
return acf_trash_internal_post_type( $id, 'acf-taxonomy' );
|
||||
|
|
@ -164,8 +168,8 @@ function acf_trash_taxonomy( $id = 0 ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The taxonomy ID, key, or name.
|
||||
* @return bool True if taxonomy was untrashed.
|
||||
* @param integer|string $id The taxonomy ID, key, or name.
|
||||
* @return boolean True if taxonomy was untrashed.
|
||||
*/
|
||||
function acf_untrash_taxonomy( $id = 0 ) {
|
||||
return acf_untrash_internal_post_type( $id, 'acf-taxonomy' );
|
||||
|
|
@ -177,7 +181,7 @@ function acf_untrash_taxonomy( $id = 0 ) {
|
|||
* @since 6.1
|
||||
*
|
||||
* @param array $taxonomy The ACF taxonomy array.
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_is_taxonomy( $taxonomy ) {
|
||||
return acf_is_internal_post_type( $taxonomy, 'acf-taxonomy' );
|
||||
|
|
@ -188,9 +192,9 @@ function acf_is_taxonomy( $taxonomy ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int|string $id The ACF taxonomy ID, key or name.
|
||||
* @param int $new_post_id Optional ID to override.
|
||||
* @return array|bool The new ACF taxonomy, or false on failure.
|
||||
* @param integer|string $id The ACF taxonomy ID, key or name.
|
||||
* @param integer $new_post_id Optional ID to override.
|
||||
* @return array|boolean The new ACF taxonomy, or false on failure.
|
||||
*/
|
||||
function acf_duplicate_taxonomy( $id = 0, $new_post_id = 0 ) {
|
||||
return acf_duplicate_internal_post_type( $id, $new_post_id, 'acf-taxonomy' );
|
||||
|
|
@ -199,9 +203,9 @@ function acf_duplicate_taxonomy( $id = 0, $new_post_id = 0 ) {
|
|||
/**
|
||||
* Activates or deactivates an ACF taxonomy.
|
||||
*
|
||||
* @param int|string $id The ACF taxonomy ID, key or name.
|
||||
* @param bool $activate True if the taxonomy should be activated.
|
||||
* @return bool
|
||||
* @param integer|string $id The ACF taxonomy ID, key or name.
|
||||
* @param boolean $activate True if the taxonomy should be activated.
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_update_taxonomy_active_status( $id, $activate = true ) {
|
||||
return acf_update_internal_post_type_active_status( $id, $activate, 'acf-taxonomy' );
|
||||
|
|
@ -212,7 +216,7 @@ function acf_update_taxonomy_active_status( $id, $activate = true ) {
|
|||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param int $post_id The ACF taxonomy ID.
|
||||
* @param integer $post_id The ACF taxonomy ID.
|
||||
* @return string
|
||||
*/
|
||||
function acf_get_taxonomy_edit_link( $post_id ) {
|
||||
|
|
@ -237,7 +241,7 @@ function acf_prepare_taxonomy_for_export( array $taxonomy = array() ) {
|
|||
* @since 6.1
|
||||
*
|
||||
* @param array $taxonomy The ACF taxonomy array.
|
||||
* @return string|bool
|
||||
* @return string|boolean
|
||||
*/
|
||||
function acf_export_taxonomy_as_php( array $taxonomy ) {
|
||||
return acf_export_internal_post_type_as_php( $taxonomy, 'acf-taxonomy' );
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* @package ACF
|
||||
* @author WP Engine
|
||||
*
|
||||
* © 2025 Advanced Custom Fields (ACF®). All rights reserved.
|
||||
* "ACF" is a trademark of WP Engine.
|
||||
* Licensed under the GNU General Public License v2 or later.
|
||||
* https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* acf_get_users
|
||||
|
|
@ -100,7 +109,7 @@ function acf_get_user_role_labels( $roles = array() ) {
|
|||
* @since 5.7.10
|
||||
*
|
||||
* @param void
|
||||
* @return bool
|
||||
* @return boolean
|
||||
*/
|
||||
function acf_allow_unfiltered_html() {
|
||||
|
||||
|
|
|
|||