micz / wp-500px-jsgallery Goto Github PK
View Code? Open in Web Editor NEWWordPress 500px Gallery plugin
Home Page: http://micz.it/wordpress-plugin-500px-jsgallery/
WordPress 500px Gallery plugin
Home Page: http://micz.it/wordpress-plugin-500px-jsgallery/
=== WP 500px jsGallery === Contributors: micz Donate link: http://micz.it/wordpress-plugin-500px-jsgallery/donate/ Tags: gallery, 500px, jquery, javascript, galleriffic, photos, photo, 500px.com Requires at least: 3.8.1 Tested up to: 4.7 Stable tag: 2.1.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Add your 500px.com photo gallery to a page using the [jsg500px] shortcode. == Description == This is plugin lets you add your 500px.com gallery to a page in your blog using the [jsg500px] shortcode. The gallery is made with galleriffic and the images are retrieved from 500px.com using the user feed. It's possible also to define a custom CSS in your template folder to customize completely the gallery. See the plugin in action here: http://micz.it/fotografia/500px/ == Installation == 1. Upload the folder `wp-500px-jsgallery` and all its files to the `/wp-content/plugins/` directory. 1. Activate the plugin through the 'Plugins' menu in WordPress. 1. Put your 500px.com username in the plugin settings page. 1. Insert the shortcode [jsg500px] in the page you want to show the gallery. 1. (Optional) Use the "user500px" shortcode param to set a different username for a single page. == Frequently Asked Questions == = Can I add the gallery to a post? = No. The gallery can be added only on a page using the [jsg500px] shortcode. = Can I add the gallery to more than one page? = Yes, and you can specify different 500px.com usernames with the "user500px" shortcode param. To optimize your website loading times, with the "Gallery page" option you can also specify all the ids or permalinks pages on which the needed scripts must be loaded. = Why I didn't see all my 500px photos? = The photos displayed are only the latest ones, as published in the user feed by 500px.com. == Screenshots == 1. The gallery in action, see it live here: http://micz.it/fotografia/500px/ . 2. Plugin settings page. == Changelog == = 2.1.2 = * Fixed a bug when using php < 5.4. = 2.1.1 = * Image title bug fixed. = 2.1 = * Google Feed API, that has been dismissed by Google, is not needed anymore. The plugin is working again. = 2.0.2 = * Minor bug fixed. = 2.0.1 = * CSS improvements. * Links to 500px.com are now opened in a new window. * Link to the image on 500px is now on the image title. = 2.0 = * 500px link is no more explicitly displayed. Now the "See this image at full size on 500px" statement is a link itself. * New responsive CSS added. To be not disruptive only for upgrade, the "Use CSS version 1" option must be deselected to use the new gallery layout. = 1.1.1 = * CSS fix to show the thumbnails in the correct size in Firefox. = 1.1 = * Added an option to load exclusively the custom css file and not the default one. * Is now possible to use the "user500px" shortcode param to set a different 500px username on a page. * The styles and scripts can be loaded selectively on more than one page. = 1.0.3 = * Fixed missing argument 2 error for settings link in plugins admin page. = 1.0.2 = * Added css z-index to prev/next navigation controls that were not clickable. = 1.0.1 = * Better installing instruction and descriptions. * Fixed a bug with the settings link in the plugin admin page. = 1.0 = * First release. == Upgrade Notice == = 2.1.2 = * Fixed a bug when using php < 5.4. = 2.1.1 = * Image title bug fixed. = 2.1 = * Google Feed API, that has been dismissed by Google, is not needed anymore. The plugin is working again. = 2.0.2 = * Minor bug fixed. = 2.0.1 = * CSS improvements. * Links to 500px.com are now opened in a new window. * Link to the image on 500px is now on the image title. = 2.0 = * 500px link is no more explicitly displayed. Now the "See this image at full size on 500px" statement is a link itself. * New responsive CSS added. To be not disruptive the "Use CSS version 1" option must be deselected to use the new gallery layout. = 1.1.1 = * CSS fix to show the thumbnails in the correct size in Firefox. = 1.1 = * Added an option to load exclusively the custom css file and not the default one. * Is now possible to use the "user500px" shortcode param to set a different 500px username on a page. * The styles and scripts can be loaded selectively on more than one page. = 1.0.3 = * Fixed missing argument 2 error for settings link in plugins admin page. = 1.0.2 = * Added css z-index to prev/next navigation controls that were not clickable. = 1.0.1 = * Better installing instruction and descriptions. * Fixed a bug with the settings link in the plugin admin page. = 1.0 = First release. == Using a custom CSS file == You can customize the look of the gallery using a custom CSS file. The file must be named `wp-500px-jsgallery.css` and copied in your theme root folder, the same where is stored the theme `style.css` file. This custom file will be loaded after the standard plugin css file, so you can modify only the elements you need, the other elements will be displayed as usual. You can check the standard `wp-500px-jsgallery.css` to see which css elements the gallery is composed of. If you check the "Exclusive custom CSS" option in the plugin settings page, will be loaded only your custom CSS file and not the plugin default one. If you need to modify only the thumbnails or image dimensions, you could do this via a custom css or using the dedicated options in the plugin settings page. == Plugin source files == The source files repository is available at https://github.com/micz/wp-500px-jsgallery/
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
update the plugin desc in the wp-500px-jsgallery.php file header
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add a link at the bottom to the 500px user profile.
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
the option _pages must accept more than one page id or permalink.
Check if it's possibile to enqueue scripts in the shortcode function.
If it's possibile, remove the page id option and the conditional script enqueuing.
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
Add locale management for all strings (also in js files)
Update lang file with new strings, before releasing v2.0.
Verify security checks: https://make.wordpress.org/plugins/2013/11/24/how-to-fix-the-intentionally-vulnerable-plugin/
ID must be written in uppercase letters.
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
generate the pot file for the translators
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
test custom css for template e child template
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
Add a shortcode param to specify a 500px user to override the standard option.
modify also the warning messages when the user is not set.
Add a new CSS to make the plugin responsive:
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
Add conditional loading with an option for the page id or permalink.
If not set, the scripts are loaded on all pages.
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
must complete the readme.txt file.
see info: https://wordpress.org/plugins/about/readme.txt
validator: https://wordpress.org/plugins/about/validator/
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
Add option for thumbnails, image and divs dimensions.
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
Add a function to set default plugin options
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add an option to limit the number of images to display
Add an error handling with pretty messages to the user if the 500px feed loading fails.
Write info page about CSS v1 at:
http://micz.it/wordpress-plugin-500px-jsgallery/css-versions-explained/
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add custom css instructions also to the readme file
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add a msg if javascript is disabled
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
verify galleriffic enhancement, see: iamvery/galleriffic@e8d0d6e
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add an option to made the custom css, if present, the only css to be loaded.
Remove it_IT files from the repo. We are using WordPress.org translation system: https://translate.wordpress.org/projects/wp-plugins/wp-500px-jsgallery/
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add an useful text for the settings page
Update It locale after #28.
Smart handling of new CSS2 option for old users. Option to force CSS v1 must be enabled to not change the gallery behavior without notice.
See #27.
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add the image title over the image
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add version number to script enqueing
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
test the plugin with php version 5.2.4
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add a link from the FAQ in the readme.txt to the fotografia page
Google Feed API has been dismissed, so the information retrieve from 500px is not working anymore!
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add donate link as shown below.
#!php
function arp_set_plugin_meta( $links, $file ) {
if ( strpos( $file, 'wp-readme-parser.php' ) !== false ) {
$links = array_merge( $links, array( '<a href="http://www.artiss.co.uk/forum">' . __( 'Support' ) . '</a>' ) );
$links = array_merge( $links, array( '<a href="http://www.artiss.co.uk/donate">' . __( 'Donate' ) . '</a>' ) );
}
return $links;
}
add_filter( 'plugin_row_meta', 'arp_set_plugin_meta', 10, 2 );
?>
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
add italian locale using poedit.com
Add a jQuery version check like this one: https://plugins.trac.wordpress.org/browser/gallery-slideshow/trunk/assets/embed.js#L11
Originally reported by: micz_ (Bitbucket: micz_, GitHub: Unknown)
Display a warning in the wp admin if no 500px username is set.
Also display a message in the shortcode if no 500px username is set.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.