PluginProbe
Boxzilla – WordPress Popup Builder / 3.1.4
Boxzilla – WordPress Popup Builder v3.1.4
3.4.11 3.4.10 3.4.9 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 trunk 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 All 72 releases
← All changes | src/default-actions.php +1 -16 3.1.183.1.4 View file →
@@ -29,20 +29,5 @@
29 29 'query_var' => false
30 30 );
31 31
32 32 register_post_type( 'boxzilla-box', $args );
33 -
34 - add_shortcode( 'boxzilla_link', 'boxzilla_get_link_html' );
35 -});
36 -
37 -function boxzilla_get_link_html( $args = array(), $content = '' ) {
38 - $valid_actions = array(
39 - 'show',
40 - 'toggle',
41 - 'hide',
42 - 'dismiss'
43 - );
44 - $box_id = empty( $args['box'] ) ? '' : absint( $args['box'] );
45 - $class_attr = empty( $args['class'] ) ? '' : esc_attr( $args['class'] );
46 - $action = empty( $args['action'] ) || ! in_array( $args['action'], $valid_actions ) ? 'show' : $args['action'];
47 - return sprintf( '<a href="javascript:Boxzilla.%s(%s)" class="%s">', $action, $box_id, $class_attr ) . $content . '</a>';
48 -}
33 +});