Plugin Directory

Changeset 3351302


Ignore:
Timestamp:
08/27/2025 02:53:46 PM (7 months ago)
Author:
mkernel
Message:

update to 2.3.1

Location:
grid/trunk
Files:
1 added
28 edited

Legend:

Unmodified
Added
Removed
  • grid/trunk/classes/Boxes.php

    r2761847 r3351302  
    2222        require( $dir . '/../core/classes/wordpress/grid_search_form_box.php' );
    2323        require( $dir . '/../core/classes/wordpress/grid_video_box.php' );
     24        require( $dir . '/../core/classes/wordpress/grid_html_box.php' );
    2425
    2526        // box with all input types for debugging and checking if inputs are working as expected
  • grid/trunk/classes/Component/Plugin.php

    r2541021 r3351302  
    55use ReflectionException;
    66
    7 /**
    8  * @property string path
    9  * @property string url
    10  * @property string basename
    11  * @since 0.1.1
    12  */
     7
    138abstract class Plugin {
     9
     10    public string $path;
     11    public string $url;
     12    public string $basename;
    1413
    1514    /**
  • grid/trunk/classes/Component/TextdomainConfig.php

    r2541021 r3351302  
    44namespace Palasthotel\Grid\WordPress\Component;
    55
     6class TextdomainConfig {
    67
    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;
    1310
    1411    public function __construct(string $domain, string $relativeLanguagesPath) {
  • grid/trunk/classes/Copy.php

    r2401024 r3351302  
    44namespace Palasthotel\Grid\WordPress;
    55
     6class Copy extends _Component {
    67
    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;
    1214
    1315    const AJAX_ACTION_COPY = "copy_grid";
  • grid/trunk/classes/MetaBoxes.php

    r2401024 r3351302  
    99namespace Palasthotel\Grid\WordPress;
    1010
    11 
    12 /**
    13  * @property Plugin plugin
    14  */
    1511class MetaBoxes extends _Component
    1612{
     13
     14    public Plugin $plugin;
    1715
    1816    const CSS_HANDLE = "grid-meta-box-style";
  • grid/trunk/classes/Privileges.php

    r2228669 r3351302  
    99namespace Palasthotel\Grid\WordPress;
    1010
    11 
    12 /**
    13  * @property Plugin plugin
    14  */
    1511class Privileges
    1612{
     13
     14    public Plugin $plugin;
    1715
    1816    /**
  • grid/trunk/classes/ReuseBox.php

    r2401024 r3351302  
    1717    function admin_menu(){
    1818        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' ) );
    2121    }
    2222
  • grid/trunk/classes/ReuseContainer.php

    r2401024 r3351302  
    1717    function admin_menu(){
    1818        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') );
    2121    }
    2222    function reuse_containers() {
  • grid/trunk/classes/StorageHelper.php

    r2228669 r3351302  
    55
    66
    7 /**
    8  * @property Plugin plugin
    9  * @property \wpdb wpdb
    10  */
    117class StorageHelper {
     8
     9    public Plugin $plugin;
     10    /**
     11     * @var \wpdb
     12     */
     13    public mixed $wpdb;
    1214
    1315    /**
  • grid/trunk/classes/TheGrid.php

    r2538335 r3351302  
    1414use const Grid\Constants\GRID_CSS_VARIANT_TABLE;
    1515
    16 /**
    17  * @property Plugin $plugin
    18  */
    1916class TheGrid extends _Component {
     17
     18    public Plugin $plugin;
    2019
    2120    function onCreate(){
     
    5857
    5958    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' ) );
    6463    }
    6564
  • grid/trunk/classes/_Component.php

    r2401024 r3351302  
    44namespace Palasthotel\Grid\WordPress;
    55
     6class _Component {
    67
    7 /**
    8  * @property Plugin plugin
    9  */
    10 class _Component {
     8    public Plugin $plugin;
     9
    1110    /**
    1211     * _Component constructor.
  • grid/trunk/lib/grid/classes/API.php

    r2761847 r3351302  
    8484
    8585        require_once dirname( __FILE__ ) . '/../components/grid_static_box.php';
    86         require_once dirname( __FILE__ ) . '/../components/grid_html_box.php';
    8786        require_once dirname( __FILE__ ) . '/../components/grid_soundcloud_box.php';
    8887        require_once dirname( __FILE__ ) . '/../components/grid_plaintext_box.php';
  • grid/trunk/lib/grid/classes/AbstractQuery.php

    r2401024 r3351302  
    44namespace Palasthotel\Grid;
    55
     6abstract class AbstractQuery implements iQuery {
    67
    7 /**
    8  * @property string prefix
    9  */
    10 abstract class AbstractQuery implements iQuery {
     8    public string $prefix;
    119
    1210    public function prepare($sql){
  • grid/trunk/lib/grid/classes/Editor.php

    r2408911 r3351302  
    1010use Grid\Constants\GridCssVariantTable;
    1111
    12 /**
    13  * @property Storage $storage
    14  * @property string url
    15  */
    1612class Editor {
     13
     14    public Storage $storage;
     15    public string $url;
    1716
    1817    /**
  • grid/trunk/lib/grid/classes/Model/Box.php

    r2761847 r3351302  
    3636    public $style;
    3737
     38    public $style_label;
     39
    3840    /**
    3941     * Contains all class names
  • grid/trunk/lib/grid/classes/Model/Container.php

    r2761847 r3351302  
    2323    public $space_to_right;
    2424    public $style; // Allows to separete diffente Styles of Containers.
     25    public $style_label;
    2526    public $classes = array();
    2627    public $title;
  • grid/trunk/lib/grid/classes/ReuseBoxEditor.php

    r2761847 r3351302  
    55
    66/**
    7  * @property Editor editor
    87 * @author Palasthotel <rezeption@palasthotel.de>
    98 * @copyright Copyright (c) 2020, Palasthotel
     
    1413class ReuseBoxEditor
    1514{
     15
     16    public Editor $editor;
    1617
    1718    public function __construct(Editor $editor){
  • grid/trunk/lib/grid/classes/ReuseContainerEditor.php

    r2401024 r3351302  
    1515class ReuseContainerEditor
    1616{
    17     /**
    18      * ReuseContainerEditor constructor.
    19      *
    20      * @param Editor $editor
    21      */
     17    public Editor $editor;
     18   
    2219    public function __construct($editor){
    2320        $this->editor = $editor;
  • grid/trunk/lib/grid/classes/Storage.php

    r2761847 r3351302  
    10431043    public function createContainerStyle($slug,$style)
    10441044    {
     1045        $style = htmlspecialchars($style, ENT_QUOTES | ENT_HTML5, 'UTF-8', false);
     1046        $slug = htmlspecialchars($slug, ENT_QUOTES | ENT_HTML5, 'UTF-8', false);
    10451047        $query="insert into ".$this->query->prefix()."grid_container_style (slug,style) values ('".$slug."','".$style."')";
    10461048        $this->query->execute($query);
     
    10551057    public function updateContainerStyle($id,$slug,$style)
    10561058    {
     1059        $slug=htmlspecialchars($slug, ENT_QUOTES | ENT_HTML5, 'UTF-8', false);
     1060        $style=htmlspecialchars($style, ENT_QUOTES | ENT_HTML5, 'UTF-8', false);
    10571061        $query="update ".$this->query->prefix()."grid_container_style set slug='".$slug."', style='".$style."' where id=".$id;
    10581062        $this->query->execute($query);
     
    10851089    public function createSlotStyle($slug,$style)
    10861090    {
     1091        $slug=htmlspecialchars($slug, ENT_QUOTES | ENT_HTML5, 'UTF-8', false);
     1092        $style=htmlspecialchars($style, ENT_QUOTES | ENT_HTML5, 'UTF-8', false);
    10871093        $query="insert into ".$this->query->prefix()."grid_slot_style (slug,style) values ('".$slug."','".$style."')";
    10881094        $this->query->execute($query);
     
    10971103    public function updateSlotStyle($id,$slug,$style)
    10981104    {
     1105        $slug=htmlspecialchars($slug, ENT_QUOTES | ENT_HTML5, 'UTF-8', false);
     1106        $style=htmlspecialchars($style, ENT_QUOTES | ENT_HTML5, 'UTF-8', false);
    10991107        $query="update ".$this->query->prefix()."grid_slot_style set slug='".$slug."', style='".$style."' where id=".$id;
    11001108        $this->query->execute($query);
  • grid/trunk/lib/grid/classes/StyleEditor.php

    r2401024 r3351302  
    1111class StyleEditor {
    1212
    13     /**
    14      * StyleEditor constructor.
    15      *
    16      * @param Storage $storage
    17      */
     13    public Storage $storage;
     14   
    1815    public function __construct(Storage $storage){
    1916        $this->storage = $storage;
  • grid/trunk/lib/grid/classes/UpdateBase.php

    r2401024 r3351302  
    77use Exception;
    88
    9 /**
    10  * @property iQuery query
    11  */
    129class UpdateBase {
     10
     11    public iQuery $query;
     12
    1313    /**
    1414     * schema key for update schema identification
  • grid/trunk/lib/grid/components/grid_box.php

    r2541021 r3351302  
    55use Palasthotel\Grid\Model\Box;
    66
    7 /**
    8  * @property iTemplate template
    9  */
    107class grid_box extends Box {
     8
     9    public iTemplate $template;
    1110
    1211    public function __construct() {
  • grid/trunk/lib/grid/components/grid_container.php

    r2541021 r3351302  
    55use Palasthotel\Grid\Model\Container;
    66
    7 /**
    8  * @property iTemplate template
    9  */
    107class grid_container extends Container {
     8
     9    public iTemplate $template;
    1110
    1211    public function __construct() {
  • grid/trunk/lib/grid/components/grid_grid.php

    r2541021 r3351302  
    77use Palasthotel\Grid\Model\Grid;
    88
    9 /**
    10  * @property iTemplate template
    11  */
    129class grid_grid extends Grid {
     10
     11    public iTemplate $template;
    1312
    1413    /**
  • grid/trunk/lib/grid/components/grid_slot.php

    r2541021 r3351302  
    66use Palasthotel\Grid\Model\Slot;
    77
    8 /**
    9  * @property iTemplate template
    10  */
    118class grid_slot extends Slot {
     9
     10    public iTemplate $template;
    1211
    1312    public function __construct() {
  • grid/trunk/readme.txt

    r2861842 r3351302  
    55Requires at least: 4.0
    66Tested up to: 5.9.3
    7 Stable tag: 2.3.0
     7Stable tag: 2.3.1
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl
     
    8888
    8989== Changelog ==
     90
     91= 2.3.1 =
     92
     93* Fixed a XSS vulnerability
     94* fixed some deprecation warnings
    9095
    9196= 2.3.0 =
  • grid/trunk/vendor/composer/installed.php

    r2861842 r3351302  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'd31acba4fb21f5440d78edfcda586eb51234d62c',
     6        'reference' => '5f58f47222ffcd2b294d0a018ca7872794142929',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'd31acba4fb21f5440d78edfcda586eb51234d62c',
     16            'reference' => '5f58f47222ffcd2b294d0a018ca7872794142929',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • grid/trunk/wordpress_plugin.php

    r2761847 r3351302  
    44 * Plugin URI: https://github.com/palasthotel/grid-wordpress
    55 * Description: Helps layouting pages with containerist.
    6  * Version: 2.3.0
     6 * Version: 2.3.1
    77 * Author: Palasthotel <rezeption@palasthotel.de> (in person: Benjamin Birkenhake, Edward Bock, Enno Welbers, Jana Marie Eggebrecht)
    88 * Author URI: http://www.palasthotel.de
     
    3939require_once dirname( __FILE__ ) . "/vendor/autoload.php";
    4040
    41 /**
    42  * @property string dir
    43  * @property string url
    44  * @property array grid_ids
    45  * @property array post_ids
    46  * @property StorageHelper storageHelper
    47  * @property TheGrid $theGrid
    48  * @property PositionInPost positionInPost
    49  * @property Post post
    50  * @property Ajax $gridAjax
    51  * @property API gridAPI
    52  * @property Editor gridEditor
    53  * @property Core gridCore
    54  * @property GridHook gridHook
    55  * @property GridQuery gridQuery
    56  * @property Boxes boxes
    57  * @property MetaBoxes metaBox
    58  * @property Settings settings
    59  * @property Template gridTemplate
    60  */
    6141class 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
    6262
    6363    // ------------------------------------
Note: See TracChangeset for help on using the changeset viewer.