Changeset 995884
- Timestamp:
- 09/24/2014 07:23:37 AM (11 years ago)
- Location:
- custom-nextpage/trunk
- Files:
-
- 6 edited
-
custom-nextpage.php (modified) (5 diffs)
-
includes/class-admin-menu.php (modified) (2 diffs)
-
languages/custom-nextpage-ja.mo (modified) (previous)
-
languages/custom-nextpage-ja.po (modified) (5 diffs)
-
languages/custom-nextpage.pot (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-nextpage/trunk/custom-nextpage.php
r991536 r995884 5 5 Description: MultiPage is a customizable plugin. Can any title on the page. 6 6 Author: Webnist 7 Version: 0.9. 87 Version: 0.9.9 8 8 Author URI: http://profiles.wordpress.org/webnist 9 9 License: GPLv2 or later … … 44 44 'beforetext' => '', 45 45 'aftertext' => '', 46 'nextpagelink' => __( '»', 'custom-nextpage' ), 47 'previouspagelink' => __( '«', 'custom-nextpage' ), 46 'show_boundary' => 1, 47 'show_adjacent' => 1, 48 'firstpagelink' => __( '«', 'custom-nextpage' ), 49 'lastpagelink' => __( '»', 'custom-nextpage' ), 50 'nextpagelink' => __( '>', 'custom-nextpage' ), 51 'previouspagelink' => __( '<', 'custom-nextpage' ), 48 52 ); 49 53 $this->options = get_option( 'custom-next-page', $this->default_options ); … … 120 124 $output = ''; 121 125 if ( $multipage ) { 122 $nextpagelink = apply_filters( 'custom_next_page_nextpagelink', $this->options['nextpagelink'] ); 123 $previouspagelink = apply_filters( 'custom_next_page_previouspagelink', $this->options['previouspagelink'] ); 126 $show_boundary = esc_html( apply_filters( 'custom_next_page_show_boundary', $this->options['show_boundary'] ) ); 127 $show_adjacent = esc_html( apply_filters( 'custom_next_page_show_adjacent', $this->options['show_adjacent'] ) ); 128 $firstpagelink = esc_html( apply_filters( 'custom_next_page_firstpagelink', $this->options['firstpagelink'] ) ); 129 $lastpagelink = esc_html( apply_filters( 'custom_next_page_lastpagelink', $this->options['lastpagelink'] ) ); 130 $nextpagelink = esc_html( apply_filters( 'custom_next_page_nextpagelink', $this->options['nextpagelink'] ) ); 131 $previouspagelink = esc_html( apply_filters( 'custom_next_page_previouspagelink', $this->options['previouspagelink'] ) ); 124 132 $id = get_the_ID(); 125 133 $next_page_title = self::next_page_title( $id ); … … 129 137 $output .= '<ul class="page-links">' ."\n"; 130 138 $i = $page - 1; 139 131 140 if ( $page > 1 ) { 132 $link = _wp_link_page( $i ); 133 $output .= '<li class="previous">' . $link . $previouspagelink . '</a></li>'; 141 $first_link = _wp_link_page( 1 ); 142 $link = _wp_link_page( $i ); 143 if ( $show_boundary ) 144 $output .= '<li class="first">' . $first_link . $firstpagelink . '</a></li>'; 145 if ( $show_adjacent ) 146 $output .= '<li class="previous">' . $link . $previouspagelink . '</a></li>'; 134 147 } 135 148 for ( $i = 1; $i <= $numpages; $i++ ) { … … 143 156 $i = $page + 1; 144 157 if ( $i <= $numpages ) { 145 $link = _wp_link_page( $i ); 146 $output .= '<li class="next">' . $link . $nextpagelink . '</a></li>'; 158 $last_link = _wp_link_page( $numpages ); 159 $link = _wp_link_page( $i ); 160 if ( $show_adjacent ) 161 $output .= '<li class="next">' . $last_link . $nextpagelink . '</a></li>'; 162 163 if ( $show_boundary ) 164 $output .= '<li class="last">' . $link . $lastpagelink . '</a></li>'; 147 165 } 148 166 $output .= '</ul>' ."\n"; -
custom-nextpage/trunk/includes/class-admin-menu.php
r991536 r995884 78 78 79 79 add_settings_field( 80 'custom-next-page-boundary', 81 __( 'The first and last page links displayed.', $this->domain ), 82 array( &$this, 'check_field' ), 83 $this->plugin_basename , 84 'general', 85 array( 86 'name' => 'custom-next-page[show_boundary]', 87 'value' => $this->options['show_boundary'], 88 ) 89 ); 90 91 add_settings_field( 92 'custom-next-page-adjacent', 93 __( 'Next and previous page links to display.', $this->domain ), 94 array( &$this, 'check_field' ), 95 $this->plugin_basename , 96 'general', 97 array( 98 'name' => 'custom-next-page[show_adjacent]', 99 'value' => $this->options['show_adjacent'], 100 ) 101 ); 102 103 add_settings_field( 104 'custom-next-page-firstpagelink', 105 __( 'Text For First Page', $this->domain ), 106 array( &$this, 'text_field' ), 107 $this->plugin_basename , 108 'general', 109 array( 110 'name' => 'custom-next-page[firstpagelink]', 111 'value' => $this->options['firstpagelink'], 112 ) 113 ); 114 115 add_settings_field( 116 'custom-next-page-lastpagelink', 117 __( 'Text For Last Page', $this->domain ), 118 array( &$this, 'text_field' ), 119 $this->plugin_basename , 120 'general', 121 array( 122 'name' => 'custom-next-page[lastpagelink]', 123 'value' => $this->options['lastpagelink'], 124 ) 125 ); 126 127 add_settings_field( 80 128 'custom-next-page-nextpagelink', 81 129 __( 'Text For Next Page', $this->domain ), … … 158 206 delete_option( 'custom-next-page-before-text' ); 159 207 delete_option( 'custom-next-page-after-text' ); 208 delete_option( 'custom-next-page-firstpagelink' ); 209 delete_option( 'custom-next-page-lastpagelink' ); 160 210 delete_option( 'custom-next-page-nextpagelink' ); 161 211 delete_option( 'custom-next-page-previouspagelink' ); -
custom-nextpage/trunk/languages/custom-nextpage-ja.po
r991536 r995884 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Custom Nextpage 0.9. 1\n"6 "Report-Msgid-Bugs-To: http://wordpress.org/ tag/custom-nextpage\n"7 "POT-Creation-Date: 2014-0 8-30 08:18:29+00:00\n"5 "Project-Id-Version: Custom Nextpage 0.9.8\n" 6 "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/custom-nextpage\n" 7 "POT-Creation-Date: 2014-09-24 07:05:35+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 2014-0 8-30 17:24+0900\n"11 "PO-Revision-Date: 2014-09-24 16:10+0900\n" 12 12 "Last-Translator: Webnist <webnist@webnist.org>\n" 13 13 "Language-Team: LANGUAGE <LL@li.org>\n" … … 16 16 "Language: ja\n" 17 17 18 #: custom-nextpage.php:46 includes/class-admin-menu.php:157 18 #: custom-nextpage.php:48 includes/class-admin-menu.php:203 19 msgid "«" 20 msgstr "»" 21 22 #: custom-nextpage.php:49 includes/class-admin-menu.php:202 19 23 msgid "»" 20 24 msgstr "»" 21 25 22 #: custom-nextpage.php: 47 includes/class-admin-menu.php:15823 msgid "& #171;"24 msgstr "& #171;"26 #: custom-nextpage.php:50 27 msgid ">" 28 msgstr ">" 25 29 26 #: includes/class-admin-editor.php:52 30 #: custom-nextpage.php:51 31 msgid "<" 32 msgstr "<" 33 34 #: includes/class-admin-editor.php:54 27 35 msgid "Title:" 28 36 msgstr "タイトル:" 29 37 30 #: includes/class-admin-editor.php: 5838 #: includes/class-admin-editor.php:60 31 39 msgid "OK" 32 40 msgstr "OK" 33 41 34 #: includes/class-admin-editor.php:6 142 #: includes/class-admin-editor.php:63 35 43 msgid "Cancel" 36 44 msgstr "キャンセル" … … 49 57 msgstr "新しいオプションに変換します。" 50 58 51 #: includes/class-admin-menu.php:26 includes/class-admin-menu.php:1 5059 #: includes/class-admin-menu.php:26 includes/class-admin-menu.php:195 52 60 msgid "Convert" 53 61 msgstr "コンバート" … … 57 65 msgstr "設定の初期化" 58 66 59 #: includes/class-admin-menu.php:29 includes/class-admin-menu.php: 16967 #: includes/class-admin-menu.php:29 includes/class-admin-menu.php:216 60 68 msgid "Initialization" 61 69 msgstr "初期化" … … 78 86 79 87 #: includes/class-admin-menu.php:81 88 msgid "The first and last page links displayed." 89 msgstr "最初と最後のリンクを表示する" 90 91 #: includes/class-admin-menu.php:93 92 msgid "Next and previous page links to display." 93 msgstr "次と前のリンクを表示する" 94 95 #: includes/class-admin-menu.php:105 96 msgid "Text For First Page" 97 msgstr "最初のページリンクのテキスト" 98 99 #: includes/class-admin-menu.php:117 100 msgid "Text For Last Page" 101 msgstr "最後のページリンクのテキスト" 102 103 #: includes/class-admin-menu.php:129 80 104 msgid "Text For Next Page" 81 105 msgstr "次のページリンクのテキスト" 82 106 83 #: includes/class-admin-menu.php: 93107 #: includes/class-admin-menu.php:141 84 108 msgid "Text For Previous Page" 85 109 msgstr "前のページリンクのテキスト" -
custom-nextpage/trunk/languages/custom-nextpage.pot
r991536 r995884 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Custom Nextpage 0.9. 1\n"6 "Report-Msgid-Bugs-To: http://wordpress.org/ tag/custom-nextpage\n"7 "POT-Creation-Date: 2014-0 8-30 08:18:29+00:00\n"5 "Project-Id-Version: Custom Nextpage 0.9.8\n" 6 "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/custom-nextpage\n" 7 "POT-Creation-Date: 2014-09-24 07:05:35+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" … … 13 13 "Language-Team: LANGUAGE <LL@li.org>\n" 14 14 15 #: custom-nextpage.php:46 includes/class-admin-menu.php:157 15 #: custom-nextpage.php:48 includes/class-admin-menu.php:203 16 msgid "«" 17 msgstr "" 18 19 #: custom-nextpage.php:49 includes/class-admin-menu.php:202 16 20 msgid "»" 17 21 msgstr "" 18 22 19 #: custom-nextpage.php: 47 includes/class-admin-menu.php:15820 msgid "& #171;"23 #: custom-nextpage.php:50 24 msgid ">" 21 25 msgstr "" 22 26 23 #: includes/class-admin-editor.php:52 27 #: custom-nextpage.php:51 28 msgid "<" 29 msgstr "" 30 31 #: includes/class-admin-editor.php:54 24 32 msgid "Title:" 25 33 msgstr "" 26 34 27 #: includes/class-admin-editor.php: 5835 #: includes/class-admin-editor.php:60 28 36 msgid "OK" 29 37 msgstr "" 30 38 31 #: includes/class-admin-editor.php:6 139 #: includes/class-admin-editor.php:63 32 40 msgid "Cancel" 33 41 msgstr "" 34 42 35 #. #-#-#-#-# custom-nextpage.pot (Custom Nextpage 0.9. 1) #-#-#-#-#43 #. #-#-#-#-# custom-nextpage.pot (Custom Nextpage 0.9.8) #-#-#-#-# 36 44 #. Plugin Name of the plugin/theme 37 45 #: includes/class-admin-menu.php:12 … … 47 55 msgstr "" 48 56 49 #: includes/class-admin-menu.php:26 includes/class-admin-menu.php:1 5057 #: includes/class-admin-menu.php:26 includes/class-admin-menu.php:195 50 58 msgid "Convert" 51 59 msgstr "" … … 55 63 msgstr "" 56 64 57 #: includes/class-admin-menu.php:29 includes/class-admin-menu.php: 16965 #: includes/class-admin-menu.php:29 includes/class-admin-menu.php:216 58 66 msgid "Initialization" 59 67 msgstr "" … … 76 84 77 85 #: includes/class-admin-menu.php:81 86 msgid "The first and last page links displayed." 87 msgstr "" 88 89 #: includes/class-admin-menu.php:93 90 msgid "Next and previous page links to display." 91 msgstr "" 92 93 #: includes/class-admin-menu.php:105 94 msgid "Text For First Page" 95 msgstr "" 96 97 #: includes/class-admin-menu.php:117 98 msgid "Text For Last Page" 99 msgstr "" 100 101 #: includes/class-admin-menu.php:129 78 102 msgid "Text For Next Page" 79 103 msgstr "" 80 104 81 #: includes/class-admin-menu.php: 93105 #: includes/class-admin-menu.php:141 82 106 msgid "Text For Previous Page" 83 107 msgstr "" -
custom-nextpage/trunk/readme.txt
r991536 r995884 16 16 A plug-in installation screen is displayed on the WordPress admin panel. 17 17 It installs it in `wp-content/plugins`. 18 The plug-in is made effective. 18 The plug-in is made effective. 19 19 Open \'Settings\' -> \'Custom Nextpage\' menu. 20 20 … … 31 31 32 32 == Changelog == 33 = 0.9.9 = 34 Add First page link 35 Add Last page link 36 Add Link display options 37 33 38 = 0.9.8 = 34 39 Class adjustment
Note: See TracChangeset
for help on using the changeset viewer.