Plugin Directory

Changeset 943236


Ignore:
Timestamp:
07/04/2014 06:30:16 AM (12 years ago)
Author:
pondol
Message:

ver 1.1.2

Location:
pondol-bbs/trunk
Files:
5 added
14 edited

Legend:

Unmodified
Added
Removed
  • pondol-bbs/trunk/assets/css/default/pondol-bbs.css

    r934213 r943236  
    99.button_group:after {content:""; display:block; clear:both;}
    1010
     11#pondol-bbs-view table{width:100%;}
    1112#pondol-bbs-view th {background-color:#CCCCCC; padding:10px;}
    1213#pondol-bbs-view td {padding:10px;}
    1314
    14 
     15#pondol-bbs-write table{width:100%;}
    1516#pondol-bbs-write th{background-color:#CCCCCC; padding-left:5px;}
    1617#pondol-bbs-write td{padding:5px;}
  • pondol-bbs/trunk/includes/class.pondol.bbs.admin.php

    r934213 r943236  
    1212    function admin_init(){
    1313        add_action(PONDOL_BBS_TAXO.'_add_form_fields', array($this, 'pondol_bbs_taxonomy_edit_meta_field'));
    14        
    1514        add_action(PONDOL_BBS_TAXO.'_edit_form_fields', array($this, 'pondol_bbs_taxonomy_edit_meta_field'));
    1615       
     
    1918       
    2019        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'));
    2420    }
    25     /*
    26      *
    27      * http://codex.wordpress.org/Roles_and_Capabilities#User_Levels
    28      */
     21
    2922   
    3023    function pondol_bbs_taxonomy_add_new_meta_field() {
     
    3730        $pondol_taxo                = $this->ctrl->func->get_taxonomy_options($term_id);
    3831        $tmplList                   = $this->ctrl->func->read_dir(PONDOL_BBS_PATH."/templates/");
    39         //echo "here i am";
    4032        @include_once PONDOL_BBS_PATH.'pages/admin.taxonomy.edit.php';
    4133       
  • pondol-bbs/trunk/includes/class.pondol.bbs.controller.php

    r934030 r943236  
    1515        $this->admin    = new Pondol_BBS_Admin($this);
    1616        $this->tmpl     = new Pondol_BBS_Templates($this);
    17         $this->func     = new Pondol_Func();
     17        $this->func     = new Pondol_Bbs_Func();
    1818        //$this->init();
    1919    }
  • pondol-bbs/trunk/includes/class.pondol.bbs.php

    r934030 r943236  
    1414        global $wpdb, $wp_query, $current_user;
    1515       
    16        
     16//echo "bbs_save start..";
    1717        if (isset($_POST['pondol_bbs_submit_form']) && !empty($_POST['pondol_bbs_submit_form'])) {
    1818            ## TITLE
     
    121121           
    122122                }else{
     123                   
    123124                    $this->ctrl->bbs->has_access_auth("write");
    124125                   
     
    143144                //wp_set_post_categories($POST_ID, array($category), true);
    144145               
    145                 //메일보내기
     146                //send mail
    146147                /*
    147148                if ($usp_options['usp_email_alerts'] == true) {
     
    203204    }//end of bbs_save
    204205
    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
    214207    public function insert_into_board($arr){
    215208        global $wpdb;
     
    240233    }//end of update_into_board
    241234
    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
    249245        return;
    250246    }
     
    268264    public function bbs_auth_check(){
    269265        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_id
    272         //echo "author_info";
    273         //print_r($author_info);
    274         //echo "adsfadf";
    275         //author_info->data->user_login
    276         //if($author_info->data->user_login)
    277266        check_ajax_referer( 'my-special-string', 'security' );
    278267       
     
    358347   
    359348    public function has_access_auth($bbstype){
    360            
    361         //echo "bbs_type:".$bbs_type;
    362349        $author_info = wp_get_current_user();
    363         //print_r($author_info);
    364350        $roles = $author_info->roles[0] ? $author_info->roles[0]:"nologin";
    365351        $toxonomy   =   $this->ctrl->func->get_custom_taxonomy();
    366        
    367        
     352//echo "bbstype:", $bbstype, "</br>";
     353//print_r($toxonomy);
     354//exit;
    368355        switch($bbstype){
    369356            case "write":
  • pondol-bbs/trunk/includes/class.pondol.bbs.templates.php

    r934821 r943236  
    22class Pondol_BBS_Templates {
    33
    4     private $ctrl;
     4    private $ctrl, $_toxonomy;
     5   
    56   
    67    function __construct($controller) {
    7        
    88        $this->ctrl = $controller;
    99    }
     
    1818        if ( $wp_query->query_vars[PONDOL_BBS_TAXO] || $wp_query->query_vars["post_type"] ==  PONDOL_BBS) {//  || $wp->query_vars["name"]  모든 파일이 다 안됨
    1919       
    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'));
    2420            if($_GET["bbstype"]){
    2521                $bbstype    = $_GET["bbstype"];
     
    2723                $bbstype = "view";
    2824            }
    29 
    3025            $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           
    3133            switch($bbstype){
    3234                case "write":
     
    5456    public function template_list(){
    5557        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;
    6663       
    6764        set_transient( 'list_link', $this->ctrl->func->current_page_url(), 12 * HOUR_IN_SECONDS );
     
    6966        $pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1;
    7067         
    71         $limit      = $taxonomy_options["list_count"]; // number of rows in page
     68        $limit      = $this->_toxonomy->pondol_taxo["list_count"]; // number of rows in page
    7269        $offset     = ( $pagenum - 1 ) * $limit;
    73        
    7470       
    7571        $whereis = " p.post_status = 'publish' and t.term_taxonomy_id = ".$wp_query->queried_object->term_taxonomy_id;
     
    131127                                );
    132128
     129       
    133130        get_header();
    134         @include_once PONDOL_BBS_PATH.'templates/'.$toxonomy->pondol_taxo["skin"].'/archive-list.php';
     131        @include_once PONDOL_BBS_PATH.'templates/'.$this->_toxonomy->pondol_taxo["skin"].'/archive-list.php';
    135132        $this->ctrl->func->copyright();
    136133        //get_sidebar();
     
    142139    public function template_write(){
    143140        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;
    151142       
    152143        if($_GET["bbstype"] == "modify"){
     
    165156                                        b.POST_ID = ".$post->ID."
    166157            ");
    167         //$_GET["bbstype"] == "modify"
     158
    168159        }elseif($_GET["bbstype"] == "reply"){
    169160            $row = $wpdb->get_row("
     
    186177       
    187178        wp_enqueue_script( 'pondolbbs-validate-script', plugins_url('../assets/js/jquery.validate.min.js', __FILE__ ), false, '1.12.0', true);
     179       
    188180        get_header();
    189         @include_once PONDOL_BBS_PATH.'templates/'.$toxonomy->pondol_taxo["skin"].'/archive-write.php';
     181        @include_once PONDOL_BBS_PATH.'templates/'.$this->_toxonomy->pondol_taxo["skin"].'/archive-write.php';
    190182        $this->ctrl->func->copyright();
    191183        //get_sidebar();
     
    197189        global $wpdb, $wp_query, $post;
    198190       
    199         $toxonomy   =   $this->ctrl->func->get_custom_taxonomy();
    200        
     191
    201192        $meta_values = get_post_meta( $post->ID);
    202193
     
    204195       
    205196        $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;
    211199        //get post password and post
    212200       
     
    226214        $hidden_args = array("pondol_bbs_hidden_post_id"=>$post->ID);
    227215        get_header();
    228         @include_once PONDOL_BBS_PATH.'templates/'.$toxonomy->pondol_taxo["skin"].'/archive-view.php';
     216        @include_once PONDOL_BBS_PATH.'templates/'.$this->_toxonomy->pondol_taxo["skin"].'/archive-view.php';
    229217        $this->ctrl->func->copyright();
    230218        //get_sidebar();
  • pondol-bbs/trunk/includes/func.bbs.php

    r934213 r943236  
    22
    33
    4 class Pondol_Func {
     4class Pondol_Bbs_Func {
    55
    66    var $_taxonomy_options;
     
    177177        return $this->_taxonomy_options;
    178178    }   
    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
    193180    function get_tmpl_table_style($arr){
    194181       
  • pondol-bbs/trunk/pages/admin.taxonomy.edit.php

    r934821 r943236  
    2323                    <td>
    2424                        <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>
    2626                        <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">
    2727                    </td>
     
    104104                    <td>
    105105                        <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>
    107107                    </td>
    108108                </tr>
     
    129129                        </select>
    130130                    </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>
    132132                    </td>
    133133                </tr>
  • pondol-bbs/trunk/pondolbbs.php

    r934821 r943236  
    55Description: General BBS Program
    66Author: Pondol
    7 Version: 1.1.1
     7Version: 1.1.2
    88Author URI: http://www.shop-wiz.com/wp/plugins/pondol_bbs
    99License: GPL2
     
    4141        $this->ctrl = new Pondol_BBS_Controller();
    4242       
     43       
    4344        add_action( 'init', array($this->ctrl, 'register_bbs_posttype'));
    4445        add_action( 'init', array($this->ctrl, 'register_bbs_taxonomies'));
     
    4748        add_action( 'plugins_loaded', array($this, 'pondol_bbs_i18n_init'));
    4849
    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       
    5053        //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'));
    5255       
    5356        if ( is_admin() )
  • pondol-bbs/trunk/readme.txt

    r934821 r943236  
    11=== Pondol BBS ===
    22Contributors: pondol
    3 Tags: bbs,board,pondol,notice
     3Tags: bbs,board,pondol,notice,imagegallery
    44Requires at least: 3.0
    55Tested up to: 3.8.1
    6 Stable tag: 1.1
     6Stable tag: 1.1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3434
    3535== Changelog ==
     36= 1.1.2 =
     37fix bug : when create or edit posts in back-end, did not inserted in bbs database
     38modify gallery form
     39
    3640= 1.1.1 =
    3741translation ko_KR
  • pondol-bbs/trunk/templates/default/archive-write.php

    r934213 r943236  
    4040        <input type="hidden" name="bbs-id" value="<?php echo $row->ID;?>" />
    4141        <input type="hidden" name="bbs-type" value="<?php echo $_GET["bbstype"];?>" />
    42         <input type="hidden" name="bbs-category" value="<?php echo $toxonomy->term_id;?>" />
     42        <input type="hidden" name="bbs-category" value="<?php echo $this->_toxonomy->term_id;?>" />
    4343        <table>
    4444            <col width="150px">
     
    5959                <td colspan="2">
    6060                    <?php
    61                     if($taxonomy_options["dhtml_editor"] == "true"){
     61                    if($this->_toxonomy->pondol_taxo["dhtml_editor"] == "true"){
    6262                    ?> 
    6363                   
     
    8989            </tr>
    9090            <?php
    91             if($taxonomy_options["files_count"] > 0){
     91            if($this->_toxonomy->pondol_taxo["files_count"] > 0){
    9292        ?>
    9393            <tr>
    9494                <th><?php _e('Upload an Image', 'pondol_bbs'); ?></th>
    95                 <td><?php for ($i = 0; $i < $taxonomy_options["files_count"]; $i++) : ?>
     95                <td><?php for ($i = 0; $i < $this->_toxonomy->pondol_taxo["files_count"]; $i++) : ?>
    9696                        <input name="bbs-image[]" type="file" size="25">
    9797                    <?php endfor; ?></td>
    9898            </tr>
    9999            <?php
    100             }//if($taxonomy_options["files_count"] > 0)
     100            }//if($this->_toxonomy->pondol_taxo["files_count"] > 0)
    101101        ?> 
    102102        </table>
  • pondol-bbs/trunk/templates/gallery/archive-list.php

    r934821 r943236  
    1111        if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    1212
     13       
    1314?>
    1415<div <?php echo $table_style;?>>
     
    3132        <input type="submit" value="<?php _e( 'Search', 'pondol_bbs' ); ?>" />
    3233    </form>
     34<?php
     35if(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>
    3343</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}
    7346
    74 <?php
    7547if ( $page_links ) {
    7648    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  
    2323            </th>
    2424            <td>
    25                 <?php echo $row->post_title;?>
     25                <?php echo $row->post_title;?> (<?php echo $row->post_date;?>)
    2626            </td>
    2727        </tr>
    2828        <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">
    4930                <?//php echo $row->post_content;?>
    5031                <?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               
    5537                <?php if ( have_posts() ) { the_post(); the_content(); }?>
    5638               
     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>
    5747            </td>
    5848        </tr>
  • pondol-bbs/trunk/templates/gallery/archive-write.php

    r934213 r943236  
    3636        <input type="hidden" name="bbs-id" value="<?php echo $row->ID;?>" />
    3737        <input type="hidden" name="bbs-type" value="<?php echo $_GET["bbstype"];?>" />
    38         <input type="hidden" name="bbs-category" value="<?php echo $toxonomy->term_id;?>" />
     38        <input type="hidden" name="bbs-category" value="<?php echo $this->_toxonomy->term_id;?>" />
    3939        <table>
    4040            <col width="150px">
     
    4747                <td colspan="2">
    4848                    <?php
    49                     if($taxonomy_options["dhtml_editor"] == "true"){
     49                    if($this->_toxonomy->pondol_taxo["dhtml_editor"] == "true"){
    5050                    ?> 
    5151                   
     
    7777            </tr>
    7878            <?php
    79             if($taxonomy_options["files_count"] > 0){
     79            if($this->_toxonomy->pondol_taxo["files_count"] > 0){
    8080        ?>
    8181            <tr>
    8282                <th><?php _e('Upload an Image', 'pondol_bbs'); ?></th>
    83                 <td><?php for ($i = 0; $i < $taxonomy_options["files_count"]; $i++) : ?>
     83                <td><?php for ($i = 0; $i < $this->_toxonomy->pondol_taxo["files_count"]; $i++) : ?>
    8484                        <input name="bbs-image[]" type="file" size="25">
    8585                    <?php endfor; ?></td>
    8686            </tr>
    8787            <?php
    88             }//if($taxonomy_options["files_count"] > 0)
     88            }//if($this->_toxonomy->pondol_taxo["files_count"] > 0)
    8989        ?> 
    9090        </table>
  • pondol-bbs/trunk/templates/notice/archive-write.php

    r934213 r943236  
    3636        <input type="hidden" name="bbs-id" value="<?php echo $row->ID;?>" />
    3737        <input type="hidden" name="bbs-type" value="<?php echo $_GET["bbstype"];?>" />
    38         <input type="hidden" name="bbs-category" value="<?php echo $toxonomy->term_id;?>" />
     38        <input type="hidden" name="bbs-category" value="<?php echo $this->_toxonomy->term_id;?>" />
    3939        <table>
    4040            <col width="150px">
     
    4747                <td colspan="2">
    4848                    <?php
    49                     if($taxonomy_options["dhtml_editor"] == "true"){
     49                    if($this->_toxonomy->pondol_taxo["dhtml_editor"] == "true"){
    5050                    ?> 
    5151                   
     
    7777            </tr>
    7878            <?php
    79             if($taxonomy_options["files_count"] > 0){
     79            if($this->_toxonomy->pondol_taxo["files_count"] > 0){
    8080        ?>
    8181            <tr>
    8282                <th><?php _e('Upload an Image', 'pondol_bbs'); ?></th>
    83                 <td><?php for ($i = 0; $i < $taxonomy_options["files_count"]; $i++) : ?>
     83                <td><?php for ($i = 0; $i < $this->_toxonomy->pondol_taxo["files_count"]; $i++) : ?>
    8484                        <input name="bbs-image[]" type="file" size="25">
    8585                    <?php endfor; ?></td>
    8686            </tr>
    8787            <?php
    88             }//if($taxonomy_options["files_count"] > 0)
     88            }//if($this->_toxonomy->pondol_taxo["files_count"] > 0)
    8989        ?> 
    9090        </table>
Note: See TracChangeset for help on using the changeset viewer.