Git Product home page Git Product logo

mb-elementor-integrator's People

Contributors

huubl avatar maximseshuk avatar nhatrangnet avatar rilwis avatar tuankiet2605 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mb-elementor-integrator's Issues

Bug: container with background image not working

Hi,

I'm using a container with a background image filled with the image advanced field. The last update broke this.

A container is NULL here:

$widget = CurrentWidget::name();

The default function doesn't work for the background image:

private function default( array $images ) : array {
return isset( $images['ID'] ) ? $this->format( $images ) : array_map( [ $this, 'format' ], $images );
}

This fixes my problem:
#24

Support for Post field

Thanks for this extension, I already like it a lot!

I would like to display the value of a post field (one or multiple posts) as a link. Ideally selecting both the post title and permalink should be possible, so a link to the selected post can be displayed.

Error with count() function

Hi

Further to the fix for the Error with count() function c0cec1a I would propose changing line 257 in the GroupField.php file to check for a null value in $valueField prior to the other checks. My proposal is:

        if ( ( null !== $valueField ) || ( is_array( $valueField ) && 0 == count( $valueField ) ) ) {
            return true;
        }

Without it, when I have a null value in $valueField, I'm seeing a fatal error as follows:

Fatal error: Uncaught Error: array_column(): Argument #1 ($array) must be of type array, null given
in /www/site_953/public/wp-content/plugins/mb-elementor-integrator/src/GroupField.php on line 270

Hope this helps.

Single image not working

Hi,

I have an image advanced field limited to one image. But when selecting the image field in Elementor it's not showing up.

Settings:

array(
    'id' => 'header-image',
    'type' => 'image_advanced',
    'name' => 'image',
    'max_file_uploads' => '1',
    'class' => 'image-header-upload',
),

var_dump output of $images = $this->handle_get_value();

Array (
    [20161] => Array (
            [width] => 150
            [height] => 150
            [file] => 2022/07/banner.jpg
            ....
            [ID] => 20161
            [name] => banner-scaled-e1650976727162.jpg
            ....
        )
)

According to the output above $images['ID'] won't work:

// Single image.
if ( isset( $images['ID'] ) ) {
return [
'id' => $images['ID'],
'url' => $images['full_url'],
];
}

It works when replaced with:

// Single image.
if ( count( $images) === 1 ) {
	$images = $images[array_key_first($images)];

	return [
		'id'  => $images['ID'],
		'url' => $images['full_url'],
	];
}

Undefined array key in Settings

Hi, I've got the following error in PHP logs when accessing a URL setting value from Elementor.

Warning: Undefined array key "mime_type" in /var/www/html/wp-content/plugins/mb-elementor-integrator/src/Traits/Settings.php on line 53

Looking up the code, I see that there is no check that the key $field['mime_type'] exists, and not existing is a valid condition. In my case it's a url type.

502 Bad Gateway after update plugin

Message: Hi!
I just updated Meta Box - Elementor Integrator and Meta Box AIO to the latest version. After this update I get a 502 Bad Gateway on the frontend.

If I deactivate Meta Box - Elementor Integrator, the site start working again.

I have Elementor Pro installed with the version: 3.7.2

I have done following:

  1. deactiveted all the plugin's = site start working.
  2. activeted one plungin after eachother and testing the front end. Everything works correct intil I active Meta Box - Elementor Integrator.

Error with rwmb_get_registry()

If i install and try to use the plugin with Elementor i get the following Error:
Fatal error: Uncaught Error: Call to undefined function MBEI\Traits\rwmb_get_registry() in /Users/daniel/src/wordpress-codeanker/wp-content/plugins/mb-elementor-integrator/src/Traits/Base.php:32 Stack trace: #0 /Users/daniel/src/wordpress-codeanker/wp-content/plugins/mb-elementor-integrator/src/Traits/Post.php(12): MBEI\Tags\Post\Text->get_fields_by_object_type('post') #1 /Users/daniel/src/wordpress-codeanker/wp-content/plugins/mb-elementor-integrator/src/Traits/Base.php(27): MBEI\Tags\Post\Text->get_option_groups() #2 /Users/daniel/src/wordpress-codeanker/wp-content/plugins/elementor/core/dynamic-tags/base-tag.php(173): MBEI\Tags\Post\Text->_register_controls() #3 /Users/daniel/src/wordpress-codeanker/wp-content/plugins/elementor/includes/base/controls-stack.php(488): Elementor\Core\DynamicTags\Base_Tag->init_controls() #4 /Users/daniel/src/wordpress-codeanker/wp-content/plugins/elementor/includes/base/controls-stack.php(281): Elementor\Controls_Stack->get_stack() #5 /Users/daniel/src/wordpress-codeanker/wp-content/plugi in /Users/daniel/src/wordpress-codeanker/wp-content/plugins/mb-elementor-integrator/src/Traits/Base.php on line 32

Question about group field and elementor integration

Hello, how are you? Just a couple of questions because ...
First of all, is it possible to create an elementor template for a group field?
An if yes, is it possible to use this template inside another Elementor template like a post loop or archive template etc?
I know this is possible with Jetengine repeaters and ACF repeaters combined with various elementor plugins but i cannot find any info about meta box...

Thank you in advance!
Regards

Add Support for Number

The Elementor widget Star Rating looks for a number for the rating

		$this->add_control(
			'rating',
			[
				'label' => __( 'Rating', 'elementor' ),
				'type' => Controls_Manager::NUMBER,
				'min' => 0,
				'max' => 10,
				'step' => 0.1,
				'default' => 5,
				'dynamic' => [
					'active' => true,
				],
			]
		);

When you click the dynamic icon for the rating the Meta Box select option does not show.

mb-elementor-star-rating

Here is the definition of the number field in MB Custom FIelds

mb-number-field

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.