Changeset 943236
- Timestamp:
- 07/04/2014 06:30:16 AM (12 years ago)
- Location:
- pondol-bbs/trunk
- Files:
-
- 5 added
- 14 edited
-
assets/css/default/pondol-bbs.css (modified) (1 diff)
-
assets/css/gallery (added)
-
assets/css/gallery/pondol-bbs.css (added)
-
assets/css/notice (added)
-
assets/css/notice/pondol-bbs.css (added)
-
assets/js/pondolplugin-carousel-creator.js (added)
-
includes/class.pondol.bbs.admin.php (modified) (3 diffs)
-
includes/class.pondol.bbs.controller.php (modified) (1 diff)
-
includes/class.pondol.bbs.php (modified) (7 diffs)
-
includes/class.pondol.bbs.templates.php (modified) (12 diffs)
-
includes/func.bbs.php (modified) (2 diffs)
-
pages/admin.taxonomy.edit.php (modified) (3 diffs)
-
pondolbbs.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
templates/default/archive-write.php (modified) (3 diffs)
-
templates/gallery/archive-list.php (modified) (2 diffs)
-
templates/gallery/archive-view.php (modified) (1 diff)
-
templates/gallery/archive-write.php (modified) (3 diffs)
-
templates/notice/archive-write.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pondol-bbs/trunk/assets/css/default/pondol-bbs.css
r934213 r943236 9 9 .button_group:after {content:""; display:block; clear:both;} 10 10 11 #pondol-bbs-view table{width:100%;} 11 12 #pondol-bbs-view th {background-color:#CCCCCC; padding:10px;} 12 13 #pondol-bbs-view td {padding:10px;} 13 14 14 15 #pondol-bbs-write table{width:100%;} 15 16 #pondol-bbs-write th{background-color:#CCCCCC; padding-left:5px;} 16 17 #pondol-bbs-write td{padding:5px;} -
pondol-bbs/trunk/includes/class.pondol.bbs.admin.php
r934213 r943236 12 12 function admin_init(){ 13 13 add_action(PONDOL_BBS_TAXO.'_add_form_fields', array($this, 'pondol_bbs_taxonomy_edit_meta_field')); 14 15 14 add_action(PONDOL_BBS_TAXO.'_edit_form_fields', array($this, 'pondol_bbs_taxonomy_edit_meta_field')); 16 15 … … 19 18 20 19 add_filter('plugin_row_meta', array($this, 'add_pondol_links'), 10, 2); 21 22 //add_action('board_create_form_fields',array($this, 'pippin_taxonomy_add_new_meta_field'));23 //add_action('board_edit_form_fields',array($this, 'pippin_taxonomy_add_new_meta_field'));24 20 } 25 /* 26 * 27 * http://codex.wordpress.org/Roles_and_Capabilities#User_Levels 28 */ 21 29 22 30 23 function pondol_bbs_taxonomy_add_new_meta_field() { … … 37 30 $pondol_taxo = $this->ctrl->func->get_taxonomy_options($term_id); 38 31 $tmplList = $this->ctrl->func->read_dir(PONDOL_BBS_PATH."/templates/"); 39 //echo "here i am";40 32 @include_once PONDOL_BBS_PATH.'pages/admin.taxonomy.edit.php'; 41 33 -
pondol-bbs/trunk/includes/class.pondol.bbs.controller.php
r934030 r943236 15 15 $this->admin = new Pondol_BBS_Admin($this); 16 16 $this->tmpl = new Pondol_BBS_Templates($this); 17 $this->func = new Pondol_ Func();17 $this->func = new Pondol_Bbs_Func(); 18 18 //$this->init(); 19 19 } -
pondol-bbs/trunk/includes/class.pondol.bbs.php
r934030 r943236 14 14 global $wpdb, $wp_query, $current_user; 15 15 16 16 //echo "bbs_save start.."; 17 17 if (isset($_POST['pondol_bbs_submit_form']) && !empty($_POST['pondol_bbs_submit_form'])) { 18 18 ## TITLE … … 121 121 122 122 }else{ 123 123 124 $this->ctrl->bbs->has_access_auth("write"); 124 125 … … 143 144 //wp_set_post_categories($POST_ID, array($category), true); 144 145 145 // 메일보내기146 //send mail 146 147 /* 147 148 if ($usp_options['usp_email_alerts'] == true) { … … 203 204 }//end of bbs_save 204 205 205 /* 206 * "POST_ID" => $POST_ID, 207 "THREAD" => "A", 208 "FID" => $POST_ID, 209 "USER_ID" => $current_user->user_login, 210 "USER_NAME" => $bbs_name, 211 "USER_PASSWD" => md5($_POST['bbs-password']), 212 "COUNT" => 0 213 */ 206 214 207 public function insert_into_board($arr){ 215 208 global $wpdb; … … 240 233 }//end of update_into_board 241 234 242 public function update_bbs_meta($post){ 243 global $wpdb; 244 $count = $wpdb->get_var("SELECT COUNT(TID) FROM ".$this->ctrl->model->get_table_name("board")." where POST_ID = ".$post->ID); 245 if(!$count && isset($post->ID)){ 246 $arr = array("POST_ID"=>$post->ID, "THREAD"=>"A", "FID"=>$post->ID, "COUNT"=>0); 247 return $this->insert_into_board($arr); 248 } 235 public function update_bbs_meta($post_id){ 236 global $wpdb, $current_user; 237 if($_POST["post_type"] == PONDOL_BBS){ 238 $count = $wpdb->get_var("SELECT COUNT(TID) FROM ".$this->ctrl->model->get_table_name("board")." where POST_ID = ".$post_id); 239 if(!$count && isset($post_id)){ 240 $arr = array("POST_ID"=>$post_id, "THREAD"=>"A", "FID"=>$post_id, "COUNT"=>0, "USER_ID"=>$current_user->user_login, "USER_NAME"=>$current_user->display_nam); 241 return $this->insert_into_board($arr); 242 } 243 } 244 249 245 return; 250 246 } … … 268 264 public function bbs_auth_check(){ 269 265 global $wpdb; // this is how you get access to the database 270 //{"action":"pondol_bbs_modify_auth_check","security":"192e259589","bbs_id":"866"}271 //bbs_id272 //echo "author_info";273 //print_r($author_info);274 //echo "adsfadf";275 //author_info->data->user_login276 //if($author_info->data->user_login)277 266 check_ajax_referer( 'my-special-string', 'security' ); 278 267 … … 358 347 359 348 public function has_access_auth($bbstype){ 360 361 //echo "bbs_type:".$bbs_type;362 349 $author_info = wp_get_current_user(); 363 //print_r($author_info);364 350 $roles = $author_info->roles[0] ? $author_info->roles[0]:"nologin"; 365 351 $toxonomy = $this->ctrl->func->get_custom_taxonomy(); 366 367 352 //echo "bbstype:", $bbstype, "</br>"; 353 //print_r($toxonomy); 354 //exit; 368 355 switch($bbstype){ 369 356 case "write": -
pondol-bbs/trunk/includes/class.pondol.bbs.templates.php
r934821 r943236 2 2 class Pondol_BBS_Templates { 3 3 4 private $ctrl; 4 private $ctrl, $_toxonomy; 5 5 6 6 7 function __construct($controller) { 7 8 8 $this->ctrl = $controller; 9 9 } … … 18 18 if ( $wp_query->query_vars[PONDOL_BBS_TAXO] || $wp_query->query_vars["post_type"] == PONDOL_BBS) {// || $wp->query_vars["name"] 모든 파일이 다 안됨 19 19 20 21 wp_enqueue_style( 'pondol-bbs-default-style', plugins_url('../assets/css/default/pondol-bbs.css', __FILE__ ));22 wp_enqueue_script( 'pondolbbs-core-script', plugins_url('../assets/js/pondol-bbs.js', __FILE__ ), false, '1.1.0', true);23 add_action('wp_enqueue_scripts', array($this->ctrl->func, 'add_ajax'));24 20 if($_GET["bbstype"]){ 25 21 $bbstype = $_GET["bbstype"]; … … 27 23 $bbstype = "view"; 28 24 } 29 30 25 $this->ctrl->bbs->has_access_auth($bbstype); 26 27 $this->_toxonomy = $this->ctrl->func->get_custom_taxonomy(); 28 //print_r($this->_toxonomy); 29 wp_enqueue_style( 'pondol-bbs-default-style1', plugins_url('../assets/css/'.$this->_toxonomy->pondol_taxo["skin"].'/pondol-bbs.css', __FILE__ )); 30 wp_enqueue_script( 'pondolbbs-core-script', plugins_url('../assets/js/pondol-bbs.js', __FILE__ ), false, '1.1.0', true); 31 add_action('wp_enqueue_scripts', array($this->ctrl->func, 'add_ajax')); 32 31 33 switch($bbstype){ 32 34 case "write": … … 54 56 public function template_list(){ 55 57 global $wpdb, $wp_query; 56 57 58 $toxonomy = $this->ctrl->func->get_custom_taxonomy(); 59 60 //get toxonomy options 61 $term_id = $this->ctrl->func->get_term_id(); 62 $taxonomy_options = $this->ctrl->func->get_taxonomy_options($term_id); 63 $table_style = $this->ctrl->func->get_tmpl_table_style($taxonomy_options); 64 65 //print_r($taxonomy_options); 58 59 //$term_id = $this->ctrl->func->get_term_id(); 60 //$taxonomy_options = $this->ctrl->func->get_taxonomy_options($term_id); 61 //$table_style = $this->ctrl->func->get_tmpl_table_style($taxonomy_options); 62 $table_style = $this->ctrl->func->get_tmpl_table_style($this->_toxonomy->pondol_taxo);//get table style; 66 63 67 64 set_transient( 'list_link', $this->ctrl->func->current_page_url(), 12 * HOUR_IN_SECONDS ); … … 69 66 $pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1; 70 67 71 $limit = $t axonomy_options["list_count"]; // number of rows in page68 $limit = $this->_toxonomy->pondol_taxo["list_count"]; // number of rows in page 72 69 $offset = ( $pagenum - 1 ) * $limit; 73 74 70 75 71 $whereis = " p.post_status = 'publish' and t.term_taxonomy_id = ".$wp_query->queried_object->term_taxonomy_id; … … 131 127 ); 132 128 129 133 130 get_header(); 134 @include_once PONDOL_BBS_PATH.'templates/'.$t oxonomy->pondol_taxo["skin"].'/archive-list.php';131 @include_once PONDOL_BBS_PATH.'templates/'.$this->_toxonomy->pondol_taxo["skin"].'/archive-list.php'; 135 132 $this->ctrl->func->copyright(); 136 133 //get_sidebar(); … … 142 139 public function template_write(){ 143 140 global $wpdb, $post, $current_user;//$wp_query, 144 145 $toxonomy = $this->ctrl->func->get_custom_taxonomy(); 146 147 //get toxonomy options 148 $term_id = $this->ctrl->func->get_term_id(); 149 $taxonomy_options = $this->ctrl->func->get_taxonomy_options($term_id); 150 $table_style = $this->ctrl->func->get_tmpl_table_style($taxonomy_options); 141 $table_style = $this->ctrl->func->get_tmpl_table_style($this->_toxonomy->pondol_taxo);//get table style; 151 142 152 143 if($_GET["bbstype"] == "modify"){ … … 165 156 b.POST_ID = ".$post->ID." 166 157 "); 167 //$_GET["bbstype"] == "modify" 158 168 159 }elseif($_GET["bbstype"] == "reply"){ 169 160 $row = $wpdb->get_row(" … … 186 177 187 178 wp_enqueue_script( 'pondolbbs-validate-script', plugins_url('../assets/js/jquery.validate.min.js', __FILE__ ), false, '1.12.0', true); 179 188 180 get_header(); 189 @include_once PONDOL_BBS_PATH.'templates/'.$t oxonomy->pondol_taxo["skin"].'/archive-write.php';181 @include_once PONDOL_BBS_PATH.'templates/'.$this->_toxonomy->pondol_taxo["skin"].'/archive-write.php'; 190 182 $this->ctrl->func->copyright(); 191 183 //get_sidebar(); … … 197 189 global $wpdb, $wp_query, $post; 198 190 199 $toxonomy = $this->ctrl->func->get_custom_taxonomy(); 200 191 201 192 $meta_values = get_post_meta( $post->ID); 202 193 … … 204 195 205 196 $this->ctrl->bbs->update_view_count($post->ID); 206 207 //get toxonomy options 208 $term_id = $this->ctrl->func->get_term_id(); 209 $taxonomy_options = $this->ctrl->func->get_taxonomy_options($term_id); 210 $table_style = $this->ctrl->func->get_tmpl_table_style($taxonomy_options); 197 198 $table_style = $this->ctrl->func->get_tmpl_table_style($this->_toxonomy->pondol_taxo);//get table style; 211 199 //get post password and post 212 200 … … 226 214 $hidden_args = array("pondol_bbs_hidden_post_id"=>$post->ID); 227 215 get_header(); 228 @include_once PONDOL_BBS_PATH.'templates/'.$t oxonomy->pondol_taxo["skin"].'/archive-view.php';216 @include_once PONDOL_BBS_PATH.'templates/'.$this->_toxonomy->pondol_taxo["skin"].'/archive-view.php'; 229 217 $this->ctrl->func->copyright(); 230 218 //get_sidebar(); -
pondol-bbs/trunk/includes/func.bbs.php
r934213 r943236 2 2 3 3 4 class Pondol_ Func {4 class Pondol_Bbs_Func { 5 5 6 6 var $_taxonomy_options; … … 177 177 return $this->_taxonomy_options; 178 178 } 179 /* 180 function get_table_align($arr){ 181 //echo $arr["align"]; 182 switch($arr["align"]){ 183 case "left": 184 case "right": 185 return 'align="'.$arr["align"].'"'; 186 break; 187 case "center": 188 return 'style="margin-left: auto;margin-right: auto;"'; 189 break; 190 } 191 } 192 */ 179 193 180 function get_tmpl_table_style($arr){ 194 181 -
pondol-bbs/trunk/pages/admin.taxonomy.edit.php
r934821 r943236 23 23 <td> 24 24 <input value="true" type="checkbox" name="pondol_taxo[copyright]" style="width:16px"<?php echo $pondol_taxo["copyright"] == "true" ? " checked":""; ?>> 25 <span class="description"> if you want to not showing copy right, uncheck this.</span>25 <span class="description"><?php _e( 'if you want to not showing copy right, uncheck this.', 'pondol_bbs' )?></span> 26 26 <img id="pondol_paypal"src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" style="width:146px"> 27 27 </td> … … 104 104 <td> 105 105 <input value="true" type="checkbox" name="pondol_taxo[dhtml_editor]" style="width:16px"<?php echo $pondol_taxo["dhtml_editor"] == "true" ? " checked":""; ?>> 106 <span class="description"> if you want to use dhtml editor check this</span>106 <span class="description"><?php _e( 'if you want to use dhtml editor check this.', 'pondol_bbs' )?></span> 107 107 </td> 108 108 </tr> … … 129 129 </select> 130 130 </br> 131 <span class="description"> According to what you use templates, this not be work.</span>131 <span class="description"><?php _e( 'According to what you use templates, this not be work.', 'pondol_bbs' )?></span> 132 132 </td> 133 133 </tr> -
pondol-bbs/trunk/pondolbbs.php
r934821 r943236 5 5 Description: General BBS Program 6 6 Author: Pondol 7 Version: 1.1. 17 Version: 1.1.2 8 8 Author URI: http://www.shop-wiz.com/wp/plugins/pondol_bbs 9 9 License: GPL2 … … 41 41 $this->ctrl = new Pondol_BBS_Controller(); 42 42 43 43 44 add_action( 'init', array($this->ctrl, 'register_bbs_posttype')); 44 45 add_action( 'init', array($this->ctrl, 'register_bbs_taxonomies')); … … 47 48 add_action( 'plugins_loaded', array($this, 'pondol_bbs_i18n_init')); 48 49 49 50 //save bbs post at back_end 51 add_action('save_post', array($this->ctrl->bbs, 'update_bbs_meta'), 20, 1);//actually open new post 52 50 53 //save bbs post at front_end 51 add_action ('parse_request', array($this->ctrl , 'bbs_save'));54 add_action ('parse_request', array($this->ctrl->bbs, 'bbs_save')); 52 55 53 56 if ( is_admin() ) -
pondol-bbs/trunk/readme.txt
r934821 r943236 1 1 === Pondol BBS === 2 2 Contributors: pondol 3 Tags: bbs,board,pondol,notice 3 Tags: bbs,board,pondol,notice,imagegallery 4 4 Requires at least: 3.0 5 5 Tested up to: 3.8.1 6 Stable tag: 1.1 6 Stable tag: 1.1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 35 35 == Changelog == 36 = 1.1.2 = 37 fix bug : when create or edit posts in back-end, did not inserted in bbs database 38 modify gallery form 39 36 40 = 1.1.1 = 37 41 translation ko_KR -
pondol-bbs/trunk/templates/default/archive-write.php
r934213 r943236 40 40 <input type="hidden" name="bbs-id" value="<?php echo $row->ID;?>" /> 41 41 <input type="hidden" name="bbs-type" value="<?php echo $_GET["bbstype"];?>" /> 42 <input type="hidden" name="bbs-category" value="<?php echo $t oxonomy->term_id;?>" />42 <input type="hidden" name="bbs-category" value="<?php echo $this->_toxonomy->term_id;?>" /> 43 43 <table> 44 44 <col width="150px"> … … 59 59 <td colspan="2"> 60 60 <?php 61 if($t axonomy_options["dhtml_editor"] == "true"){61 if($this->_toxonomy->pondol_taxo["dhtml_editor"] == "true"){ 62 62 ?> 63 63 … … 89 89 </tr> 90 90 <?php 91 if($t axonomy_options["files_count"] > 0){91 if($this->_toxonomy->pondol_taxo["files_count"] > 0){ 92 92 ?> 93 93 <tr> 94 94 <th><?php _e('Upload an Image', 'pondol_bbs'); ?></th> 95 <td><?php for ($i = 0; $i < $t axonomy_options["files_count"]; $i++) : ?>95 <td><?php for ($i = 0; $i < $this->_toxonomy->pondol_taxo["files_count"]; $i++) : ?> 96 96 <input name="bbs-image[]" type="file" size="25"> 97 97 <?php endfor; ?></td> 98 98 </tr> 99 99 <?php 100 }//if($t axonomy_options["files_count"] > 0)100 }//if($this->_toxonomy->pondol_taxo["files_count"] > 0) 101 101 ?> 102 102 </table> -
pondol-bbs/trunk/templates/gallery/archive-list.php
r934821 r943236 11 11 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 12 12 13 13 14 ?> 14 15 <div <?php echo $table_style;?>> … … 31 32 <input type="submit" value="<?php _e( 'Search', 'pondol_bbs' ); ?>" /> 32 33 </form> 34 <?php 35 if(is_array($rows)) foreach($rows as $key => $val){ 36 $meta_values = get_post_meta( $val->ID); 37 ?> 38 <div id="pondol-bbs-list"> 39 <a href="<?php echo $val->guid?>"> 40 <img src="<?php echo $meta_values["pondol_bbs_file"][0];?>" alt="<?php echo $val->post_title;?>" width="110" height="90"> 41 </a> 42 <div class="desc"><?php echo $val->post_title;?></div> 33 43 </div> 34 <div id="pondol-bbs-list" <?php echo $table_style;?>> 35 <table> 36 <col width="50px"> 37 <col width="*"> 38 <col width="100px"> 39 <col width="50px"> 40 <thead> 41 <tr> 42 <th><?php _e( 'No.', 'pondol_bbs' ); ?></th> 43 <th><?php _e( 'Title', 'pondol_bbs' ); ?></th> 44 <th><?php _e( 'Created', 'pondol_bbs' ); ?></th> 45 <th><?php _e( 'Count', 'pondol_bbs' ); ?></th> 46 </tr> 47 </thead> 48 <tbody> 49 <?php 50 if(is_array($rows)) foreach($rows as $key => $val){ 51 52 53 ?> 54 <tr> 55 <td><?php echo ($start_no - $key); ?></td> 56 <td><a href="<?php echo $val->guid?>"><?php echo $val->post_title;?></a></td> 57 <td><?php echo date("Y.m.d", strtotime($val->post_date));?></td> 58 <td><?php echo number_format($val->COUNT);?></td> 59 </tr> 60 61 <?php 62 }else{ 63 ?> 64 <tr> 65 <td colspan="5"><?php _e( 'No search result', 'pondol_bbs' ); ?></td> 66 </tr> 67 <?php 68 69 } 70 ?> 71 </tbody> 72 </table> 44 <?php 45 } 73 46 74 <?php75 47 if ( $page_links ) { 76 48 echo '<div class="tablenav"><div class="tablenav-pages" style="margin: 1em 0">' . $page_links . '</div></div>'; -
pondol-bbs/trunk/templates/gallery/archive-view.php
r934213 r943236 23 23 </th> 24 24 <td> 25 <?php echo $row->post_title;?> 25 <?php echo $row->post_title;?> (<?php echo $row->post_date;?>) 26 26 </td> 27 27 </tr> 28 28 <tr> 29 <th> 30 <?php _e( 'Created', 'pondol_bbs' ); ?> 31 </th> 32 <td> 33 <?php echo $row->post_date;?> 34 </td> 35 </tr> 36 <?php if(count($meta_values["pondol_bbs_file"]) > 0){ 37 echo "<tr><th>".__( 'Files', 'pondol_bbs' )."</th><td>"; 38 foreach($meta_values["pondol_bbs_file"] as $key=>$val){ 39 echo '<a href="'.$val.'" target="_blank">'.__( 'Download', 'pondol_bbs' ).'</a>'; 40 } 41 echo "</td></tr>"; 42 } 43 ?> 44 <tr> 45 <th> 46 <?php _e( 'Content', 'pondol_bbs' ); ?> 47 </th> 48 <td> 29 <td colspan="2"> 49 30 <?//php echo $row->post_content;?> 50 31 <?php 51 if ( has_post_thumbnail() ) { 52 the_post_thumbnail( thumbnail );//the_post_thumbnail( ) 53 } 54 ?> 32 if ( has_post_thumbnail() ) { 33 the_post_thumbnail( thumbnail );//the_post_thumbnail( ) 34 } 35 ?> 36 55 37 <?php if ( have_posts() ) { the_post(); the_content(); }?> 56 38 39 <div id="image_box"> 40 <?php if(count($meta_values["pondol_bbs_file"]) > 0){ 41 foreach($meta_values["pondol_bbs_file"] as $key=>$val){ 42 echo '<img src="'.$val.'">'; 43 } 44 } 45 ?> 46 </div> 57 47 </td> 58 48 </tr> -
pondol-bbs/trunk/templates/gallery/archive-write.php
r934213 r943236 36 36 <input type="hidden" name="bbs-id" value="<?php echo $row->ID;?>" /> 37 37 <input type="hidden" name="bbs-type" value="<?php echo $_GET["bbstype"];?>" /> 38 <input type="hidden" name="bbs-category" value="<?php echo $t oxonomy->term_id;?>" />38 <input type="hidden" name="bbs-category" value="<?php echo $this->_toxonomy->term_id;?>" /> 39 39 <table> 40 40 <col width="150px"> … … 47 47 <td colspan="2"> 48 48 <?php 49 if($t axonomy_options["dhtml_editor"] == "true"){49 if($this->_toxonomy->pondol_taxo["dhtml_editor"] == "true"){ 50 50 ?> 51 51 … … 77 77 </tr> 78 78 <?php 79 if($t axonomy_options["files_count"] > 0){79 if($this->_toxonomy->pondol_taxo["files_count"] > 0){ 80 80 ?> 81 81 <tr> 82 82 <th><?php _e('Upload an Image', 'pondol_bbs'); ?></th> 83 <td><?php for ($i = 0; $i < $t axonomy_options["files_count"]; $i++) : ?>83 <td><?php for ($i = 0; $i < $this->_toxonomy->pondol_taxo["files_count"]; $i++) : ?> 84 84 <input name="bbs-image[]" type="file" size="25"> 85 85 <?php endfor; ?></td> 86 86 </tr> 87 87 <?php 88 }//if($t axonomy_options["files_count"] > 0)88 }//if($this->_toxonomy->pondol_taxo["files_count"] > 0) 89 89 ?> 90 90 </table> -
pondol-bbs/trunk/templates/notice/archive-write.php
r934213 r943236 36 36 <input type="hidden" name="bbs-id" value="<?php echo $row->ID;?>" /> 37 37 <input type="hidden" name="bbs-type" value="<?php echo $_GET["bbstype"];?>" /> 38 <input type="hidden" name="bbs-category" value="<?php echo $t oxonomy->term_id;?>" />38 <input type="hidden" name="bbs-category" value="<?php echo $this->_toxonomy->term_id;?>" /> 39 39 <table> 40 40 <col width="150px"> … … 47 47 <td colspan="2"> 48 48 <?php 49 if($t axonomy_options["dhtml_editor"] == "true"){49 if($this->_toxonomy->pondol_taxo["dhtml_editor"] == "true"){ 50 50 ?> 51 51 … … 77 77 </tr> 78 78 <?php 79 if($t axonomy_options["files_count"] > 0){79 if($this->_toxonomy->pondol_taxo["files_count"] > 0){ 80 80 ?> 81 81 <tr> 82 82 <th><?php _e('Upload an Image', 'pondol_bbs'); ?></th> 83 <td><?php for ($i = 0; $i < $t axonomy_options["files_count"]; $i++) : ?>83 <td><?php for ($i = 0; $i < $this->_toxonomy->pondol_taxo["files_count"]; $i++) : ?> 84 84 <input name="bbs-image[]" type="file" size="25"> 85 85 <?php endfor; ?></td> 86 86 </tr> 87 87 <?php 88 }//if($t axonomy_options["files_count"] > 0)88 }//if($this->_toxonomy->pondol_taxo["files_count"] > 0) 89 89 ?> 90 90 </table>
Note: See TracChangeset
for help on using the changeset viewer.