Uwugcina njani umhla welungelo lakho lokushicilela uhlaziywa ngokweNkqubo kwiWebhusayithi yakho okanye kwiVenkile ye-Intanethi

Ulucwangcisa njani uphawu lwakho lwelungelo

Besisebenza nzima siphuhlisa udibaniso lweShopify kumxhasi owomeleleyo kwaye ontsokothileyo… kuninzi okuza kulandela xa siyipapasha. Ngalo lonke uphuhliso esilwenzayo, bendinentloni xa bendivavanya indawo yabo ukuze ndibone isaziso selungelo lokushicilela kwi-footer besiphelelwe lixesha… sibonise kunyaka ophelileyo endaweni yalo nyaka. Yayiluqwalaselo olulula njengoko sasifake ikhowudi indawo yokufaka umbhalo ukuze sibonise kwaye sibhale nzima unyaka apho ukuze siphile.

Isakhelo seShopify: Papasha iSimboli yeCopyright kunye noNyaka waNgoku ngolwelo

Namhlanje, ndihlaziye umxholo we-Shopify template ukugcina ngokuzenzekelayo unyaka we-copyright usexesheni kwaye udibanise isicatshulwa esifanelekileyo esivela kumbhalo. Isisombululo yaba sisiqwengana seskripthi solwelo:

©{{ "now" | date: "%Y" }} DK New Media, LLC. All Rights Reserved

Nalu ulwahlulo:

  • The iampersand kwaye ikopi; ibizwa ngokuba liqumrhu le-HTML kwaye yindlela efanelekileyo yokubonisa isimboli yelungelo lokushicilela © kuzo zonke iibhrawuza ukuyibonisa ngokufanelekileyo.
  • Isiqwengana solwelo sisebenzisa u-“ngoku” ukufumana umhla wangoku womncedisi kunye nomhla wesiqalo: “%Y” ifomatha umhla njengonyaka onemivo emi-4.

Umxholo we-WordPress: Papasha uphawu lwe-Copyright kunye noNyaka wangoku nge-PHP

Ukuba usebenzisa iWordPress, isisombululo sisiqwengana nje se-PHP:

&copy;<?php echo date("Y"); ?> DK New Media, LLC. All Rights Reserved

  • The iampersand kwaye ikopi; ibizwa ngokuba liqumrhu le-HTML kwaye yindlela efanelekileyo yokubonisa isimboli yelungelo lokushicilela © kuzo zonke iibhrawuza ukuyibonisa ngokufanelekileyo.
  • I-PHP snippet isebenzisa "umhla" ukufumana umhla wangoku womncedisi kunye nomhla wento: "Y" ifomatha umhla njengonyaka onamanani ama-4.
  • Songeze ishishini lethu kwaye Onke Amalungelo Agciniwe endaweni yokucwangcisa useto kumxholo wethu… ewe, ungayenza lonto nawe.

Ukupapasha ngokwenkqubo iSimboli yeLungelo kunye noNyaka waNgoku kwi-ASP

<% response.write ("&copy;" & Year(Now)) %> DK New Media, LLC. All Rights Reserved

Papasha iSimboli yelungelo lokushicilela ngokwenkqubo kunye noNyaka wangoku kwi-.NET

<%="&copy;" & DateTime.Now.Year %> DK New Media, LLC. All Rights Reserved

Ukupapasha ngokwenkqubo iSimboli yeLungelo kunye noNyaka wangoku kwiRuby

&copy;<%= Time.now.year %> DK New Media, LLC. All Rights Reserved

Ukupapasha iSimboli yeCopyright ngokweNkqubo kunye noNyaka waNgoku kwiJavaScript

&copy; <script>document.write(new Date().getFullYear());</script> DK New Media, LLC. All Rights Reserved

Ukupapasha ngokwenkqubo uphawu lwelungelo lokushicilela kunye noNyaka wangoku kwi-Django

&copy; {% now "Y" %} DK New Media, LLC. All Rights Reserved

Ukupapasha ngokwenkqubo iSimboli yeCopyright kunye noNyaka wangoku kwiPython

from datetime import date
todays_date = date.today()
print("&copy;", todays_date.year)
print(" DK New Media, LLC. All Rights Reserved")

Ukupapasha ngokuCwangcisiweyo iSimboli yeLungelo kunye noNyaka waNgoku kwi-AMPscript

Ukuba usebenzisa iLifu leNtengiso, ungasebenzisa le ndlela kwiitemplate zakho ze-imeyile.

&copy; %%xtyear%% DK New Media, LLC. All Rights Reserved

Nokuba yeyiphi i-app yakho, inkqubo yolawulo lomxholo, urhwebo lwe-imeyile, okanye iqonga le-imeyile, ndingakukhuthaza ukuba uhlale uhlaziya ngokwenkqubo unyaka wakho welungelo lokushicilela. Kwaye kunjalo, ukuba ufuna uncedo malunga noku-zive ukhululekile ukufikelela kwifemu yam Highbridge. Asenzi iiprojekthi ezincinci kodwa sinokusebenzisa oku njengenxalenye yeprojekthi enkulu onokuba nayo.