EloB
Forum Replies Created
-
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Namespace your classesHi Mate!
Any progress on this one? ??
Can you start a Github project so everyone can pull-request? I really appreciate your hard work and want to contribute for this awesome plugin.
Here is a tutorial to maintain a project in both svn and git for wordpress without any sufficient overhead:
https://gist.github.com/kasparsd/3749872Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Bug with namespaced widgetsHi Mate!
Great but I doesn’t work… It only works the first time you save but when you click update the widget will get removed… You must addslashes to the class…
$info['class'] = get_class($the_widget);
To
$info['class'] = addslashes(get_class($the_widget));
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Moving a wordpress site with Page BuilderHere you have the SQL:
SELECT * FROM wp_postmeta WHERE meta_key = 'panels_data';
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Moving a wordpress site with Page BuilderIam not sure that he implemented that feature for export/import but goto your old database and grab the data from wp_postmeta…
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Bug with namespaced widgetsAwesome! ??
[Moderator Note: No bumping, thank you.]
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Bug with namespaced widgetsThis wasn’t a jQuery bug. They closed the bug report. So we need either my posted solution or fix the bug. ??
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Bug with namespaced widgetsHere is a better solution:
In siteorigin-panels.php:399
foreach ( $panels_data['widgets'] as $i => $widget ) { $info = $widget['info']; if ( !class_exists( $widget['info']['class'] ) ) continue; $the_widget = new $widget['info']['class']; if ( method_exists( $the_widget, 'update' ) ) { unset( $widget['info'] ); $widget = $the_widget->update( $widget, $widget ); } $widget['info'] = $info; $panels_data['widgets'][$i] = $widget; }
Change to:
foreach ( $panels_data['widgets'] as $i => $widget ) { $info = $widget['info']; if ( !class_exists( $widget['info']['class'] ) ) continue; $the_widget = new $widget['info']['class']; if ( method_exists( $the_widget, 'update' ) ) { unset( $widget['info'] ); $widget = $the_widget->update( $widget, $widget ); } $info['class'] = addslashes($info['class']); $widget['info'] = $info; $panels_data['widgets'][$i] = $widget; }
And in js/panels.admin.panels:42
var $$ = dialogWrapper.find('.panel-type[data-class="' + type + '"]' );
Change to:
var $$ = dialogWrapper.find('.panel-type' ).filter(function() { return $(this).data('class') === type });