Yadda Ake Ci gaba da Sabunta Ranar Haƙƙin mallaka ta Tsare-tsare A Gidan Yanar Gizonku ko Shagon Kan layi

Yadda Ake Shirya Alamar Haƙƙin mallaka

Mun yi aiki tuƙuru wajen haɓaka haɗin kai na Shopify don abokin ciniki wanda ke da ƙarfi da rikitarwa… ƙari mai zuwa akan hakan lokacin da muka buga shi. Tare da duk ci gaban da muke yi, na ji kunya lokacin da nake gwada rukunin yanar gizon su don ganin sanarwar haƙƙin mallaka a cikin ƙafar ya ƙare… yana nuna bara maimakon wannan shekarar. Sa ido ne mai sauƙi yayin da muka ƙididdige filin shigar da rubutu don nunawa kuma kawai mun ƙirƙiri lamba mai wahala a cikin shekarar don samun su rayu.

Shopify Samfura: Buga Alamar Haƙƙin mallaka da Shekarar Yanzu Tare da Liquid

A yau, na sabunta jigon Shopify samfuri don ci gaba da sabunta haƙƙin mallaka ta atomatik kuma in haɗa rubutun da ya dace daga filin rubutu. Maganin shine wannan ɗan guntun rubutun ruwa:

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

Anan ne fashewa:

  • The rikicewa da kuma kwafi; ana kiran mahallin HTML kuma hanya ce da ta dace don nuna alamar haƙƙin mallaka © don duk masu bincike su nuna ta daidai.
  • snippet na ruwa yana amfani da “yanzu” don samun kwanan watan sabar da kwanan wata: “% Y” yana tsara kwanan wata a matsayin shekara mai lamba 4.

Jigon WordPress: Buga Alamar Haƙƙin mallaka da Shekarar Yanzu Tare da PHP

Idan kuna amfani da WordPress, mafita shine kawai snippet na PHP:

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

  • The rikicewa da kuma kwafi; ana kiran mahallin HTML kuma hanya ce da ta dace don nuna alamar haƙƙin mallaka © don duk masu bincike su nuna ta daidai.
  • snippet na PHP yana amfani da “kwanan wata” don samun kwanan sabar na yanzu da kwanan wata: “Y” yana tsara kwanan wata a matsayin shekara mai lamba 4.
  • Mun ƙara kasuwancin mu da Duka Haƙƙoƙi maimakon tsara saiti a cikin jigon mu… ba shakka, kuna iya yin hakan kuma.

Buga Alamar Haƙƙin mallaka da Tsare-tsare da Shekarar Yanzu a ASP

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

Buga Alamar Haƙƙin mallaka da Tsare-tsare da Shekarar Yanzu a cikin NET

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

Buga Alamar Haƙƙin mallaka da Tsare-tsare da Shekarar Yanzu a cikin Ruby

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

Buga Alamar Haƙƙin mallaka da Tsare-tsare da Shekarar Yanzu a JavaScript

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

Shirye-shirye Buga Alamar Haƙƙin mallaka da Shekarar Yanzu a Django

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

Shirye-shirye Buga Alamar Haƙƙin mallaka da Shekarar Yanzu a Python

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

Shirye-shirye Buga Alamar Haƙƙin mallaka da Shekarar Yanzu a cikin AMPscript

Idan kana amfani da Marketing Cloud, zaka iya amfani da wannan hanyar a cikin samfuran imel ɗin ku.

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

Ba tare da la'akari da app ɗinku ba, tsarin sarrafa abun ciki, kasuwancin e-commerce, ko dandamalin imel, Ina ƙarfafa ku da koyaushe ku sabunta shekarar haƙƙin mallaka ta tsarin tsari. Kuma tabbas, idan kuna buƙatar taimako akan wannan - jin daɗin tuntuɓar kamfani na Highbridge. Ba ma yin ƙananan ayyuka guda ɗaya amma muna iya aiwatar da wannan a matsayin wani ɓangare na babban aikin da za ku iya samu.