From 91b0fb8028b30438401bebafd13119fe360337a3 Mon Sep 17 00:00:00 2001 From: Meitar Moscovitz Date: Mon, 16 Mar 2009 18:03:58 -0400 Subject: [PATCH] Add `apple-touch-icon.png` support; favicons for the iPhone OS. --- apple-touch-icon.png | Bin 0 -> 6265 bytes lib/action.php | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 apple-touch-icon.png diff --git a/apple-touch-icon.png b/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..d129298d4adb1dff16a6e37b1c2577f7f0a96316 GIT binary patch literal 6265 zcmV-<7>4JGP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6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?n)68DJ95<8U;I3VxL3{z+0&Fd-c$`LUKX3!^a1nmg(DwiCypzndX+%K~ z2eAS8>yfYk<}?FFp)(18>A(*Zc1TRw$^d<>t+a00G7>fvxIYDdtTC{sC2&b3_>6^1 zBe>PV3&5_C6OW0e-WB+%f&RfFz~J^K6&2vRr!DXxK)(Dj3KLuVpl9}gWbuZ*Q z3jq!N#n*1YfB9wP^UqIjU`n*4@VSLM6?Tu(wLOA&0w4zjC6WhhV`=H9 jh%7v7izTw7$^Q=kOJylMKqsXt00000NkvXXu0mjfFfZqQ literal 0 HcmV?d00001 diff --git a/lib/action.php b/lib/action.php index 285eae59ab..f0baa062c2 100644 --- a/lib/action.php +++ b/lib/action.php @@ -162,6 +162,16 @@ class Action extends HTMLOutputter // lawsuit $this->element('link', array('rel' => 'shortcut icon', 'href' => common_path('favicon.ico'))); } + + if (common_config('site', 'mobile')) { + if (is_readable(INSTALLDIR . '/theme/' . common_config('site', 'theme') . '/apple-touch-icon.png')) { + $this->element('link', array('rel' => 'apple-touch-icon', + 'href' => theme_path('apple-touch-icon.png'))); + } else { + $this->element('link', array('rel' => 'apple-touch-icon', + 'href' => common_path('apple-touch-icon.png'))); + } + } } /** -- 2.39.5