Beispiel #1
0
 function widget_email_most_emailed($args)
 {
     extract($args);
     $options = get_option('widget_email_most_emailed');
     $title = htmlspecialchars(stripslashes($options['title']));
     if (function_exists('get_mostemailed')) {
         echo $before_widget . $before_title . $title . $after_title;
         echo '<ul>' . "\n";
         get_mostemailed($options['mode'], $options['limit'], $options['chars']);
         echo '</ul>' . "\n";
         echo $after_widget;
     }
 }
Beispiel #2
0
 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', esc_attr($instance['title']));
     $type = esc_attr($instance['type']);
     $mode = esc_attr($instance['mode']);
     $limit = intval($instance['limit']);
     $chars = intval($instance['chars']);
     //$cat_ids = explode(',', esc_attr($instance['cat_ids']));
     echo $before_widget . $before_title . $title . $after_title;
     echo '<ul>' . "\n";
     switch ($type) {
         case 'most_emailed':
             get_mostemailed($mode, $limit, $chars);
             break;
     }
     echo '</ul>' . "\n";
     echo $after_widget;
 }
Beispiel #3
0
            		
            		<?php 
    }
    ?>

					<?php 
    if (function_exists('get_mostemailed')) {
        ?>
            		
            		<div id="side_most_emailed">
            
						<h3 class="mast">Most Emailed</h3>
						
						<ul class="email">
							<?php 
        get_mostemailed('post', 5);
        ?>
									
						</ul>
            		
            		</div>

					<?php 
    }
    ?>
					
					<?php 
}
?>
					
            	</div>
function email_page_most_stats($content)
{
    $stats_display = get_option('stats_display');
    $stats_mostlimit = intval(get_option('stats_mostlimit'));
    if ($stats_display['emailed_most'] == 1) {
        $content .= '<p><strong>' . sprintf(__ngettext('%s Most Emailed Post', '%s Most Emailed Posts', $stats_mostlimit, 'wp-email'), number_format_i18n($stats_mostlimit)) . '</strong></p>' . "\n";
        $content .= '<ul>' . "\n";
        $content .= get_mostemailed('post', $stats_mostlimit, 0, false);
        $content .= '</ul>' . "\n";
    }
    return $content;
}
Beispiel #5
0
function email_page_most_stats($content)
{
    $stats_display = get_option('stats_display');
    $stats_mostlimit = intval(get_option('stats_mostlimit'));
    if ($stats_display['emailed_most'] == 1) {
        $content .= '<p><strong>' . $stats_mostlimit . ' ' . __('Most Emailed Posts', 'wp-email') . '</strong></p>' . "\n";
        $content .= '<ul>' . "\n";
        $content .= get_mostemailed('post', $stats_mostlimit, 0, false);
        $content .= '</ul>' . "\n";
    }
    return $content;
}