Plugin Directory

Changeset 688471


Ignore:
Timestamp:
03/28/2013 03:30:15 PM (13 years ago)
Author:
johnnyfive
Message:

1.1.0

  • new: WP shortcodes are now available: pwg-image and pwg-category.
  • new: PiwigoMedia Widget. Display Piwigo images inside a widget. This is an EXPERIMENTAL feature and it's very basic at the moment.
Location:
piwigomedia
Files:
4 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • piwigomedia/tags/1.1.0/css/piwigomedia.css

    r347024 r688471  
     1.piwigomedia-single-image {
     2}
     3
    14.piwigomedia-single-image img {
    25    padding: 4px;
    36    border: 1px solid #a0a0a0;
    47}
     8
     9ul.piwigomedia-category-preview {
     10    list-style: none;
     11    padding: 0;
     12    text-align: center;
     13}
     14
     15ul.piwigomedia-category-preview li {
     16    display: inline;
     17}
     18
     19#sidebar ul.piwigomedia-category-widget {
     20    width: 100% ! important;
     21    margin-top: 10px;
     22}
     23
     24#sidebar ul.piwigomedia-category-widget li {
     25        list-style: none ! important;
     26    float: left !important;
     27    padding: 0;
     28    width: 50%;
     29    border: 0px solid red;
     30    text-align: center;
     31}
     32
     33ul.piwigomedia-category-widget .piwigomedia-single-image img {
     34    padding: 2px;
     35    border: 1px solid #a0a0a0;
     36    max-height: 80px;
     37}
  • piwigomedia/tags/1.1.0/piwigomedia.php

    r607084 r688471  
    44Plugin URI: http://joaoubaldo.com
    55Description: This plugins allows media from a Piwigo site to be inserted into WordPress posts.
    6 Version: 1.0.1
     6Version: 1.1.0
    77Author: João C.
    88Author URI: http://joaoubaldo.com
    99License: GPL2 (see attached LICENSE file)
    1010*/
     11
     12require_once("shortcode.php");
     13require_once("widget.php");
    1114
    1215
     
    2932
    3033    load_plugin_textdomain('piwigomedia', null, 'piwigomedia/languages/');
     34
    3135    add_filter('mce_buttons', 'register_piwigomedia_tinymce_button');
    3236    add_filter('mce_external_plugins', 'register_piwigomedia_tinymce_plugin');
     37
     38    add_shortcode('pwg-image', 'pwg_image');
     39    add_shortcode('pwg-category', 'pwg_category');
     40
     41    wp_register_sidebar_widget("piwigomedia-images", "Piwigo Images", "piwigomedia_widget",
     42    array("description" => __("Display Piwigo media on a sidebar widget", "piwigomedia"),
     43    "site" => "s", "category" => "cate"));
     44
     45    wp_enqueue_style('piwigomedia', WP_PLUGIN_URL.'/piwigomedia/css/piwigomedia.css', false, '1.0', 'all');
    3346}
    3447
     
    3952
    4053add_action('init', 'register_piwigomedia_plugin');
     54add_action('widgets_init', function() { return register_widget( "PiwigoMediaWidget" ); });
    4155
    4256require_once('piwigomedia_admin.php');
  • piwigomedia/tags/1.1.0/readme.txt

    r607084 r688471  
    55Requires at least: 3.0.1
    66Tested up to: 3.3.1
    7 Stable tag: 1.0.1
     7Stable tag: 1.1.0
    88
    99This plugins allows media from a Piwigo site to be inserted into WordPress posts.
     
    3131== Frequently Asked Questions ==
    3232
     33= How to use shortcodes? =
     34
     35pwg-image - display a single image:
     36[pwg-image site="http://..." id="IMAGE_ID"]
     37
     38pwg-category - display any number of images from a category:
     39[pwg-category site="http://..." id="IMAGE_ID" images="NUMBER_OF_IMAGES_TO_DISPLAY" page="PAGE_INDEX"]
     40
    3341= How do I add images to a post? =
    3442
     
    39475. Insert image selection into the post.
    4048
     49or use shortcodes.
     50
    4151= Which versions of Piwigo are supported? =
    4252
     
    4555= Which browsers are supported? =
    4656
    47 Only Firefox 14 and Chrome 21 were tested but there should be compatibility for browsers that support jQuery.
     57Only Firefox 14 and Chrome 23 were tested but there should be compatibility for browsers that support jQuery.
    4858
    4959== Screenshots ==
     
    5262
    5363== Changelog ==
     64= 1.1.0 =
     65* new: WP shortcodes are now available: pwg-image and pwg-category.
     66* new: PiwigoMedia Widget. Display Piwigo images inside a widget. This is an EXPERIMENTAL feature and it's very basic at the moment.
     67
    5468= 1.0.1 =
    5569* update: fix to pwm_curl_get(). Some users were experiencing problems with the query built inside this function.
  • piwigomedia/trunk/css/piwigomedia.css

    r347024 r688471  
     1.piwigomedia-single-image {
     2}
     3
    14.piwigomedia-single-image img {
    25    padding: 4px;
    36    border: 1px solid #a0a0a0;
    47}
     8
     9ul.piwigomedia-category-preview {
     10    list-style: none;
     11    padding: 0;
     12    text-align: center;
     13}
     14
     15ul.piwigomedia-category-preview li {
     16    display: inline;
     17}
     18
     19#sidebar ul.piwigomedia-category-widget {
     20    width: 100% ! important;
     21    margin-top: 10px;
     22}
     23
     24#sidebar ul.piwigomedia-category-widget li {
     25        list-style: none ! important;
     26    float: left !important;
     27    padding: 0;
     28    width: 50%;
     29    border: 0px solid red;
     30    text-align: center;
     31}
     32
     33ul.piwigomedia-category-widget .piwigomedia-single-image img {
     34    padding: 2px;
     35    border: 1px solid #a0a0a0;
     36    max-height: 80px;
     37}
  • piwigomedia/trunk/piwigomedia.php

    r607084 r688471  
    44Plugin URI: http://joaoubaldo.com
    55Description: This plugins allows media from a Piwigo site to be inserted into WordPress posts.
    6 Version: 1.0.1
     6Version: 1.1.0
    77Author: João C.
    88Author URI: http://joaoubaldo.com
    99License: GPL2 (see attached LICENSE file)
    1010*/
     11
     12require_once("shortcode.php");
     13require_once("widget.php");
    1114
    1215
     
    2932
    3033    load_plugin_textdomain('piwigomedia', null, 'piwigomedia/languages/');
     34
    3135    add_filter('mce_buttons', 'register_piwigomedia_tinymce_button');
    3236    add_filter('mce_external_plugins', 'register_piwigomedia_tinymce_plugin');
     37
     38    add_shortcode('pwg-image', 'pwg_image');
     39    add_shortcode('pwg-category', 'pwg_category');
     40
     41    wp_register_sidebar_widget("piwigomedia-images", "Piwigo Images", "piwigomedia_widget",
     42    array("description" => __("Display Piwigo media on a sidebar widget", "piwigomedia"),
     43    "site" => "s", "category" => "cate"));
     44
     45    wp_enqueue_style('piwigomedia', WP_PLUGIN_URL.'/piwigomedia/css/piwigomedia.css', false, '1.0', 'all');
    3346}
    3447
     
    3952
    4053add_action('init', 'register_piwigomedia_plugin');
     54add_action('widgets_init', function() { return register_widget( "PiwigoMediaWidget" ); });
    4155
    4256require_once('piwigomedia_admin.php');
  • piwigomedia/trunk/readme.txt

    r607084 r688471  
    55Requires at least: 3.0.1
    66Tested up to: 3.3.1
    7 Stable tag: 1.0.1
     7Stable tag: 1.1.0
    88
    99This plugins allows media from a Piwigo site to be inserted into WordPress posts.
     
    3131== Frequently Asked Questions ==
    3232
     33= How to use shortcodes? =
     34
     35pwg-image - display a single image:
     36[pwg-image site="http://..." id="IMAGE_ID"]
     37
     38pwg-category - display any number of images from a category:
     39[pwg-category site="http://..." id="IMAGE_ID" images="NUMBER_OF_IMAGES_TO_DISPLAY" page="PAGE_INDEX"]
     40
    3341= How do I add images to a post? =
    3442
     
    39475. Insert image selection into the post.
    4048
     49or use shortcodes.
     50
    4151= Which versions of Piwigo are supported? =
    4252
     
    4555= Which browsers are supported? =
    4656
    47 Only Firefox 14 and Chrome 21 were tested but there should be compatibility for browsers that support jQuery.
     57Only Firefox 14 and Chrome 23 were tested but there should be compatibility for browsers that support jQuery.
    4858
    4959== Screenshots ==
     
    5262
    5363== Changelog ==
     64= 1.1.0 =
     65* new: WP shortcodes are now available: pwg-image and pwg-category.
     66* new: PiwigoMedia Widget. Display Piwigo images inside a widget. This is an EXPERIMENTAL feature and it's very basic at the moment.
     67
    5468= 1.0.1 =
    5569* update: fix to pwm_curl_get(). Some users were experiencing problems with the query built inside this function.
Note: See TracChangeset for help on using the changeset viewer.