Changeset 1843140
- Timestamp:
- 03/19/2018 10:30:29 PM (8 years ago)
- Location:
- wp-pexels-free-stock-photos/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
settings.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-pexels-free-stock-photos/trunk/readme.txt
r1843083 r1843140 26 26 = Screenshots and Documentation = 27 27 28 Visit the [Pexel Plugin's Homepage](https://raajtram.com/plugins/pexels/ "Pexel Plugin's Homepage") to see the screenshots and documentation. 28 - To start searching and using images, simply go to your post/page editor, click on "Add Media", and choose the "Pexels Images" tab 29 - Visit the [Pexel Plugin's Homepage](https://raajtram.com/plugins/pexels/ "Pexel Plugin's Homepage") to see the screenshots and documentation. 29 30 30 31 == Installation == 31 32 32 Installation is similar to any other plugin that you would install. 33 34 1. Upload the plugin files to the `/wp-content/plugins/pexels-fsp` directory, or install the plugin through the WordPress plugins screen directly. 33 1. Upload the plugin files to the `/wp-content/plugins/pexels-fsp` directory, OR install the plugin through the WordPress plugins screen directly. 35 34 2. Activate the plugin through the 'Plugins' screen in WordPress 36 35 3. Use the Dashboard->Settings->Pexels Photos screen to configure the plugin 36 4. Go to your post/page editor, click on "Add Media", and choose the "Pexels Images" tab 37 37 38 38 == Frequently Asked Questions == … … 42 42 Yes :) All photos on Pexels are licensed under the Creative Commons Zero (CC0) license. This means the pictures are completely free to be used for any legal purpose. 43 43 44 = Does the plugin hotlink (directly link) to the images on pex als.com? =44 = Does the plugin hotlink (directly link) to the images on pexels.com? = 45 45 46 46 No. The plugin indeed downloads the images to your WordPress site, giving you all the benefits of hosting them (cropping, compressing, caching etc.). … … 48 48 == Changelog == 49 49 50 = 1.0.1 = 51 * Fix a typo in the FAQ 52 50 53 = 1.0 = 51 54 * Released -
wp-pexels-free-stock-photos/trunk/settings.php
r1843083 r1843140 3 3 /* 4 4 Pexels: Free Stock Photos 5 https://raajtram.com/plugins/pexels 5 https://raajtram.com/plugins/pexels/ 6 6 Author: Raaj Trambadia (https://raajtram.com) 7 7 */ 8 9 /* add the menu */ 8 10 9 11 add_action('admin_menu', 'pexels_fsp_images_add_settings_menu'); … … 13 15 } 14 16 17 /* register the options */ 15 18 16 19 function register_pexels_fsp_images_options(){ … … 20 23 } 21 24 25 /* attribution field */ 22 26 23 27 function pexels_fsp_images_render_attribution(){ … … 26 30 } 27 31 32 /* HTML for the settings page */ 28 33 29 34 function pexels_fsp_images_settings_page() { ?> … … 47 52 <?php } 48 53 54 /* validate settings */ 49 55 50 56 function pexels_fsp_images_options_validate($input){ 51 57 global $pexels_fsp_images_gallery_languages; 52 58 $options = get_option('pexels_fsp_images_options'); 53 if ($pexels_fsp_images_gallery_languages[$input['language']]) $options['language'] = $input['language'];54 59 if ($input['attribution']) $options['attribution'] = 'true'; else $options['attribution'] = 'false'; 55 60 return $options;
Note: See TracChangeset
for help on using the changeset viewer.