PHP Classes

File: facebook/includes/facebook-footer-links-content.php

Recommend this page to a friend!
  Classes of Hillary Kollan   My WordPress Plugin List   facebook/includes/facebook-footer-links-content.php   Download  
File: facebook/includes/facebook-footer-links-content.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: My WordPress Plugin List
WordPress plugins for several purposes
Author: By
Last change:
Date: 1 year ago
Size: 757 bytes
 

Contents

Class file image Download
<?php

function ffl_add_footer($content){
    global
$ffl_options;
   
$footer_output = '<hr/>';
   
$footer_output .= '<div class="footer_content">';
   
$footer_output .= '<span class="dashicons dashicons-facebook"></span> Catch me on <a style="color:'.$ffl_options['link_color'].'" target="_blank" href="'.$ffl_options['facebook_url'].'">Facebook</a>';
   
$footer_output .= '</div">';
    if(
$ffl_options['show_in_feed']){
        if(
is_single() || is_home() && $ffl_options['enable']){
            return
$content ." ". $footer_output;
        }
    }else{
        if(
is_single() && $ffl_options['enable']){
            return
$content ." ". $footer_output;
        }
    }
  
    return
$content;
   
}

add_filter('the_content', 'ffl_add_footer');