Changeset 1911711
- Timestamp:
- 07/19/2018 02:22:38 PM (8 years ago)
- Location:
- sd-classes
- Files:
-
- 1 added
- 4 edited
-
tags/1.0.0/sdrost-classes.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sdrost-classes.php (modified) (1 diff)
-
trunk/src/entity/SdrostClass.php (modified) (2 diffs)
-
trunk/src/postType/SdrostClassPostType.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sd-classes/trunk/readme.txt
r1881839 r1911711 4 4 Requires at least: 4.9.5 5 5 Tested up to: 4.9.5 6 Stable tag: 1. 0.06 Stable tag: 1.1.0 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 60 60 == Changelog == 61 61 62 = 1.1.0 = 63 * Optimierungen in der Darstellung 64 * Kursnotiz hinzugefügt 65 * Screenshots hinzugefügt 66 62 67 = 1.0.0 = 63 68 * erste stabile Version -
sd-classes/trunk/sdrost-classes.php
r1881839 r1911711 26 26 Plugin Name: SDrost Classes 27 27 Description: Ein Plugin um Kurse und deren Zeiten zu verwalten und anzuzeigen. 28 Version: 1. 0.028 Version: 1.1.0 29 29 Author: Stefanie Drost 30 30 Author URI: stefaniedrost.com -
sd-classes/trunk/src/entity/SdrostClass.php
r1881839 r1911711 17 17 private $day; 18 18 private $address; 19 private $note; 19 20 20 21 /** … … 153 154 return $this->address; 154 155 } 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 } 155 177 } -
sd-classes/trunk/src/postType/SdrostClassPostType.php
r1881839 r1911711 11 11 const CLASS_END_COLUMN_KEY = 'sdrost_class_end'; 12 12 const CLASS_DAY_COLUMN_KEY = 'sdrost_class_day'; 13 const CLASS_NOTE_COLUMN_KEY = 'sdrost_class_note'; 13 14 const CLASS_TRAINER_COLUMN_KEY = 'sdrost_class_trainer'; 14 15 const CLASS_ADDRESS_COLUMN_KEY = 'sdrost_class_address'; … … 69 70 $columns[self::CLASS_DAY_COLUMN_KEY] = 'Tag'; 70 71 $columns[self::CLASS_TRAINER_COLUMN_KEY] = 'Trainer'; 71 $columns[self::CLASS_ADDRESS_COLUMN_KEY] = 'Addresse';72 72 $columns[self::CLASS_CLASS_COLUMN_KEY] = 'Kurs'; 73 73 $columns['date'] = $date; … … 79 79 public function addSdrostClassesBox() 80 80 { 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' ); 82 83 remove_meta_box( 'wp-editor', self::SDROST_CLASSES_POST_TYPE, 'normal' ); 83 84 } … … 104 105 self::CLASS_BEGIN_COLUMN_KEY, 105 106 self::CLASS_END_COLUMN_KEY, 107 self::CLASS_NOTE_COLUMN_KEY, 106 108 self::CLASS_ADDRESS_COLUMN_KEY, 107 109 self::CLASS_TRAINER_COLUMN_KEY, … … 113 115 $begin = get_post_meta( $post->ID, 'sdrost_class_begin_data', true ); 114 116 $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 ); 115 118 $address = get_post_meta( $post->ID, self::CLASS_ADDRESS_COLUMN_KEY . '_data', true ); 116 119 $trainer = get_post_meta( $post->ID, self::CLASS_TRAINER_COLUMN_KEY . '_data', true ); … … 148 151 </div><br/> 149 152 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 150 156 <label for="sdrost_class_address_data">Addresse:</label><br/> 151 157 <select name="sdrost_class_address_data" id='sdrost_class_address_data'> … … 189 195 self::CLASS_BEGIN_COLUMN_KEY, 190 196 self::CLASS_END_COLUMN_KEY, 197 self::CLASS_NOTE_COLUMN_KEY, 191 198 self::CLASS_DAY_COLUMN_KEY, 192 199 self::CLASS_ADDRESS_COLUMN_KEY, … … 206 213 self::CLASS_BEGIN_COLUMN_KEY . '_data', 207 214 self::CLASS_END_COLUMN_KEY . '_data', 215 self::CLASS_NOTE_COLUMN_KEY . '_data', 208 216 self::CLASS_DAY_COLUMN_KEY . '_data', 209 217 self::CLASS_ADDRESS_COLUMN_KEY . '_data',
Note: See TracChangeset
for help on using the changeset viewer.