Otu esi edobe ụbọchị nwebiisinka gị nke ọma na webụsaịtị ma ọ bụ ụlọ ahịa ọnlaịnụ gị

Otu esi hazie akara nwebiisinka gị

Anyị agbasi mbọ ike n'ịmepụta njikọta Shopify maka onye ahịa nke siri ike yana mgbagwoju anya… ọzọ ga-abịa na nke ahụ mgbe anyị na-ebipụta ya. Na niile mmepe anyị na-eme, M bụ ihere mgbe m na-anwale ha na saịtị ịhụ nwebisiinka mara na footer bụ nke ụbọchị… na-egosi afọ gara aga kama nke afọ a. Ọ bụ nleba anya dị mfe ka anyị debere mpaghara ntinye ederede ka ọ gosipụta wee tinye koodu siri ike n'afọ n'ebe ahụ iji mee ka ha dị ndụ.

Shopify Template: Bipụta akara nwebisiinka na afọ dị ugbu a na mmiri mmiri

Taa, emelitere m isiokwu Shopify template iji mee ka afọ nwebisiinka dị ọhụrụ na akpaghị aka wee tinye ederede kwesịrị ekwesị na mpaghara ederede. Ngwọta ya bụ ntakịrị mpempe akwụkwọ mmiri mmiri:

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

Nke a bụ mbibi:

  • The ebe nile na ovu; a na-akpọ ụlọ ọrụ HTML ma bụrụ usoro kwesịrị ekwesị iji gosipụta akara nwebiisinka © maka ihe nchọgharị niile iji gosipụta ya nke ọma.
  • Mpempe mmiri mmiri na-eji “ugbu a” iji nweta ụbọchị nke ihe nkesa dị ugbu a yana ụbọchị mmewere: “% Y” na-ahazi ụbọchị dị ka afọ ọnụọgụ anọ.

Isiokwu WordPress: Bipụta akara nwebisiinka na afọ dị ugbu a na PHP

Ọ bụrụ na ị na-eji WordPress, azịza ya bụ naanị snippet PHP:

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

  • The ebe nile na ovu; a na-akpọ ụlọ ọrụ HTML ma bụrụ usoro kwesịrị ekwesị iji gosipụta akara nwebiisinka © maka ihe nchọgharị niile iji gosipụta ya nke ọma.
  • Mpempe akwụkwọ PHP na-eji “ụbọchị” iji nweta ụbọchị ihe nkesa dị ugbu a yana ụbọchị mmewere: “Y” na-ahazi ụbọchị dị ka afọ ọnụọgụ anọ.
  • Anyị gbakwunyere azụmaahịa anyị yana ikike niile echekwara kama ịmebe ntọala na isiokwu anyị… n'ezie, ị nwekwara ike ime nke ahụ.

Na mmemme bipụta akara nwebiisinka na afọ dị ugbu a na ASP

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

Na mmemme bipụta akara nwebiisinka na afọ dị ugbu a na .NET

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

Na mmemme bipụta akara nwebiisinka na afọ dị ugbu a na Ruby

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

Na mmemme bipụta akara nwebiisinka na afọ dị ugbu a na Javascript

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

Na mmemme bipụta akara nwebiisinka na afọ dị ugbu a na Django

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

Na mmemme bipụta akara nwebiisinka na afọ dị ugbu a na Python

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

Na mmemme bipụta akara nwebiisinka na afọ dị ugbu a na AMPscript

Ọ bụrụ na ị na-eji Marketing Cloud, ị nwere ike iji usoro a na ndebiri email gị.

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

N'agbanyeghị ngwa gị, sistemụ njikwa ọdịnaya, e-azụmahịa, ma ọ bụ ikpo okwu email, a ga m agba gị ume ka ị na-emelite afọ nwebisiinka gị na mmemme mgbe niile. Ma n'ezie, ọ bụrụ na ịchọrọ enyemaka na nke a - nweere onwe gị ịkpọtụrụ ụlọ ọrụ m Highbridge. Anyị anaghị eme obere oru ngo mana anyị nwere ike mejuputa nke a dịka akụkụ nke nnukwu ọrụ ị nwere ike ịnwe.