Plugin Directory

Changeset 2585577


Ignore:
Timestamp:
08/19/2021 04:03:55 PM (4 years ago)
Author:
aware
Message:

Update to version 1.4.0 from GitHub

Location:
mesh
Files:
278 added
14 deleted
27 edited
1 copied

Legend:

Unmodified
Added
Removed
  • mesh/assets/banner-1544x500.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • mesh/assets/banner-772x250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • mesh/assets/icon-128x128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • mesh/assets/icon-256x256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • mesh/assets/screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • mesh/assets/screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • mesh/assets/screenshot-3.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • mesh/tags/1.4.0/CHANGELOG.md

    r1974983 r2585577  
    1 # Change Log For Mesh
     1# Changelog
     2All notable changes to this project will be documented in this file.
    23
    3 ## [1.2.5.6] - 2018-11-15
     4The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
     5and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
    46
    5 ### Fixes
     7## [Unreleased]
    68
    7 - Removed yoast content scoring from Mesh due to undocumented changes in WordPress SEO (Feature will come back at a later date)
     9## [1.4.0] - 08-18-2021
     10### Updated
     11- Update the build process from grunt to gulp
     12- Implemented deployments to .org from github
    813
    9 ## [1.2.5.5] - 2018-11-12
     14### Fixed
     15- Fixed an issue with ajax calls to Mesh Templates
    1016
    11 ### Fixes
     17## [1.2.5.6]
     18### Fixed
     19- Had to temporarily disable WordPress SEO / Yoast Content Analysis from Mesh due to an undocumented change on Yoast's side. We will enable this feature again soon
    1220
    13 - Fixed wp_die in utilities
     21## [1.2.5.5]
     22### Fixed
     23- Die in utilities that shouldn't be there
    1424
    15 ## [1.2.5.4] - 2018-11-06
    16 
    17 ### Fixes
    18 
     25## [1.2.5.4]
     26### Fixed
    1927- Fixed over zealous sanitization
    2028- Fixed missing integration folder on wordpress.org
    2129- Fixed an issue with not allowing you to reset section/column titles
     30- Added better support for WordPress Export / Import tools
    2231
    23 ### Added
    24 - Better support for WordPress Export / Import tools
     32## [1.2.5.3]
     33- Minor fix for column centering using default mesh styles
    2534
    26 ## [1.2.5.3] - 2018-06-08
     35## [1.2.5.2]
     36- Fixed an issue with Column Background images not saving properly
    2737
    28 ### Fixes
    29 - Fixed a minor issue with column centering using default mesh styles
    30 - Fixed a minor typo in the changelog
     38## [1.2.5.1]
     39- Hotfix for title display
    3140
    32 ## [1.2.5.2] - 2018-06-05
     41## [1.2.5]
     42### Updated
     43- Please read about our changes here https://meshplugin.com/release-notes/1-2-5/
    3344
    34 ### Fixes
    35 - Fixed some occurrences were column BG images were not saving properly.
    36 
    37 ## [1.2.5.1] - 2018-05-31
    38 
    39 ### Fixes
    40 - Inadvertent display of section titles when you didn't want that.
    41 
    42 ## [1.2.5] - 2018-05-30
    43 
    44 ### Fixes
    45 
     45### Fixed
    4646- Quality of life fixes for UI.
    4747- Background images can now be removed on blocks!
     
    5959- Moved and Refactored a ton of methods to be more organized (utilities.php)
    6060- Added utility methods for outputting CSS Classes and other attributes for sections, rows and columns
    61 - Added more descriptions to options within Mesh Settings 
     61- Added more descriptions to options within Mesh Settings
    6262- Added Mesh_Input class to handle building all input markup (dramatically cutting down code duplications between blocks and sections)
    6363- Added a nag message for reviews. Please help!
     
    7676
    7777### Updated
    78 - Tons of CSS refactoring to make the UI cleaner
    79 - Media and TinyMCE menus of each section now collapse when viewing smaller blocks for a better overall experience.
    80 - TinyMCE default settings are now shared between blocks built with php and javascript.
    81 - Dramatically cut down the code needed within mesh php templates (Developers may want to review any custom templates on a staging environment)
    82 - Admin area now utilizes Mesh_Responsive grid class more extensively
    83 - Minor code formatting for code climate / WPCS
    84 - Minor security enhancements to escape admin related content on output
    85 - Minor JavaScript optimizations
    86 - Column resizing is now more responsive. Sections no longer redraw on every "slide", instead only redraw after a change occurs.
     78* Tons of CSS refactoring to make the UI cleaner
     79* Media and TinyMCE menus of each section now collapse when viewing smaller blocks for a better overall experience.
     80* TinyMCE default settings are now shared between blocks built with php and javascript.
     81* Dramatically cut down the code needed within mesh php templates (Developers may want to review any custom templates on a staging environment)
     82* Admin area now utilizes Mesh_Responsive grid class more extensively
     83* Minor code formatting for code climate / WPCS
     84* Minor security enhancements to escape admin related content on output
     85* Minor JavaScript optimizations
     86* Column resizing is now more responsive. Sections no longer redraw on every "slide", instead only redraw after a change occurs.
    8787
    88 ## [1.2.4] - 2018-05-01
    89 
    90 ### Fixes
    91 
     88## [1.2.4]
     89### Added
     90- Added more filters and action hooks for developers
     91- Added field for custom Section ID, Section ID defaults to mesh-section-{post_id}
     92- Added preliminary support for Gutenberg (AKA No conflicts)
     93- Added field for custom Section ID
     94- Added new uninstall process that will clear out Mesh Templates, Sections and Terms
    9295- Fixed a few undefined indexes
    9396- Fixed a few conflicts with gutenberg (This is not full compatiblity with Gutenberg)
    9497- Fixed an issue where Mesh Templates could potentially lost the ability to add Mesh Sections
     98- Updated Foundation 6.X data attribute tag support
     99- Updated CSS slightly.
    95100
    96 ### Added
    97 - Added the ability to define and ID for each Mesh Section and Block for more customization!
    98 - Added actions
    99   - mesh_controls_before
    100   - mesh_controls_after
    101   - mesh_sections_before
    102   - mesh_sections_after
    103   - mesh_columns_before
    104   - mesh_columns_after 
    105 - Added filters
    106   - mesh_row_attributes
    107   - mesh_column_attributes
    108 - Added field for custom Section ID, Section ID defaults to mesh-section-{post_id}
    109 - Added preliminary support for Gutenberg (AKA No conflicts)
    110 - Added new uninstall process that will clear out Mesh Templates, Sections and Terms
    111 
    112 #### Updated
    113 
    114 - Updated Foundation 6.X data attribute tag support
    115 - CSS slightly.
    116 
    117 ## [1.2.3] - 2017-12-06
    118 
    119 ### Fixes
    120 
     101## [1.2.3]
     102### Fixed
    121103- Fixed a javascript issue with FireFox
    122104- Fixed an issue with Equalizer options being over sanitized.
    123105
    124 ## [1.2.2] - 2017-9-24
    125 
    126 ### Fixes
    127 
     106## [1.2.2]
     107### Fixed
    128108- Fixed bug causing 'Show Title' checkbox to not work correctly
    129 
    130 ### Updated
    131 
    132109- Minor Code Climate configuration changes.
    133110- Minor formatting changes for markdown linting.
    134111
    135 ## [1.2.1] - 2017-8-27
    136 
    137 ### Fixes
    138 
     112## [1.2.1]
     113### Fixed
     114- Include form elements in Mesh allowed HTML
    139115- Include data-interchange in Mesh allowed HTML on section elements
    140 - Fixed up some undefined indexes.
    141 - Include form elements in Mesh allowed HTML
    142 
    143 ### Added
    144 
     116- Fix for undefined indexes
    145117- Added hooks to Mesh templates
    146118
    147 ## [1.2.0] - 2017-8-17
     119## [1.2]
     120### Removed
     121-Remove trailing whitespace from row class
     122-Remove checks for equalizer in the 1 column template
    148123
    149 ### Fixes
    150 
    151 - Remove trailing whitespace from row class
    152 - Remove checks for equalizer in the 1 column template
    153 - Fixed a bug where reordering would stop that section from working properly
    154  until refresh.
    155 - Fixed a bug where collapsed sections could not be toggled open after a new
    156  section was added
    157 - Fixed a bug when excluding Mesh template related taxonomies from the
    158  generated sitemap
    159 - Fixed a bug where section and block background images were displayed before
    160  "update" / "publish"
    161 - Controls within Sections and Columns/Blocks are now extendable for
    162 developers.
     124### Fixed
     125- Fixed a bug where reordering would stop that section from working properly until refresh.
     126- Fixed a bug where collapsed sections could not be toggled open after a new section was added
     127- Fixed a bug when excluding Mesh template related taxonomies from the generated sitemap
     128- Fixed a bug where section and block background images were displayed before "update" / "publish"
     129- Controls within Sections and Columns/Blocks are now extendable for developers.
    163130- More security hardening for potential XSS and CSRF.
    164 - Fixed a bug where trashing unused blocks was more aggressive than it should
    165  be. Simma down nah.
    166 - Fixed a pesky bug what would delete your content if you changed column count
    167  before saving.
     131- Fixed a bug where trashing unused blocks was more aggressive than it should be. Simma down nah.
     132- Fixed a pesky bug what would delete your content if you changed column count before saving.
    168133- A bunch of little things under the hood you probably wont notice
    169  
    170 ### Added
    171 
    172134- First time users will now have an improved onboarding process.
    173 - Existing users will now be presented with a notification to view
    174 *"What's new"*
     135- Existing users will now be presented with a notification to view *"What's new"*
    175136- Added support for Yoast SEO page analysis.
    176137- Added support for scripts within urls within TinyMCE.
    177 - Added support for duplicating sections of a post using "Duplicate Post"
    178  Plugin
    179 - Added support for duplicating sections of a post using "Post Duplicator"
    180  Plugin
     138- Added support for duplicating sections of a post using "Duplicate Post" Plugin
     139- Added support for duplicating sections of a post using "Post Duplicator" Plugin
    181140- First implementation of block caching layer.
    182 
    183 ### Updated
    184 
    185141- WordPress Coding Coding Standards
    186142- Improved build process.
    187143- Improved code analysis process within codeclimate
    188 
    189 ## [1.1.7] - 2017-6-12
    190 
    191 ### Fixed
    192 
    193 - Fix for issue within "content" being replaced when it shouldn't be
    194 - Fix for duplicated sections not applying the proper date.
    195 
    196 ### Updated
    197 
    198 - Confirmed 4.8 compatibility
    199 
    200 ## [1.1.6] - 2017-4-10
    201 
    202 ### Fixed
    203 
    204 - Fixed undefined index `foundation_version`.
    205 - Fix bug for `.row` max-width being set to `rem-calc(1200)`
    206 - Fix issue within visual editors within blocks. The html was being saved
    207  instead of the raw data. wpautop filter should still be applied if available.
    208 - Hot fix bug with Foundation interchange conflict
    209 - Setup Code Climate and Code Climate test coverage reporting.
    210 - Fix PHP warnings when retrieving `mesh_post_types` when it is not yet set.
    211 - Include mesh.js.map in Grunt build
    212 
    213 ### Added
    214  
    215 - Introduce a `CONTRIBUTING.md` file.
    216 - Add a `.travis.yml` file to automate our unit tests.
    217 - Add `addtextdomain` task to the Grunt configuration.
    218 - Add `JSON` files to Code Climate grading.
    219 - Add `node_modules` folder to the `.gitignore`.
    220 
    221 ### Updated
    222 
    223 - Update unit test install scripts.
    224 - Changed `esc_attr_e()` and `esc_html_()` calls to `echo esc_attr()` and
    225 - `echo esc_html()` when containing a variable.
    226 - Remove `makepot` task from the Grunt configuration.
    227 - Exclude the `Michelf` library from Code Climate scanning.
    228 - Remove `languages` folder.
    229 - Replace `Michelf` library with `Parsedown`
    230 
    231 ## [1.1.5] - 2017-2-6
    232 
    233 ### Fixed
    234 
    235 - Fixed equalize options should not show if the section is only 1 column wide.
    236 - Fixed some minor typos.
    237 - Fixed minor display issue that occurred when removing all Mesh sections on a
    238  post.
    239 
    240 ### Added
    241 
    242 - Ability to filter `mesh_tiny_mce_before_init` to allow even more extended
    243  option filtering
    244 - Default support for interchange using Mesh even if your theme isn't built on
    245  Foundation
    246 - Actions mesh_section_add_before_misc_actions and
    247  mesh_section_add_misc_actions for more customization.
    248 - Ability to preview sections that are not published yet.
    249 
    250 ### Updated
    251  
    252 - Mesh templates default to "starter" mesh_template_type upon creation
    253 
    254 ## [1.1.4] - 2016-12-21
    255 
    256 ### Fixed
    257 
    258 - Selected/uploaded background images were not displaying within admin until
    259  refresh.
    260 - Fixed Mesh Template order consistenty when closing.
    261 - Fixed block resizing was broken in some instances.
    262 - Fixed Mesh titles displaying outside of their container if the title is too
    263  long
    264 
    265 ### Added
    266 
    267 - Window will now scroll to the newest block when adding a new section.
    268 
    269 ## [1.1.3] - 2016-11-17
    270 
    271 ### Fixed
    272 
    273 - Interchange on section and block background images
    274 - Fixed minor typo in the previous changelog
    275 
    276 ### Added
    277 
    278 - Exclude Mesh template taxonomies from being added to the WordPress SEO
    279  sitemap.xml
    280 - Equalizer minimum breakpoint support for Foundation 6
    281 - The ability to select which version of Foundation your theme is using
    282  (Defaults to Foundation 5)
    283 - `mesh-background` custom image size (1920 x 1080) by default.
    284 - Filters to define what images sizes will be used by interchange.
    285 
    286 ## [1.1.2] - 2016-11-07
    287 
    288 ### Fixed
    289 
    290 - Fixed compatibility issue with PHP 5.4 (Thanks @missmuttly anf @tecbrat)
    291 
    292 ## [1.1.1] - 2016-10-19
    293 
    294 ### Fixed
    295 
    296 - Some minor copy / typo adjustments
    297 
    298 ### Added
    299 
    300 - Equalizer minimum breakpoint support for Foundation 6
    301 
    302 ### Updated
    303 
    304 - Changelog should have proper information now
    305 
    306 ## [1.1] - 2016-10-17
    307 
    308 ### Added
    309 
    310 - You can now create reusable templates.
    311 - Templates are excluded from Yoast SEO admin shenanigans by default.
    312 - Preliminary remove Mesh Settings on Uninstall.
    313 - You can now filter how many mesh_templates `mesh_templates_per_page` are
    314  queried if you have a lot of templates (More than 50)
    315 - Better version tracking and upgrade process.
    316 - You can now filter the output of `mesh_loop_end`. An example would be to stop
    317  the default output of mesh_display_sections.
    318 - Better "in progress and busy" state of page building.
    319 - New Welcome message on Mesh Templates Post List to help guide users
    320 - Initial implementation for documentation generation.
    321 
    322 ### Fixed
    323 
    324 - Typo in Mesh settings text field utility method.
    325 - Offset now displays properly within Post Edit screen on page load.
    326 - When setting an offset to 7,8 or 9 on single column (12) visual did not match
    327  what was being stored in post_meta.
    328 - Minor security improvements.
    329 - Now running Mesh admin sections through wp_kses with a custom set of
    330  whitelisted elements and attributes.
    331 - After deleting all sections within a post you had to refresh the pages before
    332  you could get your controls back.
    333 - New sections could not toggle post box collapse with out a page refresh.
    334 - Ordering of sections was being lost when updating a post.
    335 - Fixed When going from more to less columns you can now trash unused columns.
    336  (Thanks for the find @kelter)
    337 - Some formatting issues in the readme.
    338 - If you added a section then immediately tried to resize a JS error would
    339  occur to do aria checks.
    340 
    341 ### Updated
    342 
    343 - Some localization strings needed sprucing up (old MCS references).
    344 - Some style updates (notifications, tighted up soe visuals for consistency).
    345 
    346 ## [1.0.5] - 2016-08-08
    347 
    348 ### Fixed
    349 
    350 - README.md and CHANGELOG.md not pulling into settings page.
    351  Thanks @nate-allen [mesh-25]
    352 - Column "More" Options UI is very tight and overlaps.
    353  Thanks @nate-allen [mesh-18]
    354 
    355 ## [1.0.4] - 2016-08-04
    356 
    357 ### Fixed
    358 
    359 - Javascript error was thrown if the user had any columns within text view when
    360  saving. [mesh-21]
    361 - Templates were missing the ability for the first column to have an
    362  offset. [mesh-5]
    363 - Post Type enabling wasn't working properly. [mesh-19]
    364 
    365 ## [1.0.3] - 2016-05-15
    366 
    367 ### Added
    368 
    369 - Updated build process for easier deployment to wordpress.org
    370 
    371 ### Fixed
    372 
    373 - Minor code formatting updates
    374 - Fixed publish / update button display issue [mesh-11]
    375 
    376 ## [1.0.2] - 2016-05-13
    377 
    378 ### Fixed
    379 
    380 - Missing Domain Path: /languages
    381 
    382 ## [1.0.1] - 2016-05-13
    383 
    384 ### Updated
    385 
    386 - Readme has more information
    387 - Setting up localization
    388 
    389 ### Fixed
    390 
    391 - Checks for Foundation
    392 
    393 ## [1.0.0] - 2016-04-21
    394 
    395 ### Updated
    396 
    397 - Change the name of Multiple Content Sections to Mesh for public release.
    398 - Finalized Name change for public release.
    399 - Removed unneeded realtime ajax calls that resulted in unwanted publishing
    400  of content
    401 - Massive overhaul of admin CSS for public release.
    402 - Completely reworked interface for public release for more WordPress core
    403  consistency and ease of use (More to come)
    404 
    405 ### Fixed
    406 
    407 - TinyMCE now works better. Using a fix seen here
    408  https://github.com/alleyinteractive/wordpress-fieldmanager/blob/master/js/richtext.js#L58-L95
    409 - TinyMCE options are now consistent when displaying new and existing
    410  block editors
    411 
    412 ### Added
    413 
    414 - Allowing the ability to toggle kitchen sink items. @todo Not displaying yet
    415 - Admins can now control some plugin settings. Settings -> Mesh
    416 - Admins can disable or enable CSS as needed
    417 - Admins can now enable Mesh on individual post types.
    418 - Admin area is now much more modular
    419 
    420 ### Known Issues
    421 
    422 - Some non blocker minor styling issues.
    423 - Minor display issues on smaller screens.
    424 - Ajax `$_POST` is sending more data than needed.
    425 
    426 ## [0.4.5] - 2015-10-27
    427 
    428 ### Fixed
    429 
    430 - Blocks had issues selecting a background once the blocks code was separated
    431  out.
    432 
    433 ## [0.4.4] - 2015-10-3
    434 
    435 ### Fixed
    436 
    437 - Temporary fix for toggling styles between html/text view of blocks
    438 
    439 ### Updated
    440 
    441 - Separated section controls into a different template for more flexible
    442  expansion later on.
    443 
    444 ## [0.4.3.1] - 2015-09-21
    445 
    446 ### Fixed
    447 
    448 - Made sure that a block always matches the parent section when being created
    449  (publish|draft) etc
    450 
    451 ## [0.4.3] - 2015-09-21
    452 
    453 ### Added
    454 
    455 - Can now collapse column spacing using an option
    456 
    457 ## [0.4.2.1] - 2015-09-21
    458 
    459 ### Fixed
    460 
    461 - Made sure that blocks can not have the same `post_name`
    462 
    463 ## [0.4.2] - 2015-09-21
    464 
    465 ### Added
    466 
    467 - Checking if a page is private before displaying it to the end user.
    468 - Created logic to display the title of a section either above the blocks or
    469  within a specific block
    470 
    471 ### Fixed
    472 
    473 - JavaScript references we're broken after JavaScript was separated.
    474 
    475 ## [0.4.1] - 2015-09-12
    476 
    477 ### Added
    478 
    479 - Controls are displayed in the footer of the sections
    480 - Separate CHANGELOG.md file
    481 - Doc Blocks within JavaScript for some methods were added
    482 - Offset can now be defined per block/column not just per section
    483 
    484 ### Updated
    485 
    486 - Separated Controls into it's own reusable template
    487 - Separated MultipleContentSections into it's own class
    488 - Gruntfile.js now joins JavaScript files and minifies
    489 - Separated block related Javascript into it's own file
    490 
    491 ### Fixed
    492 
    493 - Default Template `<div>` was not being closed correctly
    494 
    495 ## [0.4.0] - 2015-09-10
    496 
    497 ### Added
    498 
    499 - Users can now disable notification messages
    500 
    501 ### Updated
    502 
    503 - Frontend templates support column offset and custom css classes
    504 
    505 ## [0.3.9]
    506 
    507 ### Updated
    508 
    509 - Style cleanup of the column resizer
    510 
    511 ### Fixed
    512 
    513 - zindex issue when resizing columns
    514 
    515 ## [0.3.8]
    516 
    517 ### Fixed
    518 
    519 - Cleaned up Post Type labels used when exporting content using the WordPress
    520  export tools (now shows "Section")
    521 
    522 ## [0.3.7]
    523 
    524 ### Updated
    525 
    526 - Cleaned up notifications
    527 - Cleaned up reordering
    528 - Added smoother/real-time column resizing
    529 
    530 ## [0.3.6]
    531 
    532 ### Added
    533 
    534 - CSS classes to Blocks
    535 - Background Image to blocks
    536 - Utility method to build out section background images
    537 
    538 ### Fixed
    539 
    540 - 3 column layouts can now be resized
    541 
    542 ## [0.3.5]
    543 
    544 #### Significant Release. Probably breaks backwards compatibility with internal
    545  releases.
    546 
    547 ### Added
    548 
    549 - Ability to reorder blocks using drag and drop
    550 - Block order saves using Ajax
    551 - Ability to define custom css classes per section
    552 - Better localization support on **MOST** strings
    553 - Users now have a bunch of default templates to choose from
    554 
    555 ### Updated
    556 
    557 - Better redrawing of editable areas after reordering (of drawers and sections)
    558  is complete
    559 - Additional Security hardening prior to public release
    560 
    561 ## [0.3.0]
    562 
    563 ### Added
    564 
    565 - Notifications display on saving, reordering
    566 - Added css of admin elements
    567 - Added better structure for notifications
    568 
    569 ## [0.2.0]
    570 
    571 ### Added
    572 
    573 - Added README.md
    574 - Added ability to have multiple editors within a *section* based on template
    575 - Added GruntFile
    576 
    577 ### Fixed
    578 
    579 - Minor code cleanup to adhere to WordPress coding standards
    580 - Refactor code for template selection
    581 
    582 ## [0.1.1]
    583 
    584 ### Added
    585 
    586 - Added feature to store data from multiple content sections within "the_content"
    587  of the parent post. This allows content within Multiple Content Sections to show up within the WordPress search results.
    588 - Added ability to select templates
    589 - Added ability to upload media to sections
    590 
    591 ## [0.1.0]
    592 
    593 - Initial Internal Release
  • mesh/tags/1.4.0/class.mesh-install.php

    r1885012 r2585577  
    3636     */
    3737    public function admin_enqueue_scripts() {
    38         wp_enqueue_script( 'admin-mesh-notifications', plugins_url( 'assets/js/admin-mesh-notifications.js', __FILE__ ), array(), LINCHPIN_MESH_VERSION, true );
     38        wp_enqueue_script( 'admin-mesh-notifications', plugins_url( 'js/admin-mesh-notifications.js', __FILE__ ), array(), LINCHPIN_MESH_VERSION, true );
    3939
    4040        wp_localize_script( 'admin-mesh-notifications', 'mesh_notifications', array(
  • mesh/tags/1.4.0/class.mesh-pointers.php

    r1714872 r2585577  
    4747        }
    4848
    49         $screen = get_current_screen();
     49        $screen    = get_current_screen();
    5050        $screen_id = $screen->id;
    5151
  • mesh/tags/1.4.0/class.mesh-templates-ajax.php

    r1867164 r2585577  
    218218            $mesh_templates_duplicate = new Mesh_Templates_Duplicate();
    219219
    220             $duplicate_sections = $mesh_templates_duplicate->duplicate_sections( $mesh_template_id, $post_id );
     220            $duplicate_sections = $mesh_templates_duplicate->duplicate_sections( $mesh_template_id, $post_id, false );
    221221
    222222            if ( ! empty( $duplicate_sections ) ) {
  • mesh/tags/1.4.0/class.mesh-templates-duplicate.php

    r1867164 r2585577  
    4444     * @return string
    4545     */
    46     function duplicate_sections( $template_id, $post_id, $include_drafts ) {
     46    function duplicate_sections( $template_id, $post_id, $include_drafts = false ) {
    4747
    4848        $template_id = absint( $template_id );
  • mesh/tags/1.4.0/class.mesh-templates.php

    r1885012 r2585577  
    4141        add_filter( 'manage_mesh_template_posts_columns', array( $this, 'add_layout_columns' ) );
    4242
    43         include LINCHPIN_MESH___PLUGIN_DIR . '/class.mesh-templates-duplicate.php';
     43        require_once LINCHPIN_MESH___PLUGIN_DIR . '/class.mesh-templates-duplicate.php';
    4444
    4545        add_action( 'load-edit.php', array( $this, 'admin_notices' ) );
     
    246246        }
    247247
    248         $mesh_layout_meta[ sanitize_title( 'row-' . $section_id ) ]['blocks'] = array(); // Reset blocks array.
     248        if ( is_array( $mesh_layout_meta[ sanitize_title( 'row-' . $section_id ) ] ) ) {
     249            $mesh_layout_meta[ sanitize_title( 'row-' . $section_id ) ]['blocks'] = array(); // Reset blocks array.
     250        } else {
     251            return;
     252        }
    249253
    250254        foreach ( $blocks as $block_id => $block_data ) {
  • mesh/tags/1.4.0/class.mesh-upgrades.php

    r1974983 r2585577  
    2525        add_action( 'admin_notices', array( $this, 'show_update_notice' ) );
    2626        add_action( 'admin_notices', array( $this, 'show_review_nag' ), 11 );
     27        add_action( 'admin_notices', array( $this, 'show_classic_editor_notice' ), 12 );
    2728    }
    2829
     
    198199    }
    199200
     201    /**
     202     * Show a notice if the user does not have the classic editor enabled.
     203     *
     204     * @since 1.4.0
     205     */
     206    public function show_classic_editor_notice() {
     207        if ( ! class_exists( 'Classic_Editor' ) ) {
     208            include LINCHPIN_MESH___PLUGIN_DIR . 'admin/editor-notice.php';
     209        }
     210    }
     211
    200212    public function show_review_nag() {
    201213        $mesh_settings = get_option( 'mesh_settings' );
  • mesh/tags/1.4.0/class.mesh.php

    r1970500 r2585577  
    932932        }
    933933
    934         wp_enqueue_script( 'admin-mesh', plugins_url( 'assets/js/admin-mesh.js', __FILE__ ), array(
     934        wp_enqueue_script( 'admin-mesh', plugins_url( 'js/admin-mesh.js', __FILE__ ), array(
    935935            'jquery',
    936936            'jquery-ui-draggable',
     
    995995     */
    996996    public function admin_enqueue_styles() {
    997         wp_enqueue_style( 'admin-mesh', plugins_url( 'assets/css/admin-mesh.css', __FILE__ ), array(), LINCHPIN_MESH_VERSION );
     997        wp_enqueue_style( 'admin-mesh', plugins_url( 'css/admin-mesh.css', __FILE__ ), array(), LINCHPIN_MESH_VERSION );
    998998    }
    999999
     
    10161016        } else {
    10171017            if ( 0 === $css_mode ) {
    1018                 wp_enqueue_script( 'mesh-frontend', plugins_url( 'assets/js/mesh.js', __FILE__ ), array( 'jquery' ), LINCHPIN_MESH_VERSION, true );
     1018                wp_enqueue_script( 'mesh-frontend', plugins_url( 'js/mesh.js', __FILE__ ), array( 'jquery' ), LINCHPIN_MESH_VERSION, true );
    10191019            }
    10201020        }
  • mesh/tags/1.4.0/mesh.php

    r1974983 r2585577  
    44 * Plugin URI: https://meshplugin.com?utm_source=mesh&utm_medium=plugin-admin-page&utm_campaign=wp-plugin
    55 * Description: Adds multiple sections for content on a post by post basis. Mesh also has settings to enable it for specific post types
    6  * Version: 1.2.5.6
     6 * Version: 1.4.0
    77 * Text Domain: mesh
    88 * Domain Path: /languages
     
    2222 * Define all globals.
    2323 */
    24 define( 'LINCHPIN_MESH_VERSION', '1.2.5.6' );
     24define( 'LINCHPIN_MESH_VERSION', '1.4.0' );
    2525define( 'LINCHPIN_MESH_PLUGIN_NAME', esc_html__( 'Mesh', 'mesh' ) );
    2626define( 'LINCHPIN_MESH__MINIMUM_WP_VERSION', '4.0' );
     
    9696    $files = (array) Mesh::scandir( $directory, $type, $depth );
    9797
    98     if ( $search_parent && $this->parent() ) {
     98    if ( $search_parent && dirname( $directory ) ) {
    9999        $files += (array) Mesh::scandir( $directory, $type, $depth );
    100100    }
  • mesh/tags/1.4.0/readme.txt

    r1974983 r2585577  
    33Tags: page builder, template builder, layout builder, responsive, landing page builder, site builder, foundation, bootstrap, linchpin
    44Requires at least: 4.0
    5 Tested up to: 4.9.8
    6 Stable tag: 1.2.5.6
     5Tested up to: 5.8.2
     6Stable tag: 1.4.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1111
    1212== Description ==
    13 Mesh is the easiest way to add additional content to your Page, Post, or Custom Post Type in a responsive grid system. Adding a Mesh Section creates a new row on your page below the default WordPress content. Each Section can be divided into 1 to 4 Columns, providing Visual/Text editors for each Column. Give your Sections and Columns titles, drag to rearrange, add background images to Columns or an entire Section, then Publish your Section or save it as a Draft until your content is just right.
     13
     14This plugin is deprecated and no longer actively maintained excluding any security updates. The Block Editor/Gutenberg can handle many aspects of row and column content that this plugin provides.
     15
     16If you still would like to utilize this plugin you need to additionally install the classic-editor plugin as mesh *is not* compatible with the block editor
     17
     18Page, Post, or Custom Post Type in a responsive grid system. Adding a Mesh Section creates a new row on your page below the default WordPress content. Each Section can be divided into 1 to 4 Columns, providing Visual/Text editors for each Column. Give your Sections and Columns titles, drag to rearrange, add background images to Columns or an entire Section, then Publish your Section or save it as a Draft until your content is just right.
    1419
    1520Efficient and unobtrusive, Mesh was designed to simply extend the functionality of the normal page editor within WordPress to provide the flexibility of building pages in a responsive grid without adding code or editing page templates.
     
    7378
    7479== Changelog ==
     80
     81= 1.4.0 =
     82
     83### Updated
     84
     85- Update the build process from grunt to gulp
     86- Implemented deployments to .org from github
     87
     88### Fixes
     89
     90- Fixed an issue with ajax calls to Mesh Templates
    7591
    7692= 1.2.5.6 =
  • mesh/trunk/CHANGELOG.md

    r1974983 r2585577  
    1 # Change Log For Mesh
     1# Changelog
     2All notable changes to this project will be documented in this file.
    23
    3 ## [1.2.5.6] - 2018-11-15
     4The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
     5and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
    46
    5 ### Fixes
     7## [Unreleased]
    68
    7 - Removed yoast content scoring from Mesh due to undocumented changes in WordPress SEO (Feature will come back at a later date)
     9## [1.4.0] - 08-18-2021
     10### Updated
     11- Update the build process from grunt to gulp
     12- Implemented deployments to .org from github
    813
    9 ## [1.2.5.5] - 2018-11-12
     14### Fixed
     15- Fixed an issue with ajax calls to Mesh Templates
    1016
    11 ### Fixes
     17## [1.2.5.6]
     18### Fixed
     19- Had to temporarily disable WordPress SEO / Yoast Content Analysis from Mesh due to an undocumented change on Yoast's side. We will enable this feature again soon
    1220
    13 - Fixed wp_die in utilities
     21## [1.2.5.5]
     22### Fixed
     23- Die in utilities that shouldn't be there
    1424
    15 ## [1.2.5.4] - 2018-11-06
    16 
    17 ### Fixes
    18 
     25## [1.2.5.4]
     26### Fixed
    1927- Fixed over zealous sanitization
    2028- Fixed missing integration folder on wordpress.org
    2129- Fixed an issue with not allowing you to reset section/column titles
     30- Added better support for WordPress Export / Import tools
    2231
    23 ### Added
    24 - Better support for WordPress Export / Import tools
     32## [1.2.5.3]
     33- Minor fix for column centering using default mesh styles
    2534
    26 ## [1.2.5.3] - 2018-06-08
     35## [1.2.5.2]
     36- Fixed an issue with Column Background images not saving properly
    2737
    28 ### Fixes
    29 - Fixed a minor issue with column centering using default mesh styles
    30 - Fixed a minor typo in the changelog
     38## [1.2.5.1]
     39- Hotfix for title display
    3140
    32 ## [1.2.5.2] - 2018-06-05
     41## [1.2.5]
     42### Updated
     43- Please read about our changes here https://meshplugin.com/release-notes/1-2-5/
    3344
    34 ### Fixes
    35 - Fixed some occurrences were column BG images were not saving properly.
    36 
    37 ## [1.2.5.1] - 2018-05-31
    38 
    39 ### Fixes
    40 - Inadvertent display of section titles when you didn't want that.
    41 
    42 ## [1.2.5] - 2018-05-30
    43 
    44 ### Fixes
    45 
     45### Fixed
    4646- Quality of life fixes for UI.
    4747- Background images can now be removed on blocks!
     
    5959- Moved and Refactored a ton of methods to be more organized (utilities.php)
    6060- Added utility methods for outputting CSS Classes and other attributes for sections, rows and columns
    61 - Added more descriptions to options within Mesh Settings 
     61- Added more descriptions to options within Mesh Settings
    6262- Added Mesh_Input class to handle building all input markup (dramatically cutting down code duplications between blocks and sections)
    6363- Added a nag message for reviews. Please help!
     
    7676
    7777### Updated
    78 - Tons of CSS refactoring to make the UI cleaner
    79 - Media and TinyMCE menus of each section now collapse when viewing smaller blocks for a better overall experience.
    80 - TinyMCE default settings are now shared between blocks built with php and javascript.
    81 - Dramatically cut down the code needed within mesh php templates (Developers may want to review any custom templates on a staging environment)
    82 - Admin area now utilizes Mesh_Responsive grid class more extensively
    83 - Minor code formatting for code climate / WPCS
    84 - Minor security enhancements to escape admin related content on output
    85 - Minor JavaScript optimizations
    86 - Column resizing is now more responsive. Sections no longer redraw on every "slide", instead only redraw after a change occurs.
     78* Tons of CSS refactoring to make the UI cleaner
     79* Media and TinyMCE menus of each section now collapse when viewing smaller blocks for a better overall experience.
     80* TinyMCE default settings are now shared between blocks built with php and javascript.
     81* Dramatically cut down the code needed within mesh php templates (Developers may want to review any custom templates on a staging environment)
     82* Admin area now utilizes Mesh_Responsive grid class more extensively
     83* Minor code formatting for code climate / WPCS
     84* Minor security enhancements to escape admin related content on output
     85* Minor JavaScript optimizations
     86* Column resizing is now more responsive. Sections no longer redraw on every "slide", instead only redraw after a change occurs.
    8787
    88 ## [1.2.4] - 2018-05-01
    89 
    90 ### Fixes
    91 
     88## [1.2.4]
     89### Added
     90- Added more filters and action hooks for developers
     91- Added field for custom Section ID, Section ID defaults to mesh-section-{post_id}
     92- Added preliminary support for Gutenberg (AKA No conflicts)
     93- Added field for custom Section ID
     94- Added new uninstall process that will clear out Mesh Templates, Sections and Terms
    9295- Fixed a few undefined indexes
    9396- Fixed a few conflicts with gutenberg (This is not full compatiblity with Gutenberg)
    9497- Fixed an issue where Mesh Templates could potentially lost the ability to add Mesh Sections
     98- Updated Foundation 6.X data attribute tag support
     99- Updated CSS slightly.
    95100
    96 ### Added
    97 - Added the ability to define and ID for each Mesh Section and Block for more customization!
    98 - Added actions
    99   - mesh_controls_before
    100   - mesh_controls_after
    101   - mesh_sections_before
    102   - mesh_sections_after
    103   - mesh_columns_before
    104   - mesh_columns_after 
    105 - Added filters
    106   - mesh_row_attributes
    107   - mesh_column_attributes
    108 - Added field for custom Section ID, Section ID defaults to mesh-section-{post_id}
    109 - Added preliminary support for Gutenberg (AKA No conflicts)
    110 - Added new uninstall process that will clear out Mesh Templates, Sections and Terms
    111 
    112 #### Updated
    113 
    114 - Updated Foundation 6.X data attribute tag support
    115 - CSS slightly.
    116 
    117 ## [1.2.3] - 2017-12-06
    118 
    119 ### Fixes
    120 
     101## [1.2.3]
     102### Fixed
    121103- Fixed a javascript issue with FireFox
    122104- Fixed an issue with Equalizer options being over sanitized.
    123105
    124 ## [1.2.2] - 2017-9-24
    125 
    126 ### Fixes
    127 
     106## [1.2.2]
     107### Fixed
    128108- Fixed bug causing 'Show Title' checkbox to not work correctly
    129 
    130 ### Updated
    131 
    132109- Minor Code Climate configuration changes.
    133110- Minor formatting changes for markdown linting.
    134111
    135 ## [1.2.1] - 2017-8-27
    136 
    137 ### Fixes
    138 
     112## [1.2.1]
     113### Fixed
     114- Include form elements in Mesh allowed HTML
    139115- Include data-interchange in Mesh allowed HTML on section elements
    140 - Fixed up some undefined indexes.
    141 - Include form elements in Mesh allowed HTML
    142 
    143 ### Added
    144 
     116- Fix for undefined indexes
    145117- Added hooks to Mesh templates
    146118
    147 ## [1.2.0] - 2017-8-17
     119## [1.2]
     120### Removed
     121-Remove trailing whitespace from row class
     122-Remove checks for equalizer in the 1 column template
    148123
    149 ### Fixes
    150 
    151 - Remove trailing whitespace from row class
    152 - Remove checks for equalizer in the 1 column template
    153 - Fixed a bug where reordering would stop that section from working properly
    154  until refresh.
    155 - Fixed a bug where collapsed sections could not be toggled open after a new
    156  section was added
    157 - Fixed a bug when excluding Mesh template related taxonomies from the
    158  generated sitemap
    159 - Fixed a bug where section and block background images were displayed before
    160  "update" / "publish"
    161 - Controls within Sections and Columns/Blocks are now extendable for
    162 developers.
     124### Fixed
     125- Fixed a bug where reordering would stop that section from working properly until refresh.
     126- Fixed a bug where collapsed sections could not be toggled open after a new section was added
     127- Fixed a bug when excluding Mesh template related taxonomies from the generated sitemap
     128- Fixed a bug where section and block background images were displayed before "update" / "publish"
     129- Controls within Sections and Columns/Blocks are now extendable for developers.
    163130- More security hardening for potential XSS and CSRF.
    164 - Fixed a bug where trashing unused blocks was more aggressive than it should
    165  be. Simma down nah.
    166 - Fixed a pesky bug what would delete your content if you changed column count
    167  before saving.
     131- Fixed a bug where trashing unused blocks was more aggressive than it should be. Simma down nah.
     132- Fixed a pesky bug what would delete your content if you changed column count before saving.
    168133- A bunch of little things under the hood you probably wont notice
    169  
    170 ### Added
    171 
    172134- First time users will now have an improved onboarding process.
    173 - Existing users will now be presented with a notification to view
    174 *"What's new"*
     135- Existing users will now be presented with a notification to view *"What's new"*
    175136- Added support for Yoast SEO page analysis.
    176137- Added support for scripts within urls within TinyMCE.
    177 - Added support for duplicating sections of a post using "Duplicate Post"
    178  Plugin
    179 - Added support for duplicating sections of a post using "Post Duplicator"
    180  Plugin
     138- Added support for duplicating sections of a post using "Duplicate Post" Plugin
     139- Added support for duplicating sections of a post using "Post Duplicator" Plugin
    181140- First implementation of block caching layer.
    182 
    183 ### Updated
    184 
    185141- WordPress Coding Coding Standards
    186142- Improved build process.
    187143- Improved code analysis process within codeclimate
    188 
    189 ## [1.1.7] - 2017-6-12
    190 
    191 ### Fixed
    192 
    193 - Fix for issue within "content" being replaced when it shouldn't be
    194 - Fix for duplicated sections not applying the proper date.
    195 
    196 ### Updated
    197 
    198 - Confirmed 4.8 compatibility
    199 
    200 ## [1.1.6] - 2017-4-10
    201 
    202 ### Fixed
    203 
    204 - Fixed undefined index `foundation_version`.
    205 - Fix bug for `.row` max-width being set to `rem-calc(1200)`
    206 - Fix issue within visual editors within blocks. The html was being saved
    207  instead of the raw data. wpautop filter should still be applied if available.
    208 - Hot fix bug with Foundation interchange conflict
    209 - Setup Code Climate and Code Climate test coverage reporting.
    210 - Fix PHP warnings when retrieving `mesh_post_types` when it is not yet set.
    211 - Include mesh.js.map in Grunt build
    212 
    213 ### Added
    214  
    215 - Introduce a `CONTRIBUTING.md` file.
    216 - Add a `.travis.yml` file to automate our unit tests.
    217 - Add `addtextdomain` task to the Grunt configuration.
    218 - Add `JSON` files to Code Climate grading.
    219 - Add `node_modules` folder to the `.gitignore`.
    220 
    221 ### Updated
    222 
    223 - Update unit test install scripts.
    224 - Changed `esc_attr_e()` and `esc_html_()` calls to `echo esc_attr()` and
    225 - `echo esc_html()` when containing a variable.
    226 - Remove `makepot` task from the Grunt configuration.
    227 - Exclude the `Michelf` library from Code Climate scanning.
    228 - Remove `languages` folder.
    229 - Replace `Michelf` library with `Parsedown`
    230 
    231 ## [1.1.5] - 2017-2-6
    232 
    233 ### Fixed
    234 
    235 - Fixed equalize options should not show if the section is only 1 column wide.
    236 - Fixed some minor typos.
    237 - Fixed minor display issue that occurred when removing all Mesh sections on a
    238  post.
    239 
    240 ### Added
    241 
    242 - Ability to filter `mesh_tiny_mce_before_init` to allow even more extended
    243  option filtering
    244 - Default support for interchange using Mesh even if your theme isn't built on
    245  Foundation
    246 - Actions mesh_section_add_before_misc_actions and
    247  mesh_section_add_misc_actions for more customization.
    248 - Ability to preview sections that are not published yet.
    249 
    250 ### Updated
    251  
    252 - Mesh templates default to "starter" mesh_template_type upon creation
    253 
    254 ## [1.1.4] - 2016-12-21
    255 
    256 ### Fixed
    257 
    258 - Selected/uploaded background images were not displaying within admin until
    259  refresh.
    260 - Fixed Mesh Template order consistenty when closing.
    261 - Fixed block resizing was broken in some instances.
    262 - Fixed Mesh titles displaying outside of their container if the title is too
    263  long
    264 
    265 ### Added
    266 
    267 - Window will now scroll to the newest block when adding a new section.
    268 
    269 ## [1.1.3] - 2016-11-17
    270 
    271 ### Fixed
    272 
    273 - Interchange on section and block background images
    274 - Fixed minor typo in the previous changelog
    275 
    276 ### Added
    277 
    278 - Exclude Mesh template taxonomies from being added to the WordPress SEO
    279  sitemap.xml
    280 - Equalizer minimum breakpoint support for Foundation 6
    281 - The ability to select which version of Foundation your theme is using
    282  (Defaults to Foundation 5)
    283 - `mesh-background` custom image size (1920 x 1080) by default.
    284 - Filters to define what images sizes will be used by interchange.
    285 
    286 ## [1.1.2] - 2016-11-07
    287 
    288 ### Fixed
    289 
    290 - Fixed compatibility issue with PHP 5.4 (Thanks @missmuttly anf @tecbrat)
    291 
    292 ## [1.1.1] - 2016-10-19
    293 
    294 ### Fixed
    295 
    296 - Some minor copy / typo adjustments
    297 
    298 ### Added
    299 
    300 - Equalizer minimum breakpoint support for Foundation 6
    301 
    302 ### Updated
    303 
    304 - Changelog should have proper information now
    305 
    306 ## [1.1] - 2016-10-17
    307 
    308 ### Added
    309 
    310 - You can now create reusable templates.
    311 - Templates are excluded from Yoast SEO admin shenanigans by default.
    312 - Preliminary remove Mesh Settings on Uninstall.
    313 - You can now filter how many mesh_templates `mesh_templates_per_page` are
    314  queried if you have a lot of templates (More than 50)
    315 - Better version tracking and upgrade process.
    316 - You can now filter the output of `mesh_loop_end`. An example would be to stop
    317  the default output of mesh_display_sections.
    318 - Better "in progress and busy" state of page building.
    319 - New Welcome message on Mesh Templates Post List to help guide users
    320 - Initial implementation for documentation generation.
    321 
    322 ### Fixed
    323 
    324 - Typo in Mesh settings text field utility method.
    325 - Offset now displays properly within Post Edit screen on page load.
    326 - When setting an offset to 7,8 or 9 on single column (12) visual did not match
    327  what was being stored in post_meta.
    328 - Minor security improvements.
    329 - Now running Mesh admin sections through wp_kses with a custom set of
    330  whitelisted elements and attributes.
    331 - After deleting all sections within a post you had to refresh the pages before
    332  you could get your controls back.
    333 - New sections could not toggle post box collapse with out a page refresh.
    334 - Ordering of sections was being lost when updating a post.
    335 - Fixed When going from more to less columns you can now trash unused columns.
    336  (Thanks for the find @kelter)
    337 - Some formatting issues in the readme.
    338 - If you added a section then immediately tried to resize a JS error would
    339  occur to do aria checks.
    340 
    341 ### Updated
    342 
    343 - Some localization strings needed sprucing up (old MCS references).
    344 - Some style updates (notifications, tighted up soe visuals for consistency).
    345 
    346 ## [1.0.5] - 2016-08-08
    347 
    348 ### Fixed
    349 
    350 - README.md and CHANGELOG.md not pulling into settings page.
    351  Thanks @nate-allen [mesh-25]
    352 - Column "More" Options UI is very tight and overlaps.
    353  Thanks @nate-allen [mesh-18]
    354 
    355 ## [1.0.4] - 2016-08-04
    356 
    357 ### Fixed
    358 
    359 - Javascript error was thrown if the user had any columns within text view when
    360  saving. [mesh-21]
    361 - Templates were missing the ability for the first column to have an
    362  offset. [mesh-5]
    363 - Post Type enabling wasn't working properly. [mesh-19]
    364 
    365 ## [1.0.3] - 2016-05-15
    366 
    367 ### Added
    368 
    369 - Updated build process for easier deployment to wordpress.org
    370 
    371 ### Fixed
    372 
    373 - Minor code formatting updates
    374 - Fixed publish / update button display issue [mesh-11]
    375 
    376 ## [1.0.2] - 2016-05-13
    377 
    378 ### Fixed
    379 
    380 - Missing Domain Path: /languages
    381 
    382 ## [1.0.1] - 2016-05-13
    383 
    384 ### Updated
    385 
    386 - Readme has more information
    387 - Setting up localization
    388 
    389 ### Fixed
    390 
    391 - Checks for Foundation
    392 
    393 ## [1.0.0] - 2016-04-21
    394 
    395 ### Updated
    396 
    397 - Change the name of Multiple Content Sections to Mesh for public release.
    398 - Finalized Name change for public release.
    399 - Removed unneeded realtime ajax calls that resulted in unwanted publishing
    400  of content
    401 - Massive overhaul of admin CSS for public release.
    402 - Completely reworked interface for public release for more WordPress core
    403  consistency and ease of use (More to come)
    404 
    405 ### Fixed
    406 
    407 - TinyMCE now works better. Using a fix seen here
    408  https://github.com/alleyinteractive/wordpress-fieldmanager/blob/master/js/richtext.js#L58-L95
    409 - TinyMCE options are now consistent when displaying new and existing
    410  block editors
    411 
    412 ### Added
    413 
    414 - Allowing the ability to toggle kitchen sink items. @todo Not displaying yet
    415 - Admins can now control some plugin settings. Settings -> Mesh
    416 - Admins can disable or enable CSS as needed
    417 - Admins can now enable Mesh on individual post types.
    418 - Admin area is now much more modular
    419 
    420 ### Known Issues
    421 
    422 - Some non blocker minor styling issues.
    423 - Minor display issues on smaller screens.
    424 - Ajax `$_POST` is sending more data than needed.
    425 
    426 ## [0.4.5] - 2015-10-27
    427 
    428 ### Fixed
    429 
    430 - Blocks had issues selecting a background once the blocks code was separated
    431  out.
    432 
    433 ## [0.4.4] - 2015-10-3
    434 
    435 ### Fixed
    436 
    437 - Temporary fix for toggling styles between html/text view of blocks
    438 
    439 ### Updated
    440 
    441 - Separated section controls into a different template for more flexible
    442  expansion later on.
    443 
    444 ## [0.4.3.1] - 2015-09-21
    445 
    446 ### Fixed
    447 
    448 - Made sure that a block always matches the parent section when being created
    449  (publish|draft) etc
    450 
    451 ## [0.4.3] - 2015-09-21
    452 
    453 ### Added
    454 
    455 - Can now collapse column spacing using an option
    456 
    457 ## [0.4.2.1] - 2015-09-21
    458 
    459 ### Fixed
    460 
    461 - Made sure that blocks can not have the same `post_name`
    462 
    463 ## [0.4.2] - 2015-09-21
    464 
    465 ### Added
    466 
    467 - Checking if a page is private before displaying it to the end user.
    468 - Created logic to display the title of a section either above the blocks or
    469  within a specific block
    470 
    471 ### Fixed
    472 
    473 - JavaScript references we're broken after JavaScript was separated.
    474 
    475 ## [0.4.1] - 2015-09-12
    476 
    477 ### Added
    478 
    479 - Controls are displayed in the footer of the sections
    480 - Separate CHANGELOG.md file
    481 - Doc Blocks within JavaScript for some methods were added
    482 - Offset can now be defined per block/column not just per section
    483 
    484 ### Updated
    485 
    486 - Separated Controls into it's own reusable template
    487 - Separated MultipleContentSections into it's own class
    488 - Gruntfile.js now joins JavaScript files and minifies
    489 - Separated block related Javascript into it's own file
    490 
    491 ### Fixed
    492 
    493 - Default Template `<div>` was not being closed correctly
    494 
    495 ## [0.4.0] - 2015-09-10
    496 
    497 ### Added
    498 
    499 - Users can now disable notification messages
    500 
    501 ### Updated
    502 
    503 - Frontend templates support column offset and custom css classes
    504 
    505 ## [0.3.9]
    506 
    507 ### Updated
    508 
    509 - Style cleanup of the column resizer
    510 
    511 ### Fixed
    512 
    513 - zindex issue when resizing columns
    514 
    515 ## [0.3.8]
    516 
    517 ### Fixed
    518 
    519 - Cleaned up Post Type labels used when exporting content using the WordPress
    520  export tools (now shows "Section")
    521 
    522 ## [0.3.7]
    523 
    524 ### Updated
    525 
    526 - Cleaned up notifications
    527 - Cleaned up reordering
    528 - Added smoother/real-time column resizing
    529 
    530 ## [0.3.6]
    531 
    532 ### Added
    533 
    534 - CSS classes to Blocks
    535 - Background Image to blocks
    536 - Utility method to build out section background images
    537 
    538 ### Fixed
    539 
    540 - 3 column layouts can now be resized
    541 
    542 ## [0.3.5]
    543 
    544 #### Significant Release. Probably breaks backwards compatibility with internal
    545  releases.
    546 
    547 ### Added
    548 
    549 - Ability to reorder blocks using drag and drop
    550 - Block order saves using Ajax
    551 - Ability to define custom css classes per section
    552 - Better localization support on **MOST** strings
    553 - Users now have a bunch of default templates to choose from
    554 
    555 ### Updated
    556 
    557 - Better redrawing of editable areas after reordering (of drawers and sections)
    558  is complete
    559 - Additional Security hardening prior to public release
    560 
    561 ## [0.3.0]
    562 
    563 ### Added
    564 
    565 - Notifications display on saving, reordering
    566 - Added css of admin elements
    567 - Added better structure for notifications
    568 
    569 ## [0.2.0]
    570 
    571 ### Added
    572 
    573 - Added README.md
    574 - Added ability to have multiple editors within a *section* based on template
    575 - Added GruntFile
    576 
    577 ### Fixed
    578 
    579 - Minor code cleanup to adhere to WordPress coding standards
    580 - Refactor code for template selection
    581 
    582 ## [0.1.1]
    583 
    584 ### Added
    585 
    586 - Added feature to store data from multiple content sections within "the_content"
    587  of the parent post. This allows content within Multiple Content Sections to show up within the WordPress search results.
    588 - Added ability to select templates
    589 - Added ability to upload media to sections
    590 
    591 ## [0.1.0]
    592 
    593 - Initial Internal Release
  • mesh/trunk/class.mesh-install.php

    r1885012 r2585577  
    3636     */
    3737    public function admin_enqueue_scripts() {
    38         wp_enqueue_script( 'admin-mesh-notifications', plugins_url( 'assets/js/admin-mesh-notifications.js', __FILE__ ), array(), LINCHPIN_MESH_VERSION, true );
     38        wp_enqueue_script( 'admin-mesh-notifications', plugins_url( 'js/admin-mesh-notifications.js', __FILE__ ), array(), LINCHPIN_MESH_VERSION, true );
    3939
    4040        wp_localize_script( 'admin-mesh-notifications', 'mesh_notifications', array(
  • mesh/trunk/class.mesh-pointers.php

    r1714872 r2585577  
    4747        }
    4848
    49         $screen = get_current_screen();
     49        $screen    = get_current_screen();
    5050        $screen_id = $screen->id;
    5151
  • mesh/trunk/class.mesh-templates-ajax.php

    r1867164 r2585577  
    218218            $mesh_templates_duplicate = new Mesh_Templates_Duplicate();
    219219
    220             $duplicate_sections = $mesh_templates_duplicate->duplicate_sections( $mesh_template_id, $post_id );
     220            $duplicate_sections = $mesh_templates_duplicate->duplicate_sections( $mesh_template_id, $post_id, false );
    221221
    222222            if ( ! empty( $duplicate_sections ) ) {
  • mesh/trunk/class.mesh-templates-duplicate.php

    r1867164 r2585577  
    4444     * @return string
    4545     */
    46     function duplicate_sections( $template_id, $post_id, $include_drafts ) {
     46    function duplicate_sections( $template_id, $post_id, $include_drafts = false ) {
    4747
    4848        $template_id = absint( $template_id );
  • mesh/trunk/class.mesh-templates.php

    r1885012 r2585577  
    4141        add_filter( 'manage_mesh_template_posts_columns', array( $this, 'add_layout_columns' ) );
    4242
    43         include LINCHPIN_MESH___PLUGIN_DIR . '/class.mesh-templates-duplicate.php';
     43        require_once LINCHPIN_MESH___PLUGIN_DIR . '/class.mesh-templates-duplicate.php';
    4444
    4545        add_action( 'load-edit.php', array( $this, 'admin_notices' ) );
     
    246246        }
    247247
    248         $mesh_layout_meta[ sanitize_title( 'row-' . $section_id ) ]['blocks'] = array(); // Reset blocks array.
     248        if ( is_array( $mesh_layout_meta[ sanitize_title( 'row-' . $section_id ) ] ) ) {
     249            $mesh_layout_meta[ sanitize_title( 'row-' . $section_id ) ]['blocks'] = array(); // Reset blocks array.
     250        } else {
     251            return;
     252        }
    249253
    250254        foreach ( $blocks as $block_id => $block_data ) {
  • mesh/trunk/class.mesh-upgrades.php

    r1974983 r2585577  
    2525        add_action( 'admin_notices', array( $this, 'show_update_notice' ) );
    2626        add_action( 'admin_notices', array( $this, 'show_review_nag' ), 11 );
     27        add_action( 'admin_notices', array( $this, 'show_classic_editor_notice' ), 12 );
    2728    }
    2829
     
    198199    }
    199200
     201    /**
     202     * Show a notice if the user does not have the classic editor enabled.
     203     *
     204     * @since 1.4.0
     205     */
     206    public function show_classic_editor_notice() {
     207        if ( ! class_exists( 'Classic_Editor' ) ) {
     208            include LINCHPIN_MESH___PLUGIN_DIR . 'admin/editor-notice.php';
     209        }
     210    }
     211
    200212    public function show_review_nag() {
    201213        $mesh_settings = get_option( 'mesh_settings' );
  • mesh/trunk/class.mesh.php

    r1970500 r2585577  
    932932        }
    933933
    934         wp_enqueue_script( 'admin-mesh', plugins_url( 'assets/js/admin-mesh.js', __FILE__ ), array(
     934        wp_enqueue_script( 'admin-mesh', plugins_url( 'js/admin-mesh.js', __FILE__ ), array(
    935935            'jquery',
    936936            'jquery-ui-draggable',
     
    995995     */
    996996    public function admin_enqueue_styles() {
    997         wp_enqueue_style( 'admin-mesh', plugins_url( 'assets/css/admin-mesh.css', __FILE__ ), array(), LINCHPIN_MESH_VERSION );
     997        wp_enqueue_style( 'admin-mesh', plugins_url( 'css/admin-mesh.css', __FILE__ ), array(), LINCHPIN_MESH_VERSION );
    998998    }
    999999
     
    10161016        } else {
    10171017            if ( 0 === $css_mode ) {
    1018                 wp_enqueue_script( 'mesh-frontend', plugins_url( 'assets/js/mesh.js', __FILE__ ), array( 'jquery' ), LINCHPIN_MESH_VERSION, true );
     1018                wp_enqueue_script( 'mesh-frontend', plugins_url( 'js/mesh.js', __FILE__ ), array( 'jquery' ), LINCHPIN_MESH_VERSION, true );
    10191019            }
    10201020        }
  • mesh/trunk/mesh.php

    r1974983 r2585577  
    44 * Plugin URI: https://meshplugin.com?utm_source=mesh&utm_medium=plugin-admin-page&utm_campaign=wp-plugin
    55 * Description: Adds multiple sections for content on a post by post basis. Mesh also has settings to enable it for specific post types
    6  * Version: 1.2.5.6
     6 * Version: 1.4.0
    77 * Text Domain: mesh
    88 * Domain Path: /languages
     
    2222 * Define all globals.
    2323 */
    24 define( 'LINCHPIN_MESH_VERSION', '1.2.5.6' );
     24define( 'LINCHPIN_MESH_VERSION', '1.4.0' );
    2525define( 'LINCHPIN_MESH_PLUGIN_NAME', esc_html__( 'Mesh', 'mesh' ) );
    2626define( 'LINCHPIN_MESH__MINIMUM_WP_VERSION', '4.0' );
     
    9696    $files = (array) Mesh::scandir( $directory, $type, $depth );
    9797
    98     if ( $search_parent && $this->parent() ) {
     98    if ( $search_parent && dirname( $directory ) ) {
    9999        $files += (array) Mesh::scandir( $directory, $type, $depth );
    100100    }
  • mesh/trunk/readme.txt

    r1974983 r2585577  
    33Tags: page builder, template builder, layout builder, responsive, landing page builder, site builder, foundation, bootstrap, linchpin
    44Requires at least: 4.0
    5 Tested up to: 4.9.8
    6 Stable tag: 1.2.5.6
     5Tested up to: 5.8.2
     6Stable tag: 1.4.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1111
    1212== Description ==
    13 Mesh is the easiest way to add additional content to your Page, Post, or Custom Post Type in a responsive grid system. Adding a Mesh Section creates a new row on your page below the default WordPress content. Each Section can be divided into 1 to 4 Columns, providing Visual/Text editors for each Column. Give your Sections and Columns titles, drag to rearrange, add background images to Columns or an entire Section, then Publish your Section or save it as a Draft until your content is just right.
     13
     14This plugin is deprecated and no longer actively maintained excluding any security updates. The Block Editor/Gutenberg can handle many aspects of row and column content that this plugin provides.
     15
     16If you still would like to utilize this plugin you need to additionally install the classic-editor plugin as mesh *is not* compatible with the block editor
     17
     18Page, Post, or Custom Post Type in a responsive grid system. Adding a Mesh Section creates a new row on your page below the default WordPress content. Each Section can be divided into 1 to 4 Columns, providing Visual/Text editors for each Column. Give your Sections and Columns titles, drag to rearrange, add background images to Columns or an entire Section, then Publish your Section or save it as a Draft until your content is just right.
    1419
    1520Efficient and unobtrusive, Mesh was designed to simply extend the functionality of the normal page editor within WordPress to provide the flexibility of building pages in a responsive grid without adding code or editing page templates.
     
    7378
    7479== Changelog ==
     80
     81= 1.4.0 =
     82
     83### Updated
     84
     85- Update the build process from grunt to gulp
     86- Implemented deployments to .org from github
     87
     88### Fixes
     89
     90- Fixed an issue with ajax calls to Mesh Templates
    7591
    7692= 1.2.5.6 =
Note: See TracChangeset for help on using the changeset viewer.