Changeset 1935293
- Timestamp:
- 09/04/2018 04:57:04 AM (8 years ago)
- Location:
- dimage-360
- Files:
-
- 8 added
- 2 edited
-
tags/1.7 (added)
-
tags/1.7/css (added)
-
tags/1.7/css/dimage-style.css (added)
-
tags/1.7/d-image-360.php (added)
-
tags/1.7/js (added)
-
tags/1.7/js/photo-sphere-viewer.min.js (added)
-
tags/1.7/js/three.min.js (added)
-
tags/1.7/readme.txt (added)
-
trunk/d-image-360.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dimage-360/trunk/d-image-360.php
r1903965 r1935293 3 3 Plugin Name: DImage 360 4 4 Author URI: http://www.darteweb.com/ 5 Version: 1. 65 Version: 1.7 6 6 Author: D'arteweb 7 7 Description: DImage 360 is a plugin to embed a 360 view on your WordPress website. It's a user friendly and feature rich plugin to add a responsive 360deg view or 180deg panorama on website. 8 8 */ 9 function wp_dimage_360_scripts() {10 9 function wp_dimage_360_scripts() 10 { 11 11 wp_enqueue_style('dimage-style', plugins_url( 'css/dimage-style.css', __FILE__)); 12 12 wp_enqueue_script('photo-sphere-js1', plugins_url( 'js/photo-sphere-viewer.min.js', __FILE__),array('jquery'), true); … … 15 15 add_action('wp_enqueue_scripts','wp_dimage_360_scripts'); 16 16 17 function dimage_fun( $atts ) 18 { 17 19 18 function dimage_fun( $atts ) { 20 static $count = 0; 21 $count++; 19 22 20 static $count = 0; 21 $count++; 22 23 $atts = shortcode_atts( 24 array( 25 'auto-rotate'=>1000, 26 'url' => '', 27 'attachment_id'=>'', 28 'zoom_level'=>0, 29 'anim_speed'=>2, 30 'control'=>true 31 ), $atts, 'dimage' ); 32 33 23 $atts = shortcode_atts( 24 array( 25 'auto-rotate'=>1000, 26 'url' => '', 27 'position' => 0, 28 'attachment_id'=>'', 29 'zoom_level'=>0, 30 'anim_speed'=>2, 31 'control'=>true 32 ), $atts, 'dimage' ); 33 34 34 if(!empty($atts['attachment_id'])) 35 35 { 36 $url = wp_get_attachment_url($atts['attachment_id'], 'full' );36 $url = wp_get_attachment_url($atts['attachment_id'], 'full' ); 37 37 $atts['url'] = $url; 38 38 } 39 40 ob_start(); 39 ob_start(); 41 40 if($atts['url'] === '') 42 41 { … … 60 59 panorama: '<?php echo $atts['url']; ?>', 61 60 container: div, 61 default_position: {long: <?php echo $atts['position']?>/60}, 62 62 time_anim: <?php echo $atts['auto-rotate']; ?>, 63 63 navbar: <?php echo $atts['control']; ?>, 64 zoom_level: <?php echo $atts['zoom_level']; ?>,65 anim_speed: '<?php echo $atts['anim_speed']; ?>rpm',66 navbar_style: {64 zoom_level: <?php echo $atts['zoom_level']; ?>, 65 anim_speed: '<?php echo $atts['anim_speed']; ?>rpm', 66 navbar_style: { 67 67 backgroundColor: 'rgba(58, 67, 77, 0.7)' 68 68 }, … … 70 70 </script> 71 71 <?php 72 }72 } 73 73 return ob_get_clean(); 74 74 } -
dimage-360/trunk/readme.txt
r1934967 r1935293 35 35 <strong>zoom_level:</strong> You can set zoom level from 0 to 100. Default it setup as 0. 36 36 <strong>anim_speed:</strong> You can set animation speed from 0 to 100. Default it setup as 2. 37 <strong>default_position:</strong> Defines the default position, the first point seen by the user. Default it setup as 0. 37 38 38 39 <strong>Example</strong>`[dimage attachment_id="56" zoom_level="10" anim_speed="10"]` … … 72 73 * Zoom level from 0 to 100 functionality added through shortcode. 73 74 * Animation Speed from 0 to 100 functionality added through shortcode. 75 76 = 1.7 = 77 78 * Release date: September 04, 2018 79 * Default position functionality added through shortcode.
Note: See TracChangeset
for help on using the changeset viewer.