From 94dcce05c3a8deb66a6c319a31242dd43f904c7b Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 14 Mar 2018 10:53:10 +0100 Subject: [PATCH] activated video filter and making it to work; finded the way to call Drupal.behaviors after custom ajax : Drupal.attachBehaviors(context) --- .../filters/url_to_video_filter/.gitignore | 3 + .../filters/url_to_video_filter/LICENSE.txt | 339 ++++++++++++++++++ .../filters/url_to_video_filter/README.txt | 19 + .../css/url_to_video_embed.css | 54 +++ .../css/url_to_video_embed.scss | 72 ++++ .../images/ajax-loader.gif | Bin 0 -> 8787 bytes .../url_to_video_filter/images/no-js.png | Bin 0 -> 2572 bytes .../images/play-button.png | Bin 0 -> 2473 bytes .../url_to_video_filter/js/vimeo_embed.js | 66 ++++ .../url_to_video_filter/js/youtube_embed.js | 55 +++ .../src/Plugin/Filter/FilterUrlToVideo.php | 159 ++++++++ .../src/Service/UrlToVideoFilterService.php | 149 ++++++++ .../UrlToVideoFilterServiceInterface.php | 34 ++ ...lToVideoFilterFunctionalJavascriptTest.php | 189 ++++++++++ ...ideoFilterFunctionalJavascriptTestBase.php | 115 ++++++ .../Service/UrlToVideoFilterServiceTest.php | 71 ++++ .../url_to_video_filter.info.yml | 12 + .../url_to_video_filter.libraries.yml | 21 ++ .../url_to_video_filter.services.yml | 6 + .../edlptheme/assets/dist/scripts/main.min.js | 11 + .../edlptheme/assets/dist/styles/app.min.css | 35 +- .../custom/edlptheme/assets/scripts/main.js | 11 + .../custom/edlptheme/assets/styles/app.scss | 87 +++++ .../edlptheme/assets/styles/base/_layout.scss | 10 +- .../custom/edlptheme/edlptheme.libraries.yml | 4 + sites/default/config/sync/core.extension.yml | 1 + .../config/sync/filter.format.wysiwyg.yml | 27 +- 27 files changed, 1536 insertions(+), 14 deletions(-) create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/.gitignore create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/LICENSE.txt create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/README.txt create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/css/url_to_video_embed.css create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/css/url_to_video_embed.scss create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/images/ajax-loader.gif create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/images/no-js.png create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/images/play-button.png create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/js/vimeo_embed.js create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/js/youtube_embed.js create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/src/Plugin/Filter/FilterUrlToVideo.php create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/src/Service/UrlToVideoFilterService.php create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/src/Service/UrlToVideoFilterServiceInterface.php create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/tests/src/FunctionalJavascript/UrlToVideoFilterFunctionalJavascriptTest.php create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/tests/src/FunctionalJavascript/UrlToVideoFilterFunctionalJavascriptTestBase.php create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/tests/src/Unit/Service/UrlToVideoFilterServiceTest.php create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/url_to_video_filter.info.yml create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/url_to_video_filter.libraries.yml create mode 100644 sites/all/modules/contrib/filters/url_to_video_filter/url_to_video_filter.services.yml diff --git a/sites/all/modules/contrib/filters/url_to_video_filter/.gitignore b/sites/all/modules/contrib/filters/url_to_video_filter/.gitignore new file mode 100644 index 000000000..a6c5d125b --- /dev/null +++ b/sites/all/modules/contrib/filters/url_to_video_filter/.gitignore @@ -0,0 +1,3 @@ +**/.DS_Store +**/.sass-cache + diff --git a/sites/all/modules/contrib/filters/url_to_video_filter/LICENSE.txt b/sites/all/modules/contrib/filters/url_to_video_filter/LICENSE.txt new file mode 100644 index 000000000..d159169d1 --- /dev/null +++ b/sites/all/modules/contrib/filters/url_to_video_filter/LICENSE.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + 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 +this service 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. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +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 +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the 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 a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE 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. + + 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 +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/sites/all/modules/contrib/filters/url_to_video_filter/README.txt b/sites/all/modules/contrib/filters/url_to_video_filter/README.txt new file mode 100644 index 000000000..bf5ee7878 --- /dev/null +++ b/sites/all/modules/contrib/filters/url_to_video_filter/README.txt @@ -0,0 +1,19 @@ +Url to Video Filter + +### Supported Services ### + +Currently this module supports the following services: + +* YouTube +* Vimeo + +If you have another service you would like added, please open a feature request in the support queue. + + +### Configuration ### + +* Install the module as you would any module +* Edit or create a new text format at /config/content/formats +* Check the Convert URLs to embedded videos checkbox +* Select the video sharing services you wish to enable in the settings form +* If you have enabled the 'Convert URLs into links' filter, ensure that this filter comes before it diff --git a/sites/all/modules/contrib/filters/url_to_video_filter/css/url_to_video_embed.css b/sites/all/modules/contrib/filters/url_to_video_filter/css/url_to_video_embed.css new file mode 100644 index 000000000..6b0727b8f --- /dev/null +++ b/sites/all/modules/contrib/filters/url_to_video_filter/css/url_to_video_embed.css @@ -0,0 +1,54 @@ +.url-to-video-container { + display: block; + margin: 20px auto; + width: 100%; } + .url-to-video-container.no-js { + border: solid black 1px; } + .url-to-video-container.no-js .loader { + background: url(../images/no-js.png) no-repeat center center; + background-size: 40px 40px; } + .url-to-video-container.no-js .url-to-video-player { + cursor: auto; } + .url-to-video-container .loader { + top: 240px; + left: 50%; + transform: translate(-50%, -50%); + background: #FFF url(../images/ajax-loader.gif) no-repeat center center; } + .url-to-video-container .url-to-video-player { + display: block; + width: 100%; + /* assuming that the video has a 16:9 ratio */ + padding-bottom: 56.25%; + overflow: hidden; + position: relative; + width: 100%; + height: 100%; + cursor: hand; + cursor: pointer; + display: block; } + .url-to-video-container .url-to-video-player .player-thumb { + background-position: center center; + background-size: cover; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + cursor: pointer; } + .url-to-video-container .url-to-video-player .play-button { + height: 40px; + width: 40px; + display: block; + background: url(../images/play-button.png) no-repeat center center; + background-size: 40px 40px; + position: absolute; + top: 240px; + left: 50%; + transform: translate(-50%, -50%); + cursor: pointer; } + .url-to-video-container .player-iframe { + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; } diff --git a/sites/all/modules/contrib/filters/url_to_video_filter/css/url_to_video_embed.scss b/sites/all/modules/contrib/filters/url_to_video_filter/css/url_to_video_embed.scss new file mode 100644 index 000000000..482a94814 --- /dev/null +++ b/sites/all/modules/contrib/filters/url_to_video_filter/css/url_to_video_embed.scss @@ -0,0 +1,72 @@ +.url-to-video-container +{ + display:block; + margin:20px auto; + width:100%; + &.no-js + { + border:solid black 1px; + .loader + { + background:url(../images/no-js.png) no-repeat center center; + background-size:40px 40px; + } + .url-to-video-player + { + cursor:auto; + } + } + .loader + { + top:240px; + left:50%; + transform:translate(-50%, -50%); + background:#FFF url(../images/ajax-loader.gif) no-repeat center center; + } + .url-to-video-player + { + display:block; + width:100%; + /* assuming that the video has a 16:9 ratio */ + padding-bottom:56.25%; + overflow:hidden; + position:relative; + width:100%; + height:100%; + cursor:hand; + cursor:pointer; + display: block; + .player-thumb + { + background-position:center center; + background-size:cover; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + cursor:pointer; + } + .play-button + { + height:40px; + width:40px; + display:block; + background:url(../images/play-button.png) no-repeat center center; + background-size:40px 40px; + position:absolute; + top:240px; + left:50%; + transform:translate(-50%, -50%); + cursor:pointer; + } + } + .player-iframe + { + width:100%; + height:100%; + position:absolute; + top:0; + left:0; + } +} diff --git a/sites/all/modules/contrib/filters/url_to_video_filter/images/ajax-loader.gif b/sites/all/modules/contrib/filters/url_to_video_filter/images/ajax-loader.gif new file mode 100644 index 0000000000000000000000000000000000000000..cbe59fb438d575e2b8aa6b356b5c903dacea6cd5 GIT binary patch literal 8787 zcmaKyX;f3^-u9F1ojqkI*_j7ONJ5Aq1PBn6!?B)>77#TIA}ZE^pg6S=ky5obAz=~+ zP*7BC11cb*MeBfL0TFRVv=*ldR;{&qq}tlr)1E%N&wAH-KD?{$5BaoLR@U#n?(08X zc{g!l+&{7v6b0pH3gyo~|D;eTZEbBnpU>%ZCMPFPm@pwBAt56p!{u_VU%%e(_s^R* z&uBD8M@PrS#aS$t!otGl=H~tT_b*(y&|olhbad!+x~#0M+S*!;Mx#=xDk>`K>+4sq zUY(knx?;r&xm>PLC;|fm8yXsfLgDe_$GKeYp+kpGpFVx%%9X*v!J(m{{{H^n-rfff z9z1*Y?D6Brqobp*U%&qS_uuc{y$gaM`3o@&BR~KDNBJjXiakBeYIfM8BMbnQd_(zP zskI<4yD%?T@!^8Pd`0%c?Bc~AWamaKcz@mp6y+Nbg~_+{e|^_q5Gc@}Cbui00Vmc^ zI&WSa|CyVvDvYm7%4prJRV<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tN72d(TQM{AE;m`9k*wk|TEX0x#_3v_Yd%Pu-}6WV?S{~9X30zl+O50+h_efto` z>x`4or*!(|k7A7fPUOod)`I1rwYVcRP&(Nrv%C7|^S`Nx$#d#ePocM-8`Z1=RCvIKp7N1;80 Z!QkV=)ywzNd0AvD_s_rnLh--P{{SmBg>3); literal 0 HcmV?d00001 diff --git a/sites/all/modules/contrib/filters/url_to_video_filter/images/no-js.png b/sites/all/modules/contrib/filters/url_to_video_filter/images/no-js.png new file mode 100644 index 0000000000000000000000000000000000000000..301db7d5b1166095657b5f78de6ad472aeb911dd GIT binary patch literal 2572 zcmaJ@c|4SB8=l3<5@AHL)SN-tXR%MlG7C*2jqzDRGiF{)%wlF7Go>;@%}I4AWeJtE zi8#_?9V#j^DO>hbIH**oa?)}}C!Oz)ukZc+-uHR#=XYJ#eLweo{qaiu{k%2Q4Aej% zkOp}@k)l}r7haVmitj<~*JX-jrH~XX4B$oy6X|>aQV|y&ag^6%?gS(2b3IR4Cq{Bt*IF0}-!XduuVio&^V05TDWP$<~4SWGOD=uE;pJK#x9&YoyA$q|o75lJMX zr#-;||8faGK+kPCzTuR$*!DcrNL{cc-D@ZIhZG5&hF37D{K>IO!)FU>L-Th`G0+`pC7M#S-(SmeIn_7 zM_N?#mT7R9(w|T)nB-w_f5(QRFQE5eP4K$p5l|v{_lNEKmM&AJnrcA3z`7n@v%`&$ zT^^X-#8X3;&xD@_6(=t_@rQ~WR0OWce^(^$KTwryFnXRac8aHo;uosSfHs0Zzup+8 zKb^c`P?btZaF4o~RtcGu8cKeWQQD=kx0cH6;l|34?vH%Y!P`qUr?Zfd?8E}x*_+k) zd)>!2s&q-Afgi7=Rvtg_&S=k5o>io^#Spc9&TUk%LLyvNkzu7GeP=hiLbhh?@ygz4 zu$jkdn%36Hh}(Lk(H)M^KU`@(F)wnP=gH2MtB(7bMs^rp8JGFVObAb=js__=U5FmK z-?5Sf$*$dMhnh6>xU?S#G{^QiR){xb$!a7&uRRmdF}uGmJ-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iIMo-{fA4QZtj&c8G7m&kA9h<{eG>h z%edvZ`m$JXqd704eOhnA`MJJ1|n^r7ur*CJIWaT;q56s_B zt~C<}gTnNvCW9n$>$1qId)4)G^PkSGpY%Dti)M4yLONua{IU;cylPl0$SChPhlNQh z*Eiaxvm!1xeaji0#3EU4XamnDvg&G=!JjqH4!fCFwy6e$Y4zp#gh|oy$XU|5V}87AdhDA;jzLN{e6Oy}@fP=r2j&lj>+U|2|Dq$OVQ*7H%dH2U&x*8_9-ynU z0}FOy;X*l7{br-L^QUO#UZwOPhbbibZZfCqt?m}nD|Bgp)c%VzAV55&HBg`0`mPZK Y1@S{;=}kRB4;TK=$Rs~vIi8mCH{1I(KL7v# literal 0 HcmV?d00001 diff --git a/sites/all/modules/contrib/filters/url_to_video_filter/images/play-button.png b/sites/all/modules/contrib/filters/url_to_video_filter/images/play-button.png new file mode 100644 index 0000000000000000000000000000000000000000..4aa65476d05b5b5d6ef031309d43825356b2758f GIT binary patch literal 2473 zcmaJ@dpy&7AOE=wxsD#0mB&ociP^>NY)ol0<``?E7Lv97#;{AEe5BSm*PnL@2Xx@xu3DRDZE$C*xbo-~Ozu7CV?(nAByjN!%r z0GLsO$PDdCUwDlSwBJ3JZ=1A-tt@~gV~TjPRJH^J{JEknAc87j$AJux%}v|d3;F_p z9+DrJv5w?p2)#-k*oa>zH)+AKmf|v2)Q6hC?&{=$d9@Nt-WxKMj}2!WQj!N zUrDiObOcEx0TG^V7!(KNg+X{>-LUQ+-rnA>2pk5BL1S=eEDnYBCb;7W7!2amgVaWo zaCrm~SQq&CyPN)U*@$O@&O+N5n5TFw@uv2K`!l0E}zwEqtk2)>}D zG6wi}zW-BL8lENw(F{;3N|tc6gX1|agc1`-5|AwuNy0^=D3!5=9FR&TBDD%`d_I>z!g+X5JOVtuaCiz98{oAT6Y#CShd&8V zaStHj*OEVT$s$g&02InTbGd(Wy}rs_SOtMt8<`AB_$eTlA`uA?A4?|izn+WxSM@$| zxnIx4HW~E7VE=2-p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Mo1MR)I3UA1hwC%_^NVj$j8!Pm;D=iB#KOHdgIJeQ}Zr!01SxH2").attr("src", "//player.vimeo.com/video/" + vimeoID + "?autopause=1&autoplay=0&badge=1&byline=1&loop=0&portrait=1&autopause=1&fullscreen=1").attr("frameborder", "0").attr("class", "player-iframe vimeo-iframe")); + } + else + { + $.ajax( + { + url:"//vimeo.com/api/v2/video/" + vimeoID + ".json", + context:$(this), + success:function(data) + { + if(data[0] && data[0].thumbnail_large) + { + $(this).empty().append($("").append($("", {class:"player-thumb", src:data[0].thumbnail_large})).append($("", {class:"play-button"})).click(function(e) + { + e.stopPropagation(); + + Drupal.detachBehaviors($(this).parent().parent()); + + $(this).replaceWith($("