GetSimple Support Forum
QUESTION how to add php script? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Themes (http://get-simple.info/forums/forumdisplay.php?fid=10)
+--- Thread: QUESTION how to add php script? (/showthread.php?tid=6903)



how to add php script? - carlost - 2014-11-12

Hi
i'm newbie in getsimple. please, how does I add php scripts to footer section from Pages/Edit Footer in Panel Control? my theme is Simplicity. thx in advance.


RE: how to add php script? - Didier9 - 2015-02-14

(2014-11-12, 00:31:17)carlost Wrote: Hi
i'm newbie in getsimple. please, how does I add php scripts to footer section from Pages/Edit Footer in Panel Control? my theme is Simplicity. thx in advance.

You create a component with your php script (click on "Theme" then "Create Component"). Let's say you name it "my_script"

Then you call it from the footer's html with

{% my_script %}


RE: how to add php script? - shawn_a - 2015-02-14

not really, get_component in php, or using dynpages plugin {} syntax in html


RE: how to add php script? - Didier9 - 2015-02-15

(2015-02-14, 12:25:12)shawn_a Wrote: not really, get_component in php, or using dynpages plugin {} syntax in html

Thanks for the reminder, that's what I did but I forgot I had installed the dynpages plugin...