Changeset 1052711
- Timestamp:
- 12/23/2014 03:19:09 PM (11 years ago)
- Location:
- usernoise/trunk
- Files:
-
- 3 edited
-
admin/settings.php (modified) (3 diffs)
-
usernoise.php (modified) (4 diffs)
-
vendor/plugin-options-framework/plugin-options-framework.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
usernoise/trunk/admin/settings.php
r950056 r1052711 32 32 'Arial', 'Georgia', 'Palatino')); 33 33 sort($fonts); 34 $positions = array('left' => __('Left' ), 'right' => __('Right'), 'top' => __('Top'),35 'bottom' => __('Bottom' ));34 $positions = array('left' => __('Left','usernoise'), 'right' => __('Right', 'usernoise'), 'top' => __('Top', 'usernoise'), 35 'bottom' => __('Bottom', 'usernoise')); 36 36 $general_options = array( 37 37 array('type' => 'tab', 'title' => __('General', 'usernoise')), … … 86 86 'title' => __('Introductional text', 'usernoise'), 87 87 'default' => __('Please tell us what do you think, any kind of feedback is highly appreciated.', 'usernoise'), 88 'legend' => __('This text will be wrapped into <p> tag. You can still use HTML code.' ),88 'legend' => __('This text will be wrapped into <p> tag. You can still use HTML code.', 'usernoise'), 89 89 'rows' => 5), 90 90 array('type' => 'text', 'name' => UN_FEEDBACK_TEXTAREA_PLACEHOLDER, 'default' => __('Your feedback', 'usernoise'), 'title' => __('Textarea placeholder', 'usernoise')), … … 118 118 'title' => __('Thank you text', 'usernoise'), 119 119 'default' => __('Your feedback has been received.', 'usernoise'), 120 'legend' => __('This text will be wrapped into <p> tag. You can still use HTML code.' ),120 'legend' => __('This text will be wrapped into <p> tag. You can still use HTML code.', 'usernoise'), 121 121 'rows' => '5')); 122 122 $notification_options = array( -
usernoise/trunk/usernoise.php
r1007686 r1052711 17 17 define('USERNOISE_DIR', dirname(plugin_basename(__FILE__))); 18 18 define('USERNOISE_MAIN', __FILE__); 19 define('USERNOISE_PATH', dirname(__FILE__)); 19 20 20 21 define('UN_FEEDBACK_FORM_TITLE', 'feedback_form_title'); … … 48 49 define('UN_DISABLE_ON_MOBILES', 'disable_on_mobiles'); 49 50 define('UN_LOAD_IN_FOOTER', 'load_in_footer'); 50 require( dirname(USERNOISE_MAIN).'/vendor/plugin-options-framework/plugin-options-framework.php');51 require(USERNOISE_PATH .'/vendor/plugin-options-framework/plugin-options-framework.php'); 51 52 $un_h = new HTML_Helpers_0_4; 52 require( dirname(USERNOISE_MAIN).'/inc/template.php');53 require(USERNOISE_PATH .'/inc/template.php'); 53 54 54 require( dirname(USERNOISE_MAIN). '/inc/termmeta-api.php');55 require(USERNOISE_PATH . '/inc/termmeta-api.php'); 55 56 if (is_admin()) require(usernoise_path('/admin/upgrade.php')); 56 57 require(usernoise_path('/admin/settings.php')); … … 78 79 79 80 function un_get_feedback_capabilities(){ 80 return array('edit_un_feedback_items', 'edit_un_feedback', 'delete_un_feedback', 81 'publish_un_feedback', 'publish_un_feedback_items', 81 return array('edit_un_feedback_items', 'edit_un_feedback', 'delete_un_feedback', 82 'publish_un_feedback', 'publish_un_feedback_items', 82 83 'edit_others_un_feedback_items', 'edit_published_un_feedback'); 83 84 } … … 87 88 88 89 function un_activation_hook(){ 89 90 90 91 } 91 92 -
usernoise/trunk/vendor/plugin-options-framework/plugin-options-framework.php
r950056 r1052711 221 221 ?> 222 222 <div id="pof-submit"> 223 <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e( 'Save Options' ); ?>" />224 <input type="submit" class="reset-button button-secondary hide-if-no-js" value="<?php esc_attr_e( 'Restore Defaults' ); ?>" onclick="return confirm( '<?php print esc_js( __( 'Click OK to reset. All the settings will be reset to defaults!' ) ); ?>' );" id="button-reset" />223 <input type="submit" class="button-primary" name="update" value="<?php esc_attr_e( 'Save Options', 'usernoise' ); ?>" /> 224 <input type="submit" class="reset-button button-secondary hide-if-no-js" value="<?php esc_attr_e( 'Restore Defaults', 'usernoise' ); ?>" onclick="return confirm( '<?php print esc_js( __( 'Click OK to reset. All the settings will be reset to defaults!' ) ); ?>' );" id="button-reset" /> 225 225 <div class="clear"></div> 226 226 </div> … … 299 299 <div class="pof-color-picker"> 300 300 <?php $this->h->text_field($this->input_name($field['name']), $this->pof->get_option($field['name'])); ?> 301 <input type="button" class="pickcolor button hide-if-no-js" value="<?php esc_attr_e( 'Select a Color' ); ?>" />301 <input type="button" class="pickcolor button hide-if-no-js" value="<?php esc_attr_e( 'Select a Color', 'usernoise'); ?>" /> 302 302 <div class="picker" id="picker-<?php echo sanitize_title_with_dashes($field['name']) ?>" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div> 303 303 </div>
Note: See TracChangeset
for help on using the changeset viewer.