Skip to content

Commit

Permalink
Adding show/hide services CTA
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdish1o1 committed Aug 6, 2024
1 parent 0741572 commit 56cf1d8
Show file tree
Hide file tree
Showing 694 changed files with 105,283 additions and 81,051 deletions.
27 changes: 27 additions & 0 deletions includes/acf-v6.3.5/README.md
Original file line number Diff line number Diff line change
@@ -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/)
47 changes: 22 additions & 25 deletions includes/acf/acf.php → includes/acf-v6.3.5/acf.php
Original file line number Diff line number Diff line change
@@ -1,46 +1,27 @@
<?php
/**
* Advanced Custom Fields PRO
* Advanced Custom Fields
*
* @package ACF
* @author WP Engine
*
* @wordpress-plugin
* Plugin Name: Advanced Custom Fields PRO
* Plugin Name: Advanced Custom Fields
* Plugin URI: https://www.advancedcustomfields.com
* Description: Customize WordPress with powerful, professional and intuitive fields.
* Version: 6.2.9
* Version: 6.3.5
* 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.0
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

$lic_data = base64_encode(
maybe_serialize(
array(
'key' => '********',
'url' => home_url(),
)
)
);
update_option('acf_pro_license', $lic_data);
update_option('acf_pro_license_status', array('status' => 'active', 'next_check' => time() * 9));
add_action('init', function () {
add_filter('pre_http_request', function ($pre, $url, $request_args) {
if (is_string($url) && strpos($url, 'https://connect.advancedcustomfields.com/') !== false) {
return array('response' => array('code' => 200, 'message' => 'OK'));
}
return $pre;
}, 10, 3);
});
if ( ! class_exists( 'ACF' ) ) {

/**
Expand All @@ -54,7 +35,7 @@ class ACF {
*
* @var string
*/
public $version = '6.2.9';
public $version = '6.3.5';

/**
* The plugin settings array.
Expand Down Expand Up @@ -161,6 +142,7 @@ public function initialize() {
// Include classes.
acf_include( 'includes/class-acf-data.php' );
acf_include( 'includes/class-acf-internal-post-type.php' );
acf_include( 'includes/class-acf-site-health.php' );
acf_include( 'includes/fields/class-acf-field.php' );
acf_include( 'includes/locations/abstract-acf-legacy-location.php' );
acf_include( 'includes/locations/abstract-acf-location.php' );
Expand All @@ -182,6 +164,14 @@ public function initialize() {
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' );
Expand Down Expand Up @@ -323,6 +313,7 @@ public function init() {
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' );
Expand Down Expand Up @@ -780,8 +771,14 @@ public function acf_plugin_activated() {
// 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' );
}
}
}

Expand Down
File renamed without changes.
Loading

0 comments on commit 56cf1d8

Please sign in to comment.