Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7d93b9797 | ||
|
|
d0e435d1ef | ||
|
|
6702116da4 | ||
|
|
c77c3db504 | ||
|
|
35767c4620 | ||
|
|
fadba52c5f | ||
|
|
8c707004be | ||
|
|
9523507991 | ||
|
|
72e9adad40 | ||
|
|
3558872eec | ||
|
|
070b5bf8b3 | ||
|
|
2f698971ae | ||
|
|
6571f0d398 | ||
|
|
ddb00952d6 | ||
|
|
70416c80c1 | ||
|
|
16af736ab6 | ||
|
|
fd8984c418 | ||
|
|
d8a4481a03 | ||
|
|
5ca4743197 |
+32
-50
@@ -1,54 +1,36 @@
|
||||
# ---> Symfony
|
||||
# Cache and logs (Symfony2)
|
||||
/app/cache/*
|
||||
/app/logs/*
|
||||
!app/cache/.gitkeep
|
||||
!app/logs/.gitkeep
|
||||
*.bak
|
||||
*.old
|
||||
*.swp
|
||||
*~
|
||||
~*
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
/.idea/
|
||||
/.vscode/
|
||||
/nbproject/
|
||||
|
||||
# Email spool folder
|
||||
/app/spool/*
|
||||
|
||||
# Cache, session files and logs (Symfony3)
|
||||
/var/cache/*
|
||||
/var/logs/*
|
||||
/var/sessions/*
|
||||
!var/cache/.gitkeep
|
||||
!var/logs/.gitkeep
|
||||
!var/sessions/.gitkeep
|
||||
|
||||
# Logs (Symfony4)
|
||||
/var/log/*
|
||||
!var/log/.gitkeep
|
||||
|
||||
# Parameters
|
||||
/app/config/parameters.yml
|
||||
/app/config/parameters.ini
|
||||
|
||||
# Managed by Composer
|
||||
/app/bootstrap.php.cache
|
||||
/var/bootstrap.php.cache
|
||||
/bin/*
|
||||
!bin/console
|
||||
!bin/symfony_requirements
|
||||
/vendor/
|
||||
/var/
|
||||
|
||||
# Assets and user uploads
|
||||
/web/bundles/
|
||||
/web/uploads/
|
||||
|
||||
# PHPUnit
|
||||
/app/phpunit.xml
|
||||
/phpunit.xml
|
||||
|
||||
# Build data
|
||||
/build/
|
||||
|
||||
# Composer PHAR
|
||||
/composer.phar
|
||||
|
||||
# Backup entities generated with doctrine:generate:entities command
|
||||
**/Entity/*~
|
||||
|
||||
# Embedded web-server pid file
|
||||
/.web-server-pid
|
||||
/public/*
|
||||
!/public/.htaccess
|
||||
!/public/index.php
|
||||
!/public/typo3
|
||||
!/public/graphs
|
||||
!/public/typo3conf
|
||||
/public/typo3conf/*
|
||||
!/public/typo3conf/LFEditor
|
||||
!/public/fileadmin/redazione/**
|
||||
!/public/fileadmin/templates/**
|
||||
!/public/fileadmin/images/**
|
||||
!/public/fileadmin/js/**
|
||||
!/public/fileadmin/photo/**
|
||||
!/public/fileadmin/photo_slider/**
|
||||
!/public/fileadmin/themes/**
|
||||
!/public/fileadmin/default.html
|
||||
!/public/fileadmin/favicon.ico
|
||||
!/public/fileadmin/main.css
|
||||
|
||||
**/_assets/
|
||||
**/_processed_/
|
||||
/public/typo3temp/
|
||||
|
||||
@@ -1,235 +0,0 @@
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
oai-symfony
|
||||
Copyright (C) 2026 nicolo
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program 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 Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.
|
||||
@@ -1,3 +0,0 @@
|
||||
# oai-symfony
|
||||
|
||||
Possible implementation of an OAI-PMH library based on Symfony components
|
||||
+69
-17
@@ -1,23 +1,75 @@
|
||||
{
|
||||
"autoload" : {
|
||||
"psr-4" : {
|
||||
"App\\" : "src/"
|
||||
"name": "catbird/cdl-typo3-app",
|
||||
"description": "Carte da legare - TYPO3 Webapp",
|
||||
"homepage": "https://www.catbird.it/",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Matteo Gallo",
|
||||
"email": "matteogal@gmail.com",
|
||||
"role": "Developer"
|
||||
}
|
||||
},
|
||||
],
|
||||
"license": "GPL-2.0-or-later",
|
||||
"repositories": [
|
||||
{
|
||||
"type": "path",
|
||||
"url": "../t3ext/cartedalegare",
|
||||
"options": {
|
||||
"symlink": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"symfony/http-foundation": "^6.1",
|
||||
"symfony/http-kernel": "^6.1",
|
||||
"symfony/routing": "^6.1",
|
||||
"symfony/dependency-injection": "^6.1",
|
||||
"symfony/string": "^6.1",
|
||||
"symfony/serializer": "^7.1",
|
||||
"symfony/property-access": "^7.1",
|
||||
"symfony/config": "^7.3"
|
||||
"typo3/cms-core": "^13.4",
|
||||
"typo3/cms-extbase": "^13.4",
|
||||
"typo3/cms-fluid": "^13.4",
|
||||
"typo3/cms-frontend": "^13.4",
|
||||
"typo3/cms-install": "^13.4",
|
||||
"typo3/cms-rte-ckeditor": "^13.4",
|
||||
"typo3/cms-setup": "^13.4",
|
||||
"t3brightside/youtubevideo": "^3.1",
|
||||
"sjbr/static-info-tables": "^13.4",
|
||||
"sjbr/sr-freecap": "^13.4",
|
||||
"t3brightside/paginatedprocessors": "^1.7",
|
||||
"georgringer/numbered-pagination": "^2.1",
|
||||
"georgringer/news": "^12.3",
|
||||
"sgalinski/lfeditor": "^10.0",
|
||||
"dirkpersky/typo3-dp_cookieconsent": "^13.0",
|
||||
"friendsoftypo3/tt-address": "^9.0",
|
||||
"sjbr/sr-feuser-register": "^13.4",
|
||||
"bobosch/ods-osm": "^4.3",
|
||||
"minifranske/fs-media-gallery": "^5.x-dev",
|
||||
"t3brightside/embedassets": "^1.4",
|
||||
"typo3/cms-filelist": "^13.4",
|
||||
"typo3/cms-fluid-styled-content": "^13.4",
|
||||
"typo3/cms-backend": "^13.4",
|
||||
"typo3/cms-viewpage": "^13.4",
|
||||
"typo3/cms-form": "^13.4",
|
||||
"typo3/cms-info": "^13.4",
|
||||
"typo3/cms-recycler": "^13.4",
|
||||
"typo3/cms-reports": "^13.4",
|
||||
"typo3/cms-belog": "^13.4",
|
||||
"typo3/cms-lowlevel": "^13.4",
|
||||
"typo3/cms-beuser": "^13.4",
|
||||
"typo3/cms-filemetadata": "^13.4",
|
||||
"typo3/cms-tstemplate": "^13.4",
|
||||
"catbird/cartedalegare": "@dev"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^3.64",
|
||||
"phpstan/phpstan": "^1.12",
|
||||
"rector/rector": "^1.2",
|
||||
"phpunit/phpunit": "^10.5.63"
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
"typo3/cms-composer-installers": true,
|
||||
"typo3/class-alias-loader": true
|
||||
},
|
||||
"vendor-dir": "vendor"
|
||||
},
|
||||
"extra": {
|
||||
"typo3/cms": {
|
||||
"web-dir": "public"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"post-autoload-dump": [
|
||||
"@php patches/fix_fs_media_gallery_album_assign.php"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+6161
-3740
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
#base: /carte/
|
||||
base: 'https://localhost/carte/'
|
||||
languages:
|
||||
-
|
||||
title: Italiano
|
||||
enabled: true
|
||||
base: /
|
||||
typo3Language: it
|
||||
locale: it_IT.utf8
|
||||
iso-639-1: it
|
||||
websiteTitle: ''
|
||||
navigationTitle: Italian
|
||||
hreflang: it-IT
|
||||
direction: ''
|
||||
flag: it
|
||||
languageId: 0
|
||||
rootPageId: 1
|
||||
websiteTitle: 'Carte da legare'
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:fs_media_gallery/Resources/Private/Language/locallang.xlf'][0] = 'typo3conf/LFEditor/OverrideFiles/fs_media_gallery/Resources/Private/Language/locallang.xml';
|
||||
putenv('TYPO3_CONTEXT=Development');
|
||||
@@ -0,0 +1,211 @@
|
||||
<?php
|
||||
return [
|
||||
'BE' => [
|
||||
'assetsPath' => '_assets/',
|
||||
'debug' => false,
|
||||
'installToolPassword' => '$P$CKv1YpXOGKx/h3bCrFQL8F8tqyYeag1',
|
||||
'lockSSL' => true,
|
||||
'versionNumberInFilename' => '0',
|
||||
],
|
||||
'DB' => [
|
||||
'Connections' => [
|
||||
'Default' => [
|
||||
'charset' => 'utf8',
|
||||
'dbname' => 't3_carte',
|
||||
'driver' => 'mysqli',
|
||||
'host' => 'localhost',
|
||||
'password' => '',
|
||||
'port' => 3307,
|
||||
'user' => 'root',
|
||||
],
|
||||
],
|
||||
'extTablesDefinitionScript' => 'extTables.php',
|
||||
],
|
||||
'EXT' => [],
|
||||
'EXTCONF' => [
|
||||
'lang' => [
|
||||
'availableLanguages' => [
|
||||
'it',
|
||||
],
|
||||
],
|
||||
],
|
||||
'EXTENSIONS' => [
|
||||
'backend' => [
|
||||
'backendFavicon' => '',
|
||||
'backendLogo' => '',
|
||||
'loginBackgroundImage' => '',
|
||||
'loginFootnote' => '',
|
||||
'loginHighlightColor' => '',
|
||||
'loginLogo' => '',
|
||||
'loginLogoAlt' => '',
|
||||
],
|
||||
'cartedalegare' => [
|
||||
'debug' => '0',
|
||||
],
|
||||
'extensionmanager' => [
|
||||
'automaticInstallation' => '1',
|
||||
'offlineMode' => '0',
|
||||
],
|
||||
'fs_media_gallery' => [
|
||||
'allowedActionsInFlexforms' => 'nestedList,flatList,showAlbumByParam,showAlbumByConfig,randomAsset',
|
||||
'asset' => [
|
||||
'orderOptions' => 'name,crdate,title,content_creation_date,content_modification_date',
|
||||
],
|
||||
'clearCacheAfterFileChange' => '',
|
||||
'enableAutoCreateFileCollection' => '1',
|
||||
'list' => [
|
||||
'orderOptions' => 'datetime,crdate,sorting',
|
||||
],
|
||||
],
|
||||
'lfeditor' => [
|
||||
'beMainModuleName' => 'user',
|
||||
'changeXlfDate' => '1',
|
||||
'defaultLanguage' => '',
|
||||
'editModeExtension' => '1',
|
||||
'extIgnore' => '/^(CVS|.svn|.git|csh_)/',
|
||||
'extWhitelist' => '',
|
||||
'pathAdditionalConfiguration' => 'typo3conf/AdditionalConfiguration.php',
|
||||
'searchRegex' => '/^([a-z0-9_]*locallang[a-z0-9_-]*\\.(php|xml)|[^\\.]*\\.xlf)$/i',
|
||||
'viewLanguages' => '',
|
||||
],
|
||||
'news' => [
|
||||
'advancedMediaPreview' => '1',
|
||||
'archiveDate' => 'date',
|
||||
'categoryBeGroupTceFormsRestriction' => '0',
|
||||
'categoryRestriction' => '',
|
||||
'contentElementPreview' => '1',
|
||||
'contentElementRelation' => '1',
|
||||
'dateTimeNotRequired' => '0',
|
||||
'hidePageTreeForAdministrationModule' => '0',
|
||||
'manualSorting' => '0',
|
||||
'pageTreePluginPreview' => '1',
|
||||
'prependAtCopy' => '1',
|
||||
'resourceFolderImporter' => '/news_import',
|
||||
'rteForTeaser' => '0',
|
||||
'showAdministrationModule' => '1',
|
||||
'showImporter' => '0',
|
||||
'slugBehaviour' => 'unique',
|
||||
'storageUidImporter' => '1',
|
||||
'tagPid' => '1',
|
||||
],
|
||||
'ods_osm' => [
|
||||
'autocomplete' => '1',
|
||||
'cache_enabled' => '1',
|
||||
'default_country' => 'DE',
|
||||
'default_lat' => '51.27',
|
||||
'default_lon' => '10.41',
|
||||
'default_zoom' => '8',
|
||||
'geo_service' => '2',
|
||||
'geo_service_email' => '',
|
||||
'geo_service_user' => '',
|
||||
'local_js' => '1',
|
||||
],
|
||||
'sr_feuser_register' => [
|
||||
'encryptionAlgorithm' => 'aes-256-cbc',
|
||||
'imageMaxSize' => '7168',
|
||||
'imageTypes' => 'gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,ai,svg',
|
||||
'salt' => 'cH!swe!retReGu7W6bEDRup7usuDUh9THeD2CHeGE*ewr4n39=E@rAsp7c-Ph@pH',
|
||||
'uploadFolder' => '2:/tx_srfeuserregister/',
|
||||
],
|
||||
'sr_freecap' => [
|
||||
'encryptionAlgorithm' => 'aes-256-cbc',
|
||||
'salt' => 'cH!swe!retReGu7W6bEDRup7usuDUh9THeD2CHeGE*ewr4n39=E@rAsp7c-Ph@pH',
|
||||
],
|
||||
'static_info_tables' => [
|
||||
'enableManager' => '0',
|
||||
],
|
||||
'tt_address' => [
|
||||
'backwardsCompatFormat' => '%1$s %3$s',
|
||||
'newPagination' => '1',
|
||||
'readOnlyNameField' => '1',
|
||||
'storeBackwardsCompatName' => '1',
|
||||
'telephoneValidationPatternForJs' => '/[^\\d\\+\\s\\-]/g',
|
||||
'telephoneValidationPatternForPhp' => '/[^\\d\\+\\s\\-]/',
|
||||
],
|
||||
'youtubevideo' => [
|
||||
'youtubevideoEnableBePlayer' => '1',
|
||||
'youtubevideoEnablePagination' => '0',
|
||||
],
|
||||
],
|
||||
'FE' => [
|
||||
'debug' => false,
|
||||
],
|
||||
'GFX' => [
|
||||
'jpg_quality' => '80',
|
||||
'processor' => 'ImageMagick',
|
||||
'processor_colorspace' => 'RGB',
|
||||
'processor_effects' => false,
|
||||
'processor_enabled' => '1',
|
||||
'processor_path' => 'C:/Program Files/ImageMagick-7.1.0-Q16-HDRI/',
|
||||
],
|
||||
'INSTALL' => [],
|
||||
'LOG' => [
|
||||
'TYPO3' => [
|
||||
'CMS' => [
|
||||
'deprecations' => [
|
||||
'writerConfiguration' => [
|
||||
'notice' => [
|
||||
'TYPO3\CMS\Core\Log\Writer\FileWriter' => [
|
||||
'disabled' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'MAIL' => [
|
||||
'defaultMailFromAddress' => 'cartedalegare@cultura.gov.it',
|
||||
'defaultMailFromName' => 'Carte da legare',
|
||||
'defaultMailReplyToAddress' => 'cartedalegare@cultura.gov.it',
|
||||
'defaultMailReplyToName' => 'Carte da legare',
|
||||
'format' => 'both',
|
||||
'transport' => 'sendmail',
|
||||
'transport_sendmail_command' => '/usr/sbin/sendmail -t -i',
|
||||
'transport_smtp_encrypt' => '',
|
||||
'transport_smtp_password' => '',
|
||||
'transport_smtp_server' => 'localhost:25',
|
||||
'transport_smtp_username' => '',
|
||||
],
|
||||
'SYS' => [
|
||||
'caching' => [
|
||||
'cacheConfigurations' => [
|
||||
'extbase_object' => [
|
||||
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend',
|
||||
'frontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend',
|
||||
'groups' => [
|
||||
'system',
|
||||
],
|
||||
'options' => [
|
||||
'defaultLifetime' => 0,
|
||||
],
|
||||
],
|
||||
'hash' => [
|
||||
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend',
|
||||
],
|
||||
'imagesizes' => [
|
||||
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend',
|
||||
],
|
||||
'pages' => [
|
||||
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend',
|
||||
],
|
||||
'rootline' => [
|
||||
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend',
|
||||
'options' => [
|
||||
'defaultLifetime' => 604800,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'createSymlinkDir' => 0,
|
||||
'devIPmask' => '*',
|
||||
'displayErrors' => 1,
|
||||
'encryptionKey' => 'efccad22f08ec986fda57f4e46959a58eb14d68c3f43726306c7850ba81e5ae0bc621f40cf3ab47589bbef1c3f23f96f',
|
||||
'exceptionalErrors' => 4096,
|
||||
'features' => [],
|
||||
'lang' => [
|
||||
'requireApprovedLocalizations' => false,
|
||||
],
|
||||
'sitename' => 'Carte da legare',
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$file = dirname(__DIR__) . '/vendor/minifranske/fs-media-gallery/Classes/Controller/MediaAlbumController.php';
|
||||
|
||||
echo "Fix sending incorrect variable to Fluid template - 20260714\n\n";
|
||||
|
||||
if (file_exists($file)) {
|
||||
$content = file_get_contents($file);
|
||||
|
||||
$oldLine = '\'mediaAlbum\' => $mediaAlbum,';
|
||||
$newLine = '\'mediaAlbum\' => $mediaAlbumObject,';
|
||||
|
||||
if (strpos($content, $oldLine) !== false) {
|
||||
$content = str_replace($oldLine, $newLine, $content);
|
||||
file_put_contents($file, $content);
|
||||
echo "\n-> [SUCCESS] Patch fs_media_gallery applied!\n\n";
|
||||
} else {
|
||||
echo "\n-> [INFO] Patch fs_media_gallery not applied or row not found.\n\n";
|
||||
}
|
||||
} else {
|
||||
echo "\n-> [ERROR] Unable to find fs-media-gallery file.\n\n";
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
if (!defined('TYPO3_COMPOSER_MODE')) {
|
||||
define('TYPO3_COMPOSER_MODE', true);
|
||||
}
|
||||
|
||||
$classLoader = require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(
|
||||
1,
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_CLI
|
||||
);
|
||||
|
||||
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader);
|
||||
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use TYPO3\CMS\Core\Database\ConnectionPool;
|
||||
|
||||
$connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('tt_content');
|
||||
$queryBuilder = $connection->createQueryBuilder();
|
||||
|
||||
$result = $queryBuilder
|
||||
->select('uid', 'pi_flexform')
|
||||
->from('tt_content')
|
||||
->where($queryBuilder->expr()->eq('CType', $queryBuilder->createNamedParameter('ods_osm_pi1')))
|
||||
->executeQuery();
|
||||
|
||||
$rows = $result->fetchAllAssociative();
|
||||
|
||||
$count = 0;
|
||||
|
||||
foreach ($rows as $row) {
|
||||
if (empty($row['pi_flexform'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$xml = simplexml_load_string($row['pi_flexform']);
|
||||
if (!$xml || !isset($xml->data->sheet)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$targetSheet = null;
|
||||
foreach ($xml->data->sheet as $sheet) {
|
||||
if ((string)$sheet['index'] === 'sDEF') {
|
||||
$targetSheet = $sheet;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!$targetSheet) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$targetLang = null;
|
||||
foreach ($targetSheet->language as $lang) {
|
||||
if ((string)$lang['index'] === 'lDEF') {
|
||||
$targetLang = $lang;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!$targetLang) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$updateField = function($langNode, $fieldName, $newValue) {
|
||||
$fieldFound = null;
|
||||
foreach ($langNode->field as $field) {
|
||||
if ((string)$field['index'] === $fieldName) {
|
||||
$fieldFound = $field;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($fieldFound) {
|
||||
$fieldFound->value[0] = $newValue;
|
||||
}
|
||||
};
|
||||
|
||||
$updateField($targetLang, 'show_popups', '1');
|
||||
$updateField($targetLang, 'show_layerswitcher', '-1');
|
||||
|
||||
// DB save
|
||||
$connection->update(
|
||||
'tt_content',
|
||||
['pi_flexform' => $xml->asXML()],
|
||||
['uid' => $row['uid']]
|
||||
);
|
||||
|
||||
echo "Updated UID: " . $row['uid'] . "\n";
|
||||
$count++;
|
||||
}
|
||||
|
||||
echo "OK. Total updated: $count\n";
|
||||
@@ -0,0 +1,397 @@
|
||||
#####
|
||||
#
|
||||
# Example .htaccess file for TYPO3 CMS - for use with Apache Webserver
|
||||
#
|
||||
# This file includes settings for the following configuration options:
|
||||
#
|
||||
# - Compression
|
||||
# - Caching
|
||||
# - MIME types
|
||||
# - Cross Origin requests
|
||||
# - Rewriting and Access
|
||||
# - Miscellaneous
|
||||
# - PHP optimisation
|
||||
#
|
||||
# If you want to use it, you have to copy it to the root folder of your TYPO3 installation (if its
|
||||
# not there already) and rename it to '.htaccess'. To make .htaccess files work, you might need to
|
||||
# adjust the 'AllowOverride' directive in your Apache configuration file.
|
||||
#
|
||||
# IMPORTANT: You may need to change this file depending on your TYPO3 installation!
|
||||
# Consider adding this file's content to your webserver's configuration directly for speed improvement
|
||||
#
|
||||
# Lots of the options are taken from https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess
|
||||
#
|
||||
####
|
||||
|
||||
|
||||
### Begin: Compression ###
|
||||
|
||||
# Compressing resource files will save bandwidth and so improve loading speed especially for users
|
||||
# with slower internet connections. TYPO3 can compress the .js and .css files for you.
|
||||
# *) Uncomment the following lines and
|
||||
# *) Set $GLOBALS['TYPO3_CONF_VARS']['BE']['compressionLevel'] = 9 for the Backend
|
||||
# *) Set $GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel'] = 9 together with the TypoScript properties
|
||||
# config.compressJs and config.compressCss for GZIP compression of Frontend JS and CSS files.
|
||||
|
||||
#<FilesMatch "\.js\.gz">
|
||||
# AddType "text/javascript" .gz
|
||||
#</FilesMatch>
|
||||
#<FilesMatch "\.css\.gz">
|
||||
# AddType "text/css" .gz
|
||||
#</FilesMatch>
|
||||
#AddEncoding x-gzip .gz
|
||||
|
||||
<IfModule mod_deflate.c>
|
||||
# Force compression for mangled `Accept-Encoding` request headers
|
||||
<IfModule mod_setenvif.c>
|
||||
<IfModule mod_headers.c>
|
||||
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
|
||||
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
||||
# Compress all output labeled with one of the following media types.
|
||||
#
|
||||
# (!) For Apache versions below version 2.3.7 you don't need to
|
||||
# enable `mod_filter` and can remove the `<IfModule mod_filter.c>`
|
||||
# and `</IfModule>` lines as `AddOutputFilterByType` is still in
|
||||
# the core directives.
|
||||
#
|
||||
# https://httpd.apache.org/docs/current/mod/mod_filter.html#addoutputfilterbytype
|
||||
|
||||
<IfModule mod_filter.c>
|
||||
AddOutputFilterByType DEFLATE application/atom+xml \
|
||||
application/javascript \
|
||||
application/json \
|
||||
application/ld+json \
|
||||
application/manifest+json \
|
||||
application/rdf+xml \
|
||||
application/rss+xml \
|
||||
application/schema+json \
|
||||
application/vnd.geo+json \
|
||||
application/geo+json \
|
||||
application/vnd.ms-fontobject \
|
||||
application/x-font-ttf \
|
||||
application/x-javascript \
|
||||
application/x-web-app-manifest+json \
|
||||
application/xhtml+xml \
|
||||
application/xml \
|
||||
font/eot \
|
||||
font/opentype \
|
||||
font/otf \
|
||||
font/ttf \
|
||||
image/bmp \
|
||||
image/svg+xml \
|
||||
image/vnd.microsoft.icon \
|
||||
image/x-icon \
|
||||
text/cache-manifest \
|
||||
text/css \
|
||||
text/html \
|
||||
text/javascript \
|
||||
text/plain \
|
||||
text/vcard \
|
||||
text/vnd.rim.location.xloc \
|
||||
text/vtt \
|
||||
text/x-component \
|
||||
text/x-cross-domain-policy \
|
||||
text/xml
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_mime.c>
|
||||
AddEncoding gzip svgz
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
||||
### End: Compression ###
|
||||
|
||||
|
||||
|
||||
### Begin: Browser caching of resource files ###
|
||||
|
||||
# This affects Frontend and Backend and increases performance.
|
||||
<IfModule mod_expires.c>
|
||||
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 1 month"
|
||||
|
||||
ExpiresByType text/css "access plus 1 year"
|
||||
|
||||
ExpiresByType application/json "access plus 0 seconds"
|
||||
ExpiresByType application/ld+json "access plus 0 seconds"
|
||||
ExpiresByType application/schema+json "access plus 0 seconds"
|
||||
ExpiresByType application/vnd.geo+json "access plus 0 seconds"
|
||||
ExpiresByType application/geo+json "access plus 0 seconds"
|
||||
ExpiresByType application/xml "access plus 0 seconds"
|
||||
ExpiresByType text/xml "access plus 0 seconds"
|
||||
|
||||
ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
|
||||
ExpiresByType image/x-icon "access plus 1 week"
|
||||
|
||||
ExpiresByType text/x-component "access plus 1 month"
|
||||
|
||||
ExpiresByType text/html "access plus 0 seconds"
|
||||
|
||||
ExpiresByType application/javascript "access plus 1 year"
|
||||
ExpiresByType application/x-javascript "access plus 1 year"
|
||||
ExpiresByType text/javascript "access plus 1 year"
|
||||
|
||||
ExpiresByType application/manifest+json "access plus 1 week"
|
||||
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
|
||||
ExpiresByType text/cache-manifest "access plus 0 seconds"
|
||||
|
||||
ExpiresByType audio/ogg "access plus 1 month"
|
||||
ExpiresByType image/apng "access plus 1 month"
|
||||
ExpiresByType image/avif "access plus 1 month"
|
||||
ExpiresByType image/avif-sequence "access plus 1 month"
|
||||
ExpiresByType image/bmp "access plus 1 month"
|
||||
ExpiresByType image/gif "access plus 1 month"
|
||||
ExpiresByType image/jpeg "access plus 1 month"
|
||||
ExpiresByType image/jxl "access plus 1 month"
|
||||
ExpiresByType image/png "access plus 1 month"
|
||||
ExpiresByType image/svg+xml "access plus 1 month"
|
||||
ExpiresByType image/webp "access plus 1 month"
|
||||
ExpiresByType video/mp4 "access plus 1 month"
|
||||
ExpiresByType video/ogg "access plus 1 month"
|
||||
ExpiresByType video/webm "access plus 1 month"
|
||||
|
||||
ExpiresByType application/atom+xml "access plus 1 hour"
|
||||
ExpiresByType application/rdf+xml "access plus 1 hour"
|
||||
ExpiresByType application/rss+xml "access plus 1 hour"
|
||||
|
||||
ExpiresByType font/collection "access plus 1 month"
|
||||
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
|
||||
ExpiresByType font/eot "access plus 1 month"
|
||||
ExpiresByType font/opentype "access plus 1 month"
|
||||
ExpiresByType font/otf "access plus 1 month"
|
||||
ExpiresByType application/x-font-ttf "access plus 1 month"
|
||||
ExpiresByType font/ttf "access plus 1 month"
|
||||
ExpiresByType application/font-woff "access plus 1 month"
|
||||
ExpiresByType application/x-font-woff "access plus 1 month"
|
||||
ExpiresByType font/woff "access plus 1 month"
|
||||
ExpiresByType application/font-woff2 "access plus 1 month"
|
||||
ExpiresByType font/woff2 "access plus 1 month"
|
||||
|
||||
ExpiresByType text/x-cross-domain-policy "access plus 1 week"
|
||||
|
||||
<FilesMatch "^index\.php$">
|
||||
ExpiresActive Off
|
||||
</FilesMatch>
|
||||
|
||||
</IfModule>
|
||||
|
||||
### End: Browser caching of resource files ###
|
||||
|
||||
|
||||
### Begin: MIME types ###
|
||||
|
||||
# Proper MIME types for all files
|
||||
<IfModule mod_mime.c>
|
||||
# Security configuration
|
||||
RemoveType .html .htm
|
||||
<FilesMatch ".+\.html?$">
|
||||
AddType text/html .html .htm
|
||||
</FilesMatch>
|
||||
|
||||
RemoveType .svg .svgz
|
||||
<FilesMatch ".+\.svgz?$">
|
||||
AddType image/svg+xml .svg .svgz
|
||||
</FilesMatch>
|
||||
|
||||
# Data interchange
|
||||
AddType application/atom+xml atom
|
||||
AddType application/json json map topojson
|
||||
AddType application/ld+json jsonld
|
||||
AddType application/rss+xml rss
|
||||
AddType application/vnd.geo+json geojson
|
||||
AddType application/xml rdf xml
|
||||
|
||||
# JavaScript
|
||||
AddType application/javascript js mjs
|
||||
|
||||
# Manifest files
|
||||
AddType application/manifest+json webmanifest
|
||||
AddType application/x-web-app-manifest+json webapp
|
||||
AddType text/cache-manifest appcache
|
||||
|
||||
# Media files
|
||||
|
||||
AddType audio/mp4 f4a f4b m4a
|
||||
AddType audio/ogg oga ogg opus
|
||||
AddType image/avif avif
|
||||
AddType image/avif-sequence avifs
|
||||
AddType image/bmp bmp
|
||||
AddType image/jxl jxl
|
||||
AddType image/webp webp
|
||||
AddType video/mp4 f4v f4p m4v mp4
|
||||
AddType video/ogg ogv
|
||||
AddType video/webm webm
|
||||
AddType video/x-flv flv
|
||||
AddType image/x-icon cur ico
|
||||
|
||||
# Web fonts
|
||||
AddType font/woff woff
|
||||
AddType font/woff2 woff2
|
||||
AddType application/vnd.ms-fontobject eot
|
||||
AddType font/ttf ttc ttf
|
||||
AddType font/otf otf
|
||||
|
||||
# Other
|
||||
AddType application/octet-stream safariextz
|
||||
AddType application/x-bb-appworld bbaw
|
||||
AddType application/x-chrome-extension crx
|
||||
AddType application/x-opera-extension oex
|
||||
AddType application/x-xpinstall xpi
|
||||
AddType text/vcard vcard vcf
|
||||
AddType text/vnd.rim.location.xloc xloc
|
||||
AddType text/vtt vtt
|
||||
AddType text/x-component htc
|
||||
|
||||
</IfModule>
|
||||
|
||||
# UTF-8 encoding
|
||||
AddDefaultCharset utf-8
|
||||
<IfModule mod_mime.c>
|
||||
AddCharset utf-8 .atom .css .js .json .manifest .rdf .rss .vtt .webapp .webmanifest .xml
|
||||
</IfModule>
|
||||
|
||||
### End: MIME types ###
|
||||
|
||||
|
||||
|
||||
### Begin: Cross Origin ###
|
||||
|
||||
# Send the CORS header for images when browsers request it.
|
||||
<IfModule mod_setenvif.c>
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch "\.(avifs?|bmp|cur|gif|ico|jpe?g|png|svgz?|webp)$">
|
||||
SetEnvIf Origin ":" IS_CORS
|
||||
Header set Access-Control-Allow-Origin "*" env=IS_CORS
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
||||
# Allow cross-origin access to web fonts.
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch "\.(eot|otf|tt[cf]|woff2?)$">
|
||||
Header set Access-Control-Allow-Origin "*"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
|
||||
### End: Cross Origin ###
|
||||
|
||||
|
||||
|
||||
### Begin: Rewriting and Access ###
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
|
||||
# Enable URL rewriting
|
||||
RewriteEngine On
|
||||
|
||||
# Store the current location in an environment variable CWD to use
|
||||
# mod_rewrite in .htaccess files without knowing the RewriteBase
|
||||
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
|
||||
RewriteRule ^.*$ - [E=CWD:%2]
|
||||
|
||||
# Rules to set ApplicationContext based on hostname
|
||||
#RewriteCond %{HTTP_HOST} ^dev\.example\.com$
|
||||
#RewriteRule .? - [E=TYPO3_CONTEXT:Development]
|
||||
#RewriteCond %{HTTP_HOST} ^staging\.example\.com$
|
||||
#RewriteRule .? - [E=TYPO3_CONTEXT:Production/Staging]
|
||||
#RewriteCond %{HTTP_HOST} ^www\.example\.com$
|
||||
#RewriteRule .? - [E=TYPO3_CONTEXT:Production]
|
||||
|
||||
# Rule for versioned static files, configured through:
|
||||
# - $GLOBALS['TYPO3_CONF_VARS']['BE']['versionNumberInFilename']
|
||||
# - $GLOBALS['TYPO3_CONF_VARS']['FE']['versionNumberInFilename']
|
||||
# IMPORTANT: This rule has to be the very first RewriteCond in order to work!
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.+)\.(\d+)\.(php|js|mjs|css|png|jpg|gif|svg|avif|webp|gz)$ %{ENV:CWD}$1.$3 [L]
|
||||
|
||||
# Access block for folders
|
||||
RewriteRule _(?:recycler|temp)_/ - [F]
|
||||
RewriteRule fileadmin/templates/.*\.(?:txt|ts)$ - [F]
|
||||
RewriteRule ^(?:vendor|typo3_src|typo3temp/var) - [F]
|
||||
RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?|Documentation|docs?)/ - [F]
|
||||
|
||||
# Block access to all hidden files and directories with the exception of
|
||||
# the visible content from within the `/.well-known/` hidden directory (RFC 5785).
|
||||
RewriteCond %{REQUEST_URI} "!(^|/)\.well-known/([^./]+./?)+$" [NC]
|
||||
RewriteCond %{SCRIPT_FILENAME} -d [OR]
|
||||
RewriteCond %{SCRIPT_FILENAME} -f
|
||||
RewriteRule (?:^|/)\. - [F]
|
||||
|
||||
# Stop rewrite processing, if we are in any known directory
|
||||
# NOTE: Add your additional local storages here
|
||||
RewriteRule ^(?:fileadmin/|typo3conf/|typo3temp/|uploads/) - [L]
|
||||
|
||||
# If the file/symlink/directory does not exist but is below /typo3/, redirect to the main TYPO3 entry point.
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^typo3/(.*)$ %{ENV:CWD}index.php [QSA,L]
|
||||
|
||||
# If the file/symlink/directory does not exist => Redirect to index.php.
|
||||
# For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-l
|
||||
RewriteRule ^.*$ %{ENV:CWD}index.php [QSA,L]
|
||||
|
||||
</IfModule>
|
||||
|
||||
# Access block for files
|
||||
# Apache < 2.3
|
||||
<IfModule !mod_authz_core.c>
|
||||
<FilesMatch "(?i:^\.|^#.*#|^(?:ChangeLog|ToDo|Readme|License)(?:\.md|\.txt)?|^composer\.(?:json|lock)|^ext_conf_template\.txt|^ext_typoscript_constants\.txt|^ext_typoscript_setup\.txt|flexform[^.]*\.xml|locallang[^.]*\.(?:xml|xlf)|\.(?:bak|co?nf|cfg|neon|ya?ml|ts|typoscript|tsconfig|dist|fla|in[ci]|log|sh|sql(?:\..*)?|sqlite(?:\..*)?|sw[op]|git.*|rc)|.*~)$">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
Satisfy All
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
# Apache ≥ 2.3
|
||||
<IfModule mod_authz_core.c>
|
||||
<If "%{REQUEST_URI} =~ m#(?i:/\.|/\x23.*\x23|/(?:ChangeLog|ToDo|Readme|License)(?:\.md|\.txt)?|/composer\.(?:json|lock)|/ext_conf_template\.txt|/ext_typoscript_constants\.txt|/ext_typoscript_setup\.txt|flexform[^.]*\.xml|locallang[^.]*\.(?:xml|xlf)|\.(?:bak|co?nf|cfg|neon|ya?ml|ts|typoscript|tsconfig|dist|fla|in[ci]|log|sh|sql(?:\..*)?|sqlite(?:\..*)?|sw[op]|git.*|rc)|.*~)$#">
|
||||
Require all denied
|
||||
</If>
|
||||
</IfModule>
|
||||
|
||||
# Block access to vcs directories
|
||||
<IfModule mod_alias.c>
|
||||
RedirectMatch 404 /\.(?:git|svn|hg)/
|
||||
</IfModule>
|
||||
|
||||
### End: Rewriting and Access ###
|
||||
|
||||
|
||||
|
||||
### Begin: Miscellaneous ###
|
||||
|
||||
# 404 error prevention for non-existing redirected folders
|
||||
Options -MultiViews
|
||||
|
||||
# Make sure that directory listings are disabled.
|
||||
<IfModule mod_autoindex.c>
|
||||
Options -Indexes
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
# Force IE to render pages in the highest available mode
|
||||
Header set X-UA-Compatible "IE=edge"
|
||||
<FilesMatch "\.(appcache|avifs?|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svgz?|ttf|vcf|webapp|webm|webp|woff2?|xml|xpi)$">
|
||||
Header unset X-UA-Compatible
|
||||
</FilesMatch>
|
||||
|
||||
# Reducing MIME type security risks
|
||||
Header set X-Content-Type-Options "nosniff"
|
||||
</IfModule>
|
||||
|
||||
# ETag removal
|
||||
<IfModule mod_headers.c>
|
||||
Header unset ETag
|
||||
</IfModule>
|
||||
FileETag None
|
||||
|
||||
### End: Miscellaneous ###
|
||||
|
||||
|
||||
# Add your own rules here.
|
||||
@@ -0,0 +1,2 @@
|
||||
*.png
|
||||
*.jpg
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the TYPO3 CMS project.
|
||||
*
|
||||
* It is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License, either version 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
|
||||
// Set up the application for the frontend
|
||||
call_user_func(static function () {
|
||||
$classLoader = require dirname(__DIR__).'/vendor/autoload.php';
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run();
|
||||
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Core\Http\Application::class)->run();
|
||||
});
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the TYPO3 CMS project.
|
||||
*
|
||||
* It is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License, either version 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
|
||||
// Legacy wrapper for typo3/index.php
|
||||
// @deprecated will be removed in TYPO3 v14, /index.php entrypoint should be used directly
|
||||
|
||||
// defer deprecation log message
|
||||
$_SERVER['TYPO3_DEPRECATED_ENTRYPOINT'] = 1;
|
||||
|
||||
array_map(
|
||||
static function (string $var): void {
|
||||
$setenv = static function (string $name, ?string $value = null): void {
|
||||
// If PHP is running as an Apache module and an existing
|
||||
// Apache environment variable exists, overwrite it
|
||||
if (function_exists('apache_getenv') && function_exists('apache_setenv') && apache_getenv($name)) {
|
||||
apache_setenv($name, $value);
|
||||
}
|
||||
|
||||
if (function_exists('putenv')) {
|
||||
putenv("$name=$value");
|
||||
}
|
||||
|
||||
$_ENV[$name] = $value;
|
||||
};
|
||||
|
||||
if (isset($_SERVER[$var])) {
|
||||
$_SERVER[$var] = str_replace('/typo3/index.php', '/index.php', $_SERVER[$var]);
|
||||
}
|
||||
if (isset($_ENV[$var])) {
|
||||
$setenv($var, str_replace('/typo3/index.php', '/index.php', $_ENV[$var]));
|
||||
}
|
||||
},
|
||||
['SCRIPT_NAME', 'SCRIPT_FILENAME', 'SCRIPT_URI', 'SCRIPT_URL', 'PHP_SELF'],
|
||||
);
|
||||
|
||||
require '../index.php';
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the TYPO3 CMS project.
|
||||
*
|
||||
* It is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License, either version 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
|
||||
call_user_func(static function () {
|
||||
$classLoader = require dirname(dirname(__DIR__)).'/vendor/autoload.php';
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1);
|
||||
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader, true)->get(\TYPO3\CMS\Install\Http\Application::class)->run();
|
||||
});
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<T3locallang type="array">
|
||||
<meta type="array">
|
||||
<generator><![CDATA[LFEditor]]></generator>
|
||||
</meta>
|
||||
<data type="array">
|
||||
<languageKey index="default" type="array">
|
||||
<label index="lightbox_current"><![CDATA[{current}/{total}]]></label>
|
||||
</languageKey>
|
||||
<languageKey index="it" type="array">
|
||||
<label index="lightbox_current"><![CDATA[{current}/{total}]]></label>
|
||||
</languageKey>
|
||||
</data>
|
||||
</T3locallang>
|
||||
@@ -0,0 +1,3 @@
|
||||
User-agent: SemrushBot
|
||||
Disallow: /
|
||||
|
||||
@@ -1,125 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
use App\Enum\OaiVerbs;
|
||||
use App\OAI\OaiError;
|
||||
use App\OAI\Verb\{
|
||||
GetRecord,
|
||||
Identify,
|
||||
ListRecords,
|
||||
ListIdentifiers,
|
||||
ListSets,
|
||||
ListMetadataFormats,
|
||||
};
|
||||
|
||||
final class OaiController
|
||||
{
|
||||
#[Route('/oai', methods: 'get')]
|
||||
public function index(Request $request): Response
|
||||
{
|
||||
$res = new Response();
|
||||
$res->headers->set('Content-Type', 'text/xml');
|
||||
$query = $request->getQueryString();
|
||||
$verb = $request->get('verb');
|
||||
|
||||
if ($query === null || $verb === null) {
|
||||
$error = new OaiError('badVerb', 'The verb argument is missing');
|
||||
$res->setContent($error->toXML());
|
||||
return $res;
|
||||
}
|
||||
|
||||
$validVerb = OaiVerbs::tryFrom($verb);
|
||||
|
||||
if (! $validVerb) {
|
||||
$error = new OaiError('badVerb', "'{$verb}' is not a valid OAI-PMH verb");
|
||||
$res->setContent($error->toXML());
|
||||
return $res;
|
||||
}
|
||||
|
||||
$mdPrefix = $request->get('metadataPrefix');
|
||||
$resumptionToken = $request->get('resumptionToken');
|
||||
|
||||
if (
|
||||
($validVerb === OaiVerbs::ListRecords
|
||||
|| $validVerb === OaiVerbs::ListIdentifiers
|
||||
|| $validVerb === OaiVerbs::GetRecord) &&
|
||||
($mdPrefix === null && $resumptionToken === null)
|
||||
) {
|
||||
$error = new OaiError('badArgument', 'The \'metadataPrefix\' argument is missing.');
|
||||
$res->setContent($error->toXML());
|
||||
return $res;
|
||||
}
|
||||
|
||||
return match ($validVerb->value) {
|
||||
'Identify' => $this->identify($res, (new Identify)->response()),
|
||||
'GetRecord' => $this->getRecord($request, $res),
|
||||
'ListRecords' => $this->listRecords($request, $res),
|
||||
'ListSets' => $this->listSets($res),
|
||||
'ListMetadataFormats' => $this->listMetadataFormats($res),
|
||||
'ListIdentifiers' => $this->listIdentifiers($request, $res),
|
||||
};
|
||||
}
|
||||
|
||||
private function identify(Response $res, string $content): Response
|
||||
{
|
||||
$res->setContent($content);
|
||||
return $res;
|
||||
}
|
||||
|
||||
private function getRecord(Request $req, Response $res): Response
|
||||
{
|
||||
$identifier = $req->get('identifier');
|
||||
if (! $this->checkIdentifier($identifier)) {
|
||||
$error = new OaiError('idDoesNotExist', "The identifier '$identifier' is illegal.");
|
||||
$res->setContent($error->toXML());
|
||||
return $res;
|
||||
}
|
||||
|
||||
$format = $req->get('metadataPrefix');
|
||||
$res->setContent((new GetRecord($identifier, $format))->response());
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function listRecords(Request $req, Response $res): Response
|
||||
{
|
||||
$records = (new ListRecords($req))->response();
|
||||
$res->setContent($records);
|
||||
return $res;
|
||||
}
|
||||
|
||||
private function checkIdentifier(string $identifier): bool
|
||||
{
|
||||
$pattern = "/oai:www.yourdomain.com:(article|model|image):\d+$/";
|
||||
return (bool)preg_match($pattern, $identifier);
|
||||
}
|
||||
|
||||
public function listSets(Response $res): Response
|
||||
{
|
||||
$xml = (new ListSets)->response();
|
||||
$res->setContent($xml);
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function listMetadataFormats(Response $res): Response
|
||||
{
|
||||
$xml = (new ListMetadataFormats)->response();
|
||||
$res->setContent($xml);
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function listIdentifiers(Request $req, Response $res): Response
|
||||
{
|
||||
$xml = (new ListIdentifiers($req))->response();
|
||||
$res->setContent($xml);
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Enum;
|
||||
|
||||
/**
|
||||
* @todo Modify according to sets in DB or remove
|
||||
*/
|
||||
enum OaiSetspec: int
|
||||
{
|
||||
case JournalArticles = 2;
|
||||
case SupplementArticles = 5;
|
||||
case SupplementBook = 6;
|
||||
case Images = 8;
|
||||
case Models = 9;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Enum;
|
||||
|
||||
enum OaiVerbs: string
|
||||
{
|
||||
case Identify = 'Identify';
|
||||
case ListRecords = 'ListRecords';
|
||||
case ListIdentifiers = 'ListIdentifiers';
|
||||
case ListSets = 'ListSets';
|
||||
case ListMetadataFormats = 'ListMetadataFormats';
|
||||
case GetRecord = 'GetRecord';
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI\Exception;
|
||||
|
||||
final class IdentifierNotFoundException extends \Exception
|
||||
{
|
||||
public function __construct(string $identifier)
|
||||
{
|
||||
$this->message = "Identifier '{$identifier}' does not exist in this repository.";
|
||||
$this->code = 'idDoesNotExist';
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI\Exception;
|
||||
|
||||
final class InvalidFormatException extends \Exception
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->message = "The metadata format is not supported for this item.";
|
||||
$this->code = 'cannotDisseminateFormat';
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI\Exception;
|
||||
|
||||
final class InvalidTokenException extends \Exception
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->message = "The value of the resumptionToken argument is invalid or expired.";
|
||||
$this->code = 'badResumptionToken';
|
||||
}
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI;
|
||||
|
||||
use \DOMDocument;
|
||||
|
||||
use function Symfony\Component\String\b;
|
||||
|
||||
/**
|
||||
* Creates the base XML document containing dynamically generated responses
|
||||
* @todo different create functions depending on request type? e.g. GetRecord
|
||||
*/
|
||||
final class OaiBase
|
||||
{
|
||||
/**
|
||||
* @param string $content The dynamically generated XML response
|
||||
* @param string $nodeName The root node name to be imported
|
||||
*/
|
||||
public static function create(string $content, string $nodeName, string $metadataFormat = 'oai_dc'): string
|
||||
{
|
||||
$main = new DOMDocument(encoding: 'UTF-8');
|
||||
$main->formatOutput = true;
|
||||
$xslt = $main->createProcessingInstruction('xml-stylesheet', 'type="text/xsl" href="/xslt/oai2.xsl"');
|
||||
$main->appendChild($xslt);
|
||||
|
||||
$imported = new DOMDocument(encoding: 'UTF-8');
|
||||
$imported->loadXML(b($content)->toUnicodeString()->toString(), LIBXML_NOWARNING);
|
||||
$node = $imported->getElementsByTagName($nodeName)->item(0);
|
||||
|
||||
$root = $main->createElement('OAI-PMH');
|
||||
$root->setAttribute('xmlns', 'http://www.openarchives.org/OAI/2.0/');
|
||||
$root->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
|
||||
$root->setAttribute('xsi:schemaLocation', 'http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd');
|
||||
$responseDate = $main->createElement('responseDate', date("Y-m-d\TH:i:s\Z"));
|
||||
$root->appendChild($responseDate);
|
||||
$request = $main->createElement('request', 'https://www.yourdomain.com/oai');
|
||||
|
||||
if ($nodeName !== 'error') {
|
||||
$request->setAttribute('verb', $nodeName);
|
||||
// TODO dynamic metadata prefix!
|
||||
$request->setAttribute('metadataPrefix', $metadataFormat);
|
||||
}
|
||||
|
||||
$root->appendChild($request);
|
||||
$main->appendChild($root);
|
||||
$node = $main->importNode($node, true);
|
||||
$root->appendChild($node);
|
||||
|
||||
// To avoid error when importing XML from RecordOaiDatacite... (why??)
|
||||
if ($metadataFormat === 'oai_datacite') {
|
||||
$oai_datacite = $main->getElementsByTagName('oai_datacite')->item(0);
|
||||
$resource = $main->getElementsByTagName('resource')->item(0);
|
||||
$xmlns = $main->createAttribute('xmlns');
|
||||
$xsi = $main->createAttribute('xsi:schemaLocation');
|
||||
$xmlnsRes = $main->createAttribute('xmlns');
|
||||
$xsiRes = $main->createAttribute('xsi:schemaLocation');
|
||||
$xsi->value = "http://schema.datacite.org/oai/oai-1.1/ http://schema.datacite.org/oai/oai-1.1/oai.xsd";
|
||||
$xmlns->value = "http://schema.datacite.org/oai/oai-1.1/";
|
||||
$oai_datacite->appendChild($xmlns);
|
||||
$oai_datacite->appendChild($xsi);
|
||||
$xmlnsRes->value = "http://datacite.org/schema/kernel-3";
|
||||
$xsiRes->value = "http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd";
|
||||
$resource->appendChild($xmlnsRes);
|
||||
$resource->appendChild($xsiRes);
|
||||
}
|
||||
|
||||
return $main->saveXML();
|
||||
}
|
||||
}
|
||||
@@ -1,72 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI;
|
||||
|
||||
/**
|
||||
* @todo Use Symfony serializer to generate XML?
|
||||
*/
|
||||
use App\OAI\OaiBase;
|
||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||
use Symfony\Component\Serializer\Serializer;
|
||||
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
|
||||
use Symfony\Component\Serializer\Mapping\Loader\AttributeLoader;
|
||||
use Symfony\Component\Serializer\NameConverter\MetadataAwareNameConverter;
|
||||
use Symfony\Component\Serializer\Attribute\SerializedName;
|
||||
|
||||
final class OaiError
|
||||
{
|
||||
#[SerializedName('@code')]
|
||||
public string $code;
|
||||
#[SerializedName('#')]
|
||||
public string $description;
|
||||
|
||||
public function __construct(
|
||||
$code,
|
||||
$description,
|
||||
private Serializer $serializer = new Serializer()
|
||||
)
|
||||
{
|
||||
$this->code = $code;
|
||||
$this->description = $description;
|
||||
|
||||
$classMetadataFactory = new ClassMetadataFactory(new AttributeLoader());
|
||||
$metadataAwareNameConverter = new MetadataAwareNameConverter($classMetadataFactory);
|
||||
|
||||
$this->serializer = new Serializer(
|
||||
[new ObjectNormalizer($classMetadataFactory, $metadataAwareNameConverter)],
|
||||
[new XmlEncoder()]
|
||||
);
|
||||
}
|
||||
|
||||
public function setError(string $code, string $description)
|
||||
{
|
||||
$this->code = $code;
|
||||
$this->description = $description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serialize object
|
||||
* @todo Normalize to array then serialize to XML
|
||||
*/
|
||||
public function toXML(): string
|
||||
{
|
||||
$normal = $this->serializer->normalize($this);
|
||||
|
||||
$content = $this->serializer->encode(
|
||||
$normal,
|
||||
'xml',
|
||||
[
|
||||
'xml_format_output' => true,
|
||||
'xml_root_node_name' => 'error',
|
||||
// Don't include the XML declaration, handled by OaiBase
|
||||
'encoder_ignored_node_types' => [
|
||||
\XML_PI_NODE,
|
||||
],
|
||||
]);
|
||||
|
||||
return OaiBase::create($content, 'error');
|
||||
}
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI;
|
||||
|
||||
use AC\DB\Connection;
|
||||
use App\OAI\RecordOaiInterface;
|
||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||
use Symfony\Component\Serializer\Serializer;
|
||||
|
||||
/**
|
||||
* Serializes an Identify response
|
||||
*/
|
||||
final class OaiIdentify implements RecordOaiInterface
|
||||
{
|
||||
public function __construct(
|
||||
private Serializer $serializer = new Serializer(),
|
||||
)
|
||||
{
|
||||
$this->serializer = new Serializer(
|
||||
[new ObjectNormalizer()],
|
||||
[new XmlEncoder()]
|
||||
);
|
||||
}
|
||||
/**
|
||||
* This should get literal values from settings / config
|
||||
*/
|
||||
public function toXML(): string
|
||||
{
|
||||
$datestamp = $this->getEarliestDatestamp();
|
||||
|
||||
$response = [
|
||||
'repositoryName' => 'Your bloody repo name',
|
||||
'baseURL' => "https://www.yourdomain.com/oai",
|
||||
'protocolVersion' => 2.0,
|
||||
'adminEmail' => 'crazyadmin@yourdomain.com',
|
||||
'earliestDatestamp' => $datestamp,
|
||||
'deletedRecord' => 'no',
|
||||
'granularity' => 'YYYY-MM-DD',
|
||||
];
|
||||
$content = $this->serializer->encode(
|
||||
$response,
|
||||
'xml',
|
||||
[
|
||||
'xml_format_output' => true,
|
||||
'xml_root_node_name' => 'Identify',
|
||||
// Don't include the XML declaration, handled by OaiBase
|
||||
'encoder_ignored_node_types' => [
|
||||
\XML_PI_NODE,
|
||||
],
|
||||
]
|
||||
);
|
||||
return $content;
|
||||
}
|
||||
/**
|
||||
* This should return the earliest datestamp from the repo's database
|
||||
* considering all available OAI resources
|
||||
*/
|
||||
private function getEarliestDatestamp(): string
|
||||
{
|
||||
// Implement
|
||||
return date('YYYY-MM-DD');
|
||||
}
|
||||
}
|
||||
@@ -1,143 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI;
|
||||
|
||||
use App\OAI\RecordOaiInterface;
|
||||
use App\OAI\Exception\IdentifierNotFoundException;
|
||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||
use Symfony\Component\Serializer\Serializer;
|
||||
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
|
||||
use Symfony\Component\Serializer\Mapping\Loader\AttributeLoader;
|
||||
use Symfony\Component\Serializer\NameConverter\MetadataAwareNameConverter;
|
||||
use Symfony\Component\Serializer\Attribute\SerializedName;
|
||||
|
||||
/**
|
||||
* Serializes a record (DB data) in the `oai_dacite` metadata format
|
||||
*/
|
||||
final class RecordOaiDataCite implements RecordOaiInterface
|
||||
{
|
||||
private string $identifier;
|
||||
private string $verb;
|
||||
|
||||
public array $titles;
|
||||
public array $creators;
|
||||
public array $rightsList;
|
||||
public array $descriptions;
|
||||
public array $dates;
|
||||
public int $publicationYear;
|
||||
public string $language;
|
||||
public array $resourceType;
|
||||
public array $subjects;
|
||||
#[SerializedName('identifier')]
|
||||
public array $oaiIdentifier;
|
||||
public array $alternateIdentifiers;
|
||||
public array $formats;
|
||||
public array|string $source;
|
||||
|
||||
public function __construct(
|
||||
string $identifier,
|
||||
string $verb = 'GetRecord',
|
||||
private Serializer $serializer = new Serializer(),
|
||||
)
|
||||
{
|
||||
$this->verb = $verb;
|
||||
$this->identifier = $identifier;
|
||||
preg_match("/oai:www.yourdomain.com(:|\/)(?P<res>.*):(?P<id>\d+)$/", $identifier, $matches);
|
||||
|
||||
$classMetadataFactory = new ClassMetadataFactory(new AttributeLoader());
|
||||
$metadataAwareNameConverter = new MetadataAwareNameConverter($classMetadataFactory);
|
||||
|
||||
$this->serializer = new Serializer(
|
||||
[new ObjectNormalizer($classMetadataFactory, $metadataAwareNameConverter)],
|
||||
[new XmlEncoder()]
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Map DB record data to object attributes for serialization
|
||||
*/
|
||||
private function mapData(array $record): void
|
||||
{
|
||||
// Implement
|
||||
}
|
||||
/**
|
||||
* Return an XML representation of a DB record
|
||||
* in a given format
|
||||
* @throws IdentifierNotFoundException
|
||||
*/
|
||||
public function toXML(): string
|
||||
{
|
||||
$record = []; // This represents a record from the database
|
||||
if ($record === null) {
|
||||
throw new IdentifierNotFoundException($this->identifier);
|
||||
}
|
||||
$this->mapData($record);
|
||||
$normal = $this->serializer->normalize($this);
|
||||
|
||||
$data = $normal;
|
||||
$data = $this->buildRelated($record, $data);
|
||||
|
||||
$oai_datacite = [
|
||||
'oai_datacite' => [
|
||||
['resource' => $data]
|
||||
]
|
||||
];
|
||||
$header = [
|
||||
'identifier' => $this->identifier,
|
||||
'datestamp' => $record['datestamp'],
|
||||
'setSpec' => $record['setSpec'],
|
||||
];
|
||||
// Adapt for ListRecords...
|
||||
$record = $this->verb === 'GetRecord' ?
|
||||
['record' => ['header' => $header, 'metadata' => $oai_datacite]] :
|
||||
['header' => $header, 'metadata' => $oai_datacite];
|
||||
|
||||
$content = $this->serializer->encode(
|
||||
$record,
|
||||
'xml',
|
||||
[
|
||||
'xml_format_output' => true,
|
||||
'xml_root_node_name' => $this->verb === 'GetRecord' ? $this->verb : 'record',
|
||||
// Don't include the XML declaration, handled by OaiBase
|
||||
'encoder_ignored_node_types' => [
|
||||
\XML_PI_NODE,
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
return $content;
|
||||
}
|
||||
/**
|
||||
* Example of creating related identifiers for a DataCite record
|
||||
*/
|
||||
private function buildRelated(array $record, array $data)
|
||||
{
|
||||
if (str_contains($this->identifier, 'image')) {
|
||||
$models = $record['relation']['related'];
|
||||
$relModels = [];
|
||||
foreach ($models as $mod) {
|
||||
array_push(
|
||||
$relModels,
|
||||
[
|
||||
'@relatedIdentifierType' => 'URL',
|
||||
'@relationType' => 'IsDerivedFrom',
|
||||
'#' => $mod
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
$data['#']['relatedIdentifiers']['relatedIdentifier'] = [
|
||||
[
|
||||
'@relatedIdentifierType' => 'DOI',
|
||||
'@relationType' => 'IsPartOf',
|
||||
'#' => preg_replace("/^info(.*)(10.*$)/i", '$2', $record['relation'][1]),
|
||||
],
|
||||
...$relModels
|
||||
];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
@@ -1,123 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI;
|
||||
|
||||
use App\OAI\RecordOaiInterface;
|
||||
use App\OAI\Exception\IdentifierNotFoundException;
|
||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||
use Symfony\Component\Serializer\Serializer;
|
||||
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
|
||||
use Symfony\Component\Serializer\Mapping\Loader\AttributeLoader;
|
||||
use Symfony\Component\Serializer\NameConverter\MetadataAwareNameConverter;
|
||||
use Symfony\Component\Serializer\Attribute\SerializedName;
|
||||
|
||||
/**
|
||||
* Serializes a record (DB data) in the `oai_dc` metadata format
|
||||
* @class RecordOaiDc
|
||||
*/
|
||||
final class RecordOaiDc implements RecordOaiInterface
|
||||
{
|
||||
private int $id;
|
||||
private string $identifier;
|
||||
private string $verb;
|
||||
|
||||
#[SerializedName('dc:title')]
|
||||
public string $title;
|
||||
#[SerializedName('dc:rights')]
|
||||
public array $rights;
|
||||
#[SerializedName('dc:description')]
|
||||
public ?string $description;
|
||||
#[SerializedName('dc:date')]
|
||||
public int $date;
|
||||
#[SerializedName('dc:language')]
|
||||
public string $language;
|
||||
#[SerializedName('dc:type')]
|
||||
public array $recordType;
|
||||
#[SerializedName('dc:subject')]
|
||||
public array $subject;
|
||||
#[SerializedName('dc:creator')]
|
||||
public $creator;
|
||||
#[SerializedName('dc:identifier')]
|
||||
public array $oaiIdentifier;
|
||||
#[SerializedName('dc:format')]
|
||||
public string $format;
|
||||
#[SerializedName('dc:source')]
|
||||
public array|string $source;
|
||||
|
||||
public function __construct(
|
||||
string $identifier,
|
||||
string $verb = 'GetRecord',
|
||||
private Serializer $serializer = new Serializer(),
|
||||
)
|
||||
{
|
||||
$this->verb = $verb;
|
||||
$this->identifier = $identifier;
|
||||
preg_match("/oai:www.yourdomain.com(:|\/)(?P<res>.*):(?P<id>\d+)$/", $identifier, $matches);
|
||||
|
||||
$classMetadataFactory = new ClassMetadataFactory(new AttributeLoader());
|
||||
$metadataAwareNameConverter = new MetadataAwareNameConverter($classMetadataFactory);
|
||||
|
||||
$this->serializer = new Serializer(
|
||||
[new ObjectNormalizer($classMetadataFactory, $metadataAwareNameConverter)],
|
||||
[new XmlEncoder()]
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Map DB record data to object attributes for serialization
|
||||
*/
|
||||
private function mapData(array $record): void
|
||||
{
|
||||
// Implement
|
||||
}
|
||||
/**
|
||||
* Return an XML representation of a DB record
|
||||
* in a given format
|
||||
*/
|
||||
public function toXML(): string
|
||||
{
|
||||
$record = []; // This represents a record from the database
|
||||
if ($record === null) {
|
||||
throw new IdentifierNotFoundException($this->identifier);
|
||||
}
|
||||
$this->mapData($record);
|
||||
$normal = $this->serializer->normalize($this);
|
||||
|
||||
$data = [
|
||||
'@xmlns:oai_dc' => "http://www.openarchives.org/OAI/2.0/oai_dc/",
|
||||
'@xmlns:dc' => "http://purl.org/dc/elements/1.1/",
|
||||
'#' => $normal
|
||||
];
|
||||
|
||||
$oai_dc = ['oai_dc:dc' => $data];
|
||||
if (isset($record['relation'])) {
|
||||
$oai_dc['oai_dc:dc']['dc:relation'] = $record['relation'];
|
||||
}
|
||||
$header = [
|
||||
'identifier' => $this->identifier,
|
||||
'datestamp' => $record['datestamp'],
|
||||
'setSpec' => $record['setSpec'],
|
||||
];
|
||||
// Adapt for ListRecords...
|
||||
$record = $this->verb === 'GetRecord' ?
|
||||
['record' => ['header' => $header, 'metadata' => $oai_dc]] :
|
||||
['header' => $header, 'metadata' => $oai_dc];
|
||||
|
||||
$content = $this->serializer->encode(
|
||||
$record,
|
||||
'xml',
|
||||
[
|
||||
'xml_format_output' => true,
|
||||
'xml_root_node_name' => $this->verb === 'GetRecord' ? $this->verb : 'record',
|
||||
// Don't include the XML declaration, handled by OaiBase
|
||||
'encoder_ignored_node_types' => [
|
||||
\XML_PI_NODE,
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
return $content;
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI;
|
||||
|
||||
interface RecordOaiInterface
|
||||
{
|
||||
public function toXML(): string;
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI;
|
||||
|
||||
use App\OAI\Exception\InvalidTokenException;
|
||||
use DateTime;
|
||||
use DateTimeImmutable;
|
||||
use Symfony\Component\Serializer\Attribute\Ignore;
|
||||
use Symfony\Component\Serializer\Attribute\SerializedName;
|
||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||
use \Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||
use \Symfony\Component\Serializer\Serializer;
|
||||
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
|
||||
use Symfony\Component\Serializer\Mapping\Loader\AttributeLoader;
|
||||
use Symfony\Component\Serializer\NameConverter\MetadataAwareNameConverter;
|
||||
|
||||
final class ResumptionToken
|
||||
{
|
||||
#[SerializedName('@cursor')]
|
||||
public readonly int $cursor;
|
||||
#[SerializedName('@completeListSize')]
|
||||
public readonly int $size;
|
||||
#[Ignore]
|
||||
public readonly \DateTimeImmutable $validity;
|
||||
#[SerializedName('@expirationDate')]
|
||||
public readonly string $expirationDate;
|
||||
#[Ignore]
|
||||
public readonly string $metadataFormat;
|
||||
private Serializer $serializer;
|
||||
#[Ignore]
|
||||
public readonly ?string $set;
|
||||
#[Ignore]
|
||||
public readonly ?string $from;
|
||||
#[Ignore]
|
||||
public readonly ?string $until;
|
||||
|
||||
public function __construct(
|
||||
int $cursor,
|
||||
int $size,
|
||||
string $metadataFormat = 'oai_dc', // Default to Dublin Core
|
||||
?string $set = null,
|
||||
?string $from = null,
|
||||
?string $until = null
|
||||
)
|
||||
{
|
||||
$classMetadataFactory = new ClassMetadataFactory(new AttributeLoader());
|
||||
$metadataAwareNameConverter = new MetadataAwareNameConverter($classMetadataFactory);
|
||||
$this->serializer = new Serializer(
|
||||
[new ObjectNormalizer($classMetadataFactory, $metadataAwareNameConverter)],
|
||||
[new XmlEncoder()]
|
||||
);
|
||||
|
||||
$now = new \DateTimeImmutable;
|
||||
$this->cursor = $cursor;
|
||||
$this->size = $size;
|
||||
// TODO Hard-coded 4 days added to now for validity
|
||||
$this->validity = $now->add(new \DateInterval('P4D'));
|
||||
$this->expirationDate = $this->validity->format('Y-m-d');
|
||||
$this->metadataFormat = $metadataFormat;
|
||||
$this->set = $set;
|
||||
$this->from = $from;
|
||||
$this->until = $until;
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return $this->encode();
|
||||
}
|
||||
|
||||
public function toXML(): string
|
||||
{
|
||||
$normal = $this->serializer->normalize($this);
|
||||
$normal['#'] = $this->__toString();
|
||||
|
||||
$token = $this->serializer->encode(
|
||||
$normal,
|
||||
'xml',
|
||||
[
|
||||
'xml_format_output' => true,
|
||||
'xml_root_node_name' => 'resumptionToken',
|
||||
// Don't include the XML declaration, handled by OaiBase
|
||||
'encoder_ignored_node_types' => [
|
||||
\XML_PI_NODE,
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
return $token;
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo sets and formats from DB...
|
||||
*/
|
||||
public function encode(): string
|
||||
{
|
||||
$hexCurs = dechex($this->cursor);
|
||||
$hexSize = dechex($this->size);
|
||||
$hexTime = dechex($this->validity->getTimestamp());
|
||||
$from = $this->from !== null ?
|
||||
dechex((new DateTimeImmutable($this->from))->getTimestamp()) : 0;
|
||||
$until = $this->until !== null ?
|
||||
dechex((new DateTimeImmutable($this->until))->getTimestamp()) : 0;
|
||||
|
||||
$setMap = match ($this->set) {
|
||||
null => 0,
|
||||
'J:A' => 1,
|
||||
'J:B' => 2,
|
||||
'S:A' => 3,
|
||||
'S:B' => 4,
|
||||
'openaire' => 5,
|
||||
'openaire_data' => 6,
|
||||
'images' => 7,
|
||||
'models' => 8,
|
||||
default => 0
|
||||
};
|
||||
|
||||
$format = match ($this->metadataFormat) {
|
||||
'oai_dc' => 1,
|
||||
'oai_datacite' => 2,
|
||||
'oai_openaire' => 3,
|
||||
};
|
||||
|
||||
return "{$hexCurs}-{$hexSize}-{$hexTime}-{$setMap}-$format-$from-$until";
|
||||
}
|
||||
/**
|
||||
* @throws InvalidTokenException
|
||||
*/
|
||||
public static function decode(string $token): ResumptionToken
|
||||
{
|
||||
$parts = explode('-', $token);
|
||||
$cursor = hexdec($parts[0]);
|
||||
$size = hexdec($parts[1]);
|
||||
$validity = hexdec($parts[2]);
|
||||
|
||||
$set = match ((int)$parts[3]) {
|
||||
0 => null,
|
||||
1 => 'J:A',
|
||||
2 => 'J:B',
|
||||
3 => 'S:A',
|
||||
4 => 'S:B',
|
||||
5 => 'openaire',
|
||||
6 => 'openaire_data',
|
||||
7 => 'images',
|
||||
8 => 'models',
|
||||
default => null
|
||||
};
|
||||
|
||||
$format = match ((int)$parts[4]) {
|
||||
1 => 'oai_dc',
|
||||
2 => 'oai_datacite',
|
||||
3 =>'oai_openaire',
|
||||
default => 'oai_dc',
|
||||
};
|
||||
|
||||
$from = hexdec($parts[5]);
|
||||
$from = $from === 0 ?
|
||||
null : (new DateTime)->setTimestamp($from)->format('Y-m-d');
|
||||
$until = hexdec($parts[6]);
|
||||
$until = $until === 0 ?
|
||||
null : (new DateTime)->setTimestamp($until)->format('Y-m-d');
|
||||
|
||||
if (! ResumptionToken::validate($validity)) {
|
||||
throw new InvalidTokenException;
|
||||
}
|
||||
|
||||
return new static(
|
||||
$cursor,
|
||||
$size,
|
||||
$format,
|
||||
set: $set,
|
||||
from: $from,
|
||||
until: $until
|
||||
);
|
||||
}
|
||||
|
||||
private static function validate(int $timestamp): bool
|
||||
{
|
||||
$now = new \DateTimeImmutable;
|
||||
$validity = \DateTimeImmutable::createFromFormat('U', (string)$timestamp);
|
||||
|
||||
return $validity->diff($now)->days >= 0;
|
||||
}
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI\Verb;
|
||||
|
||||
use App\OAI\{
|
||||
RecordOaiDc,
|
||||
RecordOaiDataCite,
|
||||
RecordOaiInterface
|
||||
};
|
||||
use App\OAI\Exception\IdentifierNotFoundException;
|
||||
use App\OAI\Exception\InvalidFormatException;
|
||||
use App\OAI\OaiBase;
|
||||
use App\OAI\OaiError;
|
||||
|
||||
/**
|
||||
* Metadata for a single OAI record
|
||||
*/
|
||||
final class GetRecord
|
||||
{
|
||||
public readonly RecordOaiInterface $record;
|
||||
private ?OaiError $error = null;
|
||||
private string $metadataFormat;
|
||||
|
||||
public function __construct(
|
||||
string $identifier,
|
||||
string $metadataFormat,
|
||||
)
|
||||
{
|
||||
$this->metadataFormat = $metadataFormat;
|
||||
$record = null;
|
||||
|
||||
try {
|
||||
$record = match ($metadataFormat) {
|
||||
'oai_dc' => new RecordOaiDc($identifier),
|
||||
'oai_datacite' => new RecordOaiDataCite($identifier),
|
||||
default => new RecordOaiDc($identifier),
|
||||
};
|
||||
}
|
||||
catch (InvalidFormatException $e) {
|
||||
$this->error = new OaiError($e->getCode(),$e->getMessage());
|
||||
}
|
||||
|
||||
$this->record = $record;
|
||||
}
|
||||
/**
|
||||
* Returns the XML response (GetRecord or OaiError)
|
||||
*/
|
||||
public function response(): string
|
||||
{
|
||||
if ($this->error) {
|
||||
return $this->error->toXML();
|
||||
}
|
||||
|
||||
try {
|
||||
$xml = $this->record->toXML();
|
||||
return OaiBase::create($xml, 'GetRecord', $this->metadataFormat);
|
||||
}
|
||||
catch (IdentifierNotFoundException $e) {
|
||||
return (new OaiError($e->getCode(),$e->getMessage()))
|
||||
->toXML();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI\Verb;
|
||||
|
||||
use App\OAI\OaiIdentify;
|
||||
use App\OAI\OaiBase;
|
||||
|
||||
/**
|
||||
* Identify data for the repository
|
||||
*/
|
||||
final class Identify
|
||||
{
|
||||
public readonly OaiIdentify $identify;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->identify = new OaiIdentify;
|
||||
}
|
||||
/**
|
||||
* Returns the XML response
|
||||
*/
|
||||
public function response(): string
|
||||
{
|
||||
$xml = $this->identify->toXML();
|
||||
return OaiBase::create($xml, 'Identify');
|
||||
}
|
||||
}
|
||||
@@ -1,154 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI\Verb;
|
||||
|
||||
use App\OAI\ResumptionToken;
|
||||
use App\OAI\Exception\InvalidTokenException;
|
||||
use App\OAI\OaiBase;
|
||||
use App\OAI\OaiError;
|
||||
use AC\DB\Connection;
|
||||
use \Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
use function \Symfony\Component\String\b;
|
||||
|
||||
/**
|
||||
* Represents a ListIdentifiers response
|
||||
*/
|
||||
final class ListIdentifiers
|
||||
{
|
||||
private Request $request;
|
||||
private ?string $metadataFormat;
|
||||
private ?ResumptionToken $resumptionToken;
|
||||
|
||||
public function __construct(Request $req)
|
||||
{
|
||||
$this->request = $req;
|
||||
}
|
||||
/**
|
||||
* Returns the XML response
|
||||
*/
|
||||
public function response(): string
|
||||
{
|
||||
$this->metadataFormat = $this->request->get('metadataPrefix');
|
||||
$until = $this->request->get('until');
|
||||
$from = $this->request->get('from');
|
||||
$set = $this->request->get('set');
|
||||
$token = $this->request->get('resumptionToken');
|
||||
|
||||
if ($token !== null) {
|
||||
$tokenObj = ResumptionToken::decode($token);
|
||||
$set = $tokenObj->set;
|
||||
$this->metadataFormat = $tokenObj->metadataFormat;
|
||||
$from = $tokenObj->from;
|
||||
$until = $tokenObj->until;
|
||||
}
|
||||
|
||||
$hasErrors = $this->hasErrors($from, $until, $set);
|
||||
|
||||
if ($hasErrors !== false) return $hasErrors->toXML();
|
||||
|
||||
try {
|
||||
$identifiers = $this->getIdentifiers(
|
||||
$set,
|
||||
$from,
|
||||
$until,
|
||||
);
|
||||
}
|
||||
catch (InvalidTokenException $e) {
|
||||
return (new OaiError($e->getCode(), $e->getMessage()))
|
||||
->toXML();
|
||||
}
|
||||
|
||||
if (count($identifiers) === 0) {
|
||||
return (new OaiError('noRecordsMatch', 'No records were found in repository.'))
|
||||
->toXML();
|
||||
}
|
||||
|
||||
$xml = '';
|
||||
|
||||
$xml = $this->createXML($identifiers);
|
||||
$xml = b($xml)->toUnicodeString()->trim("\n");
|
||||
$xml = $xml->prepend("<ListIdentifiers>\n");
|
||||
$xml = $xml->append("\n</ListIdentifiers>");
|
||||
|
||||
return OaiBase::create($xml->toString(), 'ListIdentifiers', $this->metadataFormat);
|
||||
}
|
||||
|
||||
private function checkGranularity(string $date): bool
|
||||
{
|
||||
$valid = true;
|
||||
$pattern = "/\d{4}-\d{2}-\d{2}/";
|
||||
preg_match($pattern, $date, $matches);
|
||||
|
||||
if (count($matches) === 0) return false;
|
||||
|
||||
$valid &= $matches[0] === $date;
|
||||
$parts = explode('-', $date);
|
||||
$valid &= checkdate((int)$parts[1], (int)$parts[2], (int)$parts[0]);
|
||||
|
||||
return (bool)$valid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This should check the given setspec against the available sets
|
||||
* from the database
|
||||
*/
|
||||
private function checkValidSet(string $setspec): bool
|
||||
{
|
||||
// Implement
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This should return the identifiers of records in the DB based on
|
||||
* the given filters (set, from, until)
|
||||
* @throws InvalidTokenException
|
||||
* @return string[]
|
||||
*/
|
||||
private function getIdentifiers(?string $set, ?string $from, ?string $until,): array
|
||||
{
|
||||
// Implement
|
||||
return ['first_identifier', 'second_identifier'];
|
||||
}
|
||||
|
||||
private function createXML(array $identifiers): string
|
||||
{
|
||||
$xml = '';
|
||||
foreach ($identifiers as $id) {
|
||||
$xml .= "<header>\n";
|
||||
$xml .= "<identifier>{$id['identifier']}</identifier>\n";
|
||||
$xml .= "<datestamp>{$id['datestamp']}</datestamp>\n";
|
||||
$xml .= "<setSpec>{$id['setSpec']}</setSpec>\n";
|
||||
$xml .= "</header>";
|
||||
}
|
||||
|
||||
if ($this->resumptionToken->cursor < $this->resumptionToken->size) {
|
||||
$xml .= "\n{$this->resumptionToken->toXML()}";
|
||||
}
|
||||
|
||||
return $xml;
|
||||
}
|
||||
|
||||
private function hasErrors(?string $from, ?string $until, ?string $set): OaiError|false
|
||||
{
|
||||
$error = false;
|
||||
|
||||
if ($from !== null && ! $this->checkGranularity($from) ||
|
||||
$until !== null && ! $this->checkGranularity($until)
|
||||
) {
|
||||
$error = new OaiError('badArgument', "The argument value for 'from' and/or 'until' is invalid.");
|
||||
}
|
||||
|
||||
if (($until !== null && $from !== null) && ($from > $until)) {
|
||||
$error = new OaiError('noRecordsMatch', 'No records were found in repository.');
|
||||
}
|
||||
|
||||
if ($set !== null && ! $this->checkValidSet($set)) {
|
||||
$error = new OaiError('badArgument', "The set '$set' does not exist in this repository.");
|
||||
}
|
||||
|
||||
return $error;
|
||||
}
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI\Verb;
|
||||
|
||||
use App\OAI\OaiBase;
|
||||
use App\OAI\OaiError;
|
||||
use AC\DB\Connection;
|
||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||
use Symfony\Component\Serializer\Serializer;
|
||||
|
||||
/**
|
||||
* Represents a ListMetadataFormats response
|
||||
*/
|
||||
final class ListMetadataFormats
|
||||
{
|
||||
public function __construct(
|
||||
private Serializer $serializer = new Serializer(),
|
||||
)
|
||||
{
|
||||
$this->serializer = new Serializer(
|
||||
[new ObjectNormalizer()],
|
||||
[new XmlEncoder()]
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Returns the XML response
|
||||
*/
|
||||
public function response(): string
|
||||
{
|
||||
$formats = $this->getValidFormats();
|
||||
|
||||
$content = $this->serializer->encode(
|
||||
['metadataFormat' => [...$formats]],
|
||||
'xml',
|
||||
[
|
||||
'xml_format_output' => true,
|
||||
'xml_root_node_name' => 'ListMetadataFormats',
|
||||
// Don't include the XML declaration, handled by OaiBase
|
||||
'encoder_ignored_node_types' => [
|
||||
\XML_PI_NODE,
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
return OaiBase::create($content, 'ListMetadataFormats');
|
||||
}
|
||||
/**
|
||||
* @return array<int,array<string,mixed>>
|
||||
*/
|
||||
private function getValidFormats(): array
|
||||
{
|
||||
$dbConn = Connection::new();
|
||||
$queryBuilder = $dbConn->createQueryBuilder();
|
||||
|
||||
$formats = $queryBuilder->select(
|
||||
'prefix as metadataPrefix',
|
||||
'schemaLoc as schema',
|
||||
'namespace as metadataNamespace',
|
||||
)
|
||||
->from('metadata_formats')
|
||||
->fetchAllAssociative();
|
||||
|
||||
return $formats;
|
||||
}
|
||||
}
|
||||
@@ -1,186 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI\Verb;
|
||||
|
||||
use App\OAI\{
|
||||
RecordOaiDc,
|
||||
RecordOaiDataCite,
|
||||
RecordOaiInterface,
|
||||
ResumptionToken
|
||||
};
|
||||
use App\OAI\Exception\InvalidTokenException;
|
||||
use App\OAI\OaiBase;
|
||||
use App\OAI\OaiError;
|
||||
use \Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
use function \Symfony\Component\String\b;
|
||||
|
||||
/**
|
||||
* Represents a ListRecords response
|
||||
*/
|
||||
final class ListRecords
|
||||
{
|
||||
private RecordOaiInterface $record;
|
||||
private Request $request;
|
||||
private ?string $metadataFormat;
|
||||
private ?ResumptionToken $resumptionToken;
|
||||
|
||||
public function __construct(Request $req)
|
||||
{
|
||||
$this->request = $req;
|
||||
}
|
||||
/**
|
||||
* Returns the XML response
|
||||
* @todo Refactor (complexity...)
|
||||
*/
|
||||
public function response(): string
|
||||
{
|
||||
$this->metadataFormat = $this->request->get('metadataPrefix');
|
||||
$until = $this->request->get('until');
|
||||
$from = $this->request->get('from');
|
||||
$set = $this->request->get('set');
|
||||
$token = $this->request->get('resumptionToken');
|
||||
|
||||
if ($token !== null) {
|
||||
$tokenObj = ResumptionToken::decode($token);
|
||||
$set = $tokenObj->set;
|
||||
$this->metadataFormat = $tokenObj->metadataFormat;
|
||||
$from = $tokenObj->from;
|
||||
$until = $tokenObj->until;
|
||||
}
|
||||
|
||||
$hasErrors = $this->hasErrors($from, $until, $set);
|
||||
|
||||
if ($hasErrors !== false) return $hasErrors->toXML();
|
||||
|
||||
try {
|
||||
$identifiers = $this->getIdentifiers(
|
||||
$set,
|
||||
$from,
|
||||
$until,
|
||||
);
|
||||
}
|
||||
catch (InvalidTokenException $e) {
|
||||
return (new OaiError($e->getCode(), $e->getMessage()))
|
||||
->toXML();
|
||||
}
|
||||
|
||||
if (count($identifiers) === 0) {
|
||||
return (new OaiError('noRecordsMatch', 'No records were found in repository.'))
|
||||
->toXML();
|
||||
}
|
||||
|
||||
$xml = '';
|
||||
|
||||
$xml = $this->createXML($identifiers, $this->metadataFormat);
|
||||
$xml = b($xml)->toUnicodeString()->trim("\n");
|
||||
$xml = $xml->prepend("<ListRecords>\n");
|
||||
$xml = $xml->append("\n</ListRecords>");
|
||||
|
||||
return OaiBase::create($xml->toString(), 'ListRecords', $this->metadataFormat);
|
||||
}
|
||||
|
||||
private function checkGranularity(string $date): bool
|
||||
{
|
||||
$valid = true;
|
||||
$pattern = "/\d{4}-\d{2}-\d{2}/";
|
||||
preg_match($pattern, $date, $matches);
|
||||
|
||||
if (count($matches) === 0) return false;
|
||||
|
||||
$valid &= $matches[0] === $date;
|
||||
$parts = explode('-', $date);
|
||||
$valid &= checkdate((int)$parts[1], (int)$parts[2], (int)$parts[0]);
|
||||
|
||||
return (bool)$valid;
|
||||
}
|
||||
|
||||
private function checkValidSet(string $setspec): bool
|
||||
{
|
||||
// Implement
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo Implement limit for cumulative array
|
||||
* @throws InvalidTokenException
|
||||
* @return string[]
|
||||
*/
|
||||
private function getIdentifiers(?string $set, ?string $from, ?string $until,): array
|
||||
{
|
||||
$identifiers = [];
|
||||
$decodedToken = null;
|
||||
$offset = 0;
|
||||
$size = 0;
|
||||
$limit = (int)$_ENV['OAI_LIMIT'];
|
||||
$token = $this->request->get('resumptionToken');
|
||||
|
||||
if ($token !== null) {
|
||||
$decodedToken = ResumptionToken::decode($token);
|
||||
$offset = $decodedToken->cursor;
|
||||
}
|
||||
|
||||
if ($set === null && $this->metadataFormat === 'oai_dc') {
|
||||
// Get resources and size (total number)
|
||||
|
||||
$this->resumptionToken = new ResumptionToken(
|
||||
$offset + $limit,
|
||||
$size,
|
||||
set: $set,
|
||||
metadataFormat: $this->metadataFormat,
|
||||
from: $from,
|
||||
until: $until,
|
||||
);
|
||||
|
||||
return $identifiers;
|
||||
}
|
||||
|
||||
return $identifiers;
|
||||
}
|
||||
|
||||
private function createXML(
|
||||
array $identifiers,
|
||||
string $metadataFormat,
|
||||
): string
|
||||
{
|
||||
$xml = '';
|
||||
|
||||
foreach ($identifiers as $id) {
|
||||
$this->record = match ($metadataFormat) {
|
||||
'oai_dc' => new RecordOaiDc($id['identifier'], verb: 'ListRecords'),
|
||||
'oai_datacite' => new RecordOaiDataCite($id['identifier'], verb: 'ListRecords'),
|
||||
default => new RecordOaiDc($id['identifier'], verb: 'ListRecords'),
|
||||
};
|
||||
$xml .= "\n" . $this->record->toXML();
|
||||
}
|
||||
|
||||
if ($this->resumptionToken->cursor < $this->resumptionToken->size) {
|
||||
$xml .= "\n{$this->resumptionToken->toXML()}";
|
||||
}
|
||||
|
||||
return $xml;
|
||||
}
|
||||
|
||||
private function hasErrors(?string $from, ?string $until, ?string $set): OaiError|false
|
||||
{
|
||||
$error = false;
|
||||
|
||||
if ($from !== null && ! $this->checkGranularity($from) ||
|
||||
$until !== null && ! $this->checkGranularity($until)
|
||||
) {
|
||||
$error = new OaiError('badArgument', "The argument value for 'from' and/or 'until' is invalid.");
|
||||
}
|
||||
|
||||
if (($until !== null && $from !== null) && ($from > $until)) {
|
||||
$error = new OaiError('noRecordsMatch', 'No records were found in repository.');
|
||||
}
|
||||
|
||||
if ($set !== null && ! $this->checkValidSet($set)) {
|
||||
$error = new OaiError('badArgument', "The set '$set' does not exist in this repository.");
|
||||
}
|
||||
|
||||
return $error;
|
||||
}
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\OAI\Verb;
|
||||
|
||||
use App\OAI\OaiBase;
|
||||
use App\OAI\OaiError;
|
||||
use AC\DB\Connection;
|
||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||
use Symfony\Component\Serializer\Serializer;
|
||||
|
||||
/**
|
||||
* Represents a ListSets response
|
||||
*/
|
||||
final class ListSets
|
||||
{
|
||||
public function __construct(
|
||||
private Serializer $serializer = new Serializer(),
|
||||
)
|
||||
{
|
||||
$this->serializer = new Serializer(
|
||||
[new ObjectNormalizer()],
|
||||
[new XmlEncoder()]
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Returns the XML response
|
||||
*/
|
||||
public function response(): string
|
||||
{
|
||||
$sets = $this->getValidSets();
|
||||
|
||||
$content = $this->serializer->encode(
|
||||
['set' => [...$sets]],
|
||||
'xml',
|
||||
[
|
||||
'xml_format_output' => true,
|
||||
'xml_root_node_name' => 'ListSets',
|
||||
// Don't include the XML declaration, handled by OaiBase
|
||||
'encoder_ignored_node_types' => [
|
||||
\XML_PI_NODE,
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
return OaiBase::create($content, 'ListSets');
|
||||
}
|
||||
/**
|
||||
* @return array<int,array<string,mixed>>
|
||||
*/
|
||||
private function getValidSets(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE></TITLE>
|
||||
<META http-equiv=Refresh Content="0; Url=../">
|
||||
</HEAD>
|
||||
</HTML>
|
||||
@@ -0,0 +1,244 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7 ]>
|
||||
<html class="ie ie6" lang="en"> <![endif]-->
|
||||
<!--[if IE 7 ]>
|
||||
<html class="ie ie7" lang="en"> <![endif]-->
|
||||
<!--[if IE 8 ]>
|
||||
<html class="ie ie8" lang="en"> <![endif]-->
|
||||
<!--[if (gte IE 9)|!(IE)]><!-->
|
||||
<html lang="en"> <!--<![endif]-->
|
||||
<head>
|
||||
|
||||
<!-- Basic Page Needs
|
||||
================================================== -->
|
||||
<meta charset="utf-8">
|
||||
<title>Carte da legare: Archivi della psichiatria in Italia.</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<!-- Mobile Specific Metas
|
||||
================================================== -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
|
||||
<!-- CSS
|
||||
================================================== -->
|
||||
<!-- Skeleton responsive -->
|
||||
<link rel="stylesheet" href="css/skeleton.css">
|
||||
<!-- Skeleton responsive -->
|
||||
<link rel="stylesheet" href="css/layout.css">
|
||||
<!-- Template -->
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<!-- Icons -->
|
||||
<link rel="stylesheet" href="css/font-awesome.min.css">
|
||||
<!-- Slider -->
|
||||
<link rel="stylesheet" href="css/nivo-slider.css"/>
|
||||
<!-- Slider -->
|
||||
<link rel="stylesheet" href="themes/default/default.css"/>
|
||||
<!-- Slide menu -->
|
||||
<link rel="stylesheet" href="css/jquery.navgoco.css">
|
||||
<!-- Photogallery -->
|
||||
<link rel="stylesheet" href="css/colorbox.css"/>
|
||||
<!-- Google Font -->
|
||||
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,700italic,400,600,700' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Cambo' rel='stylesheet' type='text/css'>
|
||||
|
||||
<!-- Font Awesome -->
|
||||
<!--[if IE 7]>
|
||||
<link rel="stylesheet" href="css/font-awesome-ie7.min.css">
|
||||
<![endif]-->
|
||||
|
||||
<!-- HTML5 Support for ancient browsers -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- SVG support for gradients -->
|
||||
<!--[if gte IE 9]>
|
||||
<style type="text/css">
|
||||
.gradient {
|
||||
filter: none;
|
||||
}
|
||||
</style>
|
||||
<![endif]-->
|
||||
|
||||
<!-- Javascripts
|
||||
================================================== -->
|
||||
|
||||
<!-- JQuery -->
|
||||
<script type='text/javascript' src='js/jquery.js'></script>
|
||||
<!-- Nivo slider -->
|
||||
<script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
|
||||
<!-- jQuery Placeholder -->
|
||||
<script type="text/javascript" src="js/jquery.placeholder.js"></script>
|
||||
<!-- Tab Menu jQuery plugin -->
|
||||
<script type="text/javascript" src="js/jquery.colorbox-min.js"></script>
|
||||
<!-- Navgoco Slide Menu jQuery plugin -->
|
||||
<script type="text/javascript" src="js/jquery.navgoco.min.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.cookie.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () { // Launched when page is ready
|
||||
|
||||
// JQuery Placeholder init
|
||||
$('input, textarea').placeholder();
|
||||
|
||||
// Nivo slider init
|
||||
$('#slider').nivoSlider({
|
||||
effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
|
||||
slices: 15, // For slice animations
|
||||
boxCols: 8, // For box animations
|
||||
boxRows: 4, // For box animations
|
||||
animSpeed: 500, // Slide transition speed
|
||||
pauseTime: 3000, // How long each slide will show
|
||||
startSlide: 0, // Set starting Slide (0 index)
|
||||
directionNav: true, // Next & Prev navigation
|
||||
controlNav: false, // 1,2,3... navigation
|
||||
controlNavThumbs: false, // Use thumbnails for Control Nav
|
||||
pauseOnHover: true, // Stop animation while hovering
|
||||
manualAdvance: false, // Force manual transitions
|
||||
prevText: 'Prev', // Prev directionNav text
|
||||
nextText: 'Next', // Next directionNav text
|
||||
randomStart: false // Start on a random slide
|
||||
});
|
||||
|
||||
// Slide menu
|
||||
$("#slidemenu").navgoco({
|
||||
accordion: true,
|
||||
save: true,
|
||||
cookie: {
|
||||
name: 'navgoco',
|
||||
expires: false,
|
||||
path: '/'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Favicons
|
||||
================================================== -->
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
<!-- Apple Touch Icons -->
|
||||
<link rel="apple-touch-icon" href="favicon/apple-touch-icon.png" />
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="favicon/apple-touch-icon-57x57.png" />
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="favicon/apple-touch-icon-72x72.png" />
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="favicon/apple-touch-icon-114x114.png" />
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="favicon/apple-touch-icon-144x144.png" />
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="favicon/apple-touch-icon-60x60.png" />
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="favicon/apple-touch-icon-120x120.png" />
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="favicon/apple-touch-icon-76x76.png" />
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="favicon/apple-touch-icon-152x152.png" />
|
||||
<!-- Windows 8 Tile Icons -->
|
||||
<meta name="msapplication-square70x70logo" content="favicon/smalltile.png" />
|
||||
<meta name="msapplication-square150x150logo" content="favicon/mediumtile.png" />
|
||||
<meta name="msapplication-wide310x150logo" content="favicon/widetile.png" />
|
||||
<meta name="msapplication-square310x310logo" content="favicon/largetile.png" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- Header -->
|
||||
<div class="sixteen columns">
|
||||
<div class="container">
|
||||
<div class="sixteen header">
|
||||
<div class="ten"><img src="images/header.jpg" alt="logo"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END // Header -->
|
||||
<div class="container bg-container">
|
||||
<!-- mini -->
|
||||
<div class="mini-bar">
|
||||
</div>
|
||||
<!-- END // mini -->
|
||||
<!-- Page content -->
|
||||
<div class="sixteen columns content clearfix">
|
||||
|
||||
<!-- elemento colonna sx -->
|
||||
<div class="four columns content alpha">
|
||||
<ol class="base_list vertical_menu">
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Home</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Progetto</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <strong><a href="#">Archivi</a></strong></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Inventari</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Ricerca</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Statistiche</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Storie di vita</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Materiali e link</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Credits e contatti</a></li>
|
||||
</ol>
|
||||
<div class="four columns partner"><img src="images/loghi.png" alt="logo"></div>
|
||||
</div>
|
||||
<!-- END // elemento colonna sx -->
|
||||
<!-- colonna centrale -->
|
||||
<div class="eight columns content clearfix ">
|
||||
<div class="widget-map">
|
||||
<h1>Archivi</h1>
|
||||
<!-- Google map -->
|
||||
<div class="map-wrapper">
|
||||
|
||||
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d6139400.007323359!2d12.573610800000015!3d41.29246005000001!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sit!2s!4v1419346316875" width="460" height="700" frameborder="0" style="border:0"></iframe>
|
||||
</div>
|
||||
<!-- END // Google map -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- END // colonna centrale -->
|
||||
<!-- elemento colonna dx -->
|
||||
<div class="four columns content omega">
|
||||
<div class="widget">
|
||||
<h3 class="t_line"><i class="fa fa-sort-amount-asc"></i>Regione</h3>
|
||||
<ul id="slidemenu" class="nav">
|
||||
<li><a href="#"><i class="fa fa-institution"></i> Abruzzo</a>
|
||||
<ul>
|
||||
<li><a href="#">Ospedale neuropsichiatrico provinciale Collemaggio di L'Aquila</a></li>
|
||||
<li><a href="#">Ospedale psichiatrico Sant'Antonio abate di Teramo</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#"><i class="fa fa-institution"></i> Basilicata</a>
|
||||
<ul>
|
||||
<li><a href="#">Ospedale psichiatrico di Potenza</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#"><i class="fa fa-institution"></i> Calabria</a>
|
||||
<ul>
|
||||
<li><a href="#">Ospedale psichiatrico di Girifalco</a></li>
|
||||
<li><a href="#">Ospedale psichiatrico di Reggio Calabria</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#"><i class="fa fa-institution"></i> Campania</a>
|
||||
<ul>
|
||||
<li><a href="#">Ospedale psichiatrico Santa Maria Maddalena di Aversa</a></li>
|
||||
<li><a href="#">Ospedale psichiatrico Leonardo Bianchi di Napoli</a></li>
|
||||
<li><a href="#">Ospedale psichiatrico Vittorio Emanuele II di Nocera Inferiore</a></li>
|
||||
<li><a href="#">Ospedale psichiatrico Materdomini di Nocera Superiore</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div> </div>
|
||||
<!-- END // elemento colonna dx -->
|
||||
|
||||
<!-- END // Page content -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!-- END // Container -->
|
||||
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="footer">
|
||||
<div class="container">
|
||||
<div class="sixteen columns">
|
||||
<div class="widget">
|
||||
<strong>Carte da legare</strong> Copyright 2013 MIBAC - Ministero per i Beni e le AttivitĂ Culturali
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END // Footer -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,185 @@
|
||||
/*
|
||||
* Skeleton V1.2
|
||||
* Copyright 2011, Dave Gamache
|
||||
* www.getskeleton.com
|
||||
* Free to use under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* 6/20/2012
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/* #Typography
|
||||
================================================== */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: normal; }
|
||||
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
|
||||
h1 { font-size: 46px; margin: 0px; }
|
||||
h2 { font-size: 35px; margin: 0px; }
|
||||
h3 { font-size: 28px; margin: 0px; }
|
||||
h4 { font-size: 21px; margin: 0px; }
|
||||
h5 { font-size: 17px; margin: 0px; }
|
||||
h6 { font-size: 14px; margin: 0px; }
|
||||
.subheader { color: #777; }
|
||||
|
||||
p { margin: 0 0 20px 0; }
|
||||
p img { margin: 0; }
|
||||
p.lead { font-size: 21px; color: #777; }
|
||||
|
||||
|
||||
|
||||
/* #Buttons
|
||||
================================================== */
|
||||
|
||||
.button,
|
||||
button,
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"] {
|
||||
background: #eee; /* Old browsers */
|
||||
background: #eee -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */
|
||||
background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */
|
||||
background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: #eee -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */
|
||||
background: #eee -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */
|
||||
background: #eee linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* W3C */
|
||||
border: 1px solid #aaa;
|
||||
border-top: 1px solid #ccc;
|
||||
border-left: 1px solid #ccc;
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
color: #444;
|
||||
display: inline-block;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
text-shadow: 0 1px rgba(255, 255, 255, .75);
|
||||
cursor: pointer;
|
||||
margin-bottom: 20px;
|
||||
line-height: normal;
|
||||
padding: 8px 10px;
|
||||
font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
|
||||
|
||||
.button:hover,
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
input[type="reset"]:hover,
|
||||
input[type="button"]:hover {
|
||||
color: #222;
|
||||
background: #ddd; /* Old browsers */
|
||||
background: #ddd -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */
|
||||
background: #ddd -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */
|
||||
background: #ddd -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: #ddd -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */
|
||||
background: #ddd -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */
|
||||
background: #ddd linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* W3C */
|
||||
border: 1px solid #888;
|
||||
border-top: 1px solid #aaa;
|
||||
border-left: 1px solid #aaa; }
|
||||
|
||||
.button:active,
|
||||
button:active,
|
||||
input[type="submit"]:active,
|
||||
input[type="reset"]:active,
|
||||
input[type="button"]:active {
|
||||
border: 1px solid #666;
|
||||
background: #ccc; /* Old browsers */
|
||||
background: #ccc -moz-linear-gradient(top, rgba(255,255,255,.35) 0%, rgba(10,10,10,.4) 100%); /* FF3.6+ */
|
||||
background: #ccc -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.35)), color-stop(100%,rgba(10,10,10,.4))); /* Chrome,Safari4+ */
|
||||
background: #ccc -webkit-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: #ccc -o-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Opera11.10+ */
|
||||
background: #ccc -ms-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* IE10+ */
|
||||
background: #ccc linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* W3C */ }
|
||||
|
||||
.button.full-width,
|
||||
button.full-width,
|
||||
input[type="submit"].full-width,
|
||||
input[type="reset"].full-width,
|
||||
input[type="button"].full-width {
|
||||
width: 100%;
|
||||
padding-left: 0 !important;
|
||||
padding-right: 0 !important;
|
||||
text-align: center; }
|
||||
|
||||
/* Fix for odd Mozilla border & padding issues */
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
.button i,
|
||||
button i,
|
||||
input[type="submit"] i,
|
||||
input[type="reset"] i,
|
||||
input[type="button"] i {
|
||||
font-size: 14px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
|
||||
/* #Forms
|
||||
================================================== */
|
||||
|
||||
form {
|
||||
margin-bottom: 10px; }
|
||||
fieldset {
|
||||
margin-bottom: 20px; }
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="email"],
|
||||
textarea,
|
||||
select {
|
||||
border: 1px solid #ccc;
|
||||
padding: 6px 4px;
|
||||
outline: none;
|
||||
-moz-border-radius: 2px;
|
||||
-webkit-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #777;
|
||||
margin: 0;
|
||||
width: 210px;
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
margin-bottom: 20px;
|
||||
background: #fff; }
|
||||
|
||||
select {
|
||||
padding: 0; }
|
||||
input[type="text"]:focus,
|
||||
input[type="password"]:focus,
|
||||
input[type="email"]:focus,
|
||||
textarea:focus {
|
||||
border: 1px solid #aaa;
|
||||
color: #444;
|
||||
-moz-box-shadow: 0 0 3px rgba(0,0,0,.2);
|
||||
-webkit-box-shadow: 0 0 3px rgba(0,0,0,.2);
|
||||
box-shadow: 0 0 3px rgba(0,0,0,.2); }
|
||||
textarea {
|
||||
min-height: 60px; }
|
||||
label,
|
||||
legend {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
font-size: 13px; }
|
||||
select {
|
||||
width: 220px; }
|
||||
input[type="checkbox"] {
|
||||
display: inline; }
|
||||
label span,
|
||||
legend span {
|
||||
font-weight: normal;
|
||||
font-size: 13px;
|
||||
color: #444; }
|
||||
|
||||
/* #Misc
|
||||
================================================== */
|
||||
.remove-bottom { margin-bottom: 0 !important; }
|
||||
.half-bottom { margin-bottom: 10px !important; }
|
||||
.add-bottom { margin-bottom: 20px !important; }
|
||||
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
Colorbox Core Style:
|
||||
The following CSS is consistent between example themes and should not be altered.
|
||||
*/
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||
#cboxContent{position:relative;}
|
||||
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
||||
#cboxTitle{margin:0;}
|
||||
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
||||
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||
|
||||
/*
|
||||
User Style:
|
||||
Change the following styles to modify the appearance of Colorbox. They are
|
||||
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||
*/
|
||||
#cboxOverlay{background:url(images/overlay.png) repeat 0 0;}
|
||||
#colorbox{outline:0;}
|
||||
#cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px 0;}
|
||||
#cboxTopRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px 0;}
|
||||
#cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px -29px;}
|
||||
#cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px -29px;}
|
||||
#cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;}
|
||||
#cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;}
|
||||
#cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;}
|
||||
#cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;}
|
||||
#cboxContent{background:#fff; overflow:hidden;}
|
||||
.cboxIframe{background:#fff;}
|
||||
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||
#cboxLoadedContent{margin-bottom:28px;}
|
||||
#cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
|
||||
#cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
|
||||
#cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
|
||||
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||
|
||||
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
||||
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
|
||||
|
||||
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
||||
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
||||
|
||||
#cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
|
||||
#cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||
#cboxPrevious:hover{background-position:-75px -25px;}
|
||||
#cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||
#cboxNext:hover{background-position:-50px -25px;}
|
||||
#cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||
#cboxClose:hover{background-position:-25px -25px;}
|
||||
|
||||
/*
|
||||
The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
|
||||
when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
|
||||
See: http://jacklmoore.com/notes/ie-transparency-problems/
|
||||
*/
|
||||
.cboxIE #cboxTopLeft,
|
||||
.cboxIE #cboxTopCenter,
|
||||
.cboxIE #cboxTopRight,
|
||||
.cboxIE #cboxBottomLeft,
|
||||
.cboxIE #cboxBottomCenter,
|
||||
.cboxIE #cboxBottomRight,
|
||||
.cboxIE #cboxMiddleLeft,
|
||||
.cboxIE #cboxMiddleRight {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
|
||||
Zebra_DatePicker: a lightweight jQuery date picker plugin
|
||||
|
||||
Default theme
|
||||
|
||||
copyright (c) 2011 - 2013 Stefan Gabos
|
||||
http://stefangabos.ro/jquery/zebra-datepicker/
|
||||
|
||||
*/
|
||||
|
||||
.Zebra_DatePicker *,
|
||||
.Zebra_DatePicker *:after,
|
||||
.Zebra_DatePicker *:before { -moz-box-sizing: content-box !important; -webkit-box-sizing: content-box !important; box-sizing: content-box !important }
|
||||
|
||||
.Zebra_DatePicker { position: absolute; background: #666; border: 3px solid #666; display: none; z-index: 100; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px }
|
||||
|
||||
.Zebra_DatePicker * { margin: 0; padding: 0; color: #000; background: transparent; border: none }
|
||||
|
||||
/* = GLOBALS
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
.Zebra_DatePicker table { border-collapse: collapse; border-spacing: 0 }
|
||||
|
||||
.Zebra_DatePicker td,
|
||||
.Zebra_DatePicker th { text-align: center; padding: 5px 0 }
|
||||
|
||||
.Zebra_DatePicker td { cursor: pointer }
|
||||
|
||||
.Zebra_DatePicker .dp_daypicker,
|
||||
.Zebra_DatePicker .dp_monthpicker,
|
||||
.Zebra_DatePicker .dp_yearpicker { margin-top: 3px }
|
||||
|
||||
.Zebra_DatePicker .dp_daypicker td,
|
||||
.Zebra_DatePicker .dp_daypicker th,
|
||||
.Zebra_DatePicker .dp_monthpicker td,
|
||||
.Zebra_DatePicker .dp_yearpicker td { background: #E8E8E8; width: 30px; border: 1px solid #7BACD2 }
|
||||
|
||||
.Zebra_DatePicker,
|
||||
.Zebra_DatePicker .dp_header .dp_hover,
|
||||
.Zebra_DatePicker .dp_footer .dp_hover { -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px }
|
||||
|
||||
/* = HEADER
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
.Zebra_DatePicker .dp_header td { color: #FFF }
|
||||
|
||||
.Zebra_DatePicker .dp_header .dp_previous,
|
||||
.Zebra_DatePicker .dp_header .dp_next { width: 30px }
|
||||
|
||||
.Zebra_DatePicker .dp_header .dp_caption { font-weight: bold }
|
||||
.Zebra_DatePicker .dp_header .dp_hover { background: #222; color: #FFF }
|
||||
.Zebra_DatePicker .dp_header .dp_blocked { color: #888; cursor: default }
|
||||
|
||||
/* = DATEPICKER
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
.Zebra_DatePicker .dp_daypicker th { background: #FFCC33 }
|
||||
.Zebra_DatePicker td.dp_not_in_month { background: #F3F3F3; color: #CDCDCD; cursor: default }
|
||||
.Zebra_DatePicker td.dp_not_in_month_selectable { background: #F3F3F3; color: #CDCDCD; cursor: pointer }
|
||||
.Zebra_DatePicker td.dp_weekend { background: #D8D8D8 }
|
||||
.Zebra_DatePicker td.dp_weekend_disabled { color: #CCC; cursor: default }
|
||||
.Zebra_DatePicker td.dp_selected { background: #5A4B4B; color: #FFF !important }
|
||||
.Zebra_DatePicker td.dp_week_number { background: #FFCC33; color: #555; cursor: text; font-style: italic }
|
||||
|
||||
/* = MONTHPICKER
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
.Zebra_DatePicker .dp_monthpicker td { width: 33% }
|
||||
|
||||
/* = YEARPICKER
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
.Zebra_DatePicker .dp_yearpicker td { width: 33% }
|
||||
|
||||
/* = FOOTER
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
.Zebra_DatePicker .dp_footer { margin-top: 3px }
|
||||
.Zebra_DatePicker .dp_footer .dp_hover { background: #222; color: #FFF }
|
||||
|
||||
/* = SELECT CURRENT DAY
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
.Zebra_DatePicker .dp_today { color: #FFF; padding: 3px }
|
||||
|
||||
/* = CLEAR DATE
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
.Zebra_DatePicker .dp_clear { color: #FFF; padding: 3px }
|
||||
|
||||
/* = SOME MORE GLOBALS (MUST BE LAST IN ORDER TO OVERWRITE PREVIOUS PROPERTIES)
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
.Zebra_DatePicker td.dp_current { color: #C40000 }
|
||||
.Zebra_DatePicker td.dp_disabled_current { color: #E38585 }
|
||||
.Zebra_DatePicker td.dp_disabled { background: #F3F3F3; color: #CDCDCD; cursor: default }
|
||||
.Zebra_DatePicker td.dp_hover { background: #482424; color: #FFF }
|
||||
|
||||
/* = ICON
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
button.Zebra_DatePicker_Icon { display: block; position: absolute; width: 16px; height: 16px; background: url('calendar.png') no-repeat left top; text-indent: -9000px; border: none; cursor: pointer; padding: 0; line-height: 0; vertical-align: top }
|
||||
button.Zebra_DatePicker_Icon_Disabled { background-image: url('calendar-disabled.png') }
|
||||
|
||||
/* don't set vertical margins! */
|
||||
button.Zebra_DatePicker_Icon { margin: 0 0 0 3px }
|
||||
button.Zebra_DatePicker_Icon_Inside { margin: 0 3px 0 0 }
|
||||
Vendored
+384
@@ -0,0 +1,384 @@
|
||||
.icon-large{font-size:1.3333333333333333em;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px;vertical-align:middle;}
|
||||
.nav [class^="icon-"],.nav [class*=" icon-"]{vertical-align:inherit;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px;}.nav [class^="icon-"].icon-large,.nav [class*=" icon-"].icon-large{vertical-align:-25%;}
|
||||
.nav-pills [class^="icon-"].icon-large,.nav-tabs [class^="icon-"].icon-large,.nav-pills [class*=" icon-"].icon-large,.nav-tabs [class*=" icon-"].icon-large{line-height:.75em;margin-top:-7px;padding-top:5px;margin-bottom:-5px;padding-bottom:4px;}
|
||||
.btn [class^="icon-"].pull-left,.btn [class*=" icon-"].pull-left,.btn [class^="icon-"].pull-right,.btn [class*=" icon-"].pull-right{vertical-align:inherit;}
|
||||
.btn [class^="icon-"].icon-large,.btn [class*=" icon-"].icon-large{margin-top:-0.5em;}
|
||||
a [class^="icon-"],a [class*=" icon-"]{cursor:pointer;}
|
||||
.icon-glass{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-music{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-search{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-envelope-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-heart{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-star{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-star-empty{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-user{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-film{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-th-large{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-th{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-th-list{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-ok{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-remove{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-zoom-in{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-zoom-out{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-off{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-power-off{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-signal{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-cog{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-gear{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-trash{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-home{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-file-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-time{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-road{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-download-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-download{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-upload{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-inbox{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-play-circle{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-repeat{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-rotate-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-refresh{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-list-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-lock{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-flag{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-headphones{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-volume-off{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-volume-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-volume-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-qrcode{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-barcode{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-tag{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-tags{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-book{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bookmark{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-print{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-camera{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-font{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bold{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-italic{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-text-height{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-text-width{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-align-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-align-center{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-align-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-align-justify{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-list{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-indent-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-indent-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-facetime-video{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-picture{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-pencil{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-map-marker{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-adjust{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-tint{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-edit{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-share{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-check{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-move{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-step-backward{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-fast-backward{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-backward{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-play{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-pause{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-stop{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-forward{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-fast-forward{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-step-forward{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-eject{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-chevron-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-chevron-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-plus-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-minus-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-remove-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-ok-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-question-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-info-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-screenshot{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-remove-circle{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-ok-circle{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-ban-circle{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-arrow-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-arrow-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-arrow-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-arrow-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-share-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-mail-forward{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-resize-full{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-resize-small{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-plus{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-minus{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-asterisk{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-exclamation-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-gift{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-leaf{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-fire{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-eye-open{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-eye-close{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-warning-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-plane{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-calendar{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-random{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-comment{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-magnet{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-chevron-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-chevron-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-retweet{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-shopping-cart{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-folder-close{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-folder-open{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-resize-vertical{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-resize-horizontal{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bar-chart{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-twitter-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-facebook-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-camera-retro{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-key{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-cogs{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-gears{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-comments{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-thumbs-up-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-thumbs-down-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-star-half{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-heart-empty{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-signout{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-linkedin-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-pushpin{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-external-link{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-signin{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-trophy{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-github-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-upload-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-lemon{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-phone{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-check-empty{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-unchecked{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bookmark-empty{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-phone-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-twitter{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-facebook{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-github{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-unlock{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-credit-card{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-rss{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-hdd{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bullhorn{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bell{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-certificate{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-hand-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-hand-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-hand-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-hand-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-circle-arrow-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-circle-arrow-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-circle-arrow-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-circle-arrow-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-globe{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-wrench{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-tasks{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-filter{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-briefcase{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-fullscreen{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-group{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-link{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-cloud{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-beaker{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-cut{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-copy{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-paper-clip{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-paperclip{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-save{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sign-blank{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-reorder{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-list-ul{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-list-ol{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-strikethrough{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-underline{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-table{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-magic{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-truck{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-pinterest{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-pinterest-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-google-plus-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-google-plus{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-money{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-caret-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-caret-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-caret-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-caret-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-columns{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sort{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sort-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sort-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-envelope{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-linkedin{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-undo{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-rotate-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-legal{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-dashboard{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-comment-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-comments-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bolt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sitemap{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-umbrella{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-paste{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-lightbulb{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-exchange{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-cloud-download{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-cloud-upload{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-user-md{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-stethoscope{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-suitcase{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bell-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-coffee{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-food{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-file-text-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-building{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-hospital{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-ambulance{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-medkit{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-fighter-jet{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-beer{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-h-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-plus-sign-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-double-angle-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-double-angle-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-double-angle-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-double-angle-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-angle-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-angle-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-angle-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-angle-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-desktop{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-laptop{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-tablet{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-mobile-phone{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-circle-blank{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-quote-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-quote-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-spinner{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-circle{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-reply{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-mail-reply{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-github-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-folder-close-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-folder-open-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-expand-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-collapse-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-smile{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-frown{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-meh{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-gamepad{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-keyboard{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-flag-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-flag-checkered{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-terminal{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-code{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-reply-all{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-mail-reply-all{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-star-half-empty{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-star-half-full{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-location-arrow{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-crop{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-code-fork{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-unlink{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-question{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-info{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-exclamation{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-superscript{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-subscript{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-eraser{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-puzzle-piece{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-microphone{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-microphone-off{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-shield{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-calendar-empty{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-fire-extinguisher{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-rocket{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-maxcdn{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-chevron-sign-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-chevron-sign-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-chevron-sign-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-chevron-sign-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-html5{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-css3{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-anchor{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-unlock-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bullseye{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-ellipsis-horizontal{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-ellipsis-vertical{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-rss-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-play-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-ticket{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-minus-sign-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-check-minus{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-level-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-level-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-check-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-edit-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-external-link-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-share-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-compass{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-collapse{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-collapse-top{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-expand{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-eur{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-euro{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-gbp{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-usd{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-dollar{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-inr{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-rupee{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-jpy{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-yen{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-cny{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-renminbi{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-krw{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-won{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-btc{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bitcoin{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-file{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-file-text{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sort-by-alphabet{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sort-by-alphabet-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sort-by-attributes{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sort-by-attributes-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sort-by-order{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sort-by-order-alt{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-thumbs-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-thumbs-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-youtube-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-youtube{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-xing{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-xing-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-youtube-play{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-dropbox{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-stackexchange{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-instagram{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-flickr{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-adn{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bitbucket{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bitbucket-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-tumblr{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-tumblr-sign{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-long-arrow-down{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-long-arrow-up{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-long-arrow-left{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-long-arrow-right{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-apple{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-windows{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-android{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-linux{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-dribbble{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-skype{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-foursquare{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-trello{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-female{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-male{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-gittip{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-sun{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-moon{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-archive{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-bug{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-vk{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-weibo{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
.icon-renren{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');}
|
||||
Vendored
+1672
File diff suppressed because it is too large
Load Diff
Vendored
+4
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 112 B |
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 157 B |
Binary file not shown.
|
After Width: | Height: | Size: 182 B |
@@ -0,0 +1,87 @@
|
||||
.nav, .nav ul, .nav li {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.nav ul {
|
||||
padding: 0;
|
||||
margin: 0 0 0 4px;
|
||||
}
|
||||
|
||||
.nav {
|
||||
padding: 4px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.nav > li {
|
||||
margin: 0px 0;
|
||||
|
||||
}
|
||||
|
||||
.nav > li li {
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
color: #545a73;
|
||||
display: block;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.nav ul li a {
|
||||
border-bottom: 0px solid #ccc !important;
|
||||
}
|
||||
|
||||
.nav a .caret {
|
||||
float: right;
|
||||
width: 0;
|
||||
height: 0;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
border-top: 4px solid #b1b9d8;
|
||||
border-right: 4px solid transparent;
|
||||
border-left: 4px solid transparent;
|
||||
content: "";
|
||||
margin-top: 8px;
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.nav a:hover .caret {
|
||||
border-top-color: #2d334e;
|
||||
}
|
||||
|
||||
.nav li.open > a > .caret {
|
||||
border-top: none;
|
||||
border-bottom: 4px solid #2d334e;
|
||||
border-right: 4px solid transparent;
|
||||
border-left: 4px solid transparent;
|
||||
}
|
||||
|
||||
.nav li.open > a:hover > .caret {
|
||||
border-bottom-color: #545a73;
|
||||
}
|
||||
|
||||
.nav a:hover, .nav li.active > a {
|
||||
background-color: #fff;
|
||||
color: #2d334e;
|
||||
}
|
||||
|
||||
.nav > li.active > a {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.nav li a {
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
padding: 5px 6px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.nav > li > a {
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
padding: 4px 10px 4px 0px;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Skeleton V1.2
|
||||
* Copyright 2011, Dave Gamache
|
||||
* www.getskeleton.com
|
||||
* Free to use under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* 6/20/2012
|
||||
*/
|
||||
|
||||
/* Table of Content
|
||||
==================================================
|
||||
#Site Styles
|
||||
#Page Styles
|
||||
#Media Queries
|
||||
#Font-Face */
|
||||
|
||||
/* #Site Styles
|
||||
================================================== */
|
||||
|
||||
/* #Page Styles
|
||||
================================================== */
|
||||
|
||||
/* #Media Queries
|
||||
================================================== */
|
||||
|
||||
/* Smaller than standard 960 (devices and browsers) */
|
||||
@media only screen and (max-width: 959px) {}
|
||||
|
||||
/* Tablet Portrait size to standard 960 (devices and browsers) */
|
||||
@media only screen and (min-width: 768px) and (max-width: 959px) {}
|
||||
|
||||
/* All Mobile Sizes (devices and browser) */
|
||||
@media only screen and (max-width: 767px) {}
|
||||
|
||||
/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
|
||||
@media only screen and (min-width: 480px) and (max-width: 767px) {}
|
||||
|
||||
/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
|
||||
@media only screen and (max-width: 479px) {}
|
||||
|
||||
|
||||
/* #Font-Face
|
||||
================================================== */
|
||||
/* This is the proper syntax for an @font-face file
|
||||
Just create a "fonts" folder at the root,
|
||||
copy your FontName into code below and remove
|
||||
comment brackets */
|
||||
|
||||
/* @font-face {
|
||||
font-family: 'FontName';
|
||||
src: url('../fonts/FontName.eot');
|
||||
src: url('../fonts/FontName.eot?iefix') format('eot'),
|
||||
url('../fonts/FontName.woff') format('woff'),
|
||||
url('../fonts/FontName.ttf') format('truetype'),
|
||||
url('../fonts/FontName.svg#webfontZam02nTh') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal; }
|
||||
*/
|
||||
File diff suppressed because it is too large
Load Diff
+2099
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* jQuery Nivo Slider v3.2
|
||||
* http://nivo.dev7studios.com
|
||||
*
|
||||
* Copyright 2012, Dev7studios
|
||||
* Free to use and abuse under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/* The Nivo Slider styles */
|
||||
.nivoSlider {
|
||||
position:relative;
|
||||
width:100%;
|
||||
height:auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
.nivoSlider img {
|
||||
position:absolute;
|
||||
top:0px;
|
||||
left:0px;
|
||||
max-width: none;
|
||||
}
|
||||
.nivo-main-image {
|
||||
display: block !important;
|
||||
position: relative !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
/* If an image is wrapped in a link */
|
||||
.nivoSlider a.nivo-imageLink {
|
||||
position:absolute;
|
||||
top:0px;
|
||||
left:0px;
|
||||
width:100%;
|
||||
height:100%;
|
||||
border:0;
|
||||
padding:0;
|
||||
margin:0;
|
||||
z-index:6;
|
||||
display:none;
|
||||
background:white;
|
||||
filter:alpha(opacity=0);
|
||||
opacity:0;
|
||||
}
|
||||
/* The slices and boxes in the Slider */
|
||||
.nivo-slice {
|
||||
display:block;
|
||||
position:absolute;
|
||||
z-index:5;
|
||||
height:100%;
|
||||
top:0;
|
||||
}
|
||||
.nivo-box {
|
||||
display:block;
|
||||
position:absolute;
|
||||
z-index:5;
|
||||
overflow:hidden;
|
||||
}
|
||||
.nivo-box img { display:block; }
|
||||
|
||||
/* Caption styles */
|
||||
.nivo-caption {
|
||||
position:absolute;
|
||||
left:0px;
|
||||
bottom:0px;
|
||||
background:#000;
|
||||
color:#fff;
|
||||
width:100%;
|
||||
z-index:8;
|
||||
padding: 5px 10px;
|
||||
opacity: 0.8;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
-moz-opacity: 0.8;
|
||||
filter:alpha(opacity=8);
|
||||
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
|
||||
-moz-box-sizing: border-box; /* Firefox, other Gecko */
|
||||
box-sizing: border-box; /* Opera/IE 8+ */
|
||||
}
|
||||
.nivo-caption p {
|
||||
padding:5px;
|
||||
margin:0;
|
||||
}
|
||||
.nivo-caption a {
|
||||
display:inline !important;
|
||||
}
|
||||
.nivo-html-caption {
|
||||
display:none;
|
||||
}
|
||||
/* Direction nav styles (e.g. Next & Prev) */
|
||||
.nivo-directionNav a {
|
||||
position:absolute;
|
||||
top:45%;
|
||||
z-index:9;
|
||||
cursor:pointer;
|
||||
}
|
||||
.nivo-prevNav {
|
||||
left:0px;
|
||||
}
|
||||
.nivo-nextNav {
|
||||
right:0px;
|
||||
}
|
||||
/* Control nav styles (e.g. 1,2,3...) */
|
||||
.nivo-controlNav {
|
||||
text-align:center;
|
||||
padding: 15px 0;
|
||||
}
|
||||
.nivo-controlNav a {
|
||||
cursor:pointer;
|
||||
}
|
||||
.nivo-controlNav a.active {
|
||||
font-weight:bold;
|
||||
}
|
||||
Vendored
+242
@@ -0,0 +1,242 @@
|
||||
/*
|
||||
* Skeleton V1.2
|
||||
* Copyright 2011, Dave Gamache
|
||||
* www.getskeleton.com
|
||||
* Free to use under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* 6/20/2012
|
||||
*/
|
||||
|
||||
|
||||
/* Table of Contents
|
||||
==================================================
|
||||
#Base 960 Grid
|
||||
#Tablet (Portrait)
|
||||
#Mobile (Portrait)
|
||||
#Mobile (Landscape)
|
||||
#Clearing */
|
||||
|
||||
|
||||
|
||||
/* #Base 960 Grid
|
||||
================================================== */
|
||||
|
||||
.container { position: relative; width: 960px; margin: 0 auto; padding: 0; }
|
||||
.container .column,
|
||||
.container .columns { float: left; display: inline; margin-left: 10px; margin-right: 10px; }
|
||||
.row { margin-bottom: 20px; }
|
||||
|
||||
/* Nested Column Classes */
|
||||
.column.alpha, .columns.alpha { margin-left: 0; }
|
||||
.column.omega, .columns.omega { margin-right: 0; }
|
||||
|
||||
/* Base Grid */
|
||||
.container .one.column,
|
||||
.container .one.columns { width: 40px; }
|
||||
.container .two.columns { width: 100px; }
|
||||
.container .three.columns { width: 160px; }
|
||||
.container .four.columns { width: 220px; }
|
||||
.container .five.columns { width: 280px; }
|
||||
.container .six.columns { width: 340px; }
|
||||
.container .seven.columns { width: 400px; }
|
||||
.container .eight.columns { width: 460px; }
|
||||
.container .nine.columns { width: 520px; }
|
||||
.container .ten.columns { width: 580px; }
|
||||
.container .eleven.columns { width: 640px; }
|
||||
.container .twelve.columns { width: 700px; }
|
||||
.container .thirteen.columns { width: 760px; }
|
||||
.container .fourteen.columns { width: 820px; }
|
||||
.container .fifteen.columns { width: 880px; }
|
||||
.container .sixteen.columns { width: 940px; }
|
||||
|
||||
.container .one-third.column { width: 300px; }
|
||||
.container .two-thirds.column { width: 620px; }
|
||||
|
||||
/* Offsets */
|
||||
.container .offset-by-one { padding-left: 60px; }
|
||||
.container .offset-by-two { padding-left: 120px; }
|
||||
.container .offset-by-three { padding-left: 180px; }
|
||||
.container .offset-by-four { padding-left: 240px; }
|
||||
.container .offset-by-five { padding-left: 300px; }
|
||||
.container .offset-by-six { padding-left: 360px; }
|
||||
.container .offset-by-seven { padding-left: 420px; }
|
||||
.container .offset-by-eight { padding-left: 480px; }
|
||||
.container .offset-by-nine { padding-left: 540px; }
|
||||
.container .offset-by-ten { padding-left: 600px; }
|
||||
.container .offset-by-eleven { padding-left: 660px; }
|
||||
.container .offset-by-twelve { padding-left: 720px; }
|
||||
.container .offset-by-thirteen { padding-left: 780px; }
|
||||
.container .offset-by-fourteen { padding-left: 840px; }
|
||||
.container .offset-by-fifteen { padding-left: 900px; }
|
||||
|
||||
|
||||
|
||||
/* #Tablet (Portrait)
|
||||
================================================== */
|
||||
|
||||
/* Note: Design for a width of 768px */
|
||||
|
||||
@media only screen and (min-width: 768px) and (max-width: 959px) {
|
||||
.container { width: 768px; }
|
||||
.container .column,
|
||||
.container .columns { margin-left: 10px; margin-right: 10px; }
|
||||
.column.alpha, .columns.alpha { margin-left: 0; margin-right: 10px; }
|
||||
.column.omega, .columns.omega { margin-right: 0; margin-left: 10px; }
|
||||
.alpha.omega { margin-left: 0; margin-right: 0; }
|
||||
|
||||
.container .one.column,
|
||||
.container .one.columns { width: 28px; }
|
||||
.container .two.columns { width: 76px; }
|
||||
.container .three.columns { width: 124px; }
|
||||
.container .four.columns { width: 172px; }
|
||||
.container .five.columns { width: 220px; }
|
||||
.container .six.columns { width: 268px; }
|
||||
.container .seven.columns { width: 316px; }
|
||||
.container .eight.columns { width: 364px; }
|
||||
.container .nine.columns { width: 412px; }
|
||||
.container .ten.columns { width: 460px; }
|
||||
.container .eleven.columns { width: 508px; }
|
||||
.container .twelve.columns { width: 556px; }
|
||||
.container .thirteen.columns { width: 604px; }
|
||||
.container .fourteen.columns { width: 652px; }
|
||||
.container .fifteen.columns { width: 700px; }
|
||||
.container .sixteen.columns { width: 748px; }
|
||||
|
||||
.container .one-third.column { width: 236px; }
|
||||
.container .two-thirds.column { width: 492px; }
|
||||
|
||||
/* Offsets */
|
||||
.container .offset-by-one { padding-left: 48px; }
|
||||
.container .offset-by-two { padding-left: 96px; }
|
||||
.container .offset-by-three { padding-left: 144px; }
|
||||
.container .offset-by-four { padding-left: 192px; }
|
||||
.container .offset-by-five { padding-left: 240px; }
|
||||
.container .offset-by-six { padding-left: 288px; }
|
||||
.container .offset-by-seven { padding-left: 336px; }
|
||||
.container .offset-by-eight { padding-left: 384px; }
|
||||
.container .offset-by-nine { padding-left: 432px; }
|
||||
.container .offset-by-ten { padding-left: 480px; }
|
||||
.container .offset-by-eleven { padding-left: 528px; }
|
||||
.container .offset-by-twelve { padding-left: 576px; }
|
||||
.container .offset-by-thirteen { padding-left: 624px; }
|
||||
.container .offset-by-fourteen { padding-left: 672px; }
|
||||
.container .offset-by-fifteen { padding-left: 720px; }
|
||||
}
|
||||
|
||||
|
||||
/* #Mobile (Portrait)
|
||||
================================================== */
|
||||
|
||||
/* Note: Design for a width of 320px */
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
.container { width: 300px; }
|
||||
.container .columns,
|
||||
.container .column { margin: 0; }
|
||||
|
||||
.container .one.column,
|
||||
.container .one.columns,
|
||||
.container .two.columns,
|
||||
.container .three.columns,
|
||||
.container .four.columns,
|
||||
.container .five.columns,
|
||||
.container .six.columns,
|
||||
.container .seven.columns,
|
||||
.container .eight.columns,
|
||||
.container .nine.columns,
|
||||
.container .ten.columns,
|
||||
.container .eleven.columns,
|
||||
.container .twelve.columns,
|
||||
.container .thirteen.columns,
|
||||
.container .fourteen.columns,
|
||||
.container .fifteen.columns,
|
||||
.container .sixteen.columns,
|
||||
.container .one-third.column,
|
||||
.container .two-thirds.column { width: 300px; }
|
||||
|
||||
/* Offsets */
|
||||
.container .offset-by-one,
|
||||
.container .offset-by-two,
|
||||
.container .offset-by-three,
|
||||
.container .offset-by-four,
|
||||
.container .offset-by-five,
|
||||
.container .offset-by-six,
|
||||
.container .offset-by-seven,
|
||||
.container .offset-by-eight,
|
||||
.container .offset-by-nine,
|
||||
.container .offset-by-ten,
|
||||
.container .offset-by-eleven,
|
||||
.container .offset-by-twelve,
|
||||
.container .offset-by-thirteen,
|
||||
.container .offset-by-fourteen,
|
||||
.container .offset-by-fifteen { padding-left: 0; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* #Mobile (Landscape)
|
||||
================================================== */
|
||||
|
||||
/* Note: Design for a width of 480px */
|
||||
|
||||
@media only screen and (min-width: 480px) and (max-width: 767px) {
|
||||
.container { width: 420px; }
|
||||
.container .columns,
|
||||
.container .column { margin: 0; }
|
||||
|
||||
.container .one.column,
|
||||
.container .one.columns,
|
||||
.container .two.columns,
|
||||
.container .three.columns,
|
||||
.container .four.columns,
|
||||
.container .five.columns,
|
||||
.container .six.columns,
|
||||
.container .seven.columns,
|
||||
.container .eight.columns,
|
||||
.container .nine.columns,
|
||||
.container .ten.columns,
|
||||
.container .eleven.columns,
|
||||
.container .twelve.columns,
|
||||
.container .thirteen.columns,
|
||||
.container .fourteen.columns,
|
||||
.container .fifteen.columns,
|
||||
.container .sixteen.columns,
|
||||
.container .one-third.column,
|
||||
.container .two-thirds.column { width: 420px; }
|
||||
}
|
||||
|
||||
|
||||
/* #Clearing
|
||||
================================================== */
|
||||
|
||||
/* Self Clearing Goodness */
|
||||
.container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }
|
||||
|
||||
/* Use clearfix class on parent to clear nested columns,
|
||||
or wrap each row of columns in a <div class="row"> */
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.row:before,
|
||||
.row:after {
|
||||
content: '\0020';
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
height: 0; }
|
||||
.row:after,
|
||||
.clearfix:after {
|
||||
clear: both; }
|
||||
.row,
|
||||
.clearfix {
|
||||
zoom: 1; }
|
||||
|
||||
/* You can also use a <br class="clear" /> to clear columns */
|
||||
.clear {
|
||||
clear: both;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/* SmartMenus Core CSS (it's not recommended editing this)
|
||||
===============================================================*/
|
||||
|
||||
.sm,.sm ul,.sm li{display:block;list-style:none;padding:0;margin:0;line-height:normal;direction:ltr;}
|
||||
ul.sm li{position:relative;}
|
||||
ul.sm a{position:relative;display:block;}
|
||||
ul.sm a.disabled{cursor:default;}
|
||||
ul.sm ul{position:absolute;top:-999999px;left:-800px;width:100px;}
|
||||
ul.sm li{float:left;}
|
||||
ul.sm-rtl{direction:rtl;}
|
||||
ul.sm-rtl li{float:right;}
|
||||
ul.sm ul li,ul.sm-vertical li{float:none;}
|
||||
ul.sm a{white-space:nowrap;}
|
||||
ul.sm ul a,ul.sm-vertical a{white-space:normal;}
|
||||
* html ul.sm-vertical li{float:left;width:100%;}
|
||||
* html ul.sm-vertical ul li{float:none;width:auto;}
|
||||
*:first-child+html ul.sm-vertical>li{float:left;width:100%;}
|
||||
ul.sm ul.sm-nowrap>li>a{white-space:nowrap;}
|
||||
ul.sm:after{content:"\00a0";display:block;height:0;font:0/0 serif;clear:both;visibility:hidden;overflow:hidden;}
|
||||
* html ul.sm{height:1px;}
|
||||
*:first-child+html ul.sm{min-height:1px;}
|
||||
ul.sm{-webkit-tap-highlight-color:rgba(0,0,0,0);}
|
||||
@@ -0,0 +1,408 @@
|
||||
/*
|
||||
---------------------------------------------------------------
|
||||
Note that styles you apply to the main menu items are inherited by the sub menus items too.
|
||||
If you'd like to avoid this, you could use child selectors (not supported by IE6) - for example:
|
||||
.sm-grey > li > a { ... } instead of .sm-grey a { ... }
|
||||
---------------------------------------------------------------*/
|
||||
|
||||
|
||||
/* Menu box
|
||||
===================*/
|
||||
|
||||
|
||||
.sm-grey {
|
||||
|
||||
}
|
||||
|
||||
.sm-grey ul {
|
||||
background:#fff;
|
||||
border: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
.sm-grey ul a {
|
||||
color: #4c75ad;
|
||||
}
|
||||
|
||||
.sm-grey ul a:hover {
|
||||
color: #333;
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
.sm-grey ul a.current,
|
||||
.sm-grey ul a.current:hover {
|
||||
color: #000;
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
|
||||
/* Menu items
|
||||
===================*/
|
||||
|
||||
.sm-grey a {
|
||||
padding:11px 20px;
|
||||
color:#fff;
|
||||
font-size:14px;
|
||||
line-height:17px;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
.sm-grey a i {
|
||||
margin-right: 6px;
|
||||
color: #698CA8;
|
||||
font-size: 14px;
|
||||
}
|
||||
.sm-grey a.current i {
|
||||
margin: 0px;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.sm-grey li {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.sm-grey a:hover, .sm-grey a:focus, .sm-grey a:active,
|
||||
.sm-grey a.highlighted {
|
||||
background:#114773;
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
/* current items - add the class manually to some item or check the "markCurrentItem" script option */
|
||||
.sm-grey a.current, .sm-grey a.current:hover, .sm-grey a.current:focus, .sm-grey a.current:active {
|
||||
background: #114773; /* Old browsers */
|
||||
color:#fff;
|
||||
font-size:14px;
|
||||
line-height:17px;
|
||||
}
|
||||
|
||||
.sm-grey a.has-submenu {
|
||||
padding-right:32px;
|
||||
}
|
||||
|
||||
.sm-grey ul a.has-submenu,
|
||||
.sm-grey-vertical a.has-submenu {
|
||||
padding-right:23px;
|
||||
}
|
||||
|
||||
|
||||
/* Sub menu indicators
|
||||
===================*/
|
||||
|
||||
.sm-grey a span.sub-arrow {
|
||||
position:absolute;
|
||||
right:12px;
|
||||
top:50%;
|
||||
margin-top:-3px;
|
||||
/* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */
|
||||
width:0;
|
||||
height:0;
|
||||
overflow:hidden;
|
||||
border-width:4px; /* tweak size of the arrow */
|
||||
border-style:solid dashed dashed dashed;
|
||||
border-color:#fff transparent transparent transparent;
|
||||
}
|
||||
|
||||
.sm-grey-vertical a span.sub-arrow,
|
||||
.sm-grey ul a span.sub-arrow {
|
||||
right:15px;
|
||||
top:50%;
|
||||
margin-top:-5px;
|
||||
border-width:4px;
|
||||
border-style:dashed dashed dashed solid;
|
||||
border-color:transparent transparent transparent #888;
|
||||
}
|
||||
|
||||
.sm-grey a:hover span.sub-arrow {
|
||||
border-width:4px; /* tweak size of the arrow */
|
||||
border-style:solid dashed dashed dashed;
|
||||
border-color:#fff transparent transparent transparent;
|
||||
}
|
||||
|
||||
.sm-grey-vertical a:hover span.sub-arrow,
|
||||
.sm-grey ul a:hover span.sub-arrow {
|
||||
border-width:4px;
|
||||
border-style:dashed dashed dashed solid;
|
||||
border-color:transparent transparent transparent #fff;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Items separators
|
||||
===================*/
|
||||
|
||||
.sm-grey li {
|
||||
border-left:0px solid #d9d9d9;
|
||||
}
|
||||
.sm-grey li:first-child {
|
||||
border-left:0;
|
||||
}
|
||||
.sm-grey ul li,
|
||||
.sm-grey-vertical li {
|
||||
border-left:0;
|
||||
border-top:1px solid #d9d9d9;
|
||||
}
|
||||
.sm-grey ul li:first-child,
|
||||
.sm-grey-vertical li:first-child {
|
||||
border-top:0;
|
||||
}
|
||||
|
||||
|
||||
/* Scrolling arrows containers for tall sub menus - test sub menu: "Sub test" -> "more..." -> "more..." in the default download package
|
||||
===================*/
|
||||
|
||||
.sm-grey span.scroll-up, .sm-grey span.scroll-down {
|
||||
position:absolute;
|
||||
display:none;
|
||||
visibility:hidden;
|
||||
overflow:hidden;
|
||||
border:solid #bbb;
|
||||
border-width:1px 0;
|
||||
background:#fff;
|
||||
height:20px;
|
||||
/* width and position will be automatically set by the script */
|
||||
}
|
||||
.sm-grey span.scroll-up-arrow, .sm-grey span.scroll-down-arrow {
|
||||
position:absolute;
|
||||
top:-2px;
|
||||
left:50%;
|
||||
margin-left:-8px;
|
||||
/* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */
|
||||
width:0;
|
||||
height:0;
|
||||
overflow:hidden;
|
||||
border-width:8px; /* tweak size of the arrow */
|
||||
border-style:dashed dashed solid dashed;
|
||||
border-color:transparent transparent #555 transparent;
|
||||
}
|
||||
.sm-grey span.scroll-down-arrow {
|
||||
top:6px;
|
||||
border-style:solid dashed dashed dashed;
|
||||
border-color:#555 transparent transparent transparent;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
---------------------------------------------------------------
|
||||
SEARCH
|
||||
---------------------------------------------------------------*/
|
||||
|
||||
.sm-grey .search {
|
||||
border-top:0;
|
||||
float: right;
|
||||
border: 0px;
|
||||
padding-top: 1px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
|
||||
.sm-grey form {
|
||||
margin: 4px 0px 0px 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.sm-grey fieldset {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.sm-grey input {
|
||||
font-size: 13px;
|
||||
border: 1px solid #ccc;
|
||||
padding: 6px 4px;
|
||||
outline: none;
|
||||
-moz-border-radius: 2px;
|
||||
-webkit-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
color: #777;
|
||||
width: 150px;
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
margin: 0px;
|
||||
margin-left: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
|
||||
.button,
|
||||
button,
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"] {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
/*
|
||||
---------------------------------------------------------------
|
||||
Responsiveness
|
||||
These will make the sub menus collapsible when the screen width is too small.
|
||||
---------------------------------------------------------------*/
|
||||
|
||||
@media screen and (min-width: 767px) and (max-width: 960px) {
|
||||
|
||||
.sm-grey input {
|
||||
width: 60px;
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
.sm-grey li:first-child a i {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.sm-grey a i {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sm-grey a.current i {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* #Mobile (Portrait)
|
||||
================================================== */
|
||||
|
||||
@media screen and (min-width: 320px) and (max-width: 767px) {
|
||||
|
||||
/* The following will make the sub menus collapsible for small screen devices (it's not recommended editing these) */
|
||||
ul.sm-grey{width:auto !important; border: 0px;}
|
||||
ul.sm-grey ul{display:none;position:static !important;top:auto !important;left:auto !important;margin-left:0 !important;margin-top:0 !important;width:auto !important;min-width:0 !important;max-width:none !important; }
|
||||
ul.sm-grey>li{float:none; border: 1px solid #306b9c;}
|
||||
ul.sm-grey>li>a,ul.sm-grey ul.sm-nowrap>li>a{white-space:normal;}
|
||||
ul.sm-grey iframe{display:none;}
|
||||
|
||||
/* Uncomment this rule to disable completely the sub menus for small screen devices */
|
||||
/*.sm-grey ul, .sm-grey span.sub-arrow, .sm-grey iframe {
|
||||
display:none !important;
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
/* Menu box
|
||||
===================*/
|
||||
|
||||
.sm-grey ul {
|
||||
border:0;
|
||||
/* darken the background of the sub menus */
|
||||
/*background:rgba(100,100,100,0.1);*/
|
||||
background-color: #fff;
|
||||
-moz-box-shadow:none;
|
||||
-webkit-box-shadow:none;
|
||||
box-shadow:none;
|
||||
border: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
|
||||
/* Menu items
|
||||
===================*/
|
||||
|
||||
.sm-grey a {
|
||||
padding-top:13px;
|
||||
padding-bottom:13px;
|
||||
/*background:transparent !important;*/
|
||||
color:#fff;
|
||||
background-color: #195586;
|
||||
}
|
||||
|
||||
.sm-grey ul {
|
||||
background:#fff;
|
||||
/*border: 1px solid #d9d9d9;*/
|
||||
}
|
||||
|
||||
.sm-grey ul a {
|
||||
color: #4c75ad;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.sm-grey ul a.current,
|
||||
.sm-grey ul a.current:hover {
|
||||
color: #000;
|
||||
background-color: #f8f8f8 !important;
|
||||
}
|
||||
|
||||
|
||||
.sm-grey a.current {
|
||||
color:#fff;
|
||||
background: #114773 !important; /* Old browsers */
|
||||
}
|
||||
|
||||
.sm-grey a.has-submenu {
|
||||
padding-right:23px;
|
||||
}
|
||||
/* add some text indentation for the 2+ level sub menu items */
|
||||
.sm-grey ul a {
|
||||
border-left:8px solid transparent;
|
||||
}
|
||||
.sm-grey ul ul a {
|
||||
border-left:16px solid transparent;
|
||||
}
|
||||
.sm-grey ul ul ul a {
|
||||
border-left:24px solid transparent;
|
||||
}
|
||||
.sm-grey ul ul ul ul a {
|
||||
border-left:32px solid transparent;
|
||||
}
|
||||
.sm-grey ul ul ul ul ul a {
|
||||
border-left:40px solid transparent;
|
||||
}
|
||||
|
||||
|
||||
/* Sub menu indicators
|
||||
===================*/
|
||||
|
||||
.sm-grey a span.sub-arrow {
|
||||
right:auto;
|
||||
margin-left:-14px;
|
||||
}
|
||||
/* Hide sub indicator when item is expanded - we enable the item link when it's expanded */
|
||||
.sm-grey a.highlighted span.sub-arrow {
|
||||
display:none !important;
|
||||
}
|
||||
|
||||
|
||||
/* Items separators
|
||||
===================*/
|
||||
|
||||
.sm-grey li {
|
||||
border-left:0;
|
||||
border-top:1px solid rgba(0,0,0,0.05) !important;
|
||||
}
|
||||
.sm-grey li:first-child {
|
||||
border-top:0 !important;
|
||||
border-left:1px solid #306b9c !important;
|
||||
}
|
||||
|
||||
.sm-grey ul li:first-child {
|
||||
border-top:0 !important;
|
||||
border-left:1px solid #ffffff !important;
|
||||
}
|
||||
|
||||
.sm-grey ul li {
|
||||
border-top:1px solid #d9d9d9 !important;
|
||||
}
|
||||
|
||||
.sm-grey .search {
|
||||
text-align: left !important;
|
||||
padding-left: 0px;
|
||||
margin: 10px 0px 10px 10px;
|
||||
border: 0px !important;
|
||||
float: none;
|
||||
}
|
||||
|
||||
.sm-grey .search form {
|
||||
text-align: left !important;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
.sm-grey input {
|
||||
width: 200px;
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
margin: 0px;
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,271 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7 ]>
|
||||
<html class="ie ie6" lang="en"> <![endif]-->
|
||||
<!--[if IE 7 ]>
|
||||
<html class="ie ie7" lang="en"> <![endif]-->
|
||||
<!--[if IE 8 ]>
|
||||
<html class="ie ie8" lang="en"> <![endif]-->
|
||||
<!--[if (gte IE 9)|!(IE)]><!-->
|
||||
<html lang="en"> <!--<![endif]-->
|
||||
<head>
|
||||
|
||||
<!-- Basic Page Needs
|
||||
================================================== -->
|
||||
<meta charset="utf-8">
|
||||
<title>Carte da legare: Archivi della psichiatria in Italia.</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<!-- Mobile Specific Metas
|
||||
================================================== -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
|
||||
<!-- CSS
|
||||
================================================== -->
|
||||
<!-- Skeleton responsive -->
|
||||
<link rel="stylesheet" href="css/skeleton.css">
|
||||
<!-- Skeleton responsive -->
|
||||
<link rel="stylesheet" href="css/layout.css">
|
||||
<!-- Template -->
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<!-- Icons -->
|
||||
<link rel="stylesheet" href="css/font-awesome.min.css">
|
||||
<!-- Slider -->
|
||||
<link rel="stylesheet" href="css/nivo-slider.css"/>
|
||||
<!-- Slider -->
|
||||
<link rel="stylesheet" href="themes/default/default.css"/>
|
||||
<!-- Photogallery -->
|
||||
<link rel="stylesheet" href="css/colorbox.css"/>
|
||||
<!-- Google Font -->
|
||||
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,700italic,400,600,700' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Cambo' rel='stylesheet' type='text/css'>
|
||||
|
||||
<!-- Font Awesome -->
|
||||
<!--[if IE 7]>
|
||||
<link rel="stylesheet" href="css/font-awesome-ie7.min.css">
|
||||
<![endif]-->
|
||||
|
||||
<!-- HTML5 Support for ancient browsers -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- SVG support for gradients -->
|
||||
<!--[if gte IE 9]>
|
||||
<style type="text/css">
|
||||
.gradient {
|
||||
filter: none;
|
||||
}
|
||||
</style>
|
||||
<![endif]-->
|
||||
|
||||
<!-- Javascripts
|
||||
================================================== -->
|
||||
|
||||
<!-- JQuery -->
|
||||
<script type='text/javascript' src='js/jquery.js'></script>
|
||||
<!-- Nivo slider -->
|
||||
<script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
|
||||
<!-- jQuery Placeholder -->
|
||||
<script type="text/javascript" src="js/jquery.placeholder.js"></script>
|
||||
<!-- Tab Menu jQuery plugin -->
|
||||
<script type="text/javascript" src="js/jquery.colorbox-min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () { // Launched when page is ready
|
||||
|
||||
// JQuery Placeholder init
|
||||
$('input, textarea').placeholder();
|
||||
|
||||
// Nivo slider init
|
||||
$('#slider').nivoSlider({
|
||||
effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
|
||||
slices: 15, // For slice animations
|
||||
boxCols: 8, // For box animations
|
||||
boxRows: 4, // For box animations
|
||||
animSpeed: 500, // Slide transition speed
|
||||
pauseTime: 3000, // How long each slide will show
|
||||
startSlide: 0, // Set starting Slide (0 index)
|
||||
directionNav: true, // Next & Prev navigation
|
||||
controlNav: false, // 1,2,3... navigation
|
||||
controlNavThumbs: false, // Use thumbnails for Control Nav
|
||||
pauseOnHover: true, // Stop animation while hovering
|
||||
manualAdvance: false, // Force manual transitions
|
||||
prevText: 'Prev', // Prev directionNav text
|
||||
nextText: 'Next', // Next directionNav text
|
||||
randomStart: false // Start on a random slide
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Favicons
|
||||
================================================== -->
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
<!-- Apple Touch Icons -->
|
||||
<link rel="apple-touch-icon" href="favicon/apple-touch-icon.png" />
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="favicon/apple-touch-icon-57x57.png" />
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="favicon/apple-touch-icon-72x72.png" />
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="favicon/apple-touch-icon-114x114.png" />
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="favicon/apple-touch-icon-144x144.png" />
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="favicon/apple-touch-icon-60x60.png" />
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="favicon/apple-touch-icon-120x120.png" />
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="favicon/apple-touch-icon-76x76.png" />
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="favicon/apple-touch-icon-152x152.png" />
|
||||
<!-- Windows 8 Tile Icons -->
|
||||
<meta name="msapplication-square70x70logo" content="favicon/smalltile.png" />
|
||||
<meta name="msapplication-square150x150logo" content="favicon/mediumtile.png" />
|
||||
<meta name="msapplication-wide310x150logo" content="favicon/widetile.png" />
|
||||
<meta name="msapplication-square310x310logo" content="favicon/largetile.png" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- ###DOCUMENT_BODY### -->
|
||||
|
||||
<!-- Header -->
|
||||
<div class="sixteen columns">
|
||||
<div class="container header">
|
||||
<div class="twelve columns alpha">
|
||||
<!-- ###HEADER### -->
|
||||
<img src="images/header.jpg" alt="logo">
|
||||
<!-- ###HEADER### -->
|
||||
</div>
|
||||
<div class="four columns omega logo">
|
||||
<img src="images/logo-mibac.png" alt="logo mibact">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END // Header -->
|
||||
|
||||
<div class="container bg-container">
|
||||
|
||||
<!-- mini -->
|
||||
<div class="mini-bar">
|
||||
</div>
|
||||
<!-- END // mini -->
|
||||
|
||||
<!-- ###PHOTO_SLIDER### -->
|
||||
<!-- Homepage slider -->
|
||||
<div class="sixteen columns clearfix extra-margin">
|
||||
<div id="wrapper">
|
||||
<div class="slider-wrapper theme-default">
|
||||
|
||||
<div id="slider" class="nivoSlider nivoSlider_medium">
|
||||
<img src="photo_slider/slider-01.jpg" alt="" data-transition="fade" />
|
||||
<img src="photo_slider/slider-02.jpg" alt="" data-transition="fade" />
|
||||
<img src="photo_slider/slider-03.jpg" alt="" data-transition="fade" />
|
||||
<img src="photo_slider/slider-04.jpg" alt="" data-transition="fade" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END // Homepage slider -->
|
||||
<!-- ###PHOTO_SLIDER### -->
|
||||
|
||||
<!-- Page content -->
|
||||
<div class="sixteen columns content clearfix">
|
||||
|
||||
<!-- ###BREADCRUMB### -->
|
||||
<div class="sixteen columns clearfix breadcrumb">
|
||||
<a href="">home</a> / <a href="">Item</a> / Item current
|
||||
</div>
|
||||
<!-- ###BREADCRUMB### -->
|
||||
|
||||
<!-- elemento colonna sx -->
|
||||
<div class="four columns content alpha">
|
||||
<!-- ###MAIN_MENU### -->
|
||||
<ol class="base_list vertical_menu">
|
||||
<li><i class="fa fa-caret-right"></i> <strong><a href="#">Home</a></strong></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Progetto</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Archivi</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Inventari</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Ricerca</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Statistiche</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Storie di vita</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Materiali e link</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Galleria multimediale</a></li>
|
||||
<li><i class="fa fa-caret-right"></i> <a href="#">Credits e contatti</a></li>
|
||||
</ol>
|
||||
<!-- ###MAIN_MENU### -->
|
||||
<div class="four columns partner">
|
||||
<!-- ###PARTNERS### -->
|
||||
<img src="images/loghi.png" alt="logo">
|
||||
<!-- ###PARTNERS### -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- END // elemento colonna sx -->
|
||||
|
||||
<!-- colonna centrale -->
|
||||
<!-- ###MAIN_COL_WRAP_BEGIN### -->
|
||||
<div class="eight columns content clearfix ">
|
||||
<div class="widget">
|
||||
<!-- ###MAIN_COL_WRAP_BEGIN### -->
|
||||
###PAGE_TITLE###
|
||||
###PAGE_SUBTITLE###
|
||||
|
||||
<!-- ###PHOTO### -->
|
||||
<!-- ###PHOTO### -->
|
||||
|
||||
<!-- ###MAIN_CONTENT### -->
|
||||
<h6>Gli ospedali psichiatrici hanno ospitato e prodotto sofferenza. Essa si è depositata nella memoria degli uomini e delle donne che ci sono passati attraverso ma anche in quella materiale: strutture architettoniche, archivi, biblioteche, collezioni, strumentari, suppellettili sanitarie.
|
||||
</h6>
|
||||
<br />
|
||||
<p>
|
||||
Tutto parla della particolare comunitĂ di persone che ha popolato le "cittadelle della follia", i ricoverati reclusi, innanzitutto, i medici e gli infermieri.
|
||||
Carte da legare è un progetto della Direzione generale per gli archivi nato per proporre una visione organica di tutela del patrimonio archivistico di queste istituzioni. Ancora negli anni Novanta del secolo scorso, tranne in poche situazioni virtuose, questo patrimonio era sostanzialmente trascurato e in molti luoghi correva un serio rischio di dispersione, quando non di distruzione. L'attenzione delle Soprintendenze archivistiche e le iniziative di alcune realtà che avevano accompagnato la dismissione delle strutture con la messa in sicurezza degli archivi hanno trovato nel progetto un luogo istituzionale di sintesi e di risorse economiche.
|
||||
Siamo partiti nel 1999 con un primo programma di finanziamento per i complessi archivistici degli ospedali Santa Maria della Pietà di Roma e Leonardo Bianchi di Napoli, che hanno svolto il ruolo di archivi-pilota anche per la sperimentazione di un software dedicato alla schedatura delle cartelle cliniche, espressamente elaborato su iniziativa dell'Amministrazione archivistica. In quegli anni andava volgendo al termine la complessa vicenda della definitiva chiusura delle strutture manicomiali voluta dalla legge 180 del 1978. In alcuni casi il lavoro sulla documentazione iniziò prima che gli ultimi ricoverati lasciassero gli ospedali.
|
||||
Sono stati finora promossi e finanziati numerosi interventi, relativi sia al recupero e all'ordinamento dell'archivio amministrativo e sanitario, sia alla schedatura analitica delle cartelle cliniche. Di essi si dĂ conto in dettaglio alla pagina Progetto. Essi sono stati realizzati grazie all'impegno delle Soprintendenze archivistiche e di numerosi archivisti libero professionisti, singoli o associati. Alle Soprintendenze si deve anche la rilevazione e il costante aggiornamento dei dati necessari per l'elaborazione del censimento generale degli archivi degli ex ospedali psichiatrici italiani.
|
||||
</p>
|
||||
<!-- ###MAIN_CONTENT### -->
|
||||
<!-- ###MAIN_COL_WRAP_END### -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- ###MAIN_COL_WRAP_END### -->
|
||||
<!-- END // colonna centrale -->
|
||||
|
||||
<!-- ###RIGHT_COLUMN### -->
|
||||
<!-- elemento colonna dx -->
|
||||
<div class="four columns content omega">
|
||||
<div class="widget">
|
||||
<h3 class="t_line">Notizie</h3>
|
||||
<ol class="base_list icon_list">
|
||||
<li><span class="date">12 dicembre 2014</span><a href="#"><h6>Lorem ipsum dolor sit amet</h6></a><br>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore</li>
|
||||
<li><span class="date">12 dicembre 2014</span><a href="#"><h6>Lorem ipsum dolor sit</h6></a><br>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore</li>
|
||||
<li><span class="date">12 dicembre 2014</span><a href="#"><h6>Lorem ipsum dolor sit amet</h6></a><br>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore</li>
|
||||
<li><span class="date">12 dicembre 2014</span><a href="#"><h6>Lorem dolor sit amet</h6></a><br>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore</li>
|
||||
<li><br><i class="fa fa-archive"></i><a href="#">Archivio news</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END // elemento colonna dx -->
|
||||
<!-- ###RIGHT_COLUMN### -->
|
||||
|
||||
<!-- END // Page content -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!-- END // Container -->
|
||||
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="footer">
|
||||
<div class="container">
|
||||
<div class="sixteen columns">
|
||||
<div class="widget">
|
||||
<!-- ###FOOTER### -->
|
||||
<strong>Carte da legare</strong> Copyright 2013 MIBAC - Ministero per i Beni e le AttivitĂ Culturali
|
||||
<!-- ###FOOTER### -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END // Footer -->
|
||||
|
||||
</div>
|
||||
<!-- END // .container -->
|
||||
|
||||
<!-- ###DOCUMENT_BODY### -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
<f:render section="main" />
|
||||
@@ -0,0 +1,116 @@
|
||||
{namespace gomapsext=Clickstorm\GoMapsExt\ViewHelpers}
|
||||
|
||||
<gomapsext:script>
|
||||
(function ($, window, document, undefined) {
|
||||
$(function () {
|
||||
var gme = new Object();
|
||||
|
||||
gme.zoomTypes = new Array(google.maps.ZoomControlStyle.DEFAULT,
|
||||
google.maps.ZoomControlStyle.SMALL,
|
||||
google.maps.ZoomControlStyle.LARGE);
|
||||
gme.defaultMapTypes = new Array(google.maps.MapTypeId.ROADMAP,
|
||||
google.maps.MapTypeId.SATELLITE,
|
||||
google.maps.MapTypeId.HYBRID,
|
||||
google.maps.MapTypeId.TERRAIN,
|
||||
"{map.styledMapName}");
|
||||
|
||||
gme.mapSettings = <![CDATA[{]]>
|
||||
title: '<gomapsext:escape>{map.title}</gomapsext:escape>',
|
||||
tooltipTitle: '<gomapsext:escape>{map.tooltipTitle}</gomapsext:escape>',
|
||||
CSSClass: '{map.class}',
|
||||
width: '{map.width}',
|
||||
height: '{map.height}',
|
||||
zoom: {f:if(condition:"{map.zoom}", then:"{map.zoom}", else:"0")},
|
||||
kmlUrl: '{map.kmlUrl}',
|
||||
kmlPreserveViewport: {f:if(condition:"{map.kmlPreserveViewport}", then:"true", else:"false")},
|
||||
kmlLocal: {f:if(condition:"{map.kmlLocal}", then:"1", else:"0")},
|
||||
scrollZoom: {f:if(condition:"{map.scrollZoom}", then:"1", else:"0")},
|
||||
draggable: {f:if(condition:"{map.draggable}", then:"1", else:"0")},
|
||||
doubleClickZoom: {f:if(condition:"{map.doubleClickZoom}", then:"0", else:"1")},
|
||||
markerCluster: {f:if(condition:"{map.markerCluster}", then:"1", else:"0")},
|
||||
markerClusterZoom: {f:if(condition:"{map.markerClusterZoom} > 0", then:"{map.markerClusterZoom}", else:"null")},
|
||||
markerClusterSize: {f:if(condition:"{map.markerClusterSize} > 0", then:"{map.markerClusterSize}", else:"null")},
|
||||
markerSearch: {f:if(condition:"{map.markerSearch}", then:"1", else:"0")},
|
||||
defaultType: {map.defaultType},
|
||||
panControl: {f:if(condition:"{map.panControl}", then:"1", else:"0")},
|
||||
scaleControl: {f:if(condition:"{map.scaleControl}", then:"1", else:"0")},
|
||||
streetviewControl: {f:if(condition:"{map.streetviewControl}", then:"1", else:"0")},
|
||||
zoomControl: {f:if(condition:"{map.zoomControl}", then:"1", else:"0")},
|
||||
zoomControlType: {map.zoomControlType},
|
||||
mapTypeControl: {f:if(condition:"{map.mapTypeControl}", then:"1", else:"0")},
|
||||
showRoute: {f:if(condition:"{map.showRoute}", then:"1", else:"0")},
|
||||
calcRoute: {f:if(condition:"{map.calcRoute}", then:"1", else:"0")},
|
||||
travelMode: {map.travelMode},
|
||||
unitSystem: {map.unitSystem},
|
||||
showForm: {f:if(condition:"{map.showForm}", then:"1", else:"0")},
|
||||
showCategories: {f:if(condition:"{map.showCategories}", then:"1", else:"0")},
|
||||
styledMapName: '{map.styledMapName}',
|
||||
<f:if condition="{map.styledMapCode}">
|
||||
<f:then>
|
||||
styledMapCode: <f:format.html parseFuncTSPath="">{map.styledMapCode}</f:format.html>,
|
||||
</f:then>
|
||||
<f:else>
|
||||
styledMapCode: '',
|
||||
</f:else>
|
||||
</f:if>
|
||||
defaultZoom: 11
|
||||
<![CDATA[}]]>
|
||||
|
||||
gme.mapSettings.mapTypes = new Array();
|
||||
<f:for each="{map.mapTypes}" as="type" iteration="i">
|
||||
gme.mapSettings.mapTypes[{i.index}] = gme.defaultMapTypes[{type}];
|
||||
</f:for>
|
||||
|
||||
gme.request = new Array();
|
||||
|
||||
<f:for each="{request}" as="item" iteration="i" key="k">
|
||||
gme.request['{k}'] = '{item}';
|
||||
</f:for>
|
||||
|
||||
gme.addresses = new Array();
|
||||
<f:for each="{addresses}" as="address" iteration="i">
|
||||
gme.addresses[{i.index}] = <![CDATA[{]]>
|
||||
title: '<gomapsext:escape>{address.title}</gomapsext:escape>',
|
||||
latitude: {address.latitude},
|
||||
longitude: {address.longitude},
|
||||
address: '{address.address}',
|
||||
marker: '{f:if(condition:"{address.marker}" then:"uploads/tx_gomapsext/{address.marker}")}',
|
||||
imageSize: {f:if(condition:"{address.imageSize}", then:"1", else:"0")},
|
||||
imageWidth: {address.imageWidth},
|
||||
imageHeight: {address.imageHeight},
|
||||
shadow: '{f:if(condition:"{address.shadow}" then:"uploads/tx_gomapsext/{address.shadow}")}',
|
||||
shadowSize: {f:if(condition:"{address.shadowSize}", then:"1", else:"0")},
|
||||
shadowWidth: {address.shadowWidth},
|
||||
shadowHeight: {address.shadowHeight},
|
||||
infoWindowContent: '<gomapsext:escape><f:format.html>{address.infoWindowContent}</f:format.html></gomapsext:escape>',
|
||||
infoWindowLink: {address.infoWindowLink},
|
||||
<f:if condition="{settings.openByClick}">
|
||||
<f:then>
|
||||
openByClick: 1,
|
||||
</f:then>
|
||||
<f:else>
|
||||
openByClick: {f:if(condition:"{address.openByClick}", then:"1", else:"0")},
|
||||
</f:else>
|
||||
</f:if>
|
||||
<f:if condition="{settings.closeByClick}">
|
||||
<f:then>
|
||||
closeByClick: 1,
|
||||
</f:then>
|
||||
<f:else>
|
||||
closeByClick: {f:if(condition:"{address.closeByClick}", then:"1", else:"0")},
|
||||
</f:else>
|
||||
</f:if>
|
||||
opened: {f:if(condition:"{address.opened}", then:"1", else:"0")},
|
||||
categories: '<f:for each="{address.categories}" as="category" iteration="icat">{category.uid}{f:if(condition:icat.isLast,then:'',else:',')}</f:for>'
|
||||
<![CDATA[}]]>
|
||||
</f:for>
|
||||
|
||||
gme.ll = {};
|
||||
gme.ll.alert = "<f:translate key="LLL:EXT:go_maps_ext/Resources/Private/Language/locallang.xlf:tx_gomapsext_partials_map_assign.alert" />";
|
||||
gme.ll.submit = "<f:translate key="LLL:EXT:go_maps_ext/Resources/Private/Language/locallang.xlf:tx_gomapsext_partials_map_assign.submit" />";
|
||||
gme.ll.noSearchResults = "<f:translate key="LLL:EXT:go_maps_ext/Resources/Private/Language/locallang.xlf:tx_gomapsext_partials_map_assign.noSearchResults" />";
|
||||
gme.ll.infoWindowLinkText = "<f:translate key="LLL:EXT:go_maps_ext/Resources/Private/Language/locallang.xlf:tx_gomapsext_partials_map_assign.infoWindowLinkText" />";
|
||||
jQuery("#{map.title}").gomapsext(gme);
|
||||
}); // end of closure
|
||||
})(jQuery, window, document);
|
||||
</gomapsext:script>
|
||||
@@ -0,0 +1,8 @@
|
||||
<ul class="gomapsext-cats">
|
||||
<f:for each="{categories}" as="name" key="uid">
|
||||
<li>
|
||||
<f:form.checkbox id="gomapsext-cat-{uid}" name="tx_csgomapsext_show[cat]" value="{uid}" title="{name}" />
|
||||
<label for="gomapsext-cat-{uid}">{name}</label>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
@@ -0,0 +1,42 @@
|
||||
{namespace gomapsext=Clickstorm\GoMapsExt\ViewHelpers}
|
||||
<f:if condition="{map.markerSearch}">
|
||||
<form id="{map.title}-search" method="post">
|
||||
<input type="text" name="sword" class="gme-sword" value="{request.sword}" />
|
||||
<input type="submit" class="gme-submit" name="submitSearch" value="{f:translate(key:'tx_gomapsext_partials_map_assign.submitSearch')}" />
|
||||
</form>
|
||||
</f:if>
|
||||
<f:form id="{map.title}-form" method="post">
|
||||
<f:if condition="{map.calcRoute}">
|
||||
<f:form.textfield name="saddress" class="gme-saddress" value="{request.saddress}" />
|
||||
<f:if condition="{f:count(subject:addresses)} > 1">
|
||||
<select name="eaddress" class="gme-eaddress" value="{request.eaddress}">
|
||||
<f:for each="{addresses}" as="address" iteration="i">
|
||||
<option value="{i.index}">{address.title}</option>
|
||||
</f:for>
|
||||
</select>
|
||||
</f:if>
|
||||
</f:if>
|
||||
<f:if condition="{map.travelMode} == 1">
|
||||
<gomapsext:hideInFrontend>
|
||||
<!--
|
||||
Possible options for the Travel Mode are
|
||||
0:map.travelModes.0 == Driving
|
||||
2:map.travelModes.2 == Bicycling
|
||||
3:map.travelModes.3 == Transit
|
||||
4:map.travelModes.4 == Walking
|
||||
-->
|
||||
</gomapsext:hideInFrontend>
|
||||
<f:form.select name="travelmode" value="{f:if(condition:request.travelmode,then:request.travelmode,else:2)}" class="gme-travelmode" options="{0:map.travelModes.0, 3:map.travelModes.3, 4:map.travelModes.4}" size="1" />
|
||||
</f:if>
|
||||
<f:if condition="{map.unitSystem} == 1">
|
||||
<gomapsext:hideInFrontend>
|
||||
<!--
|
||||
Possible options for the Unit System are
|
||||
1:map.unitSystems.2 == Metric (km)
|
||||
2:map.unitSystems.3 == Imperial (mil)
|
||||
-->
|
||||
</gomapsext:hideInFrontend>
|
||||
<f:form.select name="unitsystem" value="{f:if(condition:request.unitsystem,then:request.unitsystem,else:2)}" class="gme-unitsystem" options="{map.unitSystems}" size="1" />
|
||||
</f:if>
|
||||
<f:form.submit class="gme-submit" name="submit" value="{f:translate(key:'tx_gomapsext_partials_map_assign.submit')}" />
|
||||
</f:form>
|
||||
@@ -0,0 +1,12 @@
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{map.showForm}">
|
||||
<f:render partial="Map/Form" arguments="{map:map, request:request, addresses: addresses}"/>
|
||||
</f:if>
|
||||
<div id="{map.title}" class="map-wrapper"> </div>
|
||||
<f:render partial="Map/Assign" arguments="{request:request, map:map, settings:settings, addresses:addresses}" />
|
||||
<f:if condition="{map.showCategories}">
|
||||
<f:render partial="Map/Categories" arguments="{map:map, addresses:addresses, request:request, categories: categories}" />
|
||||
</f:if>
|
||||
</f:section>
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
<f:render section="main" />
|
||||
@@ -0,0 +1,27 @@
|
||||
<f:layout name="Default" />
|
||||
|
||||
This Template is responsible for creating a table of domain objects.
|
||||
|
||||
If you modify this template, do not forget to change the overwrite settings
|
||||
in /Configuration/ExtensionBuilder/settings.yaml:
|
||||
Resources:
|
||||
Private:
|
||||
Templates:
|
||||
List.html: keep
|
||||
|
||||
Otherwise your changes will be overwritten the next time you save the extension in the extension builder
|
||||
|
||||
|
||||
|
||||
<f:section name="main">
|
||||
|
||||
<f:flashMessages />
|
||||
|
||||
<div class="box_video" style="width: {width}px;">
|
||||
<div class="box_video_container">
|
||||
<iframe width="{width}" height="{height}" src="http://www.youtube.com/embed/{id}{playerParameters}" {allowfullscreen}></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</f:section>
|
||||
@@ -0,0 +1,49 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:be.container>
|
||||
<n:includeFile path="../typo3conf/ext/news/Resources/Public/Css/administration.css" />
|
||||
<div class="typo3-fullDoc">
|
||||
<div id="typo3-docheader">
|
||||
<div class="typo3-docheader-functions">
|
||||
<div class="left">
|
||||
<f:be.buttons.csh />
|
||||
<f:be.menus.actionMenu>
|
||||
<f:be.menus.actionMenuItem label="{f:translate(key: 'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.newsListing')}" controller="Administration" action="index" />
|
||||
<f:be.menus.actionMenuItem label="{f:translate(key: 'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.newsPidListing')}" controller="Administration" action="newsPidListing" />
|
||||
</f:be.menus.actionMenu>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<f:be.pagePath />
|
||||
<f:be.pageInfo />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="typo3-docheader-buttons">
|
||||
<div class="left">
|
||||
<f:link.action action="newNews" title="{f:translate(key:'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.createNewNewsRecord')}">
|
||||
<f:image src="{f:uri.resource(path:'Icons/news_domain_model_news_add.png')}" />
|
||||
</f:link.action>
|
||||
<n:be.security.ifAccessToTableIsAllowed table="sys_category">
|
||||
<f:link.action action="newCategory" title="{f:translate(key:'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.createNewCategory')}">
|
||||
<f:image src="{f:uri.resource(path:'Icons/news_domain_model_category_add.png')}" />
|
||||
</f:link.action>
|
||||
</n:be.security.ifAccessToTableIsAllowed>
|
||||
<n:be.security.ifAccessToTableIsAllowed table="tx_news_domain_model_tag">
|
||||
<f:link.action action="newTag" title="{f:translate(key:'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.createNewTag')}">
|
||||
<f:image src="{f:uri.resource(path:'Icons/news_domain_model_tag_add.png')}" />
|
||||
</f:link.action>
|
||||
</n:be.security.ifAccessToTableIsAllowed>
|
||||
</div>
|
||||
<div class="right">
|
||||
<f:be.buttons.shortcut />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="typo3-docbody">
|
||||
<div id="typo3-inner-docbody" class="news-administration">
|
||||
<f:render section="content" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</f:be.container>
|
||||
@@ -0,0 +1,29 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:be.container>
|
||||
<n:includeFile path="../typo3conf/ext/news/Resources/Public/Css/administration.css" />
|
||||
<div class="typo3-fullDoc">
|
||||
<div id="typo3-docheader">
|
||||
<div class="typo3-docheader-functions">
|
||||
<div class="left"></div>
|
||||
|
||||
<div class="right">
|
||||
<f:be.pagePath />
|
||||
<f:be.pageInfo />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="typo3-docheader-buttons">
|
||||
<div class="left"></div>
|
||||
<div class="right">
|
||||
<f:be.buttons.shortcut />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="typo3-docbody">
|
||||
<div id="typo3-inner-docbody" class="news-administration">
|
||||
<f:render section="content" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</f:be.container>
|
||||
@@ -0,0 +1,7 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:if condition="{settings.cssFile}">
|
||||
<n:includeFile path="{settings.cssFile}" />
|
||||
</f:if>
|
||||
|
||||
<f:render section="content" />
|
||||
@@ -0,0 +1,8 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:if condition="{settings.cssFile}">
|
||||
<n:includeFile path="{settings.cssFile}" />
|
||||
</f:if>
|
||||
|
||||
<f:flashMessages class="tx-news-flash-message" />
|
||||
<f:render section="content" />
|
||||
@@ -0,0 +1,50 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<tr class="db_list_normal">
|
||||
<td class="col-title">
|
||||
<n:be.clickmenu table="tx_news_domain_model_news" uid="{newsItem.uid}">
|
||||
<n:be.buttons.iconForRecord table="tx_news_domain_model_news" uid="{newsItem.uid}" title="{newsItem.title}" />
|
||||
</n:be.clickmenu>
|
||||
<a href="" title="UID: {newsItem.uid}" onclick="window.location.href='alt_doc.php?returnUrl='+T3_THIS_LOCATION+'&edit[tx_news_domain_model_news][{newsItem.uid}]=edit'; return false;">
|
||||
{newsItem.title}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<f:if condition="{newsItem.isTopNews}">
|
||||
<f:then>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.topNewsYes" />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.topNewsNo" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</td>
|
||||
<td>
|
||||
<f:format.date format="{dateformat}">{newsItem.dateTime}</f:format.date>
|
||||
</td>
|
||||
<td>
|
||||
<f:format.date format="{dateformat}">{newsItem.archive}</f:format.date>
|
||||
</td>
|
||||
<td>
|
||||
<f:format.date format="{dateformat}">{newsItem.tstamp}</f:format.date>
|
||||
</td>
|
||||
<td>
|
||||
<f:if condition="{newsItem.author}">
|
||||
<strong>
|
||||
<f:translate key="LLL:EXT:cms/locallang_tca.xlf:pages.author_formlabel" />
|
||||
:</strong> {newsItem.author}<br />
|
||||
</f:if>
|
||||
<f:if condition="{newsItem.categories}">
|
||||
<strong>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news.categories" />
|
||||
:</strong>
|
||||
<f:for each="{newsItem.categories}" as="category" iteration="iterator">
|
||||
<span title="UID: {category.uid}">{category.title}</span>
|
||||
<f:if condition="{iterator.isLast}">
|
||||
<f:then></f:then>
|
||||
<f:else>,</f:else>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</f:if>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!-- categories -->
|
||||
<span class="news-list-category">
|
||||
<f:for each="{categories}" as="category">
|
||||
<f:if condition="{category.shortcut}">
|
||||
<f:then>
|
||||
<f:link.page pageUid="{category.shortcut}">
|
||||
{category.title}
|
||||
</f:link.page>
|
||||
</f:then>
|
||||
<f:else>
|
||||
{category.title}
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</span>
|
||||
@@ -0,0 +1,17 @@
|
||||
<f:if condition="{media}">
|
||||
<!-- fal media files -->
|
||||
<div class="news-img-wrap">
|
||||
<f:for each="{media}" as="mediaElement">
|
||||
<div class="outer">
|
||||
<f:if condition="{mediaElement.originalResource.type} == 2">
|
||||
<f:render partial="Detail/FalMediaImage" arguments="{mediaElement: mediaElement, settings:settings}"/>
|
||||
</f:if>
|
||||
<f:if condition="{mediaElement.originalResource.type} == 4">
|
||||
<f:render partial="Detail/FalMediaVideo" arguments="{mediaElement: mediaElement, settings:settings}"/>
|
||||
</f:if>
|
||||
</div>
|
||||
</f:for>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<div class="mediaelement mediaelement-image">
|
||||
<f:if condition="{settings.detail.media.image.lightbox}">
|
||||
<f:then>
|
||||
<a rel="{settings.detail.media.image.lightbox}" title="{mediaElement.title}" href="{f:uri.image(src:'{mediaElement.uid}' treatIdAsReference:1 maxWidth:'800')}">
|
||||
<f:image src="{mediaElement.uid}" treatIdAsReference="1" title="{mediaElement.title}" alt="{mediaElement.alternative}" maxWidth="{settings.detail.media.image.maxWidth}" maxHeight="{settings.detail.media.image.maxHeight}" />
|
||||
</a>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:image src="{mediaElement.uid}" treatIdAsReference="1" title="{mediaElement.title}" alt="{mediaElement.alternative}" maxWidth="{settings.detail.media.image.maxWidth}" maxHeight="{settings.detail.media.image.maxHeight}" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</div>
|
||||
<f:if condition="{mediaElement.description}">
|
||||
<p class="news-img-caption">
|
||||
{mediaElement.description}
|
||||
</p>
|
||||
</f:if>
|
||||
@@ -0,0 +1,17 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<div class="mediaelement">
|
||||
<div class="mediaelement-video">
|
||||
<n:falMediaFactory classes="{settings.interfaces.falMedia.video}" element="{mediaElement}" width="{settings.detail.media.video.width}"
|
||||
height="{settings.detail.media.video.height}" />
|
||||
</div>
|
||||
|
||||
|
||||
<f:if condition="{mediaElement.description}">
|
||||
<div class="medialement-alternative-content">
|
||||
<p class="news-img-caption">
|
||||
{mediaElement.description}
|
||||
</p>
|
||||
</div>
|
||||
</f:if>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
<f:if condition="{media}">
|
||||
<!-- media files -->
|
||||
<div class="news-img-wrap">
|
||||
<f:for each="{media}" as="mediaElement">
|
||||
<div class="outer">
|
||||
<f:if condition="{mediaElement.type} == 0">
|
||||
<f:render partial="Detail/MediaImage" arguments="{mediaElement: mediaElement, settings:settings}" />
|
||||
</f:if>
|
||||
<f:if condition="{mediaElement.type} == 1">
|
||||
<f:render partial="Detail/MediaVideo" arguments="{mediaElement: mediaElement, settings:settings}" />
|
||||
</f:if>
|
||||
</div>
|
||||
</f:for>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<div class="mediaelement mediaelement-image">
|
||||
<f:if condition="{settings.detail.media.image.lightbox}">
|
||||
<f:then>
|
||||
<a rel="{settings.detail.media.image.lightbox}" title="{mediaElement.caption}" href="{f:uri.image(src:'uploads/tx_news/{mediaElement.content}' maxWidth:'800')}">
|
||||
<f:image src="uploads/tx_news/{mediaElement.content}" title="{mediaElement.title}" alt="{mediaElement.alt}" maxWidth="{settings.detail.media.image.maxWidth}" maxHeight="{settings.detail.media.image.maxHeight}" />
|
||||
</a>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:image src="uploads/tx_news/{mediaElement.content}" title="{mediaElement.title}" alt="{mediaElement.alt}" maxWidth="{settings.detail.media.image.maxWidth}" maxHeight="{settings.detail.media.image.maxHeight}" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</div>
|
||||
<f:if condition="{mediaElement.caption}">
|
||||
<p class="news-img-caption">
|
||||
{mediaElement.caption}
|
||||
</p>
|
||||
</f:if>
|
||||
@@ -0,0 +1,17 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<div class="mediaelement">
|
||||
<div class="mediaelement-video">
|
||||
<n:mediaFactory classes="{settings.interfaces.media.video}" element="{mediaElement}" width="{settings.detail.media.video.width}"
|
||||
height="{settings.detail.media.video.height}" />
|
||||
</div>
|
||||
|
||||
|
||||
<f:if condition="{mediaElement.caption}">
|
||||
<div class="medialement-alternative-content">
|
||||
<p class="news-img-caption">
|
||||
{mediaElement.caption}
|
||||
</p>
|
||||
</div>
|
||||
</f:if>
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:if condition="{newsItem.alternativeTitle}">
|
||||
<f:then><n:metaTag property="og:title" content="{newsItem.alternativeTitle}" /></f:then>
|
||||
<f:else><n:metaTag property="og:title" content="{newsItem.title}" /></f:else>
|
||||
</f:if>
|
||||
<n:metaTag property="og:type" content="{settings.opengraph.type}" />
|
||||
<n:metaTag property="og:url" content="" useCurrentDomain="1" />
|
||||
<n:metaTag property="og:site_name" content="{settings.opengraph.site_name}" />
|
||||
<f:if condition="{newsItem.firstFalImagePreview}">
|
||||
<f:then>
|
||||
<n:metaTag
|
||||
property="og:image"
|
||||
content="{f:uri.image(src:'{newsItem.firstFalImagePreview.uid}' treatIdAsReference:1 maxWidth:'500')}"
|
||||
forceAbsoluteUrl="1" />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:if condition="{newsItem.firstImagePreview.image}">
|
||||
<n:metaTag
|
||||
property="og:image"
|
||||
content="{f:uri.image(src:'uploads/tx_news/{newsItem.firstImagePreview.image}' maxWidth:'500')}"
|
||||
forceAbsoluteUrl="1" />
|
||||
</f:if>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{newsItem.description}">
|
||||
<f:then>
|
||||
<n:metaTag name="description" content="{newsItem.description}" />
|
||||
<n:metaTag property="og:description" content="{newsItem.description}" />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<n:metaTag name="description" content="{newsItem.teaser}" />
|
||||
<n:metaTag property="og:description" content="{newsItem.teaser}" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
<n:metaTag name="keywords" content="{newsItem.keywords}" />
|
||||
<n:metaTag property="fb:admins" content="{settings.opengraph.admins}" />
|
||||
<n:metaTag property="fb:admins" content="{settings.opengraph.admins}" />
|
||||
<n:metaTag property="og:email" content="{settings.opengraph.email}" />
|
||||
<n:metaTag property="og:phone_number" content="{settings.opengraph.phone_number}" />
|
||||
<n:metaTag property="og:fax_number" content="{settings.opengraph.fax_number}" />
|
||||
<n:metaTag property="og:latitude" content="{settings.opengraph.latitude}" />
|
||||
<n:metaTag property="og:longitude" content="{settings.opengraph.longitude}" />
|
||||
<n:metaTag property="og:street-address" content="{settings.opengraph.street-address}" />
|
||||
<n:metaTag property="og:locality" content="{settings.opengraph.locality}" />
|
||||
<n:metaTag property="og:region" content="{settings.opengraph.region}" />
|
||||
<n:metaTag property="og:postal-code" content="{settings.opengraph.postal-code}" />
|
||||
<n:metaTag property="og:country-name" content="{settings.opengraph.country-name}" />
|
||||
@@ -0,0 +1,142 @@
|
||||
{namespace n=Tx_News_ViewHelpers}<!--
|
||||
=====================
|
||||
Partials/List/Item.html
|
||||
-->
|
||||
<li class="article articletype-{newsItem.type}{f:if(condition: newsItem.istopnews, then: ' topnews')}">
|
||||
<n:excludeDisplayedNews newsItem="{newsItem}"/>
|
||||
|
||||
<!-- date -->
|
||||
<span class="date">
|
||||
<n:format.date format="%d %B %Y">{newsItem.datetime}</n:format.date>
|
||||
</span>
|
||||
|
||||
<!-- header -->
|
||||
<n:link newsItem="{newsItem}" settings="{settings}">
|
||||
<h6>
|
||||
{newsItem.title}
|
||||
</h6>
|
||||
</n:link>
|
||||
|
||||
<f:if condition="{newsItem.falMedia}">
|
||||
<!-- fal media preview element -->
|
||||
<f:then>
|
||||
<div class="news-img-wrap">
|
||||
<f:if condition="{newsItem.falMediaPreviews}">
|
||||
<f:then>
|
||||
<n:link newsItem="{newsItem}" settings="{settings}">
|
||||
<f:alias map="{mediaElement: newsItem.falMediaPreviews.0}">
|
||||
<f:if condition="{mediaElement.originalResource.type} == 2">
|
||||
<f:image src="{mediaElement.uid}" treatIdAsReference="1" title="{mediaElement.originalResource.title}" alt="{mediaElement.originalResource.alternative}" maxWidth="{settings.list.media.image.maxWidth}" maxHeight="{settings.list.media.image.maxHeight}"/>
|
||||
</f:if>
|
||||
<f:if condition="{mediaElement.originalResource.type} == 4">
|
||||
<f:render partial="Detail/FalMediaVideo" arguments="{mediaElement: mediaElement}"/>
|
||||
</f:if>
|
||||
</f:alias>
|
||||
</n:link>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:if condition="{settings.displayDummyIfNoMedia}">
|
||||
<span class="no-media-element">
|
||||
<n:link newsItem="{newsItem}" settings="{settings}">
|
||||
<f:image src="{settings.list.media.dummyImage}" title="" alt="" maxWidth="{settings.list.media.image.maxWidth}" maxHeight="{settings.list.media.image.maxHeight}"/>
|
||||
</n:link>
|
||||
</span>
|
||||
</f:if>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
</div>
|
||||
</f:then>
|
||||
<f:else>
|
||||
|
||||
<f:if condition="{newsItem.media}">
|
||||
<!-- media preview element -->
|
||||
<f:then>
|
||||
<div class="news-img-wrap">
|
||||
<f:if condition="{newsItem.mediaPreviews}">
|
||||
<f:then>
|
||||
<n:link newsItem="{newsItem}" settings="{settings}">
|
||||
<f:alias map="{mediaElement: newsItem.mediaPreviews.0}">
|
||||
<f:if condition="{mediaElement.type} == 0">
|
||||
<f:image src="uploads/tx_news/{mediaElement.image}" title="{mediaElement.title}" alt="{mediaElement.alt}" maxWidth="{settings.list.media.image.maxWidth}" maxHeight="{settings.list.media.image.maxHeight}"/>
|
||||
</f:if>
|
||||
<f:if condition="{mediaElement.type} == 1">
|
||||
<f:render partial="Detail/MediaVideo" arguments="{mediaElement: mediaElement}"/>
|
||||
</f:if>
|
||||
<f:if condition="{mediaElement.type} == 2">
|
||||
<f:render partial="Detail/MediaHtml" arguments="{mediaElement: mediaElement}"/>
|
||||
</f:if>
|
||||
</f:alias>
|
||||
</n:link>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:if condition="{settings.displayDummyIfNoMedia}">
|
||||
<span class="no-media-element">
|
||||
<n:link newsItem="{newsItem}" settings="{settings}">
|
||||
<f:image src="{settings.list.media.dummyImage}" title="" alt="" maxWidth="{settings.list.media.image.maxWidth}" maxHeight="{settings.list.media.image.maxHeight}"/>
|
||||
</n:link>
|
||||
</span>
|
||||
</f:if>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
</div>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:if condition="{settings.displayDummyIfNoMedia}">
|
||||
<f:then>
|
||||
<div class="news-img-wrap">
|
||||
<n:link newsItem="{newsItem}" settings="{settings}">
|
||||
<span class="no-media-element">
|
||||
<f:image src="{settings.list.media.dummyImage}" title="" alt="" maxWidth="{settings.list.media.image.maxWidth}" maxHeight="{settings.list.media.image.maxHeight}"/>
|
||||
</span>
|
||||
</n:link>
|
||||
</div>
|
||||
</f:then>
|
||||
</f:if>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
|
||||
<!-- teas=ser text -->
|
||||
<f:if condition="{newsItem.teaser}">
|
||||
<f:then>
|
||||
{newsItem.teaser -> f:format.crop(maxCharacters: '{settings.cropMaxCharacters}', respectWordBoundaries:'1') -> f:format.html()}
|
||||
</f:then>
|
||||
<f:else>
|
||||
{newsItem.bodytext -> f:format.crop(maxCharacters: '{settings.cropMaxCharacters}', respectWordBoundaries:'1') -> f:format.html()}
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
<!--
|
||||
<n:link newsItem="{newsItem}" settings="{settings}" class="more">
|
||||
<f:translate key="more-link"/>
|
||||
</n:link>
|
||||
-->
|
||||
|
||||
<!-- footer information -->
|
||||
<f:if condition="{newsItem.firstCategory}">
|
||||
<!-- first category -->
|
||||
<span class="news-list-category">{newsItem.firstCategory.title}</span>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{newsItem.tags}">
|
||||
<!-- Tags -->
|
||||
<span class="news-list-tags">
|
||||
<f:for each="{newsItem.tags}" as="tag">
|
||||
{tag.title}
|
||||
</f:for>
|
||||
</span>
|
||||
</f:if>
|
||||
|
||||
<!-- author -->
|
||||
<f:if condition="{newsItem.author}">
|
||||
<span class="news-list-author">
|
||||
<f:translate key="author" arguments="{0:newsItem.author}"/>
|
||||
</span>
|
||||
</f:if>
|
||||
|
||||
</li>
|
||||
@@ -0,0 +1,201 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:layout name="Backend/Default" />
|
||||
|
||||
<f:section name="categoryTree">
|
||||
<ul class="list-unstyled">
|
||||
<f:for each="{categories}" as="category">
|
||||
<li>
|
||||
<f:form.checkbox id="category-{category.item.uid}" property="selectedCategories" value="{category.item.uid}" />
|
||||
<label for="category-{category.item.uid}" title="{category.item.uid}">{category.item.title}</label>
|
||||
|
||||
<f:if condition="{category.children}">
|
||||
<f:render section="categoryTree" arguments="{categories: category.children}" />
|
||||
</f:if>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:section>
|
||||
|
||||
<f:section name="content">
|
||||
<h1>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.title" />
|
||||
</h1>
|
||||
<f:if condition="{page} == 0">
|
||||
<div class="alert alert-info">
|
||||
<div class="message-body">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.nopageselected" />
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
<f:flashMessages class="tx-extbase-flash-message" />
|
||||
|
||||
<f:form name="demand" object="{demand}" method="get" >
|
||||
<input type="hidden" name="M" value="web_NewsTxNewsM2">
|
||||
<input type="hidden" name="moduleToken" value="{moduleToken}">
|
||||
<input type="hidden" name="id" value="{page}">
|
||||
|
||||
<h2>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.headline" />
|
||||
</h2>
|
||||
<div class="settings">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 form-horizontal">
|
||||
<div class="form-group">
|
||||
<label for="recursive" class="col-sm-4 control-label">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.recursive" />
|
||||
</label>
|
||||
|
||||
<div class="col-sm-8">
|
||||
<f:form.select property="recursive" options="{0:0,1:1,2:2,3:3,4:4,5:5}" id="recursive" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="timeRestriction" class="col-sm-4 control-label">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.timeRestriction" />
|
||||
</label>
|
||||
|
||||
<div class="col-sm-8">
|
||||
<f:form.textfield property="timeRestriction" id="timeRestriction" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="timeRestrictionHigh" class="col-sm-4 control-label">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.timeRestrictionHigh" />
|
||||
</label>
|
||||
|
||||
<div class="col-sm-8">
|
||||
<f:form.textfield property="timeRestrictionHigh" id="timeRestrictionHigh" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="topNewsRestriction" class="col-sm-4 control-label">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.topNewsRestriction" />
|
||||
</label>
|
||||
|
||||
<div class="col-sm-8">
|
||||
<f:form.select property="topNewsRestriction" class="form-control" options="{
|
||||
0:'',
|
||||
1:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.topNewsRestriction.1\')}',
|
||||
2:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.topNewsRestriction.2\')}'
|
||||
}" id="topNewsRestriction" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="sortingField" class="col-sm-4 control-label">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderBy" />
|
||||
</label>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<f:form.select class="form-control" property="sortingField" options="{
|
||||
title:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderBy.title\')}',
|
||||
datetime:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderBy.datetime\')}',
|
||||
tstamp:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderBy.tstamp\')}',
|
||||
archive:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news.archive\')}',
|
||||
author:'{f:translate(key: \'LLL:EXT:cms/locallang_tca.xlf:pages.author_formlabel\')}'
|
||||
}" id="sortingField" />
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<f:form.select class="form-control" property="sortingDirection" options="{
|
||||
asc:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderDirection.asc\')}',
|
||||
desc:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderDirection.desc\')}'
|
||||
}" id="sortingDirection" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-4 col-sm-8">
|
||||
<f:form.submit value="{f:translate(key:'LLL:EXT:lang/locallang_common.xlf:search')}" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="category-tree">
|
||||
<div class="tree-wrapper">
|
||||
<f:render section="categoryTree" arguments="{categories: categories}" />
|
||||
</div>
|
||||
|
||||
<f:if condition="{categories}">
|
||||
<div class="form-group">
|
||||
<label for="categoryConjunction" class="col-sm-6 control-label">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.categoryConjunction" />
|
||||
</label>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<f:form.select class="form-control" property="categoryConjunction" options="{AND:'AND', OR:'OR', notor:'notor', notand:'notand'}" id="categoryConjunction" />
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</f:form>
|
||||
|
||||
<f:if condition="{news}">
|
||||
<f:then>
|
||||
<div class="result">
|
||||
<f:if condition="{settings.list.paginate.itemsPerPage} == 0">
|
||||
<div class="alert alert-warning">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.nolimit" arguments="{0:'settings.list.paginate.itemsPerPage'}" />
|
||||
</div>
|
||||
</f:if>
|
||||
<f:be.widget.paginate objects="{news}" as="paginatedNews" configuration="{itemsPerPage: settings.list.paginate.itemsPerPage}">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr class="t3-row-header">
|
||||
<th>
|
||||
<f:translate key="LLL:EXT:cms/locallang_ttc.xlf:header_formlabel" />
|
||||
<div class="btn-group">
|
||||
<n:be.buttons.icon class="btn" uri="#" onclick="{n:be.multiEditLink(items:paginatedNews,columns:'title')}" icon="actions-document-open" />
|
||||
</div>
|
||||
</th>
|
||||
<th class="nowrap">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news.istopnews" />
|
||||
<div class="btn-group">
|
||||
<n:be.buttons.icon class="btn" uri="#" onclick="{n:be.multiEditLink(items:paginatedNews,columns:'istopnews')}" icon="actions-document-open" />
|
||||
</div>
|
||||
</th>
|
||||
<th class="nowrap date">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news.datetime" />
|
||||
<div class="btn-group">
|
||||
<n:be.buttons.icon class="btn" uri="#" onclick="{n:be.multiEditLink(items:paginatedNews,columns:'datetime')}" icon="actions-document-open" />
|
||||
</div>
|
||||
</th>
|
||||
<th class="nowrap date">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news.archive" />
|
||||
<div class="btn-group">
|
||||
<n:be.buttons.icon class="btn" uri="#" onclick="{n:be.multiEditLink(items:paginatedNews,columns:'archive')}" icon="actions-document-open" />
|
||||
</div>
|
||||
</th>
|
||||
<th class="nowrap">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderBy.tstamp" />
|
||||
</th>
|
||||
<th class="nowrap nosort"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<f:for each="{paginatedNews}" as="newsItem">
|
||||
<f:render partial="Administration/ListItem" arguments="{newsItem: newsItem, dateformat:dateformat}" />
|
||||
</f:for>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.newsCount" arguments="{0:'{f:count(subject:news)}'}" />
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</f:be.widget.paginate>
|
||||
</div>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<div class="alert alert-notice">
|
||||
<f:translate key="list_nonewsfound" />
|
||||
</div>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:section>
|
||||
@@ -0,0 +1,48 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:layout name="Backend/Default" />
|
||||
|
||||
<f:section name="content">
|
||||
<h1>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.newsPidListing.header" />
|
||||
</h1>
|
||||
<f:flashMessages class="tx-extbase-flash-message" />
|
||||
<p class="lead">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.newsPidListing.description" />
|
||||
</p>
|
||||
<f:form action="newsPidListing" class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label for="treeLevel" class="col-sm-3 control-label">
|
||||
<f:translate key="LLL:EXT:lang/locallang_general.xlf:LGL.recursive" />
|
||||
</label>
|
||||
<div class="col-sm-4">
|
||||
<f:form.select class="form-control" name="treeLevel" id="treeLevel" options="{1:1,2:2,3:3,4:4,5:5,6:6,7:7}" value="{treeLevel}" additionalAttributes="{onchange:'this.form.submit()'}" />
|
||||
</div>
|
||||
</div>
|
||||
</f:form>
|
||||
<table class="t3-table">
|
||||
<thead>
|
||||
<tr class="t3-row-header">
|
||||
<th>
|
||||
<f:translate key="LLL:EXT:lang/locallang_tca.xlf:pages" />
|
||||
</th>
|
||||
<th>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news" />
|
||||
</th>
|
||||
<th>
|
||||
<f:translate key="LLL:EXT:lang/locallang_tca.xlf:sys_category" />
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<f:for each="{tree}" as="item">
|
||||
<tr class="{f:if(condition: item.countNewsAndCategories, then: '', else: 'hide_line')}">
|
||||
<td class="icon" nowrap="nowrap">
|
||||
<f:format.html parseFuncTSPath="">{item.HTML}</f:format.html>
|
||||
<f:link.action action="index" additionalParams="{id:item.row.uid}" title="UID: {item.row.uid}">{item.row.title}</f:link.action>
|
||||
</td>
|
||||
<td>{item.countNews}</td>
|
||||
<td>{item.countCategories}</td>
|
||||
</tr>
|
||||
</f:for>
|
||||
</table>
|
||||
</f:section>
|
||||
@@ -0,0 +1,176 @@
|
||||
<f:layout name="Backend/Simple" />
|
||||
|
||||
<f:section name="iconButtons">
|
||||
|
||||
</f:section>
|
||||
|
||||
<f:section name="content">
|
||||
<h3 class="uppercase">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.header" />
|
||||
</h3>
|
||||
|
||||
<p class="description">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.description" />
|
||||
</p>
|
||||
<div class="alert alert-warning">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.backupwarning" />
|
||||
</div>
|
||||
<br />
|
||||
<f:if condition="{error}">
|
||||
<div class="alert alert-danger">
|
||||
<div class="message-header">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.error.configuration.title" />
|
||||
</div>
|
||||
<div class="message-body">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:{error}" default="{error}" />
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
<f:if condition="{availableJobs -> f:count()} > 1">
|
||||
<f:then>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.choose_a_job" />:
|
||||
<f:form.select id="jobSelector" options="{availableJobs}" />
|
||||
<br /><br />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<div class="alert alert-info">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.nojobs" />
|
||||
</div>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
<div id="job" style="display:none;">
|
||||
<div id="progressBar" style="width:300px;"></div>
|
||||
<button id="startButton">Start</button>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var moduleUrl = '{f:format.raw(value: moduleUrl)}';
|
||||
<![CDATA[
|
||||
Ext.namespace('Tx_News');
|
||||
|
||||
Tx_News.Common = function () {
|
||||
var pub = {};
|
||||
var extKey = 'news';
|
||||
|
||||
var underscoreToUpperCamelCase = function (subject) {
|
||||
var matches = subject.match(/(_\w)/g);
|
||||
if (matches) {
|
||||
matches.each(function (m) {
|
||||
subject = subject.replace(m, m.charAt(1).toUpperCase());
|
||||
});
|
||||
}
|
||||
return subject.charAt(0).toUpperCase() + subject.substr(1);
|
||||
};
|
||||
|
||||
var getParameterPrefix = function (mainModuleName, subModuleName) {
|
||||
return 'tx_' + extKey + '_' + mainModuleName + '_' + extKey + subModuleName.replace(/_/g, '');
|
||||
};
|
||||
|
||||
pub.getExtKey = function () {
|
||||
return extKey;
|
||||
};
|
||||
|
||||
pub.getBackendRequest = function (mainModuleName, subModuleName, controller, action, parameters) {
|
||||
var parameterPrefix = getParameterPrefix(mainModuleName, subModuleName);
|
||||
var params = {};
|
||||
|
||||
Ext.apply(parameters, {controller: controller, action: action});
|
||||
|
||||
Ext.iterate(parameters, function (key, value) {
|
||||
params[parameterPrefix + '[' + key + ']'] = value;
|
||||
});
|
||||
|
||||
var request = {
|
||||
'url': moduleUrl,
|
||||
'params': params
|
||||
};
|
||||
|
||||
return request;
|
||||
};
|
||||
|
||||
return pub;
|
||||
}();
|
||||
|
||||
|
||||
Tx_News.Importer = function () {
|
||||
var pub = {};
|
||||
var jobInfo = {};
|
||||
var progressBar;
|
||||
|
||||
var runCounter = 0;
|
||||
|
||||
var run = function () {
|
||||
var request = Ext.apply(Tx_News.Common.getBackendRequest('web', 'tx_news_m1', 'Import',
|
||||
'runJob', {jobClassName: jobInfo.jobClassName, offset: runCounter * jobInfo.increaseOffsetPerRunBy}));
|
||||
|
||||
Ext.apply(request, {
|
||||
success: function () {
|
||||
var progress = runCounter / jobInfo.runsToComplete;
|
||||
|
||||
progressBar.updateProgress(progress, Math.round(100 * progress) + '%');
|
||||
runCounter++;
|
||||
|
||||
if (runCounter <= jobInfo.runsToComplete) {
|
||||
run();
|
||||
} else {
|
||||
progressBar.updateText('Done.');
|
||||
progressBar.reset();
|
||||
runCounter = 1;
|
||||
}
|
||||
},
|
||||
failure: function () {
|
||||
alert('error');
|
||||
}
|
||||
});
|
||||
|
||||
Ext.Ajax.request(request);
|
||||
};
|
||||
|
||||
var initJob = function () {
|
||||
Ext.get('job').show();
|
||||
|
||||
progressBar = new Ext.ProgressBar({
|
||||
renderTo: 'progressBar'
|
||||
});
|
||||
|
||||
Ext.get('startButton').on('click', function () {
|
||||
run();
|
||||
});
|
||||
};
|
||||
|
||||
var loadJobInfo = function (jobClassName) {
|
||||
var request = Ext.apply(Tx_News.Common.getBackendRequest('web', 'tx_news_m1', 'Import',
|
||||
'jobInfo', {jobClassName: jobClassName}));
|
||||
|
||||
Ext.apply(request, {
|
||||
success: function (response) {
|
||||
jobInfo = (Ext.decode(response.responseText));
|
||||
Ext.apply(jobInfo, {jobClassName: jobClassName});
|
||||
initJob();
|
||||
}
|
||||
});
|
||||
|
||||
Ext.Ajax.request(request);
|
||||
};
|
||||
|
||||
pub.init = function () {
|
||||
Ext.get('jobSelector').on('change', function () {
|
||||
var jobClassName = this.getValue();
|
||||
if (jobClassName != '0') {
|
||||
loadJobInfo(jobClassName);
|
||||
} else {
|
||||
Ext.get('job').hide();
|
||||
}
|
||||
});
|
||||
};
|
||||
return pub;
|
||||
}();
|
||||
|
||||
Ext.onReady(function () {
|
||||
Tx_News.Importer.init();
|
||||
});
|
||||
]]>
|
||||
</script>
|
||||
</f:section>
|
||||
@@ -0,0 +1,179 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:layout name="Backend/Default" />
|
||||
|
||||
<f:section name="categoryTree">
|
||||
<ul class="list-unstyled">
|
||||
<f:for each="{categories}" as="category">
|
||||
<li>
|
||||
<f:form.checkbox id="category-{category.item.uid}" property="selectedCategories" value="{category.item.uid}" />
|
||||
<label for="category-{category.item.uid}" title="{category.item.uid}">{category.item.title}</label>
|
||||
|
||||
<f:if condition="{category.children}">
|
||||
<f:render section="categoryTree" arguments="{categories: category.children}" />
|
||||
</f:if>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:section>
|
||||
|
||||
<f:section name="content">
|
||||
<h1>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.title" />
|
||||
</h1>
|
||||
|
||||
<f:if condition="{page} == 0">
|
||||
<div class="typo3-message message-information">
|
||||
<div class="message-body">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.nopageselected" />
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
<f:flashMessages class="tx-extbase-flash-message" />
|
||||
|
||||
<f:form name="demand" object="{demand}" method="get" >
|
||||
<input type="hidden" name="M" value="web_NewsTxNewsM2">
|
||||
<input type="hidden" name="moduleToken" value="{moduleToken}">
|
||||
<input type="hidden" name="id" value="{page}">
|
||||
|
||||
<h2>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.headline" />
|
||||
</h2>
|
||||
<div class="settings">
|
||||
<div class="form">
|
||||
<div class="field">
|
||||
<label for="recursive">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.recursive" />
|
||||
</label>
|
||||
<f:form.select property="recursive" options="{0:0,1:1,2:2,3:3,4:4,5:5}" id="recursive" />
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label for="timeRestriction">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.timeRestriction" />
|
||||
</label>
|
||||
<f:form.textfield property="timeRestriction" id="timeRestriction" />
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="timeRestrictionHigh">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.timeRestrictionHigh" />
|
||||
</label>
|
||||
<f:form.textfield property="timeRestrictionHigh" id="timeRestrictionHigh" />
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="topNewsRestriction">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.topNewsRestriction" />
|
||||
</label>
|
||||
<f:form.select property="topNewsRestriction" options="{
|
||||
0:'',
|
||||
1:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.topNewsRestriction.1\')}',
|
||||
2:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.topNewsRestriction.2\')}'
|
||||
}" id="topNewsRestriction" />
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="field" style="margin-top:10px;">
|
||||
<label for="sortingField">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderBy" />
|
||||
</label>
|
||||
<f:form.select property="sortingField" options="{
|
||||
title:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderBy.title\')}',
|
||||
datetime:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderBy.datetime\')}',
|
||||
tstamp:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderBy.tstamp\')}',
|
||||
archive:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news.archive\')}',
|
||||
author:'{f:translate(key: \'LLL:EXT:cms/locallang_tca.xlf:pages.author_formlabel\')}'
|
||||
}" id="sortingField" />
|
||||
<f:form.select property="sortingDirection" options="{
|
||||
asc:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderDirection.asc\')}',
|
||||
desc:'{f:translate(key: \'LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderDirection.desc\')}'
|
||||
}" id="sortingDirection" />
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<f:form.submit value="{f:translate(key:'LLL:EXT:lang/locallang_common.xlf:search')}" class="submit" />
|
||||
</div>
|
||||
|
||||
<div class="category-tree">
|
||||
<div class="tree-wrapper">
|
||||
<f:render section="categoryTree" arguments="{categories: categories}" />
|
||||
</div>
|
||||
|
||||
<f:if condition="{categories}">
|
||||
<div class="field">
|
||||
<label for="categoryConjunction">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.categoryConjunction" />
|
||||
</label>
|
||||
<f:form.select property="categoryConjunction" options="{AND:'AND', OR:'OR', notor:'notor', notand:'notand'}" id="categoryConjunction" />
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</f:if>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</f:form>
|
||||
|
||||
<f:if condition="{news}">
|
||||
<f:then>
|
||||
<div class="result">
|
||||
<f:if condition="{settings.list.paginate.itemsPerPage} == 0">
|
||||
<div class="typo3-message message-warning">
|
||||
<div class="message-body">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.nolimit" arguments="{0:'settings.list.paginate.itemsPerPage'}"/>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
<f:be.widget.paginate objects="{news}" as="paginatedNews" configuration="{itemsPerPage: settings.list.paginate.itemsPerPage}">
|
||||
<table cellpadding="0" cellmargin="0" cellspacing="0" class="t3-table">
|
||||
<thead>
|
||||
<tr class="t3-row-header">
|
||||
<td>
|
||||
<span><f:translate key="LLL:EXT:cms/locallang_ttc.xlf:header_formlabel" /></span>
|
||||
<n:be.buttons.icon uri="#" onclick="{n:be.multiEditLink(items:paginatedNews,columns:'title')}" icon="actions-document-open" />
|
||||
</td>
|
||||
<td>
|
||||
<span><f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news.istopnews" /></span>
|
||||
<n:be.buttons.icon uri="#" onclick="{n:be.multiEditLink(items:paginatedNews,columns:'istopnews')}" icon="actions-document-open" />
|
||||
</td>
|
||||
<td class="date">
|
||||
<span><f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news.datetime" /></span>
|
||||
<n:be.buttons.icon uri="#" onclick="{n:be.multiEditLink(items:paginatedNews,columns:'datetime')}" icon="actions-document-open" />
|
||||
</td>
|
||||
<td class="date">
|
||||
<span><f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news.archive" /></span>
|
||||
<n:be.buttons.icon uri="#" onclick="{n:be.multiEditLink(items:paginatedNews,columns:'archive')}" icon="actions-document-open" />
|
||||
</td>
|
||||
<td>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.orderBy.tstamp" />
|
||||
</td>
|
||||
<td class="nosort"></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<f:for each="{paginatedNews}" as="newsItem">
|
||||
<f:render partial="Administration/ListItem" arguments="{newsItem: newsItem, dateformat:dateformat}" />
|
||||
</f:for>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:module.newsCount" arguments="{0:'{f:count(subject:news)}'}" />
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</f:be.widget.paginate>
|
||||
</div>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<div class="typo3-message message-notice">
|
||||
<div class="message-body">
|
||||
<f:translate key="list_nonewsfound" />
|
||||
</div>
|
||||
</div>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:section>
|
||||
@@ -0,0 +1,45 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:layout name="Backend/Default" />
|
||||
|
||||
<f:section name="content">
|
||||
<h2>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.newsPidListing.header" />
|
||||
</h2>
|
||||
<f:flashMessages class="tx-extbase-flash-message" />
|
||||
<p>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:administration.newsPidListing.description" />
|
||||
</p>
|
||||
<br />
|
||||
<f:form action="newsPidListing">
|
||||
<label for="treeLevel">
|
||||
<f:translate key="LLL:EXT:lang/locallang_general.xlf:LGL.recursive" />
|
||||
</label>
|
||||
<f:form.select name="treeLevel" id="treeLevel" options="{1:1,2:2,3:3,4:4,5:5,6:6,7:7}" value="{treeLevel}" additionalAttributes="{onchange:'this.form.submit()'}" />
|
||||
</f:form>
|
||||
<table cellpadding="0" cellmargin="0" cellspacing="0" class="t3-table">
|
||||
<thead>
|
||||
<tr class="t3-row-header">
|
||||
<td>
|
||||
<f:translate key="LLL:EXT:lang/locallang_tca.xlf:pages" />
|
||||
</td>
|
||||
<td>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xlf:tx_news_domain_model_news" />
|
||||
</td>
|
||||
<td>
|
||||
<f:translate key="LLL:EXT:lang/locallang_tca.xlf:sys_category" />
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<f:for each="{tree}" as="item">
|
||||
<tr class="db_list_normal {f:if(condition: item.countNewsAndCategories, then: 'show', else: 'hide')}">
|
||||
<td class="icon" nowrap="nowrap">
|
||||
<f:format.html parseFuncTSPath="">{item.HTML}</f:format.html>
|
||||
<f:link.action action="index" additionalParams="{id:item.row.uid}" title="UID: {item.row.uid}">{item.row.title}</f:link.action>
|
||||
</td>
|
||||
<td>{item.countNews}</td>
|
||||
<td>{item.countCategories}</td>
|
||||
</tr>
|
||||
</f:for>
|
||||
</table>
|
||||
</f:section>
|
||||
@@ -0,0 +1,43 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
<f:layout name="General" />
|
||||
<!--
|
||||
=====================
|
||||
Templates/Category/List.html
|
||||
-->
|
||||
|
||||
<f:section name="content">
|
||||
<f:if condition="{categories}">
|
||||
<f:then>
|
||||
|
||||
|
||||
<f:render section="categoryTree" arguments="{categories:categories,overwriteDemand:overwriteDemand}" />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:translate key="list_nocategoriesfound" />
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
<f:section name="categoryTree">
|
||||
<ul>
|
||||
<f:for each="{categories}" as="category">
|
||||
<li>
|
||||
<f:if condition="{category.item.uid} == {overwriteDemand.categories}">
|
||||
<f:then>
|
||||
<f:link.page class="active" pageUid="{settings.listPid}"
|
||||
additionalParams="{tx_news_pi1:{overwriteDemand:{categories: category.item.uid}}}">{category.item.title}
|
||||
</f:link.page>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:link.page pageUid="{settings.listPid}" additionalParams="{tx_news_pi1:{overwriteDemand:{categories: category.item.uid}}}">{category.item.title}
|
||||
</f:link.page>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{category.children}">
|
||||
<f:render section="categoryTree" arguments="{categories: category.children,overwriteDemand:overwriteDemand}" />
|
||||
</f:if>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:section>
|
||||
@@ -0,0 +1,180 @@
|
||||
<f:layout name="Backend/Simple" />
|
||||
|
||||
<f:section name="iconButtons">
|
||||
|
||||
</f:section>
|
||||
|
||||
<f:section name="content">
|
||||
<h3 class="uppercase">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.header" />
|
||||
</h3>
|
||||
|
||||
<p class="description">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.description" />
|
||||
</p>
|
||||
<div class="typo3-message message-warning">
|
||||
<div class="message-body">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.backupwarning" />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<f:if condition="{error}">
|
||||
<div class="typo3-message message-error">
|
||||
<div class="message-header">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.error.configuration.title" />
|
||||
</div>
|
||||
<div class="message-body">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:{error}" default="{error}" />
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
<f:if condition="{availableJobs -> f:count()} > 1">
|
||||
<f:then>
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.choose_a_job" />:
|
||||
<f:form.select id="jobSelector" options="{availableJobs}" />
|
||||
<br /><br />
|
||||
</f:then>
|
||||
<f:else>
|
||||
<div class="typo3-message message-information">
|
||||
<div class="message-body">
|
||||
<f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:import.nojobs" />
|
||||
</div>
|
||||
</div>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
<div id="job" style="display:none;">
|
||||
<div id="progressBar" style="width:300px;"></div>
|
||||
<button id="startButton">Start</button>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var moduleUrl = '{f:format.raw(value: moduleUrl)}';
|
||||
<![CDATA[
|
||||
Ext.namespace('Tx_News');
|
||||
|
||||
Tx_News.Common = function () {
|
||||
var pub = {};
|
||||
var extKey = 'news';
|
||||
|
||||
var underscoreToUpperCamelCase = function (subject) {
|
||||
var matches = subject.match(/(_\w)/g);
|
||||
if (matches) {
|
||||
matches.each(function (m) {
|
||||
subject = subject.replace(m, m.charAt(1).toUpperCase());
|
||||
});
|
||||
}
|
||||
return subject.charAt(0).toUpperCase() + subject.substr(1);
|
||||
};
|
||||
|
||||
var getParameterPrefix = function (mainModuleName, subModuleName) {
|
||||
return 'tx_' + extKey + '_' + mainModuleName + '_' + extKey + subModuleName.replace(/_/g, '');
|
||||
};
|
||||
|
||||
pub.getExtKey = function () {
|
||||
return extKey;
|
||||
};
|
||||
|
||||
pub.getBackendRequest = function (mainModuleName, subModuleName, controller, action, parameters) {
|
||||
var parameterPrefix = getParameterPrefix(mainModuleName, subModuleName);
|
||||
var params = {};
|
||||
|
||||
Ext.apply(parameters, {controller: controller, action: action});
|
||||
|
||||
Ext.iterate(parameters, function (key, value) {
|
||||
params[parameterPrefix + '[' + key + ']'] = value;
|
||||
});
|
||||
|
||||
var request = {
|
||||
'url': moduleUrl,
|
||||
'params': params
|
||||
};
|
||||
|
||||
return request;
|
||||
};
|
||||
|
||||
return pub;
|
||||
}();
|
||||
|
||||
|
||||
Tx_News.Importer = function () {
|
||||
var pub = {};
|
||||
var jobInfo = {};
|
||||
var progressBar;
|
||||
|
||||
var runCounter = 0;
|
||||
|
||||
var run = function () {
|
||||
var request = Ext.apply(Tx_News.Common.getBackendRequest('web', 'tx_news_m1', 'Import',
|
||||
'runJob', {jobClassName: jobInfo.jobClassName, offset: runCounter * jobInfo.increaseOffsetPerRunBy}));
|
||||
|
||||
Ext.apply(request, {
|
||||
success: function () {
|
||||
var progress = runCounter / jobInfo.runsToComplete;
|
||||
|
||||
progressBar.updateProgress(progress, Math.round(100 * progress) + '%');
|
||||
runCounter++;
|
||||
|
||||
if (runCounter <= jobInfo.runsToComplete) {
|
||||
run();
|
||||
} else {
|
||||
progressBar.updateText('Done.');
|
||||
progressBar.reset();
|
||||
runCounter = 1;
|
||||
}
|
||||
},
|
||||
failure: function () {
|
||||
alert('error');
|
||||
}
|
||||
});
|
||||
|
||||
Ext.Ajax.request(request);
|
||||
};
|
||||
|
||||
var initJob = function () {
|
||||
Ext.get('job').show();
|
||||
|
||||
progressBar = new Ext.ProgressBar({
|
||||
renderTo: 'progressBar'
|
||||
});
|
||||
|
||||
Ext.get('startButton').on('click', function () {
|
||||
run();
|
||||
});
|
||||
};
|
||||
|
||||
var loadJobInfo = function (jobClassName) {
|
||||
var request = Ext.apply(Tx_News.Common.getBackendRequest('web', 'tx_news_m1', 'Import',
|
||||
'jobInfo', {jobClassName: jobClassName}));
|
||||
|
||||
Ext.apply(request, {
|
||||
success: function (response) {
|
||||
jobInfo = (Ext.decode(response.responseText));
|
||||
Ext.apply(jobInfo, {jobClassName: jobClassName});
|
||||
initJob();
|
||||
}
|
||||
});
|
||||
|
||||
Ext.Ajax.request(request);
|
||||
};
|
||||
|
||||
pub.init = function () {
|
||||
Ext.get('jobSelector').on('change', function () {
|
||||
var jobClassName = this.getValue();
|
||||
if (jobClassName != '0') {
|
||||
loadJobInfo(jobClassName);
|
||||
} else {
|
||||
Ext.get('job').hide();
|
||||
}
|
||||
});
|
||||
};
|
||||
return pub;
|
||||
}();
|
||||
|
||||
Ext.onReady(function () {
|
||||
Tx_News.Importer.init();
|
||||
});
|
||||
]]>
|
||||
</script>
|
||||
</f:section>
|
||||
@@ -0,0 +1,33 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
<f:layout name="General" />
|
||||
<!--
|
||||
=====================
|
||||
Templates/News/DateMenu.html
|
||||
-->
|
||||
|
||||
<f:section name="content">
|
||||
<div class="news-menu-view">
|
||||
<ul>
|
||||
<f:for each="{data.single}" key="year" as="months">
|
||||
<li>
|
||||
{year}
|
||||
<ul>
|
||||
<f:for each="{months}" key="month" as="count">
|
||||
<f:if condition="{0:year, 1:month} == {0:overwriteDemand.year, 1:overwriteDemand.month}">
|
||||
<f:then>
|
||||
<li class="item itemactive">
|
||||
</f:then>
|
||||
<f:else>
|
||||
<li class="item">
|
||||
</f:else>
|
||||
</f:if>
|
||||
<f:link.action pageUid="{listPid}" arguments="{overwriteDemand:{year: year, month: month}}"><f:translate key="month.{month}" /> {year}</f:link.action>
|
||||
({count} <f:translate key="{f:if(condition: '{count} == 1', then: 'entry', else: 'entries')}" />)
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</div>
|
||||
</f:section>
|
||||
@@ -0,0 +1,215 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:layout name="Detail.html" />
|
||||
|
||||
<!--
|
||||
=====================
|
||||
News/Detail.html
|
||||
-->
|
||||
|
||||
<f:section name="content">
|
||||
<f:if condition="{newsItem}">
|
||||
<f:then>
|
||||
<n:format.nothing>
|
||||
<f:if condition="{newsItem.alternativeTitle}">
|
||||
<f:then>
|
||||
<n:titleTag>
|
||||
<n:format.htmlentitiesDecode>{newsItem.alternativeTitle}</n:format.htmlentitiesDecode>
|
||||
</n:titleTag>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<n:titleTag>
|
||||
<n:format.htmlentitiesDecode>{newsItem.title}</n:format.htmlentitiesDecode>
|
||||
</n:titleTag>
|
||||
</f:else>
|
||||
</f:if>
|
||||
<f:render partial="Detail/Opengraph" arguments="{newsItem: newsItem, settings:settings}" />
|
||||
</n:format.nothing>
|
||||
<!-- <div class="headerNews">
|
||||
<h3>{newsItem.title}</h3>
|
||||
</div>-->
|
||||
<h1 class="title">{newsItem.title}</h1>
|
||||
<div class="footerNews">
|
||||
<p>
|
||||
<!-- date -->
|
||||
<span class="date">
|
||||
<n:format.date format="%d %B %Y">{newsItem.datetime}</n:format.date>
|
||||
</span>
|
||||
|
||||
<f:if condition="{newsItem.categories}">
|
||||
<f:render partial="Category/Items" arguments="{categories:newsItem.categories, settings:settings}" />
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{newsItem.tags}">
|
||||
<!-- Tags -->
|
||||
<span class="news-list-tags">
|
||||
<f:for each="{newsItem.tags}" as="tag">
|
||||
{tag.title}
|
||||
</f:for>
|
||||
</span>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{newsItem.author}">
|
||||
<!-- author -->
|
||||
<span class="news-list-author" itemscope itemtype="http://data-vocabulary.org/Person">
|
||||
<f:translate key="author_simple" /> <span itemprop="name">{newsItem.author}</span>
|
||||
</span>
|
||||
</f:if>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<f:if condition="{newsItem.teaser}">
|
||||
<!-- teaser -->
|
||||
<div class="teaser-text">
|
||||
<f:format.html>{newsItem.teaser}</f:format.html>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{newsItem.contentElements}">
|
||||
<!-- content elements -->
|
||||
<f:cObject typoscriptObjectPath="lib.tx_news.contentElementRendering">{newsItem.contentElementIdList}</f:cObject>
|
||||
</f:if>
|
||||
|
||||
<f:render partial="Detail/FalMediaContainer" arguments="{media: newsItem.falMedia, settings:settings}" />
|
||||
<f:render partial="Detail/MediaContainer" arguments="{media: newsItem.media, settings:settings}" />
|
||||
|
||||
<!-- main text -->
|
||||
<div class="news-text-wrap">
|
||||
<f:format.html>{newsItem.bodytext}</f:format.html>
|
||||
</div>
|
||||
|
||||
<f:if condition="{settings.backPid}">
|
||||
<!-- Link Back -->
|
||||
<div class="news-backlink-wrap">
|
||||
<f:link.page pageUid="{settings.backPid}">
|
||||
<f:translate key="back-link" />
|
||||
</f:link.page>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{settings.detail.showSocialShareButtons}">
|
||||
<div class="facebook">
|
||||
<div class="like">
|
||||
<n:social.facebook.like></n:social.facebook.like>
|
||||
</div>
|
||||
<div class="share">
|
||||
<n:social.facebook.share />
|
||||
</div>
|
||||
<div class="twitter">
|
||||
<n:social.twitter>Twitter</n:social.twitter>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{settings.detail.disqusShortname}">
|
||||
<n:social.disqus newsItem="{newsItem}"
|
||||
shortName="{settings.detail.disqusShortname}"
|
||||
link="{n:link(newsItem:newsItem,settings:settings,uriOnly:1,configuration:'{forceAbsoluteUrl:1}')}" />
|
||||
</f:if>
|
||||
|
||||
<!-- related things -->
|
||||
<div class="news-related-wrap">
|
||||
|
||||
<f:if condition="{newsItem.allRelatedSorted}">
|
||||
<!-- Related news records -->
|
||||
<div class="news-related news-related-news">
|
||||
<h4>
|
||||
<f:translate key="related-news" />
|
||||
</h4>
|
||||
<ul>
|
||||
<f:for each="{newsItem.allRelatedSorted}" as="related">
|
||||
<li>
|
||||
<span class="news-related-news-date"><n:format.date format="{f:translate(key:'dateFormat')}">{related.datetime}</n:format.date></span>
|
||||
<n:link newsItem="{related}" settings="{settings}">
|
||||
{related.title}
|
||||
</n:link>
|
||||
</li>
|
||||
|
||||
</f:for>
|
||||
</ul>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{newsItem.relatedFiles}">
|
||||
<!-- Related files -->
|
||||
<div class="news-related news-related-files">
|
||||
<h4>
|
||||
<f:translate key="related-files" />
|
||||
</h4>
|
||||
<ul>
|
||||
<f:for each="{newsItem.relatedFiles}" as="relatedFile">
|
||||
<li>
|
||||
<span class="news-related-files-link">
|
||||
<n:format.fileDownload file="uploads/tx_news/{relatedFile.file}" configuration="{settings.relatedFiles.download}">
|
||||
<f:if condition="{relatedFile.title}">
|
||||
<f:then>
|
||||
{relatedFile.title}
|
||||
</f:then>
|
||||
<f:else>
|
||||
{relatedFile.file}
|
||||
</f:else>
|
||||
</f:if>
|
||||
</n:format.fileDownload>
|
||||
</span>
|
||||
<span class="news-related-files-size">
|
||||
<n:format.fileSize file="uploads/tx_news/{relatedFile.file}" format="{settings.relatedFiles.fileSizeLabels}" />
|
||||
</span>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{newsItem.falRelatedFiles}">
|
||||
<!-- FAL related files -->
|
||||
<div class="news-related news-related-files">
|
||||
<h4>
|
||||
<f:translate key="related-files" />
|
||||
</h4>
|
||||
<ul>
|
||||
<f:for each="{newsItem.falRelatedFiles}" as="relatedFile">
|
||||
<li>
|
||||
<span class="news-related-files-link">
|
||||
<n:format.fileDownload file="{relatedFile.originalResource.publicUrl}" configuration="{settings.relatedFiles.download}">
|
||||
<f:if condition="{relatedFile.originalResource.title}">
|
||||
<f:then>
|
||||
{relatedFile.originalResource.title}
|
||||
</f:then>
|
||||
<f:else>
|
||||
{relatedFile.originalResource.name}
|
||||
</f:else>
|
||||
</f:if>
|
||||
</n:format.fileDownload>
|
||||
</span>
|
||||
<span class="news-related-files-size">
|
||||
{relatedFile.originalResource.size -> f:format.bytes()}
|
||||
</span>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{newsItem.relatedLinks}">
|
||||
<!-- Related links -->
|
||||
<div class="news-related news-related-links">
|
||||
<h4>
|
||||
<f:translate key="related-links" />
|
||||
</h4>
|
||||
<ul>
|
||||
<f:for each="{newsItem.relatedLinks}" as="relatedLink">
|
||||
<li>
|
||||
<f:link.page pageUid="{relatedLink.uri}" title="{relatedLink.title}" target="{n:targetLink(link:relatedLink.uri)}">{f:if(condition: relatedLink.title, then: relatedLink.title, else: relatedLink.uri)}</f:link.page>
|
||||
<f:if condition="{relatedLink.description}"><span>{relatedLink.description}</span></f:if>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</div>
|
||||
</f:if>
|
||||
</div>
|
||||
</f:then>
|
||||
<f:else>
|
||||
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:section>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
{namespace n=Tx_News_ViewHelpers}<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{settings.list.rss.channel.title}</title>
|
||||
<link href="{settings.list.rss.channel.link}"/>
|
||||
<link rel="self" href="<f:format.htmlentities><f:uri.page pageType="9818"/></f:format.htmlentities>"/>
|
||||
<id><f:uri.page/></id>
|
||||
<updated><n:format.date format="c" currentDate="1" strftime="0"/></updated>
|
||||
<f:if condition="{news}">
|
||||
<f:for each="{news}" as="newsItem">
|
||||
<entry>
|
||||
<id>{settings.list.rss.channel.link}news-{newsItem.uid}.atom</id>
|
||||
<title><n:format.hsc>{newsItem.title}</n:format.hsc></title>
|
||||
<author>
|
||||
<name><f:if condition="{newsItem.author}"><f:then>{newsItem.author}</f:then><f:else>-</f:else></f:if></name>
|
||||
<f:if condition="{newsItem.author_email}"><email>{newsItem.author_email}</email></f:if>
|
||||
</author>
|
||||
<published><n:format.date format="c" strftime="0">{newsItem.crdate}</n:format.date></published>
|
||||
<updated><n:format.date format="c" strftime="0">{newsItem.datetime}</n:format.date></updated>
|
||||
<link rel="alternate" type="text/html" href="<n:format.hsc><n:link newsItem="{newsItem}" settings="{settings}" uriOnly="1" /></n:format.hsc>"/>
|
||||
<summary><n:format.hsc><n:format.striptags>{newsItem.teaser}</n:format.striptags></n:format.hsc></summary>
|
||||
<content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
|
||||
<f:format.html>{newsItem.bodytext}</f:format.html>
|
||||
</div></content>
|
||||
</entry>
|
||||
</f:for>
|
||||
</f:if>
|
||||
</feed>
|
||||
@@ -0,0 +1,86 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
<f:layout name="General" />
|
||||
<!--
|
||||
=====================
|
||||
Templates/News/List.html
|
||||
-->
|
||||
|
||||
<f:section name="content">
|
||||
<f:if condition="{news}">
|
||||
<f:then>
|
||||
<f:if condition="{settings.templateLayout} == 100">
|
||||
|
||||
<!-- Archivio notizie -->
|
||||
<f:then>
|
||||
<ul class="base_list news_list">
|
||||
<f:if condition="{settings.hidePagination}">
|
||||
<f:then>
|
||||
<f:for each="{news}" as="newsItem" iteration="iterator">
|
||||
<f:render partial="List/Item" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
|
||||
</f:for>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<n:widget.paginate objects="{news}" as="paginatedNews" configuration="{settings.list.paginate}" initial="{offset:settings.offset,limit:settings.limit}">
|
||||
<f:for each="{paginatedNews}" as="newsItem" iteration="iterator">
|
||||
<f:render partial="List/Item" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
|
||||
</f:for>
|
||||
</n:widget.paginate>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</ul>
|
||||
</f:then>
|
||||
<!-- [FINE] Archivio notizie -->
|
||||
|
||||
<!-- Lista ultime notizie -->
|
||||
<f:else>
|
||||
<div class="four columns content omega">
|
||||
<div class="widget">
|
||||
<h3 class="t_line">Notizie</h3>
|
||||
<ol class="base_list icon_list">
|
||||
<f:if condition="{settings.hidePagination}">
|
||||
<f:then>
|
||||
<f:for each="{news}" as="newsItem" iteration="iterator">
|
||||
<f:render partial="List/Item" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
|
||||
<f:if condition="{iterator.isLast}">
|
||||
<f:then>
|
||||
<li>
|
||||
<br><i class="fa fa-archive"></i>
|
||||
<f:link.action pageUid="{settings.listPid}">Archivio notizie</f:link.action>
|
||||
</li>
|
||||
</f:then>
|
||||
<f:else></f:else>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<n:widget.paginate objects="{news}" as="paginatedNews" configuration="{settings.list.paginate}" initial="{offset:settings.offset,limit:settings.limit}">
|
||||
<f:for each="{paginatedNews}" as="newsItem" iteration="iterator">
|
||||
<f:render partial="List/Item" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
|
||||
<f:if condition="{iterator.isLast}">
|
||||
<f:then>
|
||||
<li>
|
||||
<br><i class="fa fa-archive"></i>
|
||||
<f:link.action pageUid="{settings.listPid}">Archivio notizie</f:link.action>
|
||||
</li>
|
||||
</f:then>
|
||||
<f:else></f:else>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</n:widget.paginate>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</f:else>
|
||||
<!-- [FINE] Lista ultime notizie -->
|
||||
|
||||
</f:if>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<div class="no-news-found">
|
||||
<f:translate key="list_nonewsfound" />
|
||||
</div>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:section>
|
||||
@@ -0,0 +1,11 @@
|
||||
{namespace n=Tx_News_ViewHelpers}BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//TYPO3/NONSGML News system (news)//EN
|
||||
<f:if condition="{news}"><f:for each="{news}" as="newsItem">BEGIN:VEVENT
|
||||
UID:news-{newsItem.uid}@{settings.domain}
|
||||
DTSTAMP:<n:format.date format="%Y%m%dT%H%M%S%Z" strftime="1">{newsItem.tstamp}</n:format.date>
|
||||
DTSTART:<n:format.date format="%Y%m%dT%H%M%S%Z" strftime="1">{newsItem.datetime}</n:format.date>
|
||||
DTEND:<n:format.date format="%Y%m%dT%H%M%S%Z" strftime="1"><f:if condition="{newsItem.archive}"><f:then>{newsItem.archive}</f:then><f:else>{newsItem.datetime}</f:else></f:if></n:format.date>
|
||||
SUMMARY:<n:format.hsc>{newsItem.title}</n:format.hsc>
|
||||
END:VEVENT
|
||||
</f:for></f:if>END:VCALENDAR
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
{namespace n=Tx_News_ViewHelpers}<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{settings.list.rss.channel.title}</title>
|
||||
<link>{settings.list.rss.channel.link}</link>
|
||||
<description>{settings.list.rss.channel.description}</description>
|
||||
<language>{settings.list.rss.channel.language}</language>
|
||||
<f:if condition="{settings.list.rss.channel.copyright}">
|
||||
<copyright>{settings.list.rss.channel.copyright}</copyright>
|
||||
</f:if>
|
||||
<pubDate><n:format.date format="r" currentDate="1" strftime="0" /></pubDate>
|
||||
<lastBuildDate><n:format.date format="r" currentDate="1" strftime="0" /></lastBuildDate>
|
||||
<f:if condition="{settings.list.rss.channel.category}">
|
||||
<category>{settings.list.rss.channel.category}</category>
|
||||
</f:if>
|
||||
<atom:link href="<f:format.htmlentities><f:uri.page pageType="9818"/></f:format.htmlentities>" rel="self" type="application/rss+xml" />
|
||||
<generator>{settings.list.rss.channel.generator}</generator>
|
||||
<f:if condition="{news}">
|
||||
<f:for each="{news}" as="newsItem">
|
||||
<item>
|
||||
<guid isPermaLink="false">news-{newsItem.uid}</guid>
|
||||
<pubDate><n:format.date format="r" strftime="0">{newsItem.datetime}</n:format.date></pubDate>
|
||||
<title><n:format.hsc>{newsItem.title}</n:format.hsc></title>
|
||||
<link><f:format.htmlentities><n:link newsItem="{newsItem}" settings="{settings}" uriOnly="1" /></f:format.htmlentities></link>
|
||||
<description><n:format.hsc><n:format.striptags>{newsItem.teaser}</n:format.striptags></n:format.hsc></description>
|
||||
<content:encoded><f:format.cdata><f:format.html>{newsItem.bodytext}</f:format.html></f:format.cdata></content:encoded>
|
||||
</item>
|
||||
</f:for>
|
||||
</f:if>
|
||||
</channel>
|
||||
</rss>
|
||||
@@ -0,0 +1,31 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
<f:layout name="General" />
|
||||
<!--
|
||||
=====================
|
||||
Templates/News/SearchForm.html
|
||||
-->
|
||||
|
||||
<f:section name="content">
|
||||
<div class="news-search-form">
|
||||
<f:form object="{search}" name="search" pageUid="{settings.listPid}">
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label for="news-subject"><f:translate key="search-subject" /></label>
|
||||
<f:form.textfield id="news-subject" property="subject" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="news-minimumDate"><f:translate key="search-minimumDate" /></label>
|
||||
<f:form.textfield id="news-minimumDate" property="minimumDate" type="date" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="news-maximumDate"><f:translate key="search-maximumDate" /></label>
|
||||
<f:form.textfield id="news-maximumDate" property="maximumDate" type="date" class="form-control"/>
|
||||
</div>
|
||||
|
||||
<f:form.submit value="{f:translate(key:'search-start')}" class="btn btn-default"/>
|
||||
</fieldset>
|
||||
</f:form>
|
||||
</div>
|
||||
</f:section>
|
||||
@@ -0,0 +1,28 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
<f:layout name="General" />
|
||||
<!--
|
||||
=====================
|
||||
Templates/News/SearchResult.html
|
||||
-->
|
||||
|
||||
<f:section name="content">
|
||||
<div class="news-search-result">
|
||||
<f:if condition="{search}">
|
||||
<f:if condition="{news}">
|
||||
<f:then>
|
||||
<div class="count-msg">
|
||||
<f:translate key="search-text" arguments="{0:'{f:count(subject:news)}',1:search.subject}" />
|
||||
</div>
|
||||
<f:for each="{news}" as="newsItem">
|
||||
<f:render partial="List/Item" arguments="{newsItem: newsItem, settings:settings, className:className, view:'list'}" />
|
||||
</f:for>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<div class="no-news-found">
|
||||
<f:translate key="search-noresult" />
|
||||
</div>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:if>
|
||||
</div>
|
||||
</f:section>
|
||||
@@ -0,0 +1,31 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
<f:layout name="General" />
|
||||
|
||||
<!--
|
||||
=====================
|
||||
Templates/Tag/List.html
|
||||
-->
|
||||
|
||||
<f:section name="content">
|
||||
<f:if condition="{tags}">
|
||||
<ul class="news-tags">
|
||||
<f:for each="{tags}" as="tag">
|
||||
<li>
|
||||
<f:if condition="{tag.uid} == {overwriteDemand.tags}">
|
||||
<f:then>
|
||||
<f:link.page class="active" pageUid="{settings.listPid}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">
|
||||
{tag.title}
|
||||
</f:link.page>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:link.page pageUid="{settings.listPid}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">
|
||||
{tag.title}
|
||||
</f:link.page>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:if>
|
||||
</f:section>
|
||||
@@ -0,0 +1,15 @@
|
||||
<a href="{url}" style="display:block;width:{width}px;height:{height}px;" id="{uniqueDivId}"></a>
|
||||
<script type="text/javascript">
|
||||
flowplayer("{uniqueDivId}", "typo3conf/ext/news/Resources/Public/JavaScript/Contrib/flowplayer-3.2.16.swf", <![CDATA[{
|
||||
clip:{
|
||||
autoPlay:false,
|
||||
autoBuffering:true
|
||||
},
|
||||
plugins:{
|
||||
controls:{
|
||||
volume:true
|
||||
}
|
||||
}
|
||||
});
|
||||
]]>
|
||||
</script>
|
||||
@@ -0,0 +1,94 @@
|
||||
{namespace n=Tx_News_ViewHelpers}
|
||||
|
||||
<f:if condition="{configuration.insertAbove}">
|
||||
<f:render section="paginator" arguments="{pagination: pagination,configuration:configuration}" />
|
||||
</f:if>
|
||||
|
||||
<f:renderChildren arguments="{contentArguments}" />
|
||||
|
||||
<f:if condition="{configuration.insertBelow}">
|
||||
<f:render section="paginator" arguments="{pagination: pagination,configuration:configuration}" />
|
||||
</f:if>
|
||||
|
||||
<f:section name="paginator">
|
||||
<f:if condition="{pagination.numberOfPages} > 1">
|
||||
<f:if condition="{settings.list.paginate}">
|
||||
<f:if condition="{pagination.previousPage}">
|
||||
<f:if condition="{pagination.previousPage} > 1">
|
||||
<f:then>
|
||||
<n:headerData><link rel="prev" href="<f:widget.uri arguments="{currentPage: pagination.previousPage}" />" /></n:headerData>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<n:headerData><link rel="prev" href="<f:widget.uri />" /></n:headerData>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:if>
|
||||
<f:if condition="{pagination.nextPage}">
|
||||
<n:headerData><link rel="next" href="<f:widget.uri arguments="{currentPage: pagination.nextPage}" />" /></n:headerData>
|
||||
</f:if>
|
||||
</f:if>
|
||||
|
||||
<!--
|
||||
<p>
|
||||
<f:translate key="paginate_overall" arguments="{0:pagination.current,1:pagination.numberOfPages}" />
|
||||
</p>
|
||||
-->
|
||||
<br>
|
||||
<div class="clearfix num_bar">
|
||||
|
||||
<f:if condition="{pagination.previousPage}">
|
||||
<f:if condition="{pagination.previousPage} > 1">
|
||||
<f:then>
|
||||
<f:widget.link arguments="{currentPage: pagination.previousPage}">
|
||||
<i class="fa fa-caret-left"></i>
|
||||
<f:translate key="paginate_previous" />
|
||||
</f:widget.link> |
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:widget.link>
|
||||
<i class="fa fa-caret-left"></i>
|
||||
<f:translate key="paginate_previous" />
|
||||
</f:widget.link> |
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:if>
|
||||
<f:if condition="{pagination.displayRangeStart} > 1">
|
||||
<f:widget.link>1</f:widget.link> |
|
||||
</f:if>
|
||||
<f:if condition="{pagination.hasLessPages}">
|
||||
.... |
|
||||
</f:if>
|
||||
<f:for each="{pagination.pages}" as="page">
|
||||
<f:if condition="{page.isCurrent}">
|
||||
<f:then>
|
||||
<f:widget.link class="current">{page.number}</f:widget.link> |
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:if condition="{page.number} > 1">
|
||||
<f:then>
|
||||
<f:widget.link arguments="{currentPage: page.number}">{page.number}</f:widget.link> |
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:widget.link>{page.number}</f:widget.link> |
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:for>
|
||||
<f:if condition="{pagination.hasMorePages}">
|
||||
.... |
|
||||
</f:if>
|
||||
<f:if condition="{pagination.displayRangeEnd} < {pagination.numberOfPages}">
|
||||
<f:widget.link arguments="{currentPage: pagination.numberOfPages}">{pagination.numberOfPages}</f:widget.link>
|
||||
</f:if>
|
||||
<f:if condition="{pagination.nextPage}">
|
||||
<f:widget.link arguments="{currentPage: pagination.nextPage}">
|
||||
<f:translate key="paginate_next" />
|
||||
<i class="fa fa-caret-right"></i>
|
||||
</f:widget.link>
|
||||
</f:if>
|
||||
|
||||
</div>
|
||||
|
||||
</f:if>
|
||||
</f:section>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="tx-pwteaser-pi1">
|
||||
<f:render section="main" />
|
||||
</div>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user