From 5d05ad958d88b2728f9a0244e7d34857f8e6a8c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mirnes=20Glamo=C4=8Di=C4=87?= Date: Tue, 16 Feb 2021 21:10:50 +0100 Subject: [PATCH] Initial commit --- LICENSE | 21 +++++++++++++++++++++ README.md | 13 +++++++++++++ copyright_1Year.png | Bin 0 -> 2591 bytes copyright_2Years.png | Bin 0 -> 2681 bytes footer.php | 14 ++++++++++++++ 5 files changed, 48 insertions(+) create mode 100644 LICENSE create mode 100644 README.md create mode 100644 copyright_1Year.png create mode 100644 copyright_2Years.png create mode 100644 footer.php diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..268bd31 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Mirnes Glamočić + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..bd75a5e --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# PHP function for copyright years +This repository contain a custom **PHP function** to display a *copyright years*. When a website is new the copyright notice will display the copyright symbol and only the current year, but each time the january wills allong it will display a range of years indicating both the start year and the current year. + +With PHP function for date the start year will display 4 digit number and the current year will display only last twoo digit number of year. + +--- +![PREVIEW](copyright_1Year.png "Footer with PHP function for display only the current year") + +![PREVIEW](copyright_2Years.png "Footer with PHP function for display a range of years") + +--- +Download the files as a zip using the green button, or clone the repository to your machine using Git. + diff --git a/copyright_1Year.png b/copyright_1Year.png new file mode 100644 index 0000000000000000000000000000000000000000..8a6bd7e870c36e0785e1db34d9339a179d2e77a3 GIT binary patch literal 2591 zcmd5;Sx}Q%7XE=5Z9o(o5e*>rC@M=tL_icl86vW;vM0l;7A^0WIl+vNHj>gh88P@Z$Nzu&w`73Pfmz+IzWYxB)jSFJw%&H!#kt!5 zDOb<$LH=z^lyGp3Esy=`u*xlmfsAAHEeHE;vpyrq9l`P>ff;vif`Z)k0XY_%_kHI_ zHj@XGj%`)~TmfL(n|8;~a3#6PP}qaqyq?IwscqVA9{)?{KJ7X4jj(?6VG~sE?a0oo zp{_eO*6Ff}5@;4udF&a-J$%CM8?JOcZ8{q#oKE!Lb>J)NmM%lx?iMD9bS2Pk<#^<@ zP9`Uqlpa)vx|x69>S!UYQ;(i0bIqr$hjcx*43j-_f^ia7rm9NxL5W~ew3ulVowTEf zVhIgrY(zyeLVBZCNx)1y7bfqTdAr^UyFkR~{L$kf-vJ+q096 zBV|)gcLzW6C7~8y4&ljJWp7^lNsd@7X)*~-@<>j^0Yd_7v0Yv zniuKvh2M>_hy@d@Nvi`acN;4AVLB;)I6Qr6BM!)5+RFpGSHA7sSZf%Lqn8-C3?+N~ zHi`AI#Ga>c-3{qDnU%5SXt`;>(7Az-qw*r9VK0gnf2KKIYGv~ro=eGgH*i=Vyic4j ztKV++?JxS*84#+8P7$5~j)*a1Ek`&!8U_9;i^O|X#GW8zu^nVG#f)Y-3KnZ61)u2k zL`i*tfiX9?)Wpr%zZc=@F>Z3XqTk0kIUo=zc}u$b#vtv7WZZ07>33W$eMG_KoNjgM36dE%mVL2hoe_F- zv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SbNf=r8{I$&VxC)NK@&B6(&mvVt$$32hl&f)cDzW#l98V5 z!MOX9Htvp&Z7!PpY*}_2tr8bpQgd7?T@2tZOvc1&9YiAs7wlwchW3l$HSb_RgvLKt zx&BL2Bhd`8IH4xx#{@5sn{2VNb%}iLOkuU zR98(YzZq3_I4OdXcc;X@G8Rh>!TNqxb=M24o^7o?BAc0W5a3wJH_y4f$+<#jdKEC74L$%l{(_w!C zZ#I`z!l#(c1LrG8MSg|oSF>S~zC!fCwRPN*4fxAFVd|EkOU1K+UwX(H8J35A)t1z! z>nX&W1a#|cT>cw^t2_;r06D%nCxDKj3t5R76W)?R22-VIqP<~jBTe>Q?BXEO)kQ8h3cAi>n&w@ z(+$~`I94F)rZl5N%pm%f?-l$+9X8n^_R~K=mtv|O(I5DnWsxD}LoS*z1vy9gvau~+ zr0=#AB^~C8GvYlRm!IxnjFoOxMe&2;i1nQ4O$ss1yM@_Z_(8s8UGA(r@^A1(3VdtO zDMK(^lD*PoKovnKmb~k^uRMi9k|*u!8GX)W6pL|pCg_wjBGt=|2N!SnMThLI#sJ1W zH0y`o>6kK6cPyZNi@0W3*P!ui$5}EyX7z=STUM*9r$o)RfO!+#56D?=RgZDuVlUXf zEN}-K=I()${8jc90sWQZAprPDuonO$4v#_L{7ax`RA1R|AiV3$EjN7@oO1VzbR(8c z+{>=H1pt<-R?E>DWnK3Jfb-Ue-fBDkly<}cN}ab-VdJd-)oIxa=6%>do;m+}bHUdC c$GVyAxXj^g9`SY7%L0I~knlYXyHEV|JG$g7UjP6A literal 0 HcmV?d00001 diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..060147f --- /dev/null +++ b/footer.php @@ -0,0 +1,14 @@ + \ No newline at end of file