Changeset 3351302
- Timestamp:
- 08/27/2025 02:53:46 PM (7 months ago)
- Location:
- grid/trunk
- Files:
-
- 1 added
- 28 edited
-
classes/Boxes.php (modified) (1 diff)
-
classes/Component/Plugin.php (modified) (1 diff)
-
classes/Component/TextdomainConfig.php (modified) (1 diff)
-
classes/Copy.php (modified) (1 diff)
-
classes/MetaBoxes.php (modified) (1 diff)
-
classes/Privileges.php (modified) (1 diff)
-
classes/ReuseBox.php (modified) (1 diff)
-
classes/ReuseContainer.php (modified) (1 diff)
-
classes/StorageHelper.php (modified) (1 diff)
-
classes/TheGrid.php (modified) (2 diffs)
-
classes/_Component.php (modified) (1 diff)
-
core/classes/wordpress/grid_html_box.php (added)
-
lib/grid/classes/API.php (modified) (1 diff)
-
lib/grid/classes/AbstractQuery.php (modified) (1 diff)
-
lib/grid/classes/Editor.php (modified) (1 diff)
-
lib/grid/classes/Model/Box.php (modified) (1 diff)
-
lib/grid/classes/Model/Container.php (modified) (1 diff)
-
lib/grid/classes/ReuseBoxEditor.php (modified) (2 diffs)
-
lib/grid/classes/ReuseContainerEditor.php (modified) (1 diff)
-
lib/grid/classes/Storage.php (modified) (4 diffs)
-
lib/grid/classes/StyleEditor.php (modified) (1 diff)
-
lib/grid/classes/UpdateBase.php (modified) (1 diff)
-
lib/grid/components/grid_box.php (modified) (1 diff)
-
lib/grid/components/grid_container.php (modified) (1 diff)
-
lib/grid/components/grid_grid.php (modified) (1 diff)
-
lib/grid/components/grid_slot.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
-
wordpress_plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
grid/trunk/classes/Boxes.php
r2761847 r3351302 22 22 require( $dir . '/../core/classes/wordpress/grid_search_form_box.php' ); 23 23 require( $dir . '/../core/classes/wordpress/grid_video_box.php' ); 24 require( $dir . '/../core/classes/wordpress/grid_html_box.php' ); 24 25 25 26 // box with all input types for debugging and checking if inputs are working as expected -
grid/trunk/classes/Component/Plugin.php
r2541021 r3351302 5 5 use ReflectionException; 6 6 7 /** 8 * @property string path 9 * @property string url 10 * @property string basename 11 * @since 0.1.1 12 */ 7 13 8 abstract class Plugin { 9 10 public string $path; 11 public string $url; 12 public string $basename; 14 13 15 14 /** -
grid/trunk/classes/Component/TextdomainConfig.php
r2541021 r3351302 4 4 namespace Palasthotel\Grid\WordPress\Component; 5 5 6 class TextdomainConfig { 6 7 7 /** 8 * @property string domain 9 * @property string languages 10 * @version 0.1.1 11 */ 12 class TextdomainConfig { 8 public string $domain; 9 public string $languages; 13 10 14 11 public function __construct(string $domain, string $relativeLanguagesPath) { -
grid/trunk/classes/Copy.php
r2401024 r3351302 4 4 namespace Palasthotel\Grid\WordPress; 5 5 6 class Copy extends _Component { 6 7 7 /** 8 * @property Plugin $plugin 9 * @property \wpdb wpdb 10 */ 11 class Copy extends _Component { 8 public Plugin $plugin; 9 10 /** 11 * @var \wpdb 12 */ 13 public mixed $wpdb; 12 14 13 15 const AJAX_ACTION_COPY = "copy_grid"; -
grid/trunk/classes/MetaBoxes.php
r2401024 r3351302 9 9 namespace Palasthotel\Grid\WordPress; 10 10 11 12 /**13 * @property Plugin plugin14 */15 11 class MetaBoxes extends _Component 16 12 { 13 14 public Plugin $plugin; 17 15 18 16 const CSS_HANDLE = "grid-meta-box-style"; -
grid/trunk/classes/Privileges.php
r2228669 r3351302 9 9 namespace Palasthotel\Grid\WordPress; 10 10 11 12 /**13 * @property Plugin plugin14 */15 11 class Privileges 16 12 { 13 14 public Plugin $plugin; 17 15 18 16 /** -
grid/trunk/classes/ReuseBox.php
r2401024 r3351302 17 17 function admin_menu(){ 18 18 add_submenu_page( 'grid_settings', 'Reusable boxes', 'Reusable boxes', 'edit_posts', 'grid_reuse_boxes', array( $this, 'render_reuse_boxes' ) ); 19 add_submenu_page( null,'edit reuse box', 'edit reuse box', 'edit_posts', 'grid_edit_reuse_box', array( $this, 'edit_reuse_box' ) );20 add_submenu_page( null, 'delete reuse box', 'delete reuse box', 'edit_posts', 'grid_delete_reuse_box', array( $this, 'delete_reuse_box' ) );19 add_submenu_page( '', 'edit reuse box', 'edit reuse box', 'edit_posts', 'grid_edit_reuse_box', array( $this, 'edit_reuse_box' ) ); 20 add_submenu_page( '', 'delete reuse box', 'delete reuse box', 'edit_posts', 'grid_delete_reuse_box', array( $this, 'delete_reuse_box' ) ); 21 21 } 22 22 -
grid/trunk/classes/ReuseContainer.php
r2401024 r3351302 17 17 function admin_menu(){ 18 18 add_submenu_page( 'grid_settings', 'reusable container', 'Reusable container', 'edit_posts', 'grid_reuse_containers', array( $this, 'reuse_containers' ) ); 19 add_submenu_page( null, 'edit reuse container', 'edit reuse container', 'edit_posts', 'grid_edit_reuse_container', array( $this, 'edit_reuse_container' ) );20 add_submenu_page( null, 'delete reuse container', 'delete reuse container', 'edit_posts', 'grid_delete_reuse_container', array( $this, 'delete_reuse_container') );19 add_submenu_page( '', 'edit reuse container', 'edit reuse container', 'edit_posts', 'grid_edit_reuse_container', array( $this, 'edit_reuse_container' ) ); 20 add_submenu_page( '', 'delete reuse container', 'delete reuse container', 'edit_posts', 'grid_delete_reuse_container', array( $this, 'delete_reuse_container') ); 21 21 } 22 22 function reuse_containers() { -
grid/trunk/classes/StorageHelper.php
r2228669 r3351302 5 5 6 6 7 /**8 * @property Plugin plugin9 * @property \wpdb wpdb10 */11 7 class StorageHelper { 8 9 public Plugin $plugin; 10 /** 11 * @var \wpdb 12 */ 13 public mixed $wpdb; 12 14 13 15 /** -
grid/trunk/classes/TheGrid.php
r2538335 r3351302 14 14 use const Grid\Constants\GRID_CSS_VARIANT_TABLE; 15 15 16 /**17 * @property Plugin $plugin18 */19 16 class TheGrid extends _Component { 17 18 public Plugin $plugin; 20 19 21 20 function onCreate(){ … … 58 57 59 58 function admin_menu(){ 60 add_submenu_page( null, 'The Grid', 'The Grid', 'edit_posts', 'grid', array( $this, 'render_grid' ) );61 add_submenu_page( null, 'Grid AJAX', 'The Grid AJAX', 'edit_posts', 'grid_ajax', array( $this, 'ajax' ) );62 add_submenu_page( null, 'Grid CKEditor Config', 'Grid CKEditor Config', 'edit_posts', 'grid_ckeditor_config', array( $this, 'ckeditor_config' ) );63 add_submenu_page( null, 'Grid Container slots CSS', 'Grid Conatiner slots CSS', 'edit_posts', 'grid_wp_container_slots_css', array( $this, 'container_slots_css' ) );59 add_submenu_page( "", 'The Grid', 'The Grid', 'edit_posts', 'grid', array( $this, 'render_grid' ) ); 60 add_submenu_page( "", 'Grid AJAX', 'The Grid AJAX', 'edit_posts', 'grid_ajax', array( $this, 'ajax' ) ); 61 add_submenu_page( "", 'Grid CKEditor Config', 'Grid CKEditor Config', 'edit_posts', 'grid_ckeditor_config', array( $this, 'ckeditor_config' ) ); 62 add_submenu_page( "", 'Grid Container slots CSS', 'Grid Conatiner slots CSS', 'edit_posts', 'grid_wp_container_slots_css', array( $this, 'container_slots_css' ) ); 64 63 } 65 64 -
grid/trunk/classes/_Component.php
r2401024 r3351302 4 4 namespace Palasthotel\Grid\WordPress; 5 5 6 class _Component { 6 7 7 /** 8 * @property Plugin plugin 9 */ 10 class _Component { 8 public Plugin $plugin; 9 11 10 /** 12 11 * _Component constructor. -
grid/trunk/lib/grid/classes/API.php
r2761847 r3351302 84 84 85 85 require_once dirname( __FILE__ ) . '/../components/grid_static_box.php'; 86 require_once dirname( __FILE__ ) . '/../components/grid_html_box.php';87 86 require_once dirname( __FILE__ ) . '/../components/grid_soundcloud_box.php'; 88 87 require_once dirname( __FILE__ ) . '/../components/grid_plaintext_box.php'; -
grid/trunk/lib/grid/classes/AbstractQuery.php
r2401024 r3351302 4 4 namespace Palasthotel\Grid; 5 5 6 abstract class AbstractQuery implements iQuery { 6 7 7 /** 8 * @property string prefix 9 */ 10 abstract class AbstractQuery implements iQuery { 8 public string $prefix; 11 9 12 10 public function prepare($sql){ -
grid/trunk/lib/grid/classes/Editor.php
r2408911 r3351302 10 10 use Grid\Constants\GridCssVariantTable; 11 11 12 /**13 * @property Storage $storage14 * @property string url15 */16 12 class Editor { 13 14 public Storage $storage; 15 public string $url; 17 16 18 17 /** -
grid/trunk/lib/grid/classes/Model/Box.php
r2761847 r3351302 36 36 public $style; 37 37 38 public $style_label; 39 38 40 /** 39 41 * Contains all class names -
grid/trunk/lib/grid/classes/Model/Container.php
r2761847 r3351302 23 23 public $space_to_right; 24 24 public $style; // Allows to separete diffente Styles of Containers. 25 public $style_label; 25 26 public $classes = array(); 26 27 public $title; -
grid/trunk/lib/grid/classes/ReuseBoxEditor.php
r2761847 r3351302 5 5 6 6 /** 7 * @property Editor editor8 7 * @author Palasthotel <rezeption@palasthotel.de> 9 8 * @copyright Copyright (c) 2020, Palasthotel … … 14 13 class ReuseBoxEditor 15 14 { 15 16 public Editor $editor; 16 17 17 18 public function __construct(Editor $editor){ -
grid/trunk/lib/grid/classes/ReuseContainerEditor.php
r2401024 r3351302 15 15 class ReuseContainerEditor 16 16 { 17 /** 18 * ReuseContainerEditor constructor. 19 * 20 * @param Editor $editor 21 */ 17 public Editor $editor; 18 22 19 public function __construct($editor){ 23 20 $this->editor = $editor; -
grid/trunk/lib/grid/classes/Storage.php
r2761847 r3351302 1043 1043 public function createContainerStyle($slug,$style) 1044 1044 { 1045 $style = htmlspecialchars($style, ENT_QUOTES | ENT_HTML5, 'UTF-8', false); 1046 $slug = htmlspecialchars($slug, ENT_QUOTES | ENT_HTML5, 'UTF-8', false); 1045 1047 $query="insert into ".$this->query->prefix()."grid_container_style (slug,style) values ('".$slug."','".$style."')"; 1046 1048 $this->query->execute($query); … … 1055 1057 public function updateContainerStyle($id,$slug,$style) 1056 1058 { 1059 $slug=htmlspecialchars($slug, ENT_QUOTES | ENT_HTML5, 'UTF-8', false); 1060 $style=htmlspecialchars($style, ENT_QUOTES | ENT_HTML5, 'UTF-8', false); 1057 1061 $query="update ".$this->query->prefix()."grid_container_style set slug='".$slug."', style='".$style."' where id=".$id; 1058 1062 $this->query->execute($query); … … 1085 1089 public function createSlotStyle($slug,$style) 1086 1090 { 1091 $slug=htmlspecialchars($slug, ENT_QUOTES | ENT_HTML5, 'UTF-8', false); 1092 $style=htmlspecialchars($style, ENT_QUOTES | ENT_HTML5, 'UTF-8', false); 1087 1093 $query="insert into ".$this->query->prefix()."grid_slot_style (slug,style) values ('".$slug."','".$style."')"; 1088 1094 $this->query->execute($query); … … 1097 1103 public function updateSlotStyle($id,$slug,$style) 1098 1104 { 1105 $slug=htmlspecialchars($slug, ENT_QUOTES | ENT_HTML5, 'UTF-8', false); 1106 $style=htmlspecialchars($style, ENT_QUOTES | ENT_HTML5, 'UTF-8', false); 1099 1107 $query="update ".$this->query->prefix()."grid_slot_style set slug='".$slug."', style='".$style."' where id=".$id; 1100 1108 $this->query->execute($query); -
grid/trunk/lib/grid/classes/StyleEditor.php
r2401024 r3351302 11 11 class StyleEditor { 12 12 13 /** 14 * StyleEditor constructor. 15 * 16 * @param Storage $storage 17 */ 13 public Storage $storage; 14 18 15 public function __construct(Storage $storage){ 19 16 $this->storage = $storage; -
grid/trunk/lib/grid/classes/UpdateBase.php
r2401024 r3351302 7 7 use Exception; 8 8 9 /**10 * @property iQuery query11 */12 9 class UpdateBase { 10 11 public iQuery $query; 12 13 13 /** 14 14 * schema key for update schema identification -
grid/trunk/lib/grid/components/grid_box.php
r2541021 r3351302 5 5 use Palasthotel\Grid\Model\Box; 6 6 7 /**8 * @property iTemplate template9 */10 7 class grid_box extends Box { 8 9 public iTemplate $template; 11 10 12 11 public function __construct() { -
grid/trunk/lib/grid/components/grid_container.php
r2541021 r3351302 5 5 use Palasthotel\Grid\Model\Container; 6 6 7 /**8 * @property iTemplate template9 */10 7 class grid_container extends Container { 8 9 public iTemplate $template; 11 10 12 11 public function __construct() { -
grid/trunk/lib/grid/components/grid_grid.php
r2541021 r3351302 7 7 use Palasthotel\Grid\Model\Grid; 8 8 9 /**10 * @property iTemplate template11 */12 9 class grid_grid extends Grid { 10 11 public iTemplate $template; 13 12 14 13 /** -
grid/trunk/lib/grid/components/grid_slot.php
r2541021 r3351302 6 6 use Palasthotel\Grid\Model\Slot; 7 7 8 /**9 * @property iTemplate template10 */11 8 class grid_slot extends Slot { 9 10 public iTemplate $template; 12 11 13 12 public function __construct() { -
grid/trunk/readme.txt
r2861842 r3351302 5 5 Requires at least: 4.0 6 6 Tested up to: 5.9.3 7 Stable tag: 2.3. 07 Stable tag: 2.3.1 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl … … 88 88 89 89 == Changelog == 90 91 = 2.3.1 = 92 93 * Fixed a XSS vulnerability 94 * fixed some deprecation warnings 90 95 91 96 = 2.3.0 = -
grid/trunk/vendor/composer/installed.php
r2861842 r3351302 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' d31acba4fb21f5440d78edfcda586eb51234d62c',6 'reference' => '5f58f47222ffcd2b294d0a018ca7872794142929', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' d31acba4fb21f5440d78edfcda586eb51234d62c',16 'reference' => '5f58f47222ffcd2b294d0a018ca7872794142929', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
grid/trunk/wordpress_plugin.php
r2761847 r3351302 4 4 * Plugin URI: https://github.com/palasthotel/grid-wordpress 5 5 * Description: Helps layouting pages with containerist. 6 * Version: 2.3. 06 * Version: 2.3.1 7 7 * Author: Palasthotel <rezeption@palasthotel.de> (in person: Benjamin Birkenhake, Edward Bock, Enno Welbers, Jana Marie Eggebrecht) 8 8 * Author URI: http://www.palasthotel.de … … 39 39 require_once dirname( __FILE__ ) . "/vendor/autoload.php"; 40 40 41 /**42 * @property string dir43 * @property string url44 * @property array grid_ids45 * @property array post_ids46 * @property StorageHelper storageHelper47 * @property TheGrid $theGrid48 * @property PositionInPost positionInPost49 * @property Post post50 * @property Ajax $gridAjax51 * @property API gridAPI52 * @property Editor gridEditor53 * @property Core gridCore54 * @property GridHook gridHook55 * @property GridQuery gridQuery56 * @property Boxes boxes57 * @property MetaBoxes metaBox58 * @property Settings settings59 * @property Template gridTemplate60 */61 41 class Plugin extends Component\Plugin { 42 43 public string $dir; 44 public string $url; 45 public array $grid_ids; 46 public array $post_ids; 47 public StorageHelper $storageHelper; 48 public TheGrid $theGrid; 49 public PositionInPost $positionInPost; 50 public Post $post; 51 public Ajax $gridAjax; 52 public API $gridAPI; 53 public Editor $gridEditor; 54 public Core $gridCore; 55 public GridHook $gridHook; 56 public GridQuery $gridQuery; 57 public Boxes $boxes; 58 public MetaBoxes $metaBox; 59 public Settings $settings; 60 public Template $gridTemplate; 61 62 62 63 63 // ------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.