Changeset 2049202
- Timestamp:
- 03/12/2019 05:24:49 PM (7 years ago)
- Location:
- wpmu-linkmanager/trunk
- Files:
-
- 4 edited
-
i18n/wplerlm-de_DE.mo (modified) (previous)
-
i18n/wplerlm-de_DE.po (modified) (2 diffs)
-
i18n/wplerlm-de_DE.pot (modified) (1 diff)
-
wpmu_linkmanager.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpmu-linkmanager/trunk/i18n/wplerlm-de_DE.po
r605684 r2049202 5 5 "PO-Revision-Date: \n" 6 6 "Last-Translator: Stefan Jacomeit <[email protected]>\n" 7 "Language-Team: WPler <[email protected]>\n" 7 "Language-Team: WPler <[email protected]>\n" 8 "Language: de\n" 8 9 "MIME-Version: 1.0\n" 9 10 "Content-Type: text/plain; charset=UTF-8\n" 10 11 "Content-Transfer-Encoding: 8bit\n" 11 "X-Generator: Poedit 1.5.3\n" 12 "Language: German\n" 12 "X-Generator: Poedit 2.2.1\n" 13 13 "X-Poedit-SourceCharset: UTF-8\n" 14 "X-Poedit-Basepath: ..\n" 15 "X-Poedit-SearchPath-0: .\n" 16 "X-Poedit-SearchPath-1: wpmu_linkmanager.php\n" 14 17 15 18 msgid "WPler LinkManager" … … 100 103 msgstr "Speichern" 101 104 102 msgid "This plugin works on ly into multisites"105 msgid "This plugin works on multisites only" 103 106 msgstr "Dieses Plugin funktioniert nur in Multisites" 107 108 msgid "Help" 109 msgstr "Hilfe" 110 111 msgid "" 112 "To display your links in the blogs on this network use the follow function " 113 "on the place where the link should shown:" 114 msgstr "" 115 "Um die Link in den Blogs in diesem Netzwerk anzuzeigen benutze folgende " 116 "Funktion an der Stelle wo der Link angezeigt werden sollte:" 117 118 msgid "" 119 "Place this PHP function on the childtheme template file (i.e. footer.php), " 120 "where the link should shown. The shortcode identify the blog id and get the " 121 "correct link, which you have saved for the blog." 122 msgstr "" 123 "Platziere diese PHP Funktion in der Childtheme Datei (z.b. footer.php), wo " 124 "der Link angezeigt werden soll. Der Shortcode identifiziert die Blog ID und " 125 "zeigt den korrekten Link, welcher für diesen Blog gespeichert wurde, an." -
wpmu-linkmanager/trunk/i18n/wplerlm-de_DE.pot
r605684 r2049202 89 89 msgstr "Speichern" 90 90 91 msgid "This plugin works on ly into multisites"91 msgid "This plugin works on multisites only" 92 92 msgstr "Dieses Plugin funktioniert nur in Multisites" 93 94 msgid "Help" 95 msgstr "Hilfe" 96 97 msgid "To display your links in the blogs on this network use the follow function on the place where the link should shown:" 98 msgstr "" 99 100 msgid "Place this PHP function on the childtheme template file (i.e. footer.php), where the link should shown. The shortcode identify the blog id and get the correct link, which you have saved for the blog." 101 msgstr "" 102 -
wpmu-linkmanager/trunk/wpmu_linkmanager.php
r605792 r2049202 3 3 Plugin Name: WPMU LinkManager 4 4 Description: You works with a multisite and want manage your outgoing footer links into the themes of each blog? With this plugin you can manage into network admin your outgoing links for every registered blog into your multisite installation. 5 Version: 1.0.3 5 Version: 1.0.4 6 Require: 3.4.2 7 Tested: 5.1 6 8 Author: WPler 7 Author URI: http ://www.wpler.com9 Author URI: https://www.wpler.com/linkmanager-fur-multisites/ 8 10 Text Domain: wplerlm 9 11 Domain Path: /i18n/ … … 90 92 */ 91 93 public function add_menu() { 92 add_menu_page( __( 'WPler LinkManager', wplerlm::get_textdomain() ), __( 'LinkManager', wplerlm::get_textdomain() ), 'manage_network_options', WPLER_LM_SLUG, array( $this, 'links_page' ) );93 add_submenu_page( WPLER_LM_SLUG, __( 'WPler LinkManager', wplerlm::get_textdomain() ), __( 'Links', wplerlm::get_textdomain() ), 'manage_network_options', WPLER_LM_SLUG, array( $this, 'links_page' ) );94 add_menu_page( __( 'WPler LinkManager', wplerlm::get_textdomain() ), __( 'LinkManager', wplerlm::get_textdomain() ), 'manage_network_options', WPLER_LM_SLUG, array( $this, 'links_page' ), 'dashicons-networking' ); 95 $hook = add_submenu_page( WPLER_LM_SLUG, __( 'WPler LinkManager', wplerlm::get_textdomain() ), __( 'Links', wplerlm::get_textdomain() ), 'manage_network_options', WPLER_LM_SLUG, array( $this, 'links_page' ) ); 94 96 add_submenu_page( WPLER_LM_SLUG, __( 'WPler New Link', wplerlm::get_textdomain() ), __( 'New Link', wplerlm::get_textdomain() ), 'manage_network_options', 'wplerlm-newlink', array( $this, 'save_link_page' ) ); 95 } 97 if ($hook) { 98 add_action('load-'.$hook, array($this,'screenHelp')); 99 } 100 } 101 /** 102 * The settings help tabs 103 * @since 1.0.4 104 * @uses get_current_screen, current_user_can, esc_html, 105 * @return false 106 */ 107 public function screenHelp() { 108 $current_screen = get_current_screen(); 109 if (current_user_can('manage_network_options')) { 110 $current_screen->add_help_tab(array( 111 'id' => 'overview', 112 'title' => __('Help', wplerlm::get_textdomain()), 113 'content' => '<p>'.__('To display your links in the blogs on this network use the follow function on the place where the link should shown:',wplerlm::get_textdomain()).'<br><br>'. 114 '<code><?php echo do_shortcode("[wplerlm]"); ?></code></p>'. 115 '<p>'.__('Place this PHP function on the childtheme template file (i.e. footer.php), where the link should shown. The shortcode identify the blog id and get the correct link, which you have saved for the blog.', wplerlm::get_textdomain()).'</p>' 116 )); 117 } 118 } 96 119 /** 97 120 * Add the Table of Link Contents to backend into network … … 152 175 <?php 153 176 } 154 } 155 ?> 177 } else { ?> 178 <tr><td colspan="6"><?php _e('There are no links stored', wplerlm::get_textdomain()); ?></td></tr> 179 <?php } ?> 156 180 </tbody> 157 181 <tfoot> … … 183 207 global $wpdb; 184 208 $siteid = ''; 209 $target = '_blank'; 185 210 if ( !empty( $_POST[ 'save' ] ) ) { 186 211 $into[ 'blog_id' ] = absint( $_POST[ 'blogid' ] ); … … 220 245 <td><select name="blogid" id="blogid" size="1"> 221 246 <?php 222 $blogs = $wpdb->get_col( $wpdb->prepare( "SELECT blog_id FROM {$wpdb->blogs} WHERE public = '1' && archived = '0' && mature = '0' && spam = '0' && deleted = '0'" ));247 $blogs = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs} WHERE public = '1' && archived = '0' && mature = '0' && spam = '0' && deleted = '0'"); 223 248 foreach( $blogs as $blog ) { ?> 224 249 <option value="<?php echo $blog; ?>" <?php echo selected( $blog, $siteid ); ?>><?php echo get_blog_details( $blog )->blogname . ' (' . get_blog_details( $blog )->siteurl . ')'; ?></option> … … 229 254 <tr> 230 255 <th scope="col"><label for="tourl"><?php _e( 'To URL?', wplerlm::get_textdomain() ); ?></label></th> 231 <td><input type="text" name="tourl" id="tourl" class="widefat" value="<?php echo !empty( $link->tourl ) ? $link->tourl : ''; ?>" placeholder="http ://" /></td>256 <td><input type="text" name="tourl" id="tourl" class="widefat" value="<?php echo !empty( $link->tourl ) ? $link->tourl : ''; ?>" placeholder="https://" /></td> 232 257 </tr> 233 258 <tr> … … 323 348 dbDelta( $sql ); 324 349 } else { 325 printf( '<div class="updated">%s</div>', __( 'This plugin works on ly into multisites', wplerlm::get_textdomain() ) );350 printf( '<div class="updated">%s</div>', __( 'This plugin works on multisites only', wplerlm::get_textdomain() ) ); 326 351 } 327 352 }
Note: See TracChangeset
for help on using the changeset viewer.