{"id":19388909,"url":"https://github.com/james2doyle/pico_slider","last_synced_at":"2025-04-23T23:31:52.001Z","repository":{"id":9438715,"uuid":"11314472","full_name":"james2doyle/pico_slider","owner":"james2doyle","description":"create sliders inside the Pico CMS by listing the images in a folder","archived":false,"fork":false,"pushed_at":"2013-07-26T19:38:44.000Z","size":84,"stargazers_count":14,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-02T22:33:06.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/james2doyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-10T14:38:30.000Z","updated_at":"2022-10-29T18:10:09.000Z","dependencies_parsed_at":"2022-09-20T17:55:32.398Z","dependency_job_id":null,"html_url":"https://github.com/james2doyle/pico_slider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpico_slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpico_slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpico_slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpico_slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/james2doyle","download_url":"https://codeload.github.com/james2doyle/pico_slider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250532144,"owners_count":21446127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T10:14:01.788Z","updated_at":"2025-04-23T23:31:50.526Z","avatar_url":"https://github.com/james2doyle.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"pico_slider\n===========\n\nCreate sliders(image lists) inside the [Pico CMS](http://pico.dev7studios.com/).\n\n### Use Cases\n\nThis plugin really just reads images and outputs them in an array to be used on the front end. You could use any slider library that you want really. I like Swipe because I just find it to be the best since there is no jQuery required and it works amazingly well on mobile devices.\n\n### Installation\n\n* Clone this repo into your plugins folder.\n* Do not change the name. Leave it as `pico_slider`.\n* Download [Swipe](https://github.com/bradbirdsall/Swipe) or some other slider lib.\n* Setup the sliders JS and CSS files.\n* Create a folder inside `content` called `images`. Path would be `{pico_root}/content/images/`.\n* Inside that folder, drop all the images you want to use. (structure can be changed, defaut is `.jpg` images)\n* Add the markup into your theme or mardown file\n* Have fun!\n\n### Markup\n\nThis is specific to [Swipe](https://github.com/bradbirdsall/Swipe). You can do whatever you like for your slider library.\n\n```html\n\u003cdiv id=\"slider\" class='swipe'\u003e\n  \u003cdiv class=\"swipe-wrap\"\u003e\n    {% for image in images %}\n      \u003cdiv class=\"swipe-slide\"\u003e\n        \u003cimg src=\"{{ image.url }}\" alt=\"{{ image.name }}\" width=\"{{ image.width }}\" height=\"{{ image.height }}\"\u003e\n      \u003c/div\u003e\n    {% endfor %}\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n### Image properties\n\nHere is what is stored in each image item.\n\n```php\n$image = array(\n  'name' = 'mylittlepony', // basically just the file name without the extension\n  'width' = 900,\n  'height' = 600,\n  'url' = 'content/image/mylittlepony.jpg' // basically just the base_url + the image url\n);\n```\n\n### Customizing Paths and Extensions\n\nBy default the plugin will only grab `.jpg` images. This can be changed in the `pico_slider.php` file.\n\n```php\nprivate $image_path = 'content/images'; // the path to the folder you want to use for loading the images\nprivate $image_ext = '.jpg'; // the extension of the files you are looking for\n```\n\n### License\n\n(The MIT License)\n\nCopyright (c) \u003c2013\u003e James Doyle([@james2doyle](http://twitter.com/james2doyle)) james2doyle@gmail.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fpico_slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames2doyle%2Fpico_slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fpico_slider/lists"}