Me pehea te Whakahou i to Ra Mana pupuri i runga i to Paetukutuku, i to Toa Ipurangi ranei

Me pehea te Papatono i to Tohu Mana pupuri

I whakapau kaha matou ki te whakawhanake i te whakauru Shopify mo tetahi kaihoko he tino pakari, he uaua hoki… he maha ake ka puta mai ina whakaputahia e matou. I runga i nga whanaketanga katoa e mahia ana e matou, i whakama ahau i taku whakamatautau i to raatau pae ki te kite kua tawhito te panui mana pupuri i te hiku… ka whakaatu i tera tau hei utu mo tenei tau. He tirohanga ngawari noa na te mea i tohuhia e matou he mara whakauru kuputuhi hei whakaatu me te tohu-maatau noa i te tau ki reira kia ora ai.

Tauira Shopify: Whakaputahia te tohu mana pupuri me te tau o naianei me te wai

I tenei ra, i whakahoutia e ahau te kaupapa Shopify tauira kia mau tonu te tau mana pupuri me te taapiri i nga tuhinga tika mai i te mara tuhinga. Ko te otinga ko tenei waahanga iti o te tuhinga wai:

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

Anei te wehenga:

  • te ampersand a kape; ka kiia he hinonga HTML me te tikanga tika hei whakaatu i te tohu mana pupuri © mo nga kaitirotiro katoa kia tika te whakaatu.
  • Ka whakamahia e te mokomoko wai te “inaianei” ki te tiki i te ra o naianei o te tūmau me te rā huānga: “%Y” whakahōputu te rā hei tau 4-mati.

Kaupapa WordPress: Whakaputahia te Tohu Mana pupuri me te Tau o Naianei Ki te PHP

Mena kei te whakamahi koe i te WordPress, he snippet PHP noa te otinga:

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

  • te ampersand a kape; ka kiia he hinonga HTML me te tikanga tika hei whakaatu i te tohu mana pupuri © mo nga kaitirotiro katoa kia tika te whakaatu.
  • Ka whakamahi te snippet PHP i te “ra” ki te tiki i te ra o naianei o te tūmau me te rā huānga: “Y” whakahōputu te rā hei tau 4-mati.
  • Kua taapirihia e matou a maatau pakihi me nga Tika Katoa kua Rahuitia, kaua ki te whakatakoto i tetahi whakatakotoranga i roto i ta maatau kaupapa… o te akoranga, ka taea ano e koe.

Whakaputa Papatonotia te Tohu Mana pupuri me te Tau o Naianei ki ASP

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

Whakaputa Papatonotia te Tohu Mana pupuri me te Tau o Naianei ki .NET

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

Whakaputa Papatonotia te Tohu Mana pupuri me te Tau o Naianei ki Ruby

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

Whakaputa Papatonotia te Tohu Mana pupuri me te Tau o Naianei ki JavaScript

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

Whakaputa Papatonotia te Tohu Mana pupuri me te Tau o Naianei ki Django

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

Whakaputa Papatonotia te Tohu Mana pupuri me te Tau o Naianei ki te Python

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

Whakaputa Papatonotia te Tohu Mana pupuri me te Tau o Naianei ki AMPscript

Mena kei te whakamahi koe i te Marketing Cloud, ka taea e koe te whakamahi i tenei tikanga ki o tauira imeera.

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

Ahakoa to taupānga, punaha whakahaere ihirangi, e-tauhokohoko, he papaaera imeera ranei, ka akiaki ahau ki a koe ki te whakahou i to tau mana pupuri. Ae ra, ki te hiahia awhina koe mo tenei - tena koa toro atu ki taku umanga Highbridge. Kaore matou e mahi i nga kaupapa iti kotahi noa engari ka taea te whakatinana i tenei hei waahanga o te kaupapa nui ake kei a koe.