Changeset 1459977
- Timestamp:
- 07/25/2016 02:32:03 AM (10 years ago)
- Location:
- nemo-frame/trunk
- Files:
-
- 4 edited
-
classes/nemoframe-settings.php (modified) (2 diffs)
-
classes/nemoframe.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
views/nemoframe.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nemo-frame/trunk/classes/nemoframe-settings.php
r1273676 r1459977 64 64 */ 65 65 public function register_hook_callbacks() { 66 add_action( 'admin_menu', __CLASS__ . '::register_settings_pages' ); 66 // add_action( 'admin_menu', __CLASS__ . '::register_settings_pages' ); 67 add_action( 'admin_menu', 'my_plugin_menu' ); 67 68 add_action( 'show_user_profile', __CLASS__ . '::add_user_fields' ); 68 69 add_action( 'edit_user_profile', __CLASS__ . '::add_user_fields' ); … … 77 78 __CLASS__ . '::add_plugin_action_links' 78 79 ); 80 } 81 82 function my_plugin_menu() { 83 add_options_page( 'My Plugin Options', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options' ); 84 } 85 86 function my_plugin_options() { 87 if ( !current_user_can( 'manage_options' ) ) { 88 wp_die( __( 'You do not have sufficient permissions to access this page.' ) ); 89 } 90 echo '<div class="wrap">'; 91 echo '<p>Here is where the form would go if I actually had options.</p>'; 92 echo '</div>'; 79 93 } 80 94 -
nemo-frame/trunk/classes/nemoframe.php
r1431989 r1459977 12 12 protected $modules; 13 13 14 const VERSION = '1.0. 4';14 const VERSION = '1.0.5'; 15 15 const PREFIX = 'nemoframe_'; 16 16 const DEBUG_MODE = false; … … 171 171 'cube_pos' => 1, 172 172 'plane_color' => '#fcee21', 173 'width' => ' 600px',174 'height' => ' 300px',173 'width' => '0', 174 'height' => '0', 175 175 'cube_map' => 'false', 176 176 'shadow_button' => 'false', 177 'animation' => 'true' 177 'animation' => 'true', 178 'ads_pos' => 'basic' 178 179 ), $atts); 179 180 -
nemo-frame/trunk/readme.txt
r1431985 r1459977 3 3 Author: Nemolade Inc. 4 4 Author URI: http://www.nemolade.com 5 Stable tag: 1.0. 45 Stable tag: 1.0.5 6 6 Contributors: nemolade 7 7 Tags: nemolade, nemoframe, nemo, frame, iframe, image, shortcode -
nemo-frame/trunk/views/nemoframe.php
r1431985 r1459977 1 <div id="<?php esc_attr_e($attributes['id']); ?>" style="position:relative; width:<?php esc_attr_e($attributes['width']); ?>;height:<?php esc_attr_e($attributes['height']); ?>;">1 <div id="<?php esc_attr_e($attributes['id']); ?>" style="position:relative;"> 2 2 <script> 3 3 jQuery(document).ready(function() { … … 12 12 nemoMapWidget: <?php esc_attr_e($attributes['cube_map']); ?>, 13 13 showShadow: <?php esc_attr_e($attributes['shadow_button']); ?>, 14 animation: '<?php esc_attr_e($attributes['animation']); ?>' 14 animation: '<?php esc_attr_e($attributes['animation']); ?>', 15 width: '<?php esc_attr_e($attributes['width']); ?>', 16 height: '<?php esc_attr_e($attributes['height']); ?>', 17 ads_pos: '<?php esc_attr_e($attributes['ads_pos']); ?>' 15 18 }); 16 19 });
Note: See TracChangeset
for help on using the changeset viewer.