Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]link w kodzie
kbilski
post
Post #1





Grupa: Zarejestrowani
Postów: 50
Pomógł: 0
Dołączył: 16.04.2010

Ostrzeżenie: (0%)
-----


Witam

Jak to zamienić żeby fraza returns (lub exchange in store itd) lub zdjęcie (reinsurance-1-1.jpg) zrobić jako link?


  1. public function installFixtures()
  2. {
  3. $return = true;
  4. $tab_texts = array(
  5. array('text' => $this->l('Returns'), 'file_name' => 'reinsurance-1-1.jpg'),
  6. array('text' => $this->l('Exchange in-store'), 'file_name' => 'reinsurance-2-1.jpg'),
  7. array('text' => $this->l('Paypal & Credit Card'), 'file_name' => 'reinsurance-3-1.jpg'),
  8. array('text' => $this->l('Fast Delivery'), 'file_name' => 'reinsurance-4-1.jpg'),
  9. array('text' => $this->l('Paypal 100% secured payment'), 'file_name' => 'reinsurance-5-1.jpg')
  10. );
  11.  
  12. foreach($tab_texts as $tab)
  13. {
  14. $reinsurance = new reinsuranceClass();
  15. foreach (Language::getLanguages(false) as $lang)
  16. $reinsurance->text[$lang['id_lang']] = $tab['text'];
  17. $reinsurance->file_name = $tab['file_name'];
  18. $reinsurance->id_shop = $this->context->shop->id;
  19. $return &= $reinsurance->save();
  20. }
  21. return $return;
  22. }
  23. }
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 5.10.2025 - 20:25