Last active
September 9, 2017 02:57
-
-
Save hassadee/ee7ae5136b60ea904185 to your computer and use it in GitHub Desktop.
Revisions
-
hassadee revised this gist
Sep 9, 2017 . 3 changed files with 37 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ /** * Get CMS Title. */ public static function getCMSTitle($id_cms,$id_lang){ $cms = new CMS($id_cms, $id_lang); return $cms->meta_title; } /** * Get CMS Description. */ public static function getCMSDescription($id_cms, $id_lang){ $cms = new CMS($id_cms, $id_lang); return $cms->meta_description; } /** * Get CMS Content. */ public static function getCMSContent($id_cms, $id_lang){ $cms = new CMS($id_cms, $id_lang); return $cms->content; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ {* * Usage (Get title): Tools::getCMSTitle($id_cms, $cookie->id_lang) * Usage (Get Description): Tools::getCMSDescription($id_cms, $cookie->id_lang) * Usage (Get Content): Tools::getCMSContent($id_cms, $cookie->id_lang) *} {* Get CMS Title *} {Tools::getCMSTitle(1, $cookie->id_lang)} {* Get CMS Description *} {Tools::getCMSDescription(1, $cookie->id_lang)} {* Get CMS Content *} {Tools::getCMSContent(1, $cookie->id_lang)} -
Hassadee Pimsuwan created this gist
Mar 3, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ TEST