Plugin Directory

Changeset 1911711


Ignore:
Timestamp:
07/19/2018 02:22:38 PM (8 years ago)
Author:
sdwebdevelopment
Message:

new version 1.1.0

Location:
sd-classes
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • sd-classes/trunk/readme.txt

    r1881839 r1911711  
    44Requires at least: 4.9.5
    55Tested up to: 4.9.5
    6 Stable tag: 1.0.0
     6Stable tag: 1.1.0
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    6060== Changelog ==
    6161
     62= 1.1.0 =
     63* Optimierungen in der Darstellung
     64* Kursnotiz hinzugefügt
     65* Screenshots hinzugefügt
     66
    6267= 1.0.0 =
    6368* erste stabile Version
  • sd-classes/trunk/sdrost-classes.php

    r1881839 r1911711  
    2626Plugin Name: SDrost Classes
    2727Description: Ein Plugin um Kurse und deren Zeiten zu verwalten und anzuzeigen.
    28 Version: 1.0.0
     28Version: 1.1.0
    2929Author: Stefanie Drost
    3030Author URI: stefaniedrost.com
  • sd-classes/trunk/src/entity/SdrostClass.php

    r1881839 r1911711  
    1717    private $day;
    1818    private $address;
     19    private $note;
    1920
    2021    /**
     
    153154        return $this->address;
    154155    }
     156
     157
     158    /**
     159     * @return string
     160     */
     161    public function getNote(): string
     162    {
     163        return $this->note;
     164    }
     165
     166
     167    /**
     168     * @param string $note
     169     * @return $this
     170     */
     171    public function setNote($note): SdrostClass
     172    {
     173        $this->note = $note;
     174
     175        return $this;
     176    }
    155177}
  • sd-classes/trunk/src/postType/SdrostClassPostType.php

    r1881839 r1911711  
    1111    const CLASS_END_COLUMN_KEY = 'sdrost_class_end';
    1212    const CLASS_DAY_COLUMN_KEY = 'sdrost_class_day';
     13    const CLASS_NOTE_COLUMN_KEY = 'sdrost_class_note';
    1314    const CLASS_TRAINER_COLUMN_KEY = 'sdrost_class_trainer';
    1415    const CLASS_ADDRESS_COLUMN_KEY = 'sdrost_class_address';
     
    6970        $columns[self::CLASS_DAY_COLUMN_KEY] = 'Tag';
    7071        $columns[self::CLASS_TRAINER_COLUMN_KEY] = 'Trainer';
    71         $columns[self::CLASS_ADDRESS_COLUMN_KEY] = 'Addresse';
    7272        $columns[self::CLASS_CLASS_COLUMN_KEY] = 'Kurs';
    7373        $columns['date'] = $date;
     
    7979    public function addSdrostClassesBox()
    8080    {
    81         add_meta_box( 'sdrostClasses_box','Kurs Daten',array(SdrostClassPostType::class, 'createSdrostClassDataBox' ), self::SDROST_CLASSES_POST_TYPE,'normal','high' );
     81        add_meta_box( 'sdrostClasses_box','Kurs Daten',array(SdrostClassPostType::class, 'createSdrostClassDataBox' ),
     82            self::SDROST_CLASSES_POST_TYPE,'normal','high' );
    8283        remove_meta_box( 'wp-editor', self::SDROST_CLASSES_POST_TYPE, 'normal' );
    8384    }
     
    104105            self::CLASS_BEGIN_COLUMN_KEY,
    105106            self::CLASS_END_COLUMN_KEY,
     107            self::CLASS_NOTE_COLUMN_KEY,
    106108            self::CLASS_ADDRESS_COLUMN_KEY,
    107109            self::CLASS_TRAINER_COLUMN_KEY,
     
    113115        $begin = get_post_meta( $post->ID, 'sdrost_class_begin_data', true );
    114116        $end = get_post_meta( $post->ID, 'sdrost_class_end_data', true );
     117        $note = get_post_meta( $post->ID, self::CLASS_NOTE_COLUMN_KEY . '_data', true );
    115118        $address = get_post_meta( $post->ID, self::CLASS_ADDRESS_COLUMN_KEY . '_data', true );
    116119        $trainer = get_post_meta( $post->ID, self::CLASS_TRAINER_COLUMN_KEY . '_data', true );
     
    148151            </div><br/>
    149152
     153            <label for="sdrost_class_note">Kursnotiz:</label><br/>
     154            <input type='text' id='sdrost_class_note_data' value="<?php echo $note; ?>" name='sdrost_class_note_data'><br/><br/>
     155
    150156            <label for="sdrost_class_address_data">Addresse:</label><br/>
    151157            <select name="sdrost_class_address_data" id='sdrost_class_address_data'>
     
    189195            self::CLASS_BEGIN_COLUMN_KEY,
    190196            self::CLASS_END_COLUMN_KEY,
     197            self::CLASS_NOTE_COLUMN_KEY,
    191198            self::CLASS_DAY_COLUMN_KEY,
    192199            self::CLASS_ADDRESS_COLUMN_KEY,
     
    206213            self::CLASS_BEGIN_COLUMN_KEY . '_data',
    207214            self::CLASS_END_COLUMN_KEY . '_data',
     215            self::CLASS_NOTE_COLUMN_KEY . '_data',
    208216            self::CLASS_DAY_COLUMN_KEY . '_data',
    209217            self::CLASS_ADDRESS_COLUMN_KEY . '_data',
Note: See TracChangeset for help on using the changeset viewer.