Changeset 1684692
- Timestamp:
- 06/24/2017 11:09:22 AM (9 years ago)
- Location:
- custom-field-list-widget/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
widget_custom_field_list.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-field-list-widget/trunk/readme.txt
r854324 r1684692 3 3 Tags: custom field, meta information, guest list, widget, multiple widgets 4 4 Requires at least: 2.7 5 Tested up to: 3.8.16 Stable tag: 1.2. 75 Tested up to: 4.8 6 Stable tag: 1.2.8 7 7 8 8 This plugin creates lists of custom field information in the form of sidebar widgets. … … 43 43 44 44 * widget\_custom\_field\_list.php 45 * widget\_custom\_field\_list\_js.php46 45 * widget\_custom\_field\_list\_individual\_href.php 47 46 * widget\_custom\_field\_list\_individual\_href\_advice.php 48 47 * widget\_custom\_field\_list\_individual\_href\_save\_data.php 48 * widget\_custom\_field\_list\_js.php 49 49 * widget\_custom\_field\_list\_long\_selectbox.php 50 50 * widget\_custom\_field\_list.css 51 * widget\_custom\_field\_list\_widgetsettings.css 52 * customfieldlist-de\_DE.mo (German localization file) 53 * customfieldlist-de\_DE.po (German localization file) 54 * customfieldlist-bg\_BG.mo (Bulgarian localization file) 55 * customfieldlist-bg\_BG.po (Bulgarian localization file) 56 * customfieldlist-hi\_IN.mo (Hindi localization file) 57 * customfieldlist-hi\_IN.po (Hindi localization file) 58 * customfieldlist-dk\_DK.mo (Danish localization file) 59 * customfieldlist-dk\_DK.po (Danish localization file) 60 * customfieldlist-ru\_RU.mo (Russian localization file) 61 * customfieldlist-ru\_RU.po (Russian localization file) 62 * customfieldlist-uz\_UZ.mo (Uzbek localization file) 63 * customfieldlist-uz\_UZ.po (Uzbek localization file) 51 * style\\widget_custom_field_list.css 52 * style\\widget\_custom\_field\_list\_widgetsettings.css 53 * languages\\customfieldlist-de\_DE.mo (German localization file) 54 * languages\\customfieldlist-de\_DE.po (German localization file) 55 * languages\\customfieldlist-bg\_BG.mo (Bulgarian localization file) 56 * languages\\customfieldlist-bg\_BG.po (Bulgarian localization file) 57 * languages\\customfieldlist-hi\_IN.mo (Hindi localization file) 58 * languages\\customfieldlist-hi\_IN.po (Hindi localization file) 59 * languages\\customfieldlist-dk\_DK.mo (Danish localization file) 60 * languages\\customfieldlist-dk\_DK.po (Danish localization file) 61 * languages\\customfieldlist-ru\_RU.mo (Russian localization file) 62 * languages\\customfieldlist-ru\_RU.po (Russian localization file) 63 * languages\\customfieldlist-uz\_UZ.mo (Uzbek localization file) 64 * languages\\customfieldlist-uz\_UZ.po (Uzbek localization file) 64 65 * uninstall.php 65 66 … … 148 149 149 150 == Changelog == 151 152 = v1.2.8 = 153 * minor improvement 150 154 151 155 = v1.2.7 = -
custom-field-list-widget/trunk/widget_custom_field_list.php
r854324 r1684692 5 5 Description: This plugin creates sidebar widgets with lists of the values of a custom field (name). The listed values can be (hyper-)linked in different ways. 6 6 Author: Tim Berger 7 Version: 1.2. 77 Version: 1.2.8 8 8 Author URI: http://undeuxoutrois.de/ 9 9 Min WP Version: 2.7 10 Max WP Version: 3.8.110 Max WP Version: 4.8 11 11 License: GNU General Public License 12 Text Domain: customfieldlist 12 13 13 14 Requirements: … … 27 28 For detailed information about the usage of this plugin, please read the readme.txt. 28 29 29 Copyright 201 4Tim Berger (email : be.tim.info@web.de)30 Copyright 2017 Tim Berger (email : be.tim.info@web.de) 30 31 31 32 This program is free software; you can redistribute it and/or modify … … 46 47 47 48 */ 48 49 function my_plugin_load_plugin_textdomain() { 50 load_plugin_textdomain( 'my-plugin', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); 51 } 52 add_action( 'plugins_loaded', 'my_plugin_load_plugin_textdomain' ); 49 53 50 54 add_action('plugins_loaded', 'customfieldlist_init'); 51 55 function customfieldlist_init() { 56 global $wp_version; 52 57 // ####################################################################################### 53 58 // max. number of hierarchy steps resp. number of … … 62 67 if ( ! defined( 'CUSTOM_FIELD_LIST_WIDGET_DIR' ) ) { define( 'CUSTOM_FIELD_LIST_WIDGET_DIR', WP_PLUGIN_DIR.'/'.dirname(plugin_basename(__FILE__)) ); } 63 68 if ( ! defined( 'CUSTOM_FIELD_LIST_WIDGET_URL' ) ) { define( 'CUSTOM_FIELD_LIST_WIDGET_URL', WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__)) ); } 64 69 65 70 // load the translation file 66 if (function_exists('load_plugin_textdomain')) { 67 load_plugin_textdomain( 'customfieldlist', false, str_replace(WP_PLUGIN_DIR.'/languages', '', CUSTOM_FIELD_LIST_WIDGET_DIR) ); 71 if ( function_exists('load_plugin_textdomain') ) { 72 if ( version_compare( $wp_version, '2.7', '>=' ) ) { 73 load_plugin_textdomain( 'customfieldlist', FALSE, str_replace(WP_PLUGIN_DIR.'/', '', CUSTOM_FIELD_LIST_WIDGET_DIR.'/languages/') ); 74 } else { 75 load_plugin_textdomain( 'customfieldlist', FALSE, CUSTOM_FIELD_LIST_WIDGET_DIR.'/languages/' ); 76 } 68 77 } 69 78 } … … 370 379 371 380 // helper function - only for development purposes 372 function customfieldlist_var_dump($var) {381 /*function customfieldlist_var_dump($var) { 373 382 // write the out put to the log file 374 383 $filename = CUSTOM_FIELD_LIST_WIDGET_DIR.'/widget_custom_field_list_cronlog.dat'; … … 382 391 if (is_file($filename)) {chmod ($filename, 0644);} 383 392 } 393 */ 384 394 385 395 function customfieldlist_get_parts_of_strings($output_array=array(), $list_part_nr_type='1Lfront') {
Note: See TracChangeset
for help on using the changeset viewer.