WordPress.org

Plugin Directory

Changeset 1595191


Ignore:
Timestamp:
02/13/17 19:35:43 (10 months ago)
Author:
EkAndreas
Message:

release 0.2.1

Location:
listig
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • listig/trunk/README.md

    r1594408 r1595191  
    33Editorial plugin to manage custom post lists. 
    44 
    5 ## WIP 
    6 Version *0.1* 
     5The plugin is published at the official [WordPress plugin repository](https://wordpress.org/plugins/listig/) for download. 
     6 
     7## Work In Progress 
     8Version *0.2.1* 
    79 
    810This is a plugin in beta phase. A lot of work in progress. 
     
    1416* WordPress ^4.7 
    1517 
     18## Usage with shortcodes 
     19You can render your list with the following shortcodes: 
     20 
     21* `[listig]`, takes all its content and repeats it for every post item in your list. 
     22* `[listig-headline]`, shows the current post items headline. 
     23* `[listig-excerpt]`, shows the current post items text. 
     24* `[listig-url]`, gives the url to the post item edited. Takes one argument `target`, eg: `[listig-url target="_blank"]` will render a hyperlink that opens in a new tab.  
     25* `[listig-image]`, renders an image from the post item. You have the same arguments as to wp_get_attachment_image. Eg: `[listig-image size="medium"]` will render an image with the defined medium size. 
     26 
     27Here is an example from a post content to render a complete list with id=236: 
     28 
     29``` 
     30[listig id="236"] 
     31 
     32[listig-headline] 
     33 
     34[listig-image] 
     35 
     36[listig-excerpt] 
     37 
     38[listig-url]Read more![/listig-url] 
     39 
     40[/listig] 
     41``` 
     42 
     43Then you can format the shortcodes, eg set the headline to H2 and the read more link to italic. 
     44 
     45![shortcode example](https://raw.githubusercontent.com/ekandreas/listig/master/assets/img/example-page-with-shortcodes.png "Shortcode example page with Twenty Seventeen") 
     46 
    1647## Usage in templates 
    1748The global function `listig` accepts the ID of the list you want to loop. The ID is printed in the list settings (the gear icon). 
     
    2051 
    2152A simple example to render the output from a list: 
    22 ``` 
     53 
     54```php 
    2355$posts = listig(236); 
    2456foreach ($posts as $post) { 
  • listig/trunk/composer.json

    r1594408 r1595191  
    11{ 
    22    "name": "ekandreas/listig", 
    3     "version": "0.1", 
     3    "version": "0.2.1", 
    44    "description": "List Manager as a WordPress plugin", 
    55    "keywords": ["wordpress","wordpress-plugin","list-manager","query","structures","tool","editorial"], 
  • listig/trunk/globals/functions.php

    r1594408 r1595191  
    1616    function listig($id) 
    1717    { 
     18        $id = (int)$id; 
    1819        $listig = \EkAndreas\Listig\Model\ListingModel::get($id); 
    1920        if ($listig && $listig->posts) { 
  • listig/trunk/globals/registers.php

    r1594408 r1595191  
    1111    EkAndreas\Listig\Controller\UserSettingController::class, 
    1212]); 
     13 
     14new \EkAndreas\Listig\Shortcode\ShortcodeService([ 
     15    \EkAndreas\Listig\Shortcode\Listig::class, 
     16    \EkAndreas\Listig\Shortcode\ListigHeadline::class, 
     17    \EkAndreas\Listig\Shortcode\ListigExcerpt::class, 
     18    \EkAndreas\Listig\Shortcode\ListigUrl::class, 
     19    \EkAndreas\Listig\Shortcode\ListigImage::class, 
     20]); 
  • listig/trunk/listig.php

    r1594408 r1595191  
    44Plugin URI:  https://github.com/ekandreas/listig/ 
    55Description: List Manager 
    6 Version:     0.1 
     6Version:     0.2.1 
    77Author:      Andreas Ek 
    88Author URI:  https://www.elseif.se/ 
  • listig/trunk/readme.txt

    r1594441 r1595191  
    44Requires at least: 4.7 
    55Tested up to: 4.7.2 
    6 Stable tag: 0.1 
     6Stable tag: 0.2.1 
    77License: MIT 
    88License URI: https://opensource.org/licenses/MIT 
     
    1515More information about the plugin and how to use it: [Github](https://github.com/ekandreas/listig) 
    1616 
     17Create your lists and render the modified post items with shortcodes or use the lists in your theme development. 
     18 
    1719== Installation == 
    18201. Upload the contents of the zip (including the folder) to the `/wp-content/plugins/` directory 
     
    24261. Searching your posts and order them into custom lists with possible Post Edit to create a custom pusher for rendering the posts. 
    2527 
     282. Shortcode example to render a list on a standard page without code development. 
     29 
    2630== Frequently Asked Questions == 
    27 Not yet! 
     31None yet! 
Note: See TracChangeset for help on using the changeset viewer.