Thl Integration Plugins
<h3 class="heading-h6"><a name="THLToolboxhomegtDevelopersZonegtTHLIntegrationPlugins" class="anchorpoint"></a><a href="/tools/wiki/home.html">THL Toolbox</a> > <a href="/tools/wiki/Developers%27%20Zone.html">Developers' Zone</a> > THL Integration Plugins</h3><p class="paragraph">
</p><h3 class="heading-h1"><a name="THLIntegrationPlugins" class="anchorpoint"></a>THL Integration Plugins</h3><p class="paragraph"><strong class="bold">Contributor(s)</strong>: Tom Benner</p><p class="paragraph">To make some common server-side functionality available to multiple apps, we use two integration plugins, one for Rails and one for PHP. The Rails plugin is called "thdl_integration" and is located in the ndlb SourceForge repo, while the PHP class is defined in /global/php/class_thl_integration.php of the main THL site's repo. The former is more robust, as it includes additional functionality for grabbing the THL template from the main THL site. Currently, the PHP class primarily concerns writing the top part of the template, and handling functionality related to turning the template on and off for the display of pages/apps inside iframes.</p><ul class="star"><li><a href="/tools/wiki/Integration%20of%20the%20PHP%20THL%20Integration%20Plugin%20into%20SPT.html">Integration of the PHP THL Integration Plugin into SPT</a></li>
<li><a href="/tools/wiki/The%20THL%20Integration%20Plugins%27%20Handling%20of%20Iframes.html">The THL Integration Plugins' Handling of Iframes</a></li></ul><p class="paragraph">
</p><h3 class="heading-h6"><a name="ProvidedforunrestrictedusebythespanclassnobrimgsrcsakairwikitoolimagesicklearrowgifaltexternallinktitleexternallinkahrefhttpwwwthliborgtargetrwikiexternalTibetanandHimalayanLibraryaspan" class="anchorpoint"></a><em class="italic">Provided for unrestricted use by the <span class="nobr"><img src="/" alt="external link: " title="external link"/><a href="http://www.thlib.org" target="rwikiexternal">Tibetan and Himalayan Library</a></span></em></h3>