Changeset 1497350
- Timestamp:
- 09/17/2016 05:44:18 AM (10 years ago)
- Location:
- idea-board/trunk
- Files:
-
- 12 edited
-
idea-board-filter.php (modified) (1 diff)
-
languages/idea-board-ko_KR.mo (modified) (previous)
-
languages/idea-board-ko_KR.po (modified) (1 diff)
-
languages/idea-board.po (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
src/ideapeople/board/Activator.php (modified) (1 diff)
-
src/ideapeople/board/Editor.php (modified) (4 diffs)
-
src/ideapeople/board/Plugin.php (modified) (2 diffs)
-
src/ideapeople/board/Roles.php (modified) (1 diff)
-
src/ideapeople/board/Seo.php (modified) (1 diff)
-
src/ideapeople/board/setting/Setting.php (modified) (1 diff)
-
views/admin/setting.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
idea-board/trunk/idea-board-filter.php
r1496785 r1497350 191 191 192 192 add_filter( 'wp_kses_allowed_html', 'idea_board_allow_html' ); 193 194 function idea_board_pre_post_update( $data, $postarr ) { 195 if ( isset( $postarr[ 'post_ID' ] ) && $postarr[ 'post_ID' ] ) { 196 $post = get_post( $postarr[ 'post_ID' ] ); 197 198 $data[ 'post_author' ] = $post->post_author; 199 } 200 201 return $data; 202 } 203 204 add_filter( 'wp_insert_post_data', 'idea_board_pre_post_update', 10, 2 ); -
idea-board/trunk/languages/idea-board-ko_KR.po
r1496915 r1497350 178 178 179 179 msgid "Forum Setting" 180 msgstr "게시판 환경설정"180 msgstr "게시판<br/>환경설정" 181 181 182 182 msgid "Upload file types to allow" -
idea-board/trunk/languages/idea-board.po
r1496915 r1497350 4 4 "Report-Msgid-Bugs-To: http://www.ideapeople.co.kr\n" 5 5 "POT-Creation-Date: 2016-08-12 22:51+0900\n" 6 "PO-Revision-Date: 2016-09-16 2 1:46+0900\n"6 "PO-Revision-Date: 2016-09-16 20:27+0900\n" 7 7 "Last-Translator: IdeaPeople<>\n" 8 8 "Language-Team: ideapeople <ideapeople@ideapeople.co.kr>\n" -
idea-board/trunk/readme.txt
r1496925 r1497350 36 36 == Frequently Asked Questions == 37 37 38 If you have any concerns, please contact your questions [IDEA-PEOPLE](http://www.ideapeople.co.kr/plugin-qna) 38 If you have any concerns, please contact your questions 39 40 [FACEBOOK] (https://www.facebook.com/ipeople2014) 41 42 [HOMEPAGE] (http://www.ideapeople.co.kr/plugin-qna) 39 43 40 44 == Screenshots == -
idea-board/trunk/src/ideapeople/board/Activator.php
r1496900 r1497350 14 14 15 15 public function __construct() { 16 global $wp_version;17 18 16 $this->post_type = new PostTypes(); 19 17 $this->roles = new Roles(); -
idea-board/trunk/src/ideapeople/board/Editor.php
r1496785 r1497350 25 25 $args = wp_parse_args( $args, array( 26 26 'wp_editor' => array( 27 'name' => __( ' wordpress editor' ),27 'name' => __( 'Wordpress Editor' ), 28 28 'callback' => array( 'ideapeople\board\Editor', 'wp_editor' ), 29 29 'args' => array() 30 30 ), 31 31 'text_area' => array( 32 'name' => __( 'TEXT AREA' ),32 'name' => __( 'TEXT AREA' ), 33 33 'callback' => array( 'ideapeople\board\Editor', 'text_area' ), 34 34 'args' => array() … … 40 40 41 41 public static function text_area( $args ) { ?> 42 <label for="<?php echo $args[ 'name'] ?>" class="idea-board-hide"></label>43 <textarea name="<?php echo $args[ 'name'] ?>"44 id="<?php echo $args[ 'name'] ?>"45 class="<?php echo $args[ 'name'] ?>"46 rows="10"><?php echo $args[ 'content'] ?></textarea>42 <label for="<?php echo $args['name'] ?>" class="idea-board-hide"></label> 43 <textarea name="<?php echo $args['name'] ?>" 44 id="<?php echo $args['name'] ?>" 45 class="<?php echo $args['name'] ?>" 46 rows="10"><?php echo $args['content'] ?></textarea> 47 47 <?php 48 48 } … … 53 53 } 54 54 55 wp_editor( $args[ 'content' ], $args[ 'name'], array() );55 wp_editor( $args['content'], $args['name'], array() ); 56 56 } 57 57 … … 66 66 $editor = self::get_editor( $board_editor ); 67 67 68 if ( isset( $editor[ 'args' ] ) && ! empty( $editor[ 'args'] ) ) {69 $args = wp_parse_args( $editor[ 'args'], $args );68 if ( isset( $editor['args'] ) && ! empty( $editor['args'] ) ) { 69 $args = wp_parse_args( $editor['args'], $args ); 70 70 } 71 71 72 72 ob_start(); 73 73 74 call_user_func( $editor[ 'callback'], $args );74 call_user_func( $editor['callback'], $args ); 75 75 $content = ob_get_contents(); 76 76 ob_end_clean(); -
idea-board/trunk/src/ideapeople/board/Plugin.php
r1496785 r1497350 78 78 79 79 public function plugin_hooks() { 80 WP_Session::get_instance();81 82 80 $this->loader->add_action( 'wp', $this, 'register_global_vars', 1 ); 83 81 … … 167 165 168 166 public function register_global_vars() { 169 $GLOBALS[ 'idea_board_page_mode'] = get_query_var( 'page_mode' );167 $GLOBALS['idea_board_page_mode'] = get_query_var( 'page_mode' ); 170 168 171 $GLOBALS[ 'idea_board_pid' ] = get_query_var( 'pid' ); 169 $GLOBALS['idea_board_pid'] = get_query_var( 'pid' ); 170 171 $GLOBALS['idea_board_session'] = WP_Session::get_instance(); 172 172 } 173 173 } -
idea-board/trunk/src/ideapeople/board/Roles.php
r1496843 r1497350 21 21 22 22 $roles = array(); 23 $roles[ 'all' ] = __idea_board( 'All Open' );23 $roles[ 'all' ] = __idea_board( 'All open' ); 24 24 $roles[ 'isLogin' ] = __idea_board( 'Login Users' ); 25 25 $roles[ 'onlyAuthor' ] = __idea_board( 'Only Author' ); -
idea-board/trunk/src/ideapeople/board/Seo.php
r1496808 r1497350 79 79 80 80 public function clear_other_seo() { 81 add_filter( 'jetpack_enable_open_graph', '__return_false');82 81 remove_action( 'wp_head', 'wpseo_head', 20 ); 82 remove_action( 'wp_head', 'wpseo_opengraph', 20 ); 83 83 remove_action( 'wp_head', 'rel_canonical' ); 84 84 remove_action( 'wp_head', 'wp_shortlink_wp_head' ); 85 86 add_filter( 'jetpack_enable_open_graph', '__return_false' ); 87 add_filter( 'wpseo_canonical', '__return_false' ); 88 add_filter( 'wpseo_title', '__return_false' ); 89 add_filter( 'wpseo_metadesc', '__return_false' ); 90 add_filter( 'wpseo_author_link', '__return_false' ); 91 add_filter( 'wpseo_metakey', '__return_false' ); 92 add_filter( 'wpseo_locale', '__return_false' ); 93 add_filter( 'wpseo_opengraph_type', '__return_false' ); 94 add_filter( 'wpseo_opengraph_image', '__return_false' ); 95 add_filter( 'wpseo_opengraph_image_size', '__return_false' ); 96 add_filter( 'wpseo_opengraph_site_name', '__return_false' ); 97 add_filter( 'wpseo_whitelist_permalink_vars', '__return_false' ); 98 add_filter( 'wpseo_prev_rel_link', '__return_false' ); 99 add_filter( 'wpseo_next_rel_link', '__return_false' ); 100 add_filter( 'wpseo_xml_sitemap_img_src', '__return_false' ); 101 add_filter( 'wp_seo_get_bc_title', '__return_false' ); 102 add_filter( 'wp_seo_get_bc_ancestors', '__return_false' ); 103 104 if ( defined( 'AIOSEOP_VERSION' ) ) { 105 global $aiosp; 106 remove_action( 'wp_head', array( $aiosp, 'wp_head' ) ); 107 } 85 108 } 86 109 } -
idea-board/trunk/src/ideapeople/board/setting/Setting.php
r1496900 r1497350 84 84 85 85 if ( ! $board_term ) { 86 $board_term = get_term_by( 'term_taxonomy_id', $value , PluginConfig::$board_tax);86 $board_term = get_term_by( 'term_taxonomy_id', $value ); 87 87 88 88 if ( ! $board_term ) { -
idea-board/trunk/views/admin/setting.php
r1496843 r1497350 74 74 <table class="form-table idea-board-admin-table" style="margin-bottom: 10px;"> 75 75 <tbody> 76 76 <?php if ( $board->name ) : ?> 77 <tr> 78 <th> 79 <strong><?php _e_idea_board( 'ShortCode' ); ?></strong> 80 </th> 81 <td><em>[idea_board name="<?php echo $board->name ?>"]</em></td> 82 </tr> 83 <?php endif; ?> 77 84 <tr> 78 85 <th><?php _e_idea_board( 'Forum Setting' ) ?></th> … … 93 100 <?php foreach ( Editor::get_editors() as $key => $editor ) { ?> 94 101 <option value="<?php echo $key ?>" 95 <?php echo $key == Setting::get_editor( $board->term_id ) ? 'selected' : '' ?>><?php echo $editor[ 'name'] ?></option>102 <?php echo $key == Setting::get_editor( $board->term_id ) ? 'selected' : '' ?>><?php echo $editor['name'] ?></option> 96 103 <?php } ?> 97 104 </select> … … 120 127 <p> 121 128 <select name="board_skin" id="board_skin"> 122 <?php foreach ( $board_skins[ 'board'] as $skin ) : ?>129 <?php foreach ( $board_skins['board'] as $skin ) : ?> 123 130 <option 124 value="<?php echo $skin[ 'name']; ?>"125 <?php echo $skin[ 'name'] == Setting::get_skin( $board->term_id ) ? 'selected' : '' ?>>126 <?php echo $skin[ 'name']; ?>131 value="<?php echo $skin['name']; ?>" 132 <?php echo $skin['name'] == Setting::get_skin( $board->term_id ) ? 'selected' : '' ?>> 133 <?php echo $skin['name']; ?> 127 134 </option> 128 135 <?php endforeach; ?> … … 135 142 <?php echo Setting::get_use_comment_skin( $board->term_id, false ) == 1 ? 'checked' : '' ?> /> 136 143 <?php _e_idea_board( 'Whether to use bulletin board comments skins' ); ?> 137 <em><?php _e_idea_board( 'If you use other WordPress plugin or theme Comments Comments Form Please check off' ); ?>.</em> 144 <em><?php _e_idea_board( 'If you use other WordPress plugin or theme Comments Comments Form Please check off' ); ?> 145 .</em> 138 146 </label> 139 147 </p> … … 185 193 <input type="checkbox" name="board_comment_moderation" id="board_comment_moderation" value="1" 186 194 <?php echo Setting::get_comment_moderation( $board->term_id, false ) == 1 ? 'checked' : '' ?> /> 187 <label for="board_comment_moderation"><?php _e_idea_board( 'Comments should be approved must be manually' ); ?></label> 195 <label 196 for="board_comment_moderation"><?php _e_idea_board( 'Comments should be approved must be manually' ); ?></label> 188 197 </p> 189 198 … … 192 201 <?php echo Setting::get_comment_whitelist( $board->term_id, false ) == 1 ? 'checked' : '' ?> /> 193 202 <label 194 for="board_comment_whitelist"><?php _e_idea_board( 'This person must have been written comments on the comments previously approve ' ); ?></label>203 for="board_comment_whitelist"><?php _e_idea_board( 'This person must have been written comments on the comments previously approved' ); ?></label> 195 204 </p> 196 205 </td> … … 231 240 232 241 <p> 233 <label for="roles[notice_edit][]"><?php _e_idea_board( 'Write Notice' ); ?></label>242 <label for="roles[notice_edit][]"><?php _e_idea_board( 'Write Notice' ); ?></label> 234 243 <?php echo CommonUtils::role_as_select_box( 'roles[notice_edit][]', Setting::get_role( $board->term_id, 'notice_edit', Capability::get_default_cap( 'notice_edit' ) ) ); ?> 235 244 </p>
Note: See TracChangeset
for help on using the changeset viewer.