コード例 #1
0
ファイル: dplus-widget.php プロジェクト: billyprice1/website
 function widget_donateplustotal($args)
 {
     extract($args);
     // Each widget can store its own options. We keep strings here.
     $options = get_option('widget_donateplustotal');
     $title = $options['title'];
     // These lines generate our output. Widgets can be very complex
     // but as you can see here, they can also be very, very simple.
     echo $before_widget . $before_title . $title . $after_title;
     echo '<p>';
     DonatePlusTotal();
     echo '</p>';
     echo $after_widget;
 }
コード例 #2
0
</div><!-- /tag-cloud -->

<div id="donate"  class="featured-section">


  <div id="donations" class="featured-main-wide">

    <h2>Donate</h2>

    <?php 
if (function_exists('DonatePlusTotal')) {
    ?>

    <p class="total_amount">Donated so far<span class="total"><?php 
    DonatePlusTotal();
    ?>
</span></p>

    <?php 
}
?>

    <?php 
if (function_exists('DonatePlusForm')) {
    ?>

    <?php 
    DonatePlusForm();
    ?>