=== GDY Modular Content === Contributors: grandy, fouadvollmer Plugin Name: GDY Modular Content Plugin URI: https://wordpress.org/plugins/gdy-modular-content/ Tags: frontend editing, modular content, html modules, content management Author: Fouad Vollmer Author URI: http://fouadvollmer.de/ License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Requires at least: 3.6 Tested up to: 4.4 Stable tag: 0.7.2 Transform your WordPress into a real CMS: Create and edit modular content from the frontent of your site. == Description == This plugin allows you to create modular content and to edit them with a intuitive user interface from the frontent of your site. Main philosophy of the plugin is it to make it easy for all of you. That means easy handling for editors, fast and flexible implementation for programmers and good control over your layouts for designers. One example is image size: The programmer can exactly define the image size that the designer want as easy as ``. The editor than can't place images other than the defined size. If he chooses a bigger image he gots automatically a crop dialog. = Content Types = Text, Image, Gallery, Table = To Do = * Refine batch editing * Better module filter behaviors * Image editing in media manager * Post locking == Installation == Here's how to install the plugin: 1. Upload 'gdy-modular-content' to the '/wp-content/plugins/' directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Place `` in any theme file to create a module area ... 1. Create a 'modules' folder in your theme directory 1. Create your modules (further down) 1. Login and start editing your site Here's how to create modules: 1. For creating a module place a folder named like 'my_example_module' in your themes modules folder 1. In your modules folder the following files are necessary index.php, functions.php and thumb.svg 1. Create editable contents in your index.php with `` Note: In the plugins folder is a folder named `example-theme-files` with an example template and some modules. You can just copy that files - as basic implementation - into you theme folder and create a page with that GDYMC Template to make it editable from the frontend. == Frequently Asked Questions == = The plugin seems to be broken = Make sure you use ``, `` and ``. Also make sure all you WordPress Loops are properly closed (``, `` and that stuff). = Contents are not saved properly = The problem - in most cases - is that the plugin gathers the wrong page or post id. Check that your Wordpress Loops are properly closed (``, `` …). = The style looks odd = Front end editing is great but it has some downsides. One of them is that all your theme styles can impact the plugin layout because those elements are integrated directly in your page. We try to make the styles for the plugin pretty robust so that it works as expected in most themes. But sometime that is really hard. = Where is my WordPress adminbar = The Plugin disables the native frontend adminbar and sets up a new one. = The plugin makes my website slower = In administration mode the plugin loads quite a few javascripts into the frontend of your site. That can slow down the load time. But for regular visitors the load the should be pretty much the same because no additional resources are loaded. = There seems to be errors with WordPress Loops in modules = Make sure the Loops in your module doesn't modify global variables because that would cause problems like that. Safest way is to only use `` for loops inside your modules. = Is it possible to create editable contents outside modules = Yes. You can use the content functions directly in your template. = Is it possible to create multiple areas = No. This may be a later feature. But for now we discarded this for a simpler handling. = Is it possible to translate module titles = Yes. Use the `gdymc_moduletitle_{$moduleType}` filter. = Can i prevent the plugin from creating picture elements for images = Yes. Set the `gdymc_responsive_image_allowed` filter to false. = Can i prevent image sizes from being rendered as responsive image size = Yes. Just push the size to excude into the array delivered via the `gdymc_responsive_image_ignore_sizes` filter. The Thumbnail-Size is ignored by default. = Is it possible to use a different modules folder = Yes. Just change the name of the modules folder via the `gdymc_theme_modules_folder` filter. == Screenshots == 1. Create and place modules like never before 1. Edit your contents directly from the frontend 1. Easily place images as they should be 1. Powefull extensible module options == Changelog == = 0.7.2 = * Better adminbar behavior for different screen sizes * Better format button order in the adminbar * Added the JS functions `gdymc.selection.parent()` and `gdymc.selection.inside()` * Format buttons no always try to restore saved selections * Some adjuments for the link window to support the format buttons overlay * New module option tab "defaults" that shows IDs and module type * Scroll gradient for module list * It is now possible to open links in edit mode with metakey+click * Better styles for not existing module actions * Fixed style for module list with no modules * Added support for updates from 0.6.3 so that all existing versions should be updateable without destroying the contents = 0.7.1 = * Styling Hotfixes = 0.7.0 = * CSS style reset for plugin elements with `.gdymc_inside * { all: initial; }` * CSS improvements so that the plugin is displayed correctly in more themes * Added example theme files * Added POT file to the language folder * Removed select module buttons till the batch actions are finished = 0.6.9 = * Style improvements * Removed module position tab * Added options for not existing modules: delete this module, delete this module type * Added the filter `gdymc_loginout_redirect` to disable login or logout redirects * Fixed a bug with editable image size rendering in admin mode * Fixed a bug with reload actions when a hash is applied * Changed the not existing module options so that they are only showed for admins * Added placeholders for empty editable images so that they are showed in the correct size * Fixed a bug were placeholder images are shown in preview-mode * Added actions for galleries. Changed the caption as hook * Removed translation div. Translations are now added via `wp_localize_script()` * Gallery container is now also available in unlogged mode * Galleries no support a custom rendering function as third parameter * The `li` tag in galleries has now the image id in the `data-image` attribute * The image info labels are no only triggered in edit mode * Removed buggy placeholder images for image auto sizes (autoxauto, 100xauto, autox100) * Adjusted scripts for module labels so that first and last is showed completely and no kinetic problems appear * The `.gdymc_text` container is now also added in visitor mode = 0.6.8 = * Prefixed postmeta keys with `_` that they no longer show up on the post edit page * Changed postmeta key `gdymc_Content_` to `gdymc_singlecontent_` * Changed postmeta key `_gdymc_object_content` to `_gdymc_object_contents` * Changed postmeta `_gdymc_list` to `_gdymc_modulelist` * Styling fix for swap contents button * Added content type gallery * Removed double click to insert in media manager * Added thumb for active images besides the insert image button * Changes in image handling for gallery * Added captions to gallery * Small styling bugfixes * Changed how url are set in adminbar.php and builder.php now some module thumb problems should disappear * Changed names of javascripts * Additional error messages when not in edit mode * Styling updates for media uploader * Changed the way thumbs of selected images were created in the media manager * Better cropping for media manager * Added jqueryui sorting for slider elements * The Plugin adds now admin bar classes on body * Changed a bug in `gdymc_logged()` with user roles * Added link to directly jump to customizer * Improved gallery classes * Added picture tags for responsive images * Added public javascript picturefill.js for browser-support of picture tags * Fixed a bug with `gdymc_responsive_image()` when invalid image ID is submitted * Fixed saving bug * Added sorting for responsive image sizes so that it behaves correctly * Added filters to disable image sizes and change rendering type (responsive or not) * Fixed a sizing bug with regular images * Cleanup * Added filter to change module names * Added filter to change themes modules folder name * Style now supports (and displays) long module names * Visual feedback for the AJAX when adding modules = 0.6.7 = * Fixed a undefined variable * Styling for warning if module folder doesn't exist * Warning if there are no modules (aka folders in module folder) * Fixed a initialisation problem with jcrop when images take too long to load * Added build number for better version control * Added soft user role support for gdymc (edit_pages, upload_files) * Added visual feedback for uploads * Small bugfixes for the uploader * Changed upload response (cause wordpress can't generate thumbnails of very big files and so the upload can be incomplete) * Changed frontend media manager loop to a more stable version (same problem as above) * Added support for new option types: textarea, editable * Fixed bug with undefined variables in link window * Better styling for module options text editor * New hooks for modulebars * Better identification for module option fields * Added versioning system for trigger actions on older systems * Changed `wp_postmeta` to `$wpdb->postmeta` in WPDB query = 0.6.6 = * Better styling for editable table UI * Image overlay is now infinite scrolling * Smaller image thumbs * Better ajax loading feedback * Integrated a search function for images * Fixed bug with wrong editable style in preview mode * Fixed bug with SVG files causing problems in image window * The plugin now supports contents outside the module area * `contentCheck()` supports now an array of IDs as parameter * Contents are now swappable via button * Fixed some IE bugs * Visual feedback for image search * Support for timed visibility switch * Fixed CSS heights for option inputs * Moved javascripts into page footer for faster loading * Fixed batch window formatting * Added check if object exists on moving modules * Changed the way the plugin gets the post/page id so it works with uncommon url rewrites * Changed the hook for gathering module functions because of the changed get_object_id * New terminology: `$gdymc_PageID` is now $gdymc_object_id * New terminology: `gdymcObjectID()` is now `gdymc_object_id()` * New terminology: `gdymc_timeAgo()` is now `gdymc_time_ago()` * New terminology: `gdymc_moduleArray()` is now `` function to check if there is content for unlogged users (to hide certain elements e.g. empty containers) == Upgrade Notice == = 0.6.4 = * There is no backward compatibility for older module options. The old module options will be still supported but there is a new system that replaces the old one. For the best user experience it is strongly recommended to migrate the old option system to the new one.