Exemplo n.º 1
0
 private function Get_Options_Page_Url($parameters = array())
 {
     $url = Add_Query_Arg(array('page' => __CLASS__), Admin_Url('options-general.php'));
     if (Is_Array($parameters) && !empty($parameters)) {
         $url = Add_Query_Arg($parameters, $url);
     }
     return $url;
 }
Exemplo n.º 2
0
 static function getOptionsPageUrl($parameters = array())
 {
     $url = Add_Query_Arg(array('page' => self::$page_slug), Admin_Url('options-general.php'));
     if (Is_Array($parameters) && !empty($parameters)) {
         $url = Add_Query_Arg($parameters, $url);
     }
     return $url;
 }
Exemplo n.º 3
0
        function Print_Contribution_Message()
        {
            if (Count($this->Get_Extension_Names()) == 0) {
                return False;
            }
            global $current_user;
            get_currentuserinfo();
            $arr_extension = $this->Get_Extension_Names();
            if (File_Exists(DirName(__FILE__) . '/contribution.png')) {
                ?>
 <img src="<?php 
                echo $this->base_url;
                ?>
/contribution.png" class="alignright" style="margin-left:10px" /> <?php 
            }
            ?>
 <div style="text-align:justify"> <?php 
            if ($this->is_dashboard) {
                ?>
<h4><?php 
            } else {
                ?>
<h3><?php 
            }
            ?>
 <?php 
            PrintF($this->t('Hello %1$s!'), $current_user->display_name);
            ?>
</h4> <?php 
            if ($this->is_dashboard) {
                ?>
</h4><?php 
            } else {
                ?>
</h3><?php 
            }
            ?>
 <?php 
            if (Count($arr_extension) == 1) {
                ?>
 <p> <?php 
                PrintF($this->t('Thank you for using my WordPress plugin %s.'), $arr_extension[0]);
                ?>
 <?php 
                echo $this->t('I am sure you will enjoy the new features and you will surely find out fast that this plugin is very useful for you.');
                ?>
 <p> <p> <?php 
                echo $this->t('You can use and test it without any limitation of functionality or availability for your personal purposes.');
                ?>
 </p> <?php 
            } else {
                ?>
 <p> <?php 
                PrintF($this->t('Thank you for using %1$s of my WordPress plugins: %2$s.'), $this->Number_to_Word(Count($arr_extension)), $this->Extended_Implode($arr_extension, ', ', ' ' . $this->t('and') . ' '));
                ?>
 <?php 
                echo $this->t('I am sure you will enjoy the new features and you will surely find out fast that these plugins are very useful for you.');
                ?>
 </p> <p> <?php 
                echo $this->t('You can use and test these plugins without any limitation of functionality or availability for your personal purposes.');
                ?>
 </p> <?php 
            }
            ?>
 <p> <?php 
            echo $this->t('But please make a contribution in order to support that my plugins can be developed further more.');
            ?>
 <small><?php 
            echo $this->t('... <em>and to remove this Notification!</em>');
            ?>
</small> </p> <p> (<small><?php 
            PrintF($this->t('If you have already donated in the past and lost your voucher please %sdrop me a line%s.'), '<a href="http://dennishoppe.de/contribution-voucher-code" target="_blank">', '</a>');
            ?>
</small>) </p> </div> <ul> <li><?php 
            echo $this->t('Make a gift of the Amazon Wish List');
            ?>
: <ul> <li>&raquo; <a href="http://amzn.com/w/1A45MS7KY75CY" title="<?php 
            echo $this->t('Amazon USA');
            ?>
" target="_blank"><?php 
            echo $this->t('Amazon USA');
            ?>
</a></li> <li>&raquo; <a href="http://www.amazon.de/wishlist/2AG0R8BHEOJOL" title="<?php 
            echo $this->t('Amazon Germany');
            ?>
" target="_blank"><?php 
            echo $this->t('Amazon Germany');
            ?>
</a></li> </ul> </li> <li class="hide_if_js"><?php 
            echo $this->t('Make a contribution via PayPal');
            ?>
: <ul> <li>&raquo; <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=1220480" target="_blank">United States dollar ($)</a></li> <li>&raquo; <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=U49F54BMWKNHU" target="_blank">Pound sterling (&pound;)</a></li> <li>&raquo; <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=HECSPGLPTQL24" target="_blank">Euro (&euro;)</a></li> </ul> </li> <li class="show_if_js" style="display:none"><?php 
            echo $this->t('Make a contribution via PayPal');
            ?>
: <ul> <li>&raquo; <a href="#" title="<?php 
            echo $this->t('Make a contribution in US Dollars');
            ?>
" class="dennis_hoppe_contribution_show_ui">United States Dollar ($)</a> <div class="dennis_hoppe_contribution_ui"> <?php 
            echo $this->t('Amount');
            ?>
: <input type="hidden" class="dennis_hoppe_contribution_currency" value="USD" /> <select class="dennis_hoppe_contribution_amount"> <option value="" disabled="disabled" selected="selected"><?php 
            echo $this->t('Amount in USD');
            ?>
</option> <?php 
            for ($amount = 6.95; $amount < 100; $amount *= 1.3) {
                ?>
 <option value="<?php 
                echo Number_Format($amount, 2, '.', '');
                ?>
">US$<?php 
                echo Number_Format($amount, 2);
                ?>
</option> <?php 
            }
            ?>
 </select> <input type="button" class="dennis_hoppe_contribution_button button-primary" value="<?php 
            echo $this->t('Proceed to PayPal');
            ?>
 &rarr;" title="<?php 
            echo $this->t('Proceed to PayPal');
            ?>
" disabled="disabled" /> </div> </li> <li>&raquo; <a href="#" title="<?php 
            echo $this->t('Make a contribution in Pound sterling');
            ?>
" class="dennis_hoppe_contribution_show_ui">Pound Sterling (&pound;)</a> <div class="dennis_hoppe_contribution_ui hide_if_js"> <?php 
            echo $this->t('Amount');
            ?>
: <input type="hidden" class="dennis_hoppe_contribution_currency" value="GBP" /> <select class="dennis_hoppe_contribution_amount"> <option value="" disabled="disabled" selected="selected"><?php 
            echo $this->t('Amount in GBP');
            ?>
</option> <?php 
            for ($amount = 5.95; $amount < 100; $amount *= 1.3) {
                ?>
 <option value="<?php 
                echo Number_Format($amount, 2, '.', '');
                ?>
">&pound;<?php 
                echo Number_Format($amount, 2);
                ?>
</option> <?php 
            }
            ?>
 </select> <input type="button" class="dennis_hoppe_contribution_button button-primary" value="<?php 
            echo $this->t('Proceed to PayPal');
            ?>
 &rarr;" title="<?php 
            echo $this->t('Proceed to PayPal');
            ?>
" disabled="disabled" /> </div> </li> <li>&raquo; <a href="#" title="<?php 
            echo $this->t('Make a contribution in Euro');
            ?>
" class="dennis_hoppe_contribution_show_ui">Euro (&euro;)</a> <div class="dennis_hoppe_contribution_ui hide_if_js"> <?php 
            echo $this->t('Amount');
            ?>
: <input type="hidden" class="dennis_hoppe_contribution_currency" value="EUR" /> <select class="dennis_hoppe_contribution_amount"> <option value="" disabled="disabled" selected="selected"><?php 
            echo $this->t('Amount in EUR');
            ?>
</option> <?php 
            for ($amount = 5.95; $amount < 100; $amount *= 1.3) {
                ?>
 <option value="<?php 
                echo Number_Format($amount, 2, '.', '');
                ?>
"><?php 
                echo Number_Format($amount, 2, ',', '');
                ?>
&euro;</option> <?php 
            }
            ?>
 </select> <input type="button" class="dennis_hoppe_contribution_button button-primary" value="<?php 
            echo $this->t('Proceed to PayPal');
            ?>
 &rarr;" title="<?php 
            echo $this->t('Proceed to PayPal');
            ?>
" disabled="disabled" /> </div> </li> <li>&raquo; <a href="#" title="<?php 
            echo $this->t('Make a contribution in another currency');
            ?>
" class="dennis_hoppe_contribution_show_ui"><?php 
            echo $this->t('Other currency');
            ?>
</a> <div class="dennis_hoppe_contribution_ui hide_if_js"> <input type="hidden" class="dennis_hoppe_contribution_amount" value="" /> <select class="dennis_hoppe_contribution_currency"> <option value="" disabled="disabled" selected="selected"><?php 
            echo $this->t('International currency');
            ?>
</option> <option value="CAD">Dollar canadien (C$)</option> <option value="JPY">Yen (&yen;)</option> <option value="AUD">Australian dollar (A$)</option> <option value="CHF">Franken (SFr)</option> <option value="NOK">Norsk krone (kr)</option> <option value="SEK">Svensk krona (kr)</option> <option value="DKK">Dansk krone (kr)</option> <option value="PLN">Polski zloty</option> <option value="HUF">Magyar forint (Ft)</option> <option value="CZK">koruna česká (Kč)</option> <option value="SGD">Ringgit Singapura (S$)</option> <option value="HKD">Hong Kong dollar (HK$)</option> <option value="ILS">שקל חדש (₪)</option> <option value="MXN">Peso mexicano (Mex$)</option> <option value="NZD">Tāra o Aotearoa (NZ$)</option> <option value="PHP">Piso ng Pilipinas (piso)</option> <option value="TWD">New Taiwan dollar (NT$)</option> </select> <input type="button" class="dennis_hoppe_contribution_button button-primary" value="<?php 
            echo $this->t('Proceed to PayPal');
            ?>
 &rarr;" title="<?php 
            echo $this->t('Proceed to PayPal');
            ?>
" disabled="disabled" /> </div> </li> </ul> </li> </ul> <?php 
            if ($this->is_dashboard && current_user_can('activate_plugins')) {
                ?>
 <div class="remove-notification" style="text-align:right"> <form action="<?php 
                echo Admin_Url('plugins.php');
                ?>
" method="post"> <input type="hidden" name="action" value="deactivate-selected"> <?php 
                WP_Nonce_Field('bulk-plugins');
                ?>
 <?php 
                foreach ($this->Get_Extension_Files() as $plugin_file) {
                    ?>
 <input type="hidden" name="checked[]" value="<?php 
                    echo $plugin_file;
                    ?>
"> <?php 
                }
                ?>
 <p> <input type="submit" value="<?php 
                echo $this->t('No thanks. Remove this box now!');
                ?>
" class="button"> </p> </form> </div> <?php 
            }
            ?>
 <div class="clear"></div><?php 
        }
Exemplo n.º 4
0
		<div class="post"><?php 
        PrintF($this->t('Belongs to %s: "%s"'), $image->parent->type->labels->singular_name, '<a href="' . $image->parent->link . '" target="_blank">' . $image->parent->title . '</a>');
        ?>
</div>
		<?php 
    } else {
        ?>
		<div class="post"><?php 
        echo $this->t('Not attached to a post.');
        ?>
</div>
		<?php 
    }
    ?>
		<div class="ajax-loader hidden"><img src="<?php 
    echo Admin_Url('images/loading.gif');
    ?>
" alt="Loading"></div>
		<div class="import-success hidden"><?php 
    echo $this->t('This image belongs to your gallery.');
    ?>
</div>

		<?php 
    if ($image->parent->ID != $current_gallery->ID) {
        ?>
		<p class="import"><a href="<?php 
        echo $image->move_link;
        ?>
" class="import button"><?php 
        echo $this->t('Import to my gallery');