Back to Littlefoot Manual

Title Plugin example

Make a file at LF/plugins/myplugin/index.php with contents as follows:

<?php $this->lf->title = $config; ?>

Navigate to the Plugin Manager. Hook up your plugin to the site with:

  1. Hooks: pre lf render
  2. Plugin: myplugin
  3. Config: My Custom Title

Now check your home page source code. 'My Custom Title' should now be displaying as the page <title />.

Easy DISQUS plugin

This is from the repo at https://github.com/eflip/DISQUS/blob/master/index.php

<?php if($config == '') $config = 'littlefoot'; ?>
<div id="disqus_thread"></div>
<script type="text/javascript">
    /* Per https://help.disqus.com/customer/portal/articles/472097-universal-embed-code */
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = '<?=$config;?>'; // Required - Replace example with your forum shortname
    /* * * DON'T EDIT BELOW THIS LINE * * */
    (function() {
        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
blog comments powered by Disqus