Plugin Directory

Changeset 1459977


Ignore:
Timestamp:
07/25/2016 02:32:03 AM (10 years ago)
Author:
nemolade
Message:

version updata 1.0.5

Location:
nemo-frame/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • nemo-frame/trunk/classes/nemoframe-settings.php

    r1273676 r1459977  
    6464         */
    6565        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' );
    6768            add_action( 'show_user_profile',        __CLASS__ . '::add_user_fields' );
    6869            add_action( 'edit_user_profile',        __CLASS__ . '::add_user_fields' );
     
    7778                __CLASS__ . '::add_plugin_action_links'
    7879            );
     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>';
    7993        }
    8094
  • nemo-frame/trunk/classes/nemoframe.php

    r1431989 r1459977  
    1212        protected $modules;
    1313
    14         const VERSION    = '1.0.4';
     14        const VERSION    = '1.0.5';
    1515        const PREFIX     = 'nemoframe_';
    1616        const DEBUG_MODE = false;
     
    171171                'cube_pos' => 1,
    172172                'plane_color' => '#fcee21',
    173                 'width' => '600px',
    174                 'height' => '300px',
     173                'width' => '0',
     174                'height' => '0',
    175175                'cube_map' => 'false',
    176176                'shadow_button' => 'false',
    177                 'animation' => 'true'
     177                'animation' => 'true',
     178                'ads_pos' => 'basic'
    178179            ), $atts);
    179180
  • nemo-frame/trunk/readme.txt

    r1431985 r1459977  
    33Author: Nemolade Inc.
    44Author URI: http://www.nemolade.com
    5 Stable tag: 1.0.4
     5Stable tag: 1.0.5
    66Contributors: nemolade
    77Tags: 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;">
    22<script>
    33    jQuery(document).ready(function() {
     
    1212            nemoMapWidget: <?php esc_attr_e($attributes['cube_map']); ?>,
    1313            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']); ?>'
    1518        });
    1619    });
Note: See TracChangeset for help on using the changeset viewer.