Commit graph

382 commits

Author SHA1 Message Date
Igor Rogatty 55c6cf6c11 XW-1300 | use isMercury helper method 2016-04-04 13:13:52 +02:00
Igor Rogatty 4c150d9885 XW-1300 | support for WikiaMobile 2016-04-01 17:33:29 +02:00
Igor Rogatty 52f6c9b389 XW-1300 | remove accidental var_dump 2016-04-01 12:29:36 +02:00
Igor Rogatty 07cdefb0f5 XW-1300 | use mercury-component-attrs name and fix unit tests 2016-04-01 12:06:10 +02:00
Igor Rogatty d5587fbc25 XW-1300 | use new media components in portable infoboxes 2016-03-31 18:08:57 +02:00
idradm 508635c08f DAT-4018 make europa theme solely var dependent 2016-03-29 12:31:03 +02:00
Rafal Leszczynski 677b272351 add pi-europa class to infobox if europa is enabled 2016-03-29 12:12:11 +02:00
idradm 8dd35e8146 DAT-3934 remove comment 2016-03-17 12:13:17 +01:00
idradm cbc0a10a78 DAT-3934 add tests for custom width 2016-03-17 12:12:36 +01:00
idradm af041c9196 DAT-3934 provide a way to decide on image size while infobox rendering 2016-03-17 10:37:18 +01:00
idradm a1e34471c2 DAT-3934 set image width to 100% 2016-03-16 10:09:54 +01:00
idradm 60d87fc123 DAT-3934 make image bigger and adjusted by css 2016-03-16 09:50:01 +01:00
Rafal Leszczynski 604e9da6df DAT-3937, remove special case for europa thumbnail width 2016-03-14 10:36:08 +01:00
Rafal Leszczynski 5c75f627a2 DAT-3937, set different image width for europa theme only 2016-03-14 08:57:58 +01:00
Rafal Leszczynski 7a12be6310 DAT-3855, round image display dimensions 2016-03-09 10:45:31 +01:00
Rafal Leszczynski 6e8866bf03 DAT-3855, add comment about changing image thumbnail width 2016-03-09 10:23:55 +01:00
Rafal Leszczynski 971a012f8c DAT-3855, increase default image thumbnail width to match europa default infobox width 2016-03-08 15:27:46 +01:00
Mateusz Rybarski 5637f4d6ed fetching infobox markup, checking if there is only one infobox 2016-02-16 13:37:48 +01:00
Bogna Knychala 402d4e3c8c XW-41 add template to experimental image collection 2016-02-15 18:44:02 +01:00
Bogna Knychala ba822f6176 XW-41 add comment to method and fix the log message format 2016-02-15 15:48:42 +01:00
Bogna Knychala 46683ca8e4 XW-41 fix xpath to media in hero image in infobox 2016-02-12 18:20:14 +01:00
Bogna Knychala c6aa0fb787 XW-41 handle experimental content 2016-02-12 17:13:48 +01:00
Warkot 3026d6ce41 Merge remote-tracking branch 'origin/dev' into XW-41 2016-02-08 18:39:59 +01:00
Tomasz Napieralski 2e5f90f543 hide changes after flag 2016-02-08 15:57:57 +01:00
Tomasz Napieralski 1b2a5bb417 use SEO friendly images for mobile in infoboxes 2016-02-05 18:02:02 +01:00
Sebastian Marzjan c5d17f315e DAT-3624 Rename 'Infobo' to 'Infobox' 2016-02-03 12:06:44 +01:00
Rafal Leszczynski 6a40c864e6 Merge branch 'dev' into DAT-3613 2016-01-12 13:40:32 +01:00
dianafa 6406fb53d5 move helper to an independent place 2016-01-12 10:50:24 +01:00
dianafa ebfb01d73d use createDOMDocumentFromText helper 2016-01-12 10:08:37 +01:00
Sebastian Marzjan 168bf09348 DAT-3621 Unified tests for hero image and regular caption
* Disable sanitization on Oasis
* Handle previously unsupported case of nested tag ( <b><a></a></b> )
* Unify test formatting
* Change list handling (yes, I am not proud of that)
2016-01-12 09:21:21 +01:00
dianafa 96192e1fc2 silence libxml errro 2016-01-11 18:01:04 +01:00
Sebastian Marzjan 531fc700e6 Provide explicitly encoded XML to loadHTML (libxml issues ;-) ) 2016-01-08 08:24:09 +01:00
Sebastian Marzjan 2171b5c02c Merge pull request #9366 from Wikia/DAT-3331
make infoboxes use params same way as mediawiki, enable 0 param
2016-01-05 17:18:33 +01:00
Sebastian Marzjan 72392d0edd Normalize whitespace when processing infobox contents 2016-01-05 09:05:50 +01:00
idradm 5f42ce9742 make infoboxes use params same way as mediawiki, enable 0 param 2016-01-04 14:34:10 +01:00
marzjan a5ad283fca Further code reorg 2016-01-04 12:09:39 +00:00
marzjan 7dfc5a828f Small code reorganization and cleanup 2016-01-04 11:09:50 +00:00
Sebastian Marzjan 2fdebcdffb DAT-3465 Change approach to sanitization; use XML parsing 2015-12-30 11:00:10 +01:00
Sebastian Marzjan a0569a829b Move the implements statement to base Sanitizer class 2015-12-29 08:13:02 +01:00
Sebastian Marzjan 0ce0b500fe Use the Builder for Sanitizers.
Cover the sanitizer build step in tests too
2015-12-28 12:04:36 +01:00
Sebastian Marzjan 8f437fb1e7 DAT-3465 Update the caption behavior 2015-12-28 10:21:32 +01:00
dianafa 8afcb73d10 move sanitizers to a separate folder 2015-12-23 15:54:03 +01:00
dianafa ed73d4f525 move sanitizing to PortableInfoboxRenderService 2015-12-23 13:20:55 +01:00
dianafa 0de509246f add caption sanitization in getImageData 2015-12-23 11:20:39 +01:00
Rafal Leszczynski 432341a974 DAT-3576, fix edge case with broken aspect ratio for tall thin images if portable infobox custom image width is set 2015-12-11 16:05:10 -08:00
Sebastian Marzjan f1896da8ab Add tests 2015-12-11 10:01:23 -08:00
dianafa f8312c6484 add getImageSizesToDisplay description 2015-12-11 12:06:44 +01:00
dianafa 33af8b75e9 rename getAdjustedImageSize to getImageSizesForThumbnailer 2015-12-11 12:02:00 +01:00
dianafa cc54d4478d move logic to other place & add tests 2015-12-11 11:56:41 +01:00
Rafal Leszczynski 02a2c62332 DAT-3576, allow for overwrite thumbnail physical dimensions in portable infobox via wikifactory variable 2015-12-10 16:41:07 -08:00