Changeset 1920776
- Timestamp:
- 08/07/2018 06:06:42 AM (8 years ago)
- File:
-
- 1 copied
-
zingtree/trunk/zingtree.php (copied) (copied from zingtree/trunk/zingtree.php) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zingtree/trunk/zingtree.php
r1708798 r1920776 4 4 Plugin URI: http://wordpress.org/plugins/zingtree/ 5 5 Description: [zingtree name="Zingtree" id="123456789" ] shortcode 6 Version: 4.06 Version: 5.0 7 7 Author: Zingtree 8 8 Author URI: https://zingtree.com … … 18 18 { 19 19 // Register the script like this for a plugin: 20 wp_register_script( 'zt-popup-modal', plugins_url( '/js/zt-popup-modal.js', __FILE__ ) );20 wp_register_script( 'zt-popup-modal', plugins_url( '/js/zt-popup-modal.js', __FILE__ ), array( 'jquery' ), false, true ); 21 21 // Enqueue the script: 22 22 wp_enqueue_script( 'zt-popup-modal' ); … … 56 56 'button_color' => '#314D68', // background color for popup buttons 57 57 'button_text' => 'Open Zingtree', // the text of the button 58 59 // version 5.0 60 61 'show_history' => '', // =1 to embed history 62 'show_breadcrumbs' => '', // =1 to embed breadcrumbs 63 64 58 65 ); 59 66 … … 78 85 if ($persist_names != '') 79 86 $parms .= "&persist_names=$persist_names&persist_node_ids=$persist_node_ids&disable_scroll=1" ; 87 88 89 // show history or breadcrumbs 90 91 if ($atts['show_history'] == "yes") 92 $parms .= "&embed_history=1" ; 93 94 if ($atts['show_breadcrumbs'] == "yes") 95 $parms .= "&embed_breadcrumbs=1" ; 80 96 81 97
Note: See TracChangeset
for help on using the changeset viewer.