Changeset 1327792
- Timestamp:
- 01/13/2016 09:07:06 PM (10 years ago)
- Location:
- subscribe-to-category/trunk
- Files:
-
- 6 edited
-
classes/class-main.php (modified) (1 diff)
-
classes/class-settings.php (modified) (24 diffs)
-
classes/class-stc-widget.php (modified) (4 diffs)
-
classes/class-subscribe.php (modified) (21 diffs)
-
readme.txt (modified) (2 diffs)
-
subscribe-to-category.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
subscribe-to-category/trunk/classes/class-main.php
r1032176 r1327792 222 222 */ 223 223 public function load_plugin_textdomain() { 224 load_plugin_textdomain( STC_TEXTDOMAIN, false, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' );224 load_plugin_textdomain( 'stc_textdomain', false, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' ); 225 225 } 226 226 -
subscribe-to-category/trunk/classes/class-settings.php
r1294734 r1327792 53 53 $subscriber->stc_send_email(); 54 54 55 _e( 'Scheduled event successfully executed', STC_TEXTDOMAIN);55 _e( 'Scheduled event successfully executed', 'stc_textdomain' ); 56 56 57 57 die(); … … 77 77 78 78 add_options_page( 79 __( 'Subscribe to Category', STC_TEXTDOMAIN),80 __( 'Subscribe', STC_TEXTDOMAIN),79 __( 'Subscribe to Category', 'stc_textdomain' ), 80 __( 'Subscribe', 'stc_textdomain' ), 81 81 'manage_options', 82 82 'stc-subscribe-settings', … … 101 101 <div class="wrap"> 102 102 <?php screen_icon(); ?> 103 <h2><?php _e('Settings for subscribe to category', STC_TEXTDOMAIN); ?></h2>103 <h2><?php _e('Settings for subscribe to category', 'stc_textdomain' ); ?></h2> 104 104 105 105 … … 107 107 <tbody> 108 108 <tr> 109 <td class="desc"><strong><?php _e( 'Schedule: ', STC_TEXTDOMAIN ); ?></strong> <?php _e('E-mail is scheduled to be sent once every hour.', STC_TEXTDOMAIN); ?></td>109 <td class="desc"><strong><?php _e( 'Schedule: ', 'stc_textdomain' ); ?></strong> <?php _e('E-mail is scheduled to be sent once every hour.', 'stc_textdomain' ); ?></td> 110 110 <td class="desc"></td> 111 <td class="desc textright"><div class="stc-force-run-action"><button type="button" id="stc-force-run" class="button button-primary"><?php _e( 'Click here to run this action right now', STC_TEXTDOMAIN); ?></button></div></td>111 <td class="desc textright"><div class="stc-force-run-action"><button type="button" id="stc-force-run" class="button button-primary"><?php _e( 'Click here to run this action right now', 'stc_textdomain' ); ?></button></div></td> 112 112 </tr> 113 113 <tr> 114 <td class="desc" colspan="3"><?php printf( __('Next run is going to be <strong>%s</strong> and will include %s posts.', STC_TEXTDOMAIN), $next_run, '<span id="stc-posts-in-que">' . $this->get_posts_in_que() . '</span>' ); ?></td>114 <td class="desc" colspan="3"><?php printf( __('Next run is going to be <strong>%s</strong> and will include %s posts.', 'stc_textdomain' ), $next_run, '<span id="stc-posts-in-que">' . $this->get_posts_in_que() . '</span>' ); ?></td> 115 115 </tr> 116 116 </tbody> … … 188 188 add_settings_section( 189 189 'setting_email_id', // ID 190 __( 'E-mail settings', STC_TEXTDOMAIN), // Title190 __( 'E-mail settings', 'stc_textdomain' ), // Title 191 191 '', //array( $this, 'print_section_info' ), // Callback 192 192 'stc-subscribe-settings' // Page … … 195 195 add_settings_field( 196 196 'stc_email_from', 197 __( 'E-mail from: ', STC_TEXTDOMAIN),197 __( 'E-mail from: ', 'stc_textdomain' ), 198 198 array( $this, 'stc_email_from_callback' ), // Callback 199 199 'stc-subscribe-settings', // Page … … 203 203 add_settings_field( 204 204 'stc_title', 205 __( 'Email subject: ', STC_TEXTDOMAIN),205 __( 'Email subject: ', 'stc_textdomain' ), 206 206 array( $this, 'stc_title_callback' ), // Callback 207 207 'stc-subscribe-settings', // Page … … 213 213 add_settings_section( 214 214 'setting_resend_id', // ID 215 __( 'Resend post on update', STC_TEXTDOMAIN), // Title215 __( 'Resend post on update', 'stc_textdomain' ), // Title 216 216 '', //array( $this, 'print_section_info' ), // Callback 217 217 'stc-resend-settings' // Page … … 220 220 add_settings_field( 221 221 'stc_resend', 222 __( 'Resend:', STC_TEXTDOMAIN),222 __( 'Resend:', 'stc_textdomain' ), 223 223 array( $this, 'stc_resend_callback' ), // Callback 224 224 'stc-resend-settings', // Page … … 230 230 add_settings_section( 231 231 'setting_style_id', // ID 232 __( 'Stylesheet (CSS) settings', STC_TEXTDOMAIN), // Title232 __( 'Stylesheet (CSS) settings', 'stc_textdomain' ), // Title 233 233 '', //array( $this, 'print_section_info' ), // Callback 234 234 'stc-style-settings' // Page … … 237 237 add_settings_field( 238 238 'stc_custom_css', 239 __( 'Custom CSS: ', STC_TEXTDOMAIN),239 __( 'Custom CSS: ', 'stc_textdomain' ), 240 240 array( $this, 'stc_css_callback' ), // Callback 241 241 'stc-style-settings', // Page … … 247 247 add_settings_section( 248 248 'setting_deactivation_id', // ID 249 __( 'On plugin deactivation', STC_TEXTDOMAIN), // Title249 __( 'On plugin deactivation', 'stc_textdomain' ), // Title 250 250 array( $this, 'section_deactivation_info' ), // Callback 251 251 'stc-deactivation-settings' // Page … … 254 254 add_settings_field( 255 255 'stc_remove_subscribers', 256 __( 'Subscribers: ', STC_TEXTDOMAIN),256 __( 'Subscribers: ', 'stc_textdomain' ), 257 257 array( $this, 'stc_remove_subscribers_callback' ), // Callback 258 258 'stc-deactivation-settings', // Page … … 278 278 public function section_deactivation_info(){ 279 279 ?> 280 <p><?php _e('The plugin will remove all data in database created by this plugin but there is an option regarding subscribers', STC_TEXTDOMAIN); ?></p>280 <p><?php _e('The plugin will remove all data in database created by this plugin but there is an option regarding subscribers', 'stc_textdomain' ); ?></p> 281 281 <?php 282 282 } … … 299 299 if(! empty( $input['email_from'] )){ 300 300 if ( ! is_email( $output['email_from'] ) ){ 301 add_settings_error( 'setting_email_id', 'invalid-email', __( 'You have entered an invalid email.', STC_TEXTDOMAIN) );301 add_settings_error( 'setting_email_id', 'invalid-email', __( 'You have entered an invalid email.', 'stc_textdomain' ) ); 302 302 } 303 303 } … … 330 330 */ 331 331 public function print_section_info(){ 332 _e( 'Add your E-mail settings', STC_TEXTDOMAIN);332 _e( 'Add your E-mail settings', 'stc_textdomain' ); 333 333 } 334 334 … … 343 343 ?> 344 344 <input type="text" id="email_from" class="regular-text" name="stc_settings[email_from]" value="<?php echo isset( $this->options['email_from'] ) ? esc_attr( $this->options['email_from'] ) : '' ?>" /> 345 <p class="description"><?php printf( __( 'Enter the e-mail address for the sender, if empty the admin e-mail address %s is going to be used as sender.', STC_TEXTDOMAIN), $default_email ); ?></p>345 <p class="description"><?php printf( __( 'Enter the e-mail address for the sender, if empty the admin e-mail address %s is going to be used as sender.', 'stc_textdomain' ), $default_email ); ?></p> 346 346 <?php 347 347 } … … 356 356 ?> 357 357 <input type="text" id="email_from" class="regular-text" name="stc_settings[title]" value="<?php echo isset( $this->options['title'] ) ? esc_attr( $this->options['title'] ) : '' ?>" /> 358 <p class="description"><?php _e( 'Enter e-mail subject for the e-mail notification, leave empty if you wish to use post title as email subject.', STC_TEXTDOMAIN); ?></p>358 <p class="description"><?php _e( 'Enter e-mail subject for the e-mail notification, leave empty if you wish to use post title as email subject.', 'stc_textdomain' ); ?></p> 359 359 <?php 360 360 } … … 374 374 ?> 375 375 376 <label for="resend_option"><input type="checkbox" value="1" id="resend_option" name="stc_settings[resend_option]" <?php checked( '1', $options['resend_option'] ); ?>><?php _e('Enable resend post option', STC_TEXTDOMAIN); ?></label>377 <p class="description"><?php _e('Gives an option on edit post (in the publish panel) to resend a post on update.', STC_TEXTDOMAIN); ?></p>376 <label for="resend_option"><input type="checkbox" value="1" id="resend_option" name="stc_settings[resend_option]" <?php checked( '1', $options['resend_option'] ); ?>><?php _e('Enable resend post option', 'stc_textdomain' ); ?></label> 377 <p class="description"><?php _e('Gives an option on edit post (in the publish panel) to resend a post on update.', 'stc_textdomain' ); ?></p> 378 378 <?php 379 379 } … … 392 392 ?> 393 393 394 <label for="exclude_css"><input type="checkbox" value="1" id="exclude_css" name="stc_settings[exclude_css]" <?php checked( '1', $options['exclude_css'] ); ?>><?php _e('Exclude custom CSS', STC_TEXTDOMAIN); ?></label>395 <p class="description"><?php _e('Check this option if your theme supports Bootstrap framework or if you want to place your own CSS for Subscribe to Category in your theme.', STC_TEXTDOMAIN); ?></p>394 <label for="exclude_css"><input type="checkbox" value="1" id="exclude_css" name="stc_settings[exclude_css]" <?php checked( '1', $options['exclude_css'] ); ?>><?php _e('Exclude custom CSS', 'stc_textdomain' ); ?></label> 395 <p class="description"><?php _e('Check this option if your theme supports Bootstrap framework or if you want to place your own CSS for Subscribe to Category in your theme.', 'stc_textdomain' ); ?></p> 396 396 <?php 397 397 } … … 411 411 ?> 412 412 413 <label for="deactivation_remove_subscribers"><input type="checkbox" value="1" id="deactivation_remove_subscribers" name="stc_settings[deactivation_remove_subscribers]" <?php checked( '1', $options['deactivation_remove_subscribers'] ); ?>><?php _e('Delete all subscribers on deactivation', STC_TEXTDOMAIN); ?></label>413 <label for="deactivation_remove_subscribers"><input type="checkbox" value="1" id="deactivation_remove_subscribers" name="stc_settings[deactivation_remove_subscribers]" <?php checked( '1', $options['deactivation_remove_subscribers'] ); ?>><?php _e('Delete all subscribers on deactivation', 'stc_textdomain' ); ?></label> 414 414 <?php 415 415 } … … 424 424 $categories = get_categories( array( 'hide_empty' => false ) ); 425 425 ?> 426 <h3><?php _e( 'Export to excel', STC_TEXTDOMAIN); ?></h3>426 <h3><?php _e( 'Export to excel', 'stc_textdomain' ); ?></h3> 427 427 <form method="post" action="options-general.php?page=stc-subscribe-settings"> 428 428 <table class="form-table"> 429 429 <tbody> 430 430 <tr> 431 <th scope="row"><?php _e('Filter by categories', STC_TEXTDOMAIN); ?></th>431 <th scope="row"><?php _e('Filter by categories', 'stc_textdomain' ); ?></th> 432 432 <td> 433 433 <?php if(! empty( $categories )) : ?> … … 436 436 <?php endforeach; ?> 437 437 <?php else: ?> 438 <?php _e('There are no categories to list yet', STC_TEXTDOMAIN); ?>438 <?php _e('There are no categories to list yet', 'stc_textdomain' ); ?> 439 439 <?php endif; ?> 440 440 </td> … … 507 507 // print out filtered categories if there is 508 508 if(!empty( $in_category_name )) 509 echo "\r\n", utf8_decode( __('Filtered by: ', STC_TEXTDOMAIN) ) . utf8_decode( $in_category_name );509 echo "\r\n", utf8_decode( __('Filtered by: ', 'stc_textdomain' ) ) . utf8_decode( $in_category_name ); 510 510 511 511 foreach ($export as $row ) { -
subscribe-to-category/trunk/classes/class-stc-widget.php
r1294734 r1327792 9 9 parent::__construct( 10 10 'stc_widget', // Base ID 11 __( 'Subscribe to Category', STC_TEXTDOMAIN), // Name12 array( 'description' => __( 'Adding the subscribe form to a widget area.', STC_TEXTDOMAIN), ) // Args11 __( 'Subscribe to Category', 'stc_textdomain' ), // Name 12 array( 'description' => __( 'Adding the subscribe form to a widget area.', 'stc_textdomain' ), ) // Args 13 13 ); 14 14 } … … 45 45 */ 46 46 public function form( $instance ) { 47 $title = ! empty( $instance['title'] ) ? $instance['title'] : __( 'Subscribe', STC_TEXTDOMAIN);47 $title = ! empty( $instance['title'] ) ? $instance['title'] : __( 'Subscribe', 'stc_textdomain' ); 48 48 $categories_include = isset( $instance['categories_include'] ) ? $instance['categories_include'] : ''; 49 49 $categories_exclude = isset( $instance['categories_exclude'] ) ? $instance['categories_exclude'] : ''; … … 61 61 62 62 <p> 63 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Selectable categories for subscription: ', STC_TEXTDOMAIN); ?></label>63 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Selectable categories for subscription: ', 'stc_textdomain' ); ?></label> 64 64 </p> 65 65 … … 75 75 <?php endif; ?> 76 76 77 <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Excluded selectable categories for subscription:', STC_TEXTDOMAIN); ?></label></p>77 <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Excluded selectable categories for subscription:', 'stc_textdomain' ); ?></label></p> 78 78 <?php if(! empty( $categories ) ) : ?> 79 79 <div class="stc-category-exclude"> -
subscribe-to-category/trunk/classes/class-subscribe.php
r1324298 r1327792 100 100 ?> 101 101 <div class="misc-pub-section stc-section"> 102 <span class="dashicons dashicons-groups"></span> <label><?php _e('Resend post to subscribers', STC_TEXTDOMAIN); ?> <input id="stc-resend" type="checkbox" name="stc_resend"></label>102 <span class="dashicons dashicons-groups"></span> <label><?php _e('Resend post to subscribers', 'stc_textdomain' ); ?> <input id="stc-resend" type="checkbox" name="stc_resend"></label> 103 103 <div id="stc-resend-info" style="display:none;"> 104 <p><i><?php printf( __( 'This post update will be re-sent to subscribers %s', STC_TEXTDOMAIN), $next_run ); ?></i></p>104 <p><i><?php printf( __( 'This post update will be re-sent to subscribers %s', 'stc_textdomain' ), $next_run ); ?></i></p> 105 105 </div> 106 106 </div> … … 156 156 <div class="alert alert-success text-center"> 157 157 <p><?php echo $this->notice[0]; ?></p> 158 <p><a href="<?php echo get_bloginfo('url'); ?>"><?php _e( 'Take me to start page', STC_TEXTDOMAIN); ?></a></p>158 <p><a href="<?php echo get_bloginfo('url'); ?>"><?php _e( 'Take me to start page', 'stc_textdomain' ); ?></a></p> 159 159 </div> 160 160 </div> … … 185 185 // notice on subscription 186 186 if (isset( $_GET['stc_status'] ) && $_GET['stc_status'] == 'success' ) { 187 $this->notice[] = __( 'Thanks for your subscription!', STC_TEXTDOMAIN);188 $this->notice[] = __( 'If you want to unsubscribe there is a link for unsubscription attached in the email.', STC_TEXTDOMAIN);187 $this->notice[] = __( 'Thanks for your subscription!', 'stc_textdomain' ); 188 $this->notice[] = __( 'If you want to unsubscribe there is a link for unsubscription attached in the email.', 'stc_textdomain' ); 189 189 } 190 190 … … 224 224 wp_delete_post( $user_id ); 225 225 226 $notice[] = sprintf( __( 'We have successfully removed your email %s from our database.', STC_TEXTDOMAIN), '<span class="stc-notice-email">' . $subscriber_email . '</span>' );226 $notice[] = sprintf( __( 'We have successfully removed your email %s from our database.', 'stc_textdomain' ), '<span class="stc-notice-email">' . $subscriber_email . '</span>' ); 227 227 228 228 return $this->notice = $notice; … … 310 310 311 311 // Setting subject 312 $title = sprintf( __('Unsubscribe from %s', STC_TEXTDOMAIN), get_bloginfo( 'name' ) );312 $title = sprintf( __('Unsubscribe from %s', 'stc_textdomain'), get_bloginfo( 'name' ) ); 313 313 314 314 … … 336 336 337 337 ?> 338 <h3><?php printf( __('Unsubscribe from %s', STC_TEXTDOMAIN), get_bloginfo( 'name' ) ); ?></h3>339 <div style="margin-top: 20px;"><a href="<?php echo get_bloginfo('url') . '/?stc_unsubscribe=' . $stc['hash'] . '&stc_user=' . $stc['email'] ?>"><?php _e('Follow this link to confirm your unsubscription', STC_TEXTDOMAIN); ?></a></div>338 <h3><?php printf( __('Unsubscribe from %s', 'stc_textdomain' ), get_bloginfo( 'name' ) ); ?></h3> 339 <div style="margin-top: 20px;"><a href="<?php echo get_bloginfo('url') . '/?stc_unsubscribe=' . $stc['hash'] . '&stc_user=' . $stc['email'] ?>"><?php _e('Follow this link to confirm your unsubscription', 'stc_textdomain' ); ?></a></div> 340 340 <?php 341 341 … … 361 361 $data['email'] = $_POST['stc_email']; 362 362 else 363 $error[] = __( 'You need to enter a valid email address', STC_TEXTDOMAIN);363 $error[] = __( 'You need to enter a valid email address', 'stc_textdomain' ); 364 364 365 365 // check if user exists and through error if not … … 370 370 371 371 if( empty( $result )) 372 $error[] = __( 'Email address not found in database', STC_TEXTDOMAIN);372 $error[] = __( 'Email address not found in database', 'stc_textdomain' ); 373 373 } 374 374 … … 378 378 $this->send_unsubscribe_mail( $result ); 379 379 380 $notice[] = __('We have received your request to unsubscribe from our newsfeed. Please check your email and confirm your unsubscription.', STC_TEXTDOMAIN);380 $notice[] = __('We have received your request to unsubscribe from our newsfeed. Please check your email and confirm your unsubscription.', 'stc_textdomain' ); 381 381 382 382 return $this->notice = $notice; … … 394 394 $data['email'] = $_POST['stc_email']; 395 395 else 396 $error[] = __( 'You need to enter a valid email address', STC_TEXTDOMAIN);396 $error[] = __( 'You need to enter a valid email address', 'stc_textdomain' ); 397 397 398 398 … … 406 406 $data['categories'] = $_POST['stc_categories']; 407 407 else 408 $error[] = __( 'You need to select some categories', STC_TEXTDOMAIN);408 $error[] = __( 'You need to select some categories', 'stc_textdomain' ); 409 409 410 410 … … 542 542 $post_id_match = ''; 543 543 if(! is_email( $email ) ){ 544 set_transient( 'error', __( 'You need to enter a valid email address', STC_TEXTDOMAIN) ); // set error if not valid544 set_transient( 'error', __( 'You need to enter a valid email address', 'stc_textdomain' ) ); // set error if not valid 545 545 } else { 546 546 $this->data['email'] = $email; … … 549 549 550 550 if( $post_id_match != $post_id || empty( $post_id_match )){ 551 set_transient('error', __('E-mail address already exists', STC_TEXTDOMAIN) ); // set error551 set_transient('error', __('E-mail address already exists', 'stc_textdomain' ) ); // set error 552 552 } 553 553 554 554 if( $sum_of_post_categories < 1 ){ 555 set_transient('error', __('No categories are selected', STC_TEXTDOMAIN) ); // set error555 set_transient('error', __('No categories are selected', 'stc_textdomain' ) ); // set error 556 556 } 557 557 … … 595 595 $error = get_transient( 'error' ); 596 596 597 $error .= __( ' - this post is set to draft', STC_TEXTDOMAIN);597 $error .= __( ' - this post is set to draft', 'stc_textdomain' ); 598 598 printf( '<div id="message" class="error"><p><strong>%s</strong></p></div>', $error ); 599 599 delete_transient( 'error' ); … … 859 859 <form role="form" method="post"> 860 860 <div class="form-group"> 861 <label for="stc-email"><?php _e( 'E-mail Address: ', STC_TEXTDOMAIN); ?></label>861 <label for="stc-email"><?php _e( 'E-mail Address: ', 'stc_textdomain' ); ?></label> 862 862 <input type="text" id="stc-email" class="form-control" name="stc_email" value="<?php echo !empty( $email ) ? $email : NULL; ?>"/> 863 863 </div> … … 866 866 <label> 867 867 <input type="checkbox" id="stc-unsubscribe-checkbox" name="stc-unsubscribe" value="1" <?php checked( '1', $post_stc_unsubscribe ); ?>> 868 <?php _e( 'Unsubscribe me', STC_TEXTDOMAIN) ?>868 <?php _e( 'Unsubscribe me', 'stc_textdomain' ) ?> 869 869 </label> 870 870 </div> … … 873 873 <?php if(! empty( $cats )) :?> 874 874 <?php if (count ($cats) > 1 ) : ?> 875 <h3><?php _e('Categories', STC_TEXTDOMAIN); ?></h3>875 <h3><?php _e('Categories', 'stc_textdomain' ); ?></h3> 876 876 <?php if( $this->show_all_categories === true ) : ?> 877 877 <div class="checkbox"> 878 878 <label> 879 879 <input type="checkbox" id="stc-all-categories" name="stc_all_categories" value="1"> 880 <?php _e('All categories', STC_TEXTDOMAIN); ?>880 <?php _e('All categories', 'stc_textdomain' ); ?> 881 881 </label> 882 882 </div> … … 903 903 <input type="hidden" name="action" value="stc_subscribe_me" /> 904 904 <?php wp_nonce_field( 'wp_nonce_stc', 'stc_nonce', true, true ); ?> 905 <button id="stc-subscribe-btn" type="submit" class="btn btn-default"<?php echo $post_stc_unsubscribe == 1 ? ' style="display:none;"' : NULL; ?>><?php _e( 'Subscribe me', STC_TEXTDOMAIN) ?></button>906 <button id="stc-unsubscribe-btn" type="submit" class="btn btn-default"<?php echo $post_stc_unsubscribe != 1 ? ' style="display:none;"' : NULL; ?>><?php _e( 'Unsubscribe', STC_TEXTDOMAIN) ?></button>905 <button id="stc-subscribe-btn" type="submit" class="btn btn-default"<?php echo $post_stc_unsubscribe == 1 ? ' style="display:none;"' : NULL; ?>><?php _e( 'Subscribe me', 'stc_textdomain' ) ?></button> 906 <button id="stc-unsubscribe-btn" type="submit" class="btn btn-default"<?php echo $post_stc_unsubscribe != 1 ? ' style="display:none;"' : NULL; ?>><?php _e( 'Unsubscribe', 'stc_textdomain' ) ?></button> 907 907 </form> 908 908 <?php endif; ?> … … 1028 1028 // add updated to title if its an update for post 1029 1029 if( $this->is_stc_resend( $email['post_id'] ) ) 1030 $email_subject = __('Update | ', STC_TEXTDOMAIN) . $email_subject;1030 $email_subject = __('Update | ', 'stc_textdomain' ) . $email_subject; 1031 1031 1032 1032 $subject = '=?UTF-8?B?'.base64_encode( $email_subject ).'?='; … … 1091 1091 1092 1092 $output['title'] = '<h3><a href="' . get_permalink( $email['post_id'] ) . '">' . $email['post']->post_title . '</a></h3>'; 1093 $output['link_to_post'] = '<div style="border-bottom: 1px solid #cccccc; padding-bottom: 10px;"><a href="' . get_permalink( $email['post_id'] ) .'">' . __('Click here to read full story', STC_TEXTDOMAIN) . '</a></div>';1094 $output['unsubscribe'] = '<div style="margin-top: 20px;"><a href="' . get_bloginfo('url') . '/?stc_unsubscribe=' . $email['hash'] . '&stc_user=' . $email['email'] . '">' . __('Unsubscribe me', STC_TEXTDOMAIN) . '</a></div>';1093 $output['link_to_post'] = '<div style="border-bottom: 1px solid #cccccc; padding-bottom: 10px;"><a href="' . get_permalink( $email['post_id'] ) .'">' . __('Click here to read full story', 'stc_textdomain' ) . '</a></div>'; 1094 $output['unsubscribe'] = '<div style="margin-top: 20px;"><a href="' . get_bloginfo('url') . '/?stc_unsubscribe=' . $email['hash'] . '&stc_user=' . $email['email'] . '">' . __('Unsubscribe me', 'stc_textdomain' ) . '</a></div>'; 1095 1095 1096 1096 ?> … … 1187 1187 1188 1188 $labels = array( 1189 'name' => __( 'Subscribers', STC_TEXTDOMAIN),1190 'singular_name' => __( 'Subscribe', STC_TEXTDOMAIN),1191 'add_new' => __( 'Add new subscriber', STC_TEXTDOMAIN),1192 'add_new_item' => __( 'Add new subscriber', STC_TEXTDOMAIN),1193 'edit_item' => __( 'Edit subscriber', STC_TEXTDOMAIN),1194 'new_item' => __( 'New subscriber', STC_TEXTDOMAIN),1195 'view_item' => __( 'Show subscriber', STC_TEXTDOMAIN),1196 'search_items' => __( 'Search subscribers', STC_TEXTDOMAIN),1197 'not_found' => __( 'Not found', STC_TEXTDOMAIN),1198 'not_found_in_trash' => __( 'Nothing found in trash', STC_TEXTDOMAIN),1199 'menu_name' => __( 'Subscribers', STC_TEXTDOMAIN),1189 'name' => __( 'Subscribers', 'stc_textdomain' ), 1190 'singular_name' => __( 'Subscribe', 'stc_textdomain' ), 1191 'add_new' => __( 'Add new subscriber', 'stc_textdomain' ), 1192 'add_new_item' => __( 'Add new subscriber', 'stc_textdomain' ), 1193 'edit_item' => __( 'Edit subscriber', 'stc_textdomain' ), 1194 'new_item' => __( 'New subscriber', 'stc_textdomain' ), 1195 'view_item' => __( 'Show subscriber', 'stc_textdomain' ), 1196 'search_items' => __( 'Search subscribers', 'stc_textdomain' ), 1197 'not_found' => __( 'Not found', 'stc_textdomain' ), 1198 'not_found_in_trash' => __( 'Nothing found in trash', 'stc_textdomain' ), 1199 'menu_name' => __( 'Subscribers', 'stc_textdomain' ), 1200 1200 ); 1201 1201 -
subscribe-to-category/trunk/readme.txt
r1324298 r1327792 4 4 Requires at least: 3.9 5 5 Tested up to: 4.4.1 6 Stable tag: 1. 7.06 Stable tag: 1.8.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 114 114 115 115 == Changelog == 116 = 1.8.2 = 117 * Added pot file to be used for translation. 118 * Bugfix - changed textdomain to string instead of constant. 116 119 117 120 = 1.7.0 = -
subscribe-to-category/trunk/subscribe-to-category.php
r1324298 r1327792 4 4 Plugin URI: http://dcweb.nu 5 5 Description: Lets your visitor subscribe to posts for one or several categories. 6 Version: 1. 7.06 Version: 1.8.1 7 7 Author: Daniel Söderström 8 8 Author URI: http://dcweb.nu/ 9 9 License: GPLv2 or later 10 Text Domain: stc_textdomain 11 Domain Path: /languages 10 12 */ 11 13 … … 14 16 die(); 15 17 16 define( 'STC_TEXTDOMAIN', 'stc_textdomain' );17 18 define( 'STC_SLUG', 'stc' ); 18 19 define( 'STC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.