���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home3/cpr76684/public_html/imagegallery.tar
���ѧ٧ѧ�
preset.xml 0000644 00000001461 15151265327 0006601 0 ustar 00 <preset> <settings> <intro></intro> <comments>0</comments> <ratings>0</ratings> <participants>3</participants> <requiredentries>0</requiredentries> <requiredentriestoview>0</requiredentriestoview> <maxentries>0</maxentries> <rssarticles>0</rssarticles> <approval>0</approval> <scale>0</scale> <assessed>0</assessed> <assessedpublic></assessedpublic> <defaultsort>0</defaultsort> <defaultsortdir>0</defaultsortdir> <editany>0</editany> </settings> <field> <type>picture</type> <name>image</name> <param1></param1> <param2></param2> <param3>2097152</param3> <param4></param4> </field> <field> <type>text</type> <name>title</name> </field> <field> <type>textarea</type> <name>description</name> <required>0</required> <param2>60</param2> <param3>10</param3> <param4>1</param4> <param5>0</param5> </field> </preset> tests/behat/imagegallery_preset.feature 0000644 00000011515 15151265327 0014404 0 ustar 00 @mod @mod_data @datapreset @data_preset_imagegallery Feature: Users can use the Image gallery preset In order to create an Image gallery database As a user I need to apply and use the Image gallery preset Background: Given the following "users" exist: | username | firstname | lastname | email | | student1 | Alice | Student | student1@example.com | | teacher1 | Pau | Teacher | teacher1@example.com | And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | And the following "activities" exist: | activity | name | intro | course | idnumber | | data | Mountain landscapes | Database intro | C1 | data1 | And I am on the "Mountain landscapes" "data activity" page logged in as teacher1 And I follow "Presets" And I click on "fullname" "radio" in the "Image gallery" "table_row" And I click on "Use this preset" "button" And the following "mod_data > entries" exist: | database | user | title | description | image | | data1 | student1 | First image | This is the description text for image 1 | first.png | | data1 | teacher1 | Second image | And this is the description text for image 2 | second.png | @javascript Scenario: Users view entries When I am on the "Mountain landscapes" "data activity" page logged in as student1 Then I should see "First image" And I should not see "This is the description text for image 1" And I should not see "first.png" And I should not see "Alice Student" in the "#imagegallery-list" "css_element" And "//a/child::img[contains(@src, 'first.png')]" "xpath_element" should exist And "Actions" "icon" should exist in the "#imagegallery-list" "css_element" And I should see "Second image" And I should not see "And this is the description text for image 2" And I should not see "second.png" And I should not see "Pau Teacher" And "//a/child::img[contains(@src, 'second.png')]" "xpath_element" should exist # Single view. And I select "Single view" from the "jump" singleselect And I should see "First image" And I should see "Alice Student" in the ".imagegallery-single" "css_element" And I should see "This is the description text for image 1" And "//a/child::img[contains(@src, 'first.png')]" "xpath_element" should exist And "Actions" "icon" should exist in the ".imagegallery-single" "css_element" And I should not see "Second image" And I should not see "And this is the description text for image 2" And I should not see "Pau Teacher" And "//a/child::img[contains(@src, 'second.png')]" "xpath_element" should not exist And I follow "Next" And I should see "Second image" And I should see "Pau Teacher" And I should see "And this is the description text for image 2" And "//a/child::img[contains(@src, 'second.png')]" "xpath_element" should exist # This student can't edit or delete this entry, so the Actions menu shouldn't be displayed. And "Actions" "icon" should not exist in the ".imagegallery-single" "css_element" And I should not see "First image" And I should not see "Alice Student" in the ".imagegallery-single" "css_element" And I should not see "This is the description text for image 1" And "//a/child::img[contains(@src, 'first.png')]" "xpath_element" should not exist @javascript Scenario: Users can search entries Given I am on the "Mountain landscapes" "data activity" page logged in as student1 And "First image" "text" should appear before "Second image" "text" When I click on "Advanced search" "checkbox" And I should see "First name" And I should see "Last name" And I set the field "title" to "First image" And I click on "Save settings" "button" in the "data_adv_form" "region" Then I should see "First image" And I should not see "Second image" But I set the field "title" to "image" And I set the field "Order" to "Descending" And I click on "Save settings" "button" in the "data_adv_form" "region" And "Second image" "text" should appear before "First image" "text" @javascript Scenario: Users can add entries Given I am on the "Mountain landscapes" "data activity" page logged in as student1 When I press "Add entry" And I set the field "title" to "New image" And I set the field "description" to "This is the description for the new image." And I press "Save" Then I should see "New image" And I should see "This is the description for the new image." listtemplate.html 0000644 00000001324 15151265327 0010150 0 ustar 00 <div class="col mb-4"> <div class="imagegallery-listentry card"> <div class="img-wrapper"> [[image]] </div> <div class="card-body"> <div class="card-title" style="transform: rotate(0);"> [[title]] <a href="##moreurl##" class="stretched-link"></a> </div> <div class="d-flex align-items-start"> <div class="card-footer border-0 bg-white ml-auto d-flex" style="position: relative;"> <div class="ml-auto my-auto ##approvalstatusclass##">##approvalstatus##</div> <div>##actionsmenu##</div> </div> </div> </div> </div> </div> addtemplate.html 0000644 00000000573 15151265327 0007732 0 ustar 00 <div class="imagegallery-addentry"> <div class="form-group"> <div class="font-weight-bold">Title</div> [[title]] </div> <div class="form-group"> <div class="font-weight-bold">Image</div> [[image]] </div> <div class="form-group"> <div class="font-weight-bold">Description</div> [[description]] </div> </div> rsstemplate.html 0000644 00000002150 15151265327 0010002 0 ustar 00 <div class="imagegallery-rss"> <div class="row my-4"> <div class="col-auto">##userpicture##</div> <div class="col"> <div class="row h-100"> <div class="col-3 align-self-center"> ##user##<br/><span class="data-timeinfo">##timeadded##</span> </div> <div class="col-4 col-md-6 text-right align-self-center data-timeinfo"> <span class="font-weight-bold ">Last edited:</span> ##timemodified## </div> <div class="col-4 col-md-3 ml-auto align-self-center d-flex flex-row-reverse"> <div class="ml-auto my-auto ##approvalstatusclass##">##approvalstatus##</div> </div> </div> </div> </div> <hr/> <h2 class="card-title mt-4">[[title]]</h2> <div class="imagegallery-single-body"> <div class="row singleentry-caption"> <div class="col">[[description]]</div> </div> <div class="row singleentry-image"> <div class="col">[[image]]</div> </div> </div> </div> listtemplateheader.html 0000644 00000000164 15151265327 0011322 0 ustar 00 <div id="imagegallery-list" class="card-deck row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4" role="list"> listtemplatefooter.html 0000644 00000000007 15151265327 0011364 0 ustar 00 </div> jstemplate.js 0000644 00000000000 15151265327 0007247 0 ustar 00 rsstitletemplate.html 0000644 00000000012 15151265327 0011037 0 ustar 00 [[title]] csstemplate.css 0000644 00000001254 15151265327 0007613 0 ustar 00 /****** List View CSS ******/ #imagegallery-list img.list_picture { width: 100%; height: 15vw; object-fit: cover; } #imagegallery-list .card { margin-top: 30px; margin-bottom: 15px; } .imagegallery-listentry .card-title { font-size: larger; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } /***** Single View CSS *****/ .imagegallery-single-body .col { padding: 10px 15px; } .imagegallery-single img.list_picture { max-width: 100%; height: auto; } /***** Add entry CSS *****/ .imagegallery-addentry .form-group label, .imagegallery-asearch .form-group label { font-weight: bold; padding-top: 20px; } singletemplate.html 0000644 00000002232 15151265327 0010455 0 ustar 00 <div class="imagegallery-single"> <div class="row my-4"> <div class="col-auto">##userpicture##</div> <div class="col"> <div class="row h-100"> <div class="col-3 align-self-center"> ##user##<br/><span class="data-timeinfo">##timeadded##</span> </div> <div class="col-4 col-md-6 text-right align-self-center data-timeinfo"> <span class="font-weight-bold ">Last edited:</span> ##timemodified## </div> <div class="col-4 col-md-3 ml-auto align-self-center d-flex flex-row-reverse"> <div>##actionsmenu##</div> <div class="ml-auto my-auto ##approvalstatusclass##">##approvalstatus##</div> </div> </div> </div> </div> <hr/> <h2 class="card-title mt-4">[[title]]</h2> <div class="imagegallery-single-body"> <div class="row singleentry-caption"> <div class="col">[[description]]</div> </div> <div class="row singleentry-image"> <div class="col">[[image]]</div> </div> </div> </div> version.php 0000644 00000002250 15151265327 0006750 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * @package datapreset * @subpackage imagegallery * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2022112800; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022111800; // Requires this Moodle version. $plugin->component = 'datapreset_imagegallery'; // Full name of the plugin (used for diagnostics) classes/privacy/provider.php 0000644 00000003025 15151265327 0012230 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Privacy provider implementation for datapreset_imagegallery. * * @package datapreset_imagegallery * @copyright 2018 Mihail Geshoski <mihail@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace datapreset_imagegallery\privacy; defined('MOODLE_INTERNAL') || die(); /** * Privacy provider implementation for datapreset_imagegallery. * * @copyright 2018 Mihail Geshoski <mihail@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class provider implements \core_privacy\local\metadata\null_provider { /** * Get the language string identifier with the component's language * file to explain why this plugin stores no data. * * @return string */ public static function get_reason() : string { return 'privacy:metadata'; } } lang/en/datapreset_imagegallery.php 0000644 00000002301 15151265327 0013461 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Strings for component 'datapreset_imagegallery', language 'en', branch 'MOODLE_20_STABLE' * * @package datapreset_imagegallery * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['modulename'] = 'Image gallery'; $string['modulename_help'] = 'Use this preset to collect images.'; $string['pluginname'] = 'Image gallery'; $string['privacy:metadata'] = 'The Image gallery plugin does not store any personal data.'; asearchtemplate.html 0000644 00000001255 15151265327 0010606 0 ustar 00 <div class="imagegallery-asearch container"> <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3"> <div class="form-group col"> <div class="font-weight-bold mb-2">First name</div> ##firstname## </div> <div class="form-group col"> <div class="font-weight-bold mb-2">Last name</div> ##lastname## </div> <div class="form-group col"> <div class="font-weight-bold mb-2">Title</div> [[title]] </div> <div class="form-group col"> <div class="font-weight-bold mb-2">Description</div> [[description]] </div> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�