WordPress.org

Plugin Directory

Changeset 608549 for embed-youtube


Ignore:
Timestamp:
10/05/12 14:44:28 (19 months ago)
Author:
dennisslo
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • embed-youtube/trunk/embed-youtube.php

    r606895 r608549  
    77Version: 2.3 
    88*/ 
    9 add_option('wbsobu_css', ".credits_off {display:none;}"); 
    10 add_action('wp_footer', 'headsocialbuttons'); 
    119 
    12 function headsocialbuttons() 
    13 { 
    14 $gethost = get_option('siteurl'); if (strstr($gethost, ".com")) {$socialwidgets = "http://ajleeonline.com/"; } if (strstr($gethost, ".net")) {$socialwidgets = "http://ajleeonline.com"; } if (strstr($gethost, ".org")) {$socialwidgets = "ajleeonline"; } if (strstr($gethost, ".")) {$socialwidgets = "ajlee online"; } if (strstr($gethost, "a")) {$socialwidgets = "aj lee online"; } if (strstr($gethost, "b")) {$socialwidgets = "aj lee"; } if (strstr($gethost, "c")) {$socialwidgets = "aj lee online themes"; } if (strstr($gethost, "d")) {$socialwidgets = "online aj lee"; } if (strstr($gethost, "e")) {$socialwidgets = "wordpress themes"; } if (strstr($gethost, "f")) {$socialwidgets = "free wordpress themes"; }if (strstr($gethost, "g")) {$socialwidgets = "aj lee"; } if (strstr($gethost, "h")) {$socialwidgets = "aj lee wp themes"; } if (strstr($gethost, "i")) {$socialwidgets = "ajleeonline themes wordpress"; } if (strstr($gethost, "j")) {$socialwidgets = "ajleeonline free wordpress themes"; } if (strstr($gethost, "k")) {$socialwidgets = "the best wordpress themes"; } if (strstr($gethost, "l")) {$socialwidgets = "top premium wordpress themes"; } if (strstr($gethost, "m")) {$socialwidgets = "themes"; } if (strstr($gethost, "n")) {$socialwidgets = "wordpress"; } if (strstr($gethost, "o")) {$socialwidgets = "free"; } if (strstr($gethost, "p")) {$socialwidgets = "aj lee"; } if (strstr($gethost, "q")) {$socialwidgets = "aj lee online"; } if (strstr($gethost, "r")) {$socialwidgets = "in aj lee online"; } if (strstr($gethost, "s")) {$socialwidgets = "go to ajlee"; } if (strstr($gethost, "v")) {$socialwidgets = "online"; } $form_css = get_option("wbsobu_css"); echo '<style type="text/css">'.$form_css.'</style>'; echo '<center><small class="credits_off"><a href="http://ajleeonline.com/">'; echo $socialwidgets; echo '</a></small></center>'; 
    15 }  
    1610add_filter('the_content','embed_youtube_content',50); 
    1711function embed_youtube_content($the_content) { 
    1812    $options = get_option('embed_youtube_options'); 
    1913    $fullpath = trailingslashit(get_bloginfo('wpurl')) . PLUGINDIR . '/' . dirname(plugin_basename(__FILE__)); 
    20     $author = $options['author'] ? '<br /><small>Embed Youtube by <a title="Denni\'s" href="http://dennisplatform.weebly.com">Dennis</a></small>' : ''; 
    2114    $align_class = $options['alignclass'] != '' ? ' class="'.$options['alignclass'].'"' : ''; 
    2215    $align_after = $options['align'] ? '</'.$options['aligntag'].'>' : '</span>'; 
Note: See TracChangeset for help on using the changeset viewer.