QUESTION How to use function from plugin in theme? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: QUESTION How to use function from plugin in theme? (/showthread.php?tid=8429) |
How to use function from plugin in theme? - vish93 - 2016-05-23 Hey guys I am fairly new to GetSimple and have been given the task of doing some updates/changes to a site made on GetSimple by a previous person. I am struggling with this particular task: the plugins lists out some things that were added via admin. Then when a person clicks 'view details' on a given item in the frontend it previously took you to another page where the relevant details are shown via url parameters. But, what I want to do is when the view details is clicked a modal pops up with the details, I have got the id passing into the modal, now how could I call a function in the plugin that is responsible for the details ? Code for listing out the jobs: Code: function include_jobs(){ Code for include the details: Code: function include_job_details(){ RE: How to use function from plugin in theme? - datiswous - 2016-05-23 If you know the name of the plugin, you can ask about it in the Plugin's support thread, which you can usually find via a link on the Plugin's download page in Extend. Also, there's usually info on configuration on the plugin page and in the support thread. RE: How to use function from plugin in theme? - vish93 - 2016-05-23 (2016-05-23, 19:11:08)datiswous Wrote: If you know the name of the plugin, you can ask about it in the Plugin's support thread, which you can usually find via a link on the Plugin's download page in Extend. Also, there's usually info on configuration on the plugin page and in the support thread. First of all thank you very much for taking time to reply, I appreciate your aid. I had a look in hope but the plugin is a custom one and not listed there I believe, I have just in hope tried calling the function like such: myfunction(); directly in the theme template.php and it works, I just need to now figure out how I can extract the id that is being passed into the modal RE: How to use function from plugin in theme? - datiswous - 2016-05-23 Just curious what is the name of the plugin's file in the plugins folder? RE: How to use function from plugin in theme? - vish93 - 2016-05-23 (2016-05-23, 19:45:36)datiswous Wrote: Just curious what is the name of the plugin's file in the plugins folder? John_doe_custom |