Pehea e hoʻomau ai i kāu lā kope kope i hoʻonui ʻia ma ka papahana ma kāu pūnaewele a i ʻole ka hale kūʻai pūnaewele

Pehea e hoʻolālā ai i kāu hōʻailona kope

Ua paʻakikī mākou i ka hoʻomohala ʻana i kahi hoʻohui Shopify no kahi mea kūʻai aku paʻakikī a paʻakikī ... ʻoi aku ka nui o ka hiki ke paʻi ʻia. Me nā hoʻomohala āpau a mākou e hana nei, ua hilahila wau i koʻu hoʻāʻo ʻana i kā lākou pūnaewele e ʻike i ka leka kope kope ma ka footer ua pau ka lā… hōʻike ʻia i ka makahiki i hala ma mua o kēia makahiki. He mākaʻikaʻi maʻalahi ia no ka mea ua hoʻopaʻa mākou i kahi kahua hoʻokomo kikokikona e hōʻike a paʻakikī wale i ka makahiki i laila e ola ai lākou.

Shopify Template: Hoʻopuka i ka hōʻailona kope a me ka makahiki o kēia manawa me ka wai

I kēia lā, ua hōʻano hou au i ke kumumanaʻo Shopify template e mālama maʻalahi i ka makahiki kope a hiki i kēia lā a hoʻohui i ka kikokikona kūpono mai ke kahua kikokikona. ʻO ka hopena ʻo kēia ʻāpana liʻiliʻi o ka palapala wai:

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

Eia ka uhaki:

  • ka ampersand a kope; Ua kapa ʻia ʻo HTML entity a ʻo ia ke ala kūpono e hōʻike ai i ka hōʻailona kope © no nā mākaʻikaʻi āpau e hōʻike pololei iā ia.
  • Hoʻohana ka snippet wai "i kēia manawa" no ka loaʻa ʻana o ka lā o ka server i kēia manawa a me ka lā element: "%Y" e hoʻopili i ka lā ma ke ʻano he 4-helu makahiki.

Manaʻo WordPress: Hoʻopuka i ka hōʻailona kope a me ka makahiki o kēia manawa me PHP

Inā ʻoe e hoʻohana nei i WordPress, ʻo ka hopena he snippet PHP wale nō:

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

  • ka ampersand a kope; Ua kapa ʻia ʻo HTML entity a ʻo ia ke ala kūpono e hōʻike ai i ka hōʻailona kope © no nā mākaʻikaʻi āpau e hōʻike pololei iā ia.
  • Hoʻohana ka snippet PHP i ka "lā" no ka loaʻa ʻana o ka lā o ka server i kēia manawa a me ka lā element: "Y" i ka lā ma ke ʻano he 4-helu makahiki.
  • Hoʻohui wale mākou i kā mākou ʻoihana a All Rights Reserved ma mua o ka hoʻonohonoho ʻana i kahi hoʻonohonoho i kā mākou kumuhana… ʻoiaʻiʻo, hiki iā ʻoe ke hana pēlā.

Hoʻopuka Programmatically Publish Copyright Symbol and Current Year in ASP

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

Hoʻopuka ma ka papahana i ka hōʻailona kope a me ka makahiki o kēia manawa ma .NET

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

Hoʻopuka Programmatically Publish Copyright Symbol and Current Year in Ruby

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

Hoʻopuka ma ka papahana i ka hōʻailona kope a me ka makahiki o kēia manawa ma JavaScript

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

Hoʻopuka Programmatically Publish Copyright Symbol and Current Year in Django

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

Hoʻopuka Programmatically i ka hōʻailona kope a me ka makahiki o kēia manawa ma Python

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

Hoʻopuka ma ka papahana i ka hōʻailona kope a me ka makahiki o kēia manawa ma AMPscript

Inā ʻoe e hoʻohana nei iā Marketing Cloud, hiki iā ʻoe ke hoʻohana i kēia ʻano hana i kāu mau leka uila.

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

ʻAʻohe o kāu polokalamu, ʻōnaehana hoʻokele maʻiʻo, e-commerce, a i ʻole kahua leka uila, paipai wau iā ʻoe e hoʻololi mau i kāu makahiki kope kope. A ʻoiaʻiʻo, inā makemake ʻoe i ke kōkua ma kēia - e ʻoluʻolu e kelepona i kaʻu ʻoihana Highbridge. ʻAʻole mākou e hana i nā papahana liʻiliʻi hoʻokahi wale nō akā hiki iā mākou ke hoʻokō i kēia ma ke ʻano he ʻāpana o kahi papahana nui aʻe paha iā ʻoe.