From 222fa50288db905e38be6e64c3702d218abb2665 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Sat, 4 May 2013 14:09:45 -0400 Subject: [PATCH] Merge credit card icons into one sprint file, and use the term 'icon' instead of 'logo'. --- css/civicrm.css | 50 +++++++++++++++------------- i/cc-amex.png | Bin 1591 -> 0 bytes i/cc-discover.png | Bin 1724 -> 0 bytes i/cc-jcb.png | Bin 1314 -> 0 bytes i/cc-mastercard.png | Bin 2578 -> 0 bytes i/cc-unionpay.png | Bin 1534 -> 0 bytes i/cc-visa.png | Bin 2242 -> 0 bytes i/creditcard-icons.png | Bin 0 -> 11263 bytes templates/CRM/Core/BillingBlock.js | 18 +++++----- templates/CRM/Core/BillingBlock.tpl | 2 +- 10 files changed, 36 insertions(+), 34 deletions(-) delete mode 100644 i/cc-amex.png delete mode 100644 i/cc-discover.png delete mode 100644 i/cc-jcb.png delete mode 100644 i/cc-mastercard.png delete mode 100644 i/cc-unionpay.png delete mode 100644 i/cc-visa.png create mode 100644 i/creditcard-icons.png diff --git a/css/civicrm.css b/css/civicrm.css index 314ce761aa..286a2a205d 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -3961,44 +3961,46 @@ span.crm-status-icon { } /* Styles for credit card payment logos (FIXME: replace with sprite?) */ -#crm-container .credit_card_type-section .crm-credit_card_type-logos .crm-credit_card_type-logo-visa { - background: url(../i/cc-visa.png) no-repeat 0 0 transparent; +#crm-container .credit_card_type-section .crm-credit_card_type-icons a { + display: block; + float: left; + width: 50px; + height: 30px; + background: url(../i/creditcard-icons.png) no-repeat 0 0 transparent; + text-indent: -20000px; } -#crm-container .credit_card_type-section .crm-credit_card_type-logos .crm-credit_card_type-logo-mastercard { - background: url(../i/cc-mastercard.png) no-repeat 0 0 transparent; +#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-visa { + background-position: 0 0; + width: 75px; } -#crm-container .credit_card_type-section .crm-credit_card_type-logos .crm-credit_card_type-logo-amex { - background: url(../i/cc-amex.png) no-repeat 0 0 transparent; +#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-mastercard { + background-position: -75px 0; } -#crm-container .credit_card_type-section .crm-credit_card_type-logos .crm-credit_card_type-logo-discover { - background: url(../i/cc-discover.png) no-repeat 0 0 transparent; +#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-amex { + background-position: -125px 0; } -#crm-container .credit_card_type-section .crm-credit_card_type-logos .crm-credit_card_type-logo-jcb { - background: url(../i/cc-jcb.png) no-repeat 0 0 transparent; +#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-discover { + background-position: -175px 0; } -#crm-container .credit_card_type-section .crm-credit_card_type-logos a { - display: block; - float: left; - width: 50px; - height: 30px; - text-indent: -20000px; +#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-jcb { + background-position: -225px 0; } -#crm-container .credit_card_type-section .crm-credit_card_type-logos a.crm-credit_card_type-logo-visa { - width: 90px; +#crm-container .credit_card_type-section .crm-credit_card_type-icons .crm-credit_card_type-icon-unionpay { + background-position: -275px 0; } -/* Avoid weird border around the images */ -#crm-container .credit_card_type-section .crm-credit_card_type-logos a, -#crm-container .credit_card_type-section .crm-credit_card_type-logos a:link, -#crm-container .credit_card_type-section .crm-credit_card_type-logos a:hover, -#crm-container .credit_card_type-section .crm-credit_card_type-logos a:focus, -#crm-container .credit_card_type-section .crm-credit_card_type-logos a:active { +/* Avoid weird border around the images (some themes will add a border around images) */ +#crm-container .credit_card_type-section .crm-credit_card_type-icons a, +#crm-container .credit_card_type-section .crm-credit_card_type-icons a:link, +#crm-container .credit_card_type-section .crm-credit_card_type-icons a:hover, +#crm-container .credit_card_type-section .crm-credit_card_type-icons a:focus, +#crm-container .credit_card_type-section .crm-credit_card_type-icons a:active { color: #fff; } diff --git a/i/cc-amex.png b/i/cc-amex.png deleted file mode 100644 index a5ad9759f20cd15522e7c8ad506fb4de9bb29e0f..0000000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?fd3(KEhu-a{NDZh_ca>L=FOY4Q-+3y7=~dOX3Lf> zr($w#N5ekJenau3$tSE}2C}wA^#=o=u_p;R&%Ggw9FXV2ruk4s8Q%F4=C5>Tr?V$$z+5OwOTC*f<~he1VJW~u`J6l%+k^lr8GA;cVS^c zsZ>gm1VF7;e=8d)gHKPQzXOq}KRl#s&_<)t0LabFU9o7jS^zqoZpETdD6$`Ud3pcd z<6swhevJh`s00~6AbZ=#G?hRlJaXZaU%@}|jrebojg)~fi>H6V&ELQ`3idU@-wK;# z6#h{>xr@L45zo9}0r_|KH~%dJCo%RpChp+LUA%k&IiOfYxAmqMC5?yIG17~v2bh0~ zcmfQdTy^jF#^C)7fBP8T&k+}pT!chH))3@Put_H{_63IjghwvK1%P6uO3IP)>M9U3UXb$OD6*=)3b#TJub#Q?=S4|Cwi*_c~?X!{N>961&GiL)_0L@;%r9!{gYl+`(cvihE1J_k`NF6KuqFx zp8SdG=4u>@r0iT7KQ8(jfnZ|hRPsj_aNM`Qzqn1GETQST<%b&xRM%m5C?t)@A#>g|6m00*Z=As+Qy;*j8`Tc^d9!ca zMq%qWhNP5Ic60{hK_fVV=!fJsvdLJ{lEbhKU)e=9>lVXXVtflrY+bxTGc0z_Fe!_EeEb*sgJ=VLd zu_W%%F&%iv5@jk{(AhUH~>5?gzya(D+xqIEd^!?A$$OT Y1BH4tt)`krA^-pY07*qoM6N<$g7-&nR{#J2 diff --git a/i/cc-mastercard.png b/i/cc-mastercard.png deleted file mode 100644 index 6254fb31cccdf5d691bc3c51c64e92a0bcc46b62..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2578 zcmV+t3hniYP)?Dm#0nX@md(37<(s zK~z}7t(bdoROK1Qf9LGk`);zEd&vDBHWDsY3B+P?${kx7m0}UCccfUS5L;!&0Uc%p z3IcU%VMgPW);g6Lib`YAnYK(xAY6rzm5s;Vlt300O+!(seQP56!;CD7DF*yRF16Bma*Hy87)S(v6yMbK&y zB8vRX& z3OCD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Yau1iVlg=P**wAah5pwc{rVvph;!t|IjExx8PpcS@L69j^IxvSv_*|Nd zUQ~Hdt|yeG-;U8hVTA!pp&!CG@<(G23F8FsM!?(xbo_sgH86X3#59i9 z)zMH|8a1zFNY!A;ldn17@uo3#>6i^Dt$cMUx}La;Fu8> zxbFSLE?Gj_)~#sb;wFrxhE)d6hUq#4VQ-`cLX8HAIGDK&GM69-0)imixQn8O!*~uJ zq;vgxf*l*;>;P2BtU ze?QDQbC|SwGnU!2Bh{euD4g5?y*1yDMDC+7V`IeD2*RCr8Ud7%5r$8mq<6;-yq|q` zM|kG)a+24rBWC`5G#1PCb#8bVI;x;~=GF z_%OceY68v8g!}qXRTar@N1vaMxvY%Xg$vQ9rh+70+q?fip%M|4;jRd&@l9+&j5M)h o3n952G8Tf~9x18>;g)>=2lqG#;WN>|nE(I)07*qoM6N<$g0qCcegFUf diff --git a/i/cc-unionpay.png b/i/cc-unionpay.png deleted file mode 100644 index 80a84f34bb1071464a376588af19da30fe286d64..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1534 zcmVd;n65;W#}2Lwx{9f&i460EUVHiH-nQkKi&o07ifSn4RD^ zJOGfD08EAegooidJpf9D)7t6)jgbIQi0$?D7M!ACv9*bz#+u5_mB`E8?Ck-Ypnko< z{ORH3OH1NGM2W)2q0P{$y4L1rT1<7Pgr3Cc^75Ur&@N`1dAq;lTT+q6$&JLw-z+$E zxV_BN=J59Rnn_w!tFWrk)WhH4BA%r9`~36x`EriAi+%Hre4(B$ARIrjScXS29ddaLX6^IosCrM1&~mcF60(mA83 zw%FSJ@$JIQ;VqY%`uzOkMM$*O*zAgU{qyp;+S`<=%ez8NNT;mM<>u#PXBdr4> zrKRhd|^uMvK)737Z zrm?@;>Fo6O#kjA&*yU1I3xW0Ck7Q;NkuC_v17<06=;S zS&_BE+wYr-+v@7b;o{>^O5Wn`Y_+)pW`_WMh3Io*q|wvxpN>wcuIqkmEKPg$yuE6Q zw*BtuN=|mV+T0ISj1h^AYFK#cb$1VljOFR__sPoUR$60)vgvJbzRBPH{r>6o_5b_& z09J*XyUaVDp*2l+IO+>C2#^ z_Q1lr-QIgWSVLEW`OCckc$Vf`UZ_Y_L7}7oe~Pnfa3>D}BLDyZ0b)x>L;#2d9Y_EG z010qNS#tmY3ljhU3ljkVnw%H_000McNliru-30>^6A`T*`Gx=h0*6UNK~y-)m6Tmb z6j2n%|99?OcAQ4{`;NO>Dm`e4y0U$k*s>WG)-OoJX)?;;TvQw~0$m;%*T@Eg3ez zolfazihwsJ@Wcjg<`KnC#ZBTB=k05`A_n*6$)K9o>kW}oPEBK!yK%2Dw)B{>94kS% zFJg)hLgD(D@mBug?SLAqc9 zKX^M%_D9GL}0dXg~tEju8E065shd4DuAh+LA?O?GF!$>C0$54sQt2Br+mY2}d@R9H3aq+g)AZ@gS3I zfmDwWVqIs4Q(DQw{b-%h{rL9KINnAlqB4>zvBH0_({CucQ})94p}VgcjdhVA!Rk0R zB~f$DAVvy>E0%CJ4p$X^5BJ81UqrY`1o}vz kIj8Wz(GJ-X%J*e~e^OkJIM~uTkpKVy07*qoM6N<$g3L}R_W%F@ diff --git a/i/cc-visa.png b/i/cc-visa.png deleted file mode 100644 index 31635ebbc97fde4bc3b635178dc3ab873c86dac9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2242 zcmV;z2tD_SP)rK2Re(kj|%SG zm{z({NBZb@D_cm4MgReTAj9ajiud;~;qPS_@KJPk-&D;x^R+fx-_X5Dr;hz3JYe|-hE9RC z0lZ^jK+$i7;=h4JEmHd^TD|Nf>7)6|&a+$d7sgs9JSoLBeEqhv)Gt0>%bj{jx~^&L z{SRB)ZaL;O8iDFRmh4!cCequTJ*{+KY!la9uCCo9d;iT#ARrNVn|NBGjzZVLp0 zKRR}ZIT}5t+V`{5x?e88^ybrbKm#xU)<#I#1PI2h`u6&G|D9?6zBSJzEt`GkP#0Kg z)Nn>0ukH=uPQsQ_eS#*64l)yVva`o|z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?RoyyT|Nef94T4|F#SRB6p71_$Mb_6-r}Hc5Tk!UX_#X zeu3-iwF16Yu?@^-9zDgxxFJb-vzmy+hE6sFV`cRX_P>uZIl$PiA-ZPDS2X z*xX)_qq%f#H0;&=dvdv2la(27VAAR1YYfRsuBWQKYN@R1I`QRzF-xu2D&k|M@+jO# z(RasYn%Znb7PoMtV$&M^jjqYZDOg1^;|bg}IhN#VA`C}Lk|KYhIxHM7Jgdvg6i+~I z_fLr?AgNk~dKQkGCIuaT)2(5fyE6<8mNkU47d!j1akgQb4NaiZu!(ssd zpB;IA^ICn6*>&Z6K}(jLD1U2T{<1}JG|h1N3qw)!$aG`dgGQO8=$6jOeJ?+O(eaX8 zO-hn@=ul|X6fKSmU2Ga~iDrd*?ft!OkKg7XQ4|sR7k?B80L4X#Jr}mWvMHU7HKGY% zZl;QDQZNj`F_irw2xRD^Q?*KN8BH@R6C=-#McL}IVqILU6hjdVL)dzG_m<3TLrj>* z;7HMIQN%EeQciFVrIZuB7q@?L;Z8$~^;Z9s-AT@P12oMLI2xlQ49UvXE0XqX&EQ%x z*ED4waTgjjT#}Ybus3#O&t+$E(E{_xG`~vtp`+vfKbilZWgd=sI382}3;ax)>CEEW QYybcN07*qoM6N<$f^s}cKmY&$ diff --git a/i/creditcard-icons.png b/i/creditcard-icons.png new file mode 100644 index 0000000000000000000000000000000000000000..00076366cfdb257d7afe2ff2f080c09db34e01a8 GIT binary patch literal 11263 zcmVAjFpLJ6T42~9vn1O(KJSWr>yf>;po>QzDPi0$fC@nXY@ zTtTHMO+`xRB?L@D2?^wL(iex9q4k+9Q1-qgAB-qOU z0gS=m-vh!&f`1$cS`amD`y5V%tV$;W0-~T^bL~(7MFAO*6$M!V$#v{hz$q(83OE!6 zMNvQjK~WGI9OF6{T$O1BNa*C(thU{L`|XSwGX|&A`IqSzI-QOmfBccpKmYuHZcG%; z|2x&&cQ%W5QSbmhkU|^uwq}$-0bLIPhb*_MeUA?x&I@D5v`=0wEZX*0(00Xk>J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VMui=hq z-G2A^Mh*@oJ*#n=dVk-h2dDp(DL7w#nXE@2MJg#duaBTO6-o{|DLn|`mw~9KZI+HT z1VX}Mh`F-m+-f6rmfQe91UG_40Mg*N7BuPrrB(uw>(yL;iE?Zc?E4aqZB}z>*(%iZ z#sYr|o5$1v;Vq)~y7tl*(GQCp+icqMPn)0h_fw%2USF<7sM^b45JUjpe5!TGy4YyL8<;`SRG^eR!;udFq~@JCNt+4s6wLXWbO%G1C5ACHVH+(fIn3^~fXGGc(WY zL+JediCDOhkdX>v@@8QE$ z=aGm3u=feb-`ToGb(sbO7pSRHg!7#3Y7OfMo+nP1Q5~hhN`-Pm+lYLYB%=IT=3kJU zYAP7X0cBaL#BpRDr2GUnS!H@7_|xpmy2(d zZ!lMNpTxAdoBxn!Q(7s7ije|x8-U0^E*{oCd9{PcpQo65_omC&UsJJlEBUX!ie=53 zX8q1QVgzAx=i)nV92)NiP6iR9VB!YITn|THhk{+rYe>u_=sOQWF9NMsn>?F8q<0T002ovPDHLkV1j4!yypM_ literal 0 HcmV?d00001 diff --git a/templates/CRM/Core/BillingBlock.js b/templates/CRM/Core/BillingBlock.js index c67dd9f11c..6b8c23ca6a 100644 --- a/templates/CRM/Core/BillingBlock.js +++ b/templates/CRM/Core/BillingBlock.js @@ -2,25 +2,25 @@ (function($) { civicrm_billingblock_creditcard_helper(); - $('#crm-container').on('crmFormLoad', '*', function() { + $('#crm-container .credit_card_type-section').on('crmFormLoad', '*', function() { civicrm_billingblock_creditcard_helper(); }); /** - * Adds the logos of enabled credit cards - * Handles clicking on a logo. - * Changes the logo depending on the credit card number. + * Adds the icons of enabled credit cards + * Handles clicking on a icon. + * Changes the icon depending on the credit card number. * Removes spaces and dashes from credit card numbers. */ function civicrm_billingblock_creditcard_helper() { $.each(CRM.config.creditCardTypes, function(key, val) { - var html = '' + val + ''; - $('.crm-credit_card_type-logos').append(html); + var html = '' + val + ''; + $('.crm-credit_card_type-icons').append(html); - $('.crm-credit_card_type-logo-' + key).click(function() { + $('.crm-credit_card_type-icon-' + key).click(function() { $('#crm-container .credit_card_type-section #credit_card_type').val(val); $('#crm-container .credit_card_type-section a').css('opacity', 0.25); - $('#crm-container .credit_card_type-section .crm-credit_card_type-logo-' + key).css('opacity', 1); + $('#crm-container .credit_card_type-section .crm-credit_card_type-icon-' + key).css('opacity', 1); return false; }); }); @@ -73,7 +73,7 @@ $.each(card_types, function(key, pattern) { if (ccnumber.match('^' + pattern + '$')) { var value = card_values[key]; - $('#crm-container .credit_card_type-section .crm-credit_card_type-logo-' + key).css('opacity', 1); + $('#crm-container .credit_card_type-section .crm-credit_card_type-icon-' + key).css('opacity', 1); $('select#credit_card_type').val(value); return false; } diff --git a/templates/CRM/Core/BillingBlock.tpl b/templates/CRM/Core/BillingBlock.tpl index ec1fb2f26c..50d96dcfaf 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -83,7 +83,7 @@
{$form.credit_card_type.label} {$reqMark}
{$form.credit_card_type.html} -
+
-- 2.25.1