コード例 #1
0
?>
</h3>                                                                                <span class="submitt"><input class="button-abc" type="submit" name="__wp_supercustom_cms_save" value="<?php 
//_e('Save changes', FB_SUPERCUSTOM_CMS_TEXTDOMAIN );
?>
 " /></span>
				<div class="inside">
					<p><?php 
echo __wp_supercustom_cms_get_plugin_data('Title');
echo ' ';
_e('Version', FB_SUPERCUSTOM_CMS_TEXTDOMAIN);
echo ' ';
echo __wp_supercustom_cms_get_plugin_data('Version');
?>
</p>
					<p><?php 
echo __wp_supercustom_cms_get_plugin_data('Description');
?>
</p>
					<p><?php 
_e('Further information: Visit the <a href="http://wordpress.org/extend/plugins/SuperCustomCMS/">plugin homepage</a> for further information or to grab the latest version of this plugin.', FB_SUPERCUSTOM_CMS_TEXTDOMAIN);
?>
</p>
					<p>
						<?php 
_e('You want to thank me? Visit my <a href="http://bueltge.de/wunschliste/">wishlist</a> or donate.', FB_SUPERCUSTOM_CMS_TEXTDOMAIN);
?>
						<span>
							<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
							<input type="hidden" name="cmd" value="_s-xclick">
							<input type="hidden" name="hosted_button_id" value="4578111">
							<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="<?php 
コード例 #2
0
function __wp_supercustom_cms_textdomain()
{
    load_plugin_textdomain(__wp_supercustom_cms_get_plugin_data('TextDomain'), FALSE, dirname(FB_SUPERCUSTOM_CMS_BASENAME) . __wp_supercustom_cms_get_plugin_data('DomainPath'));
}
コード例 #3
0
    if (!defined('WP_CONTENT_URL')) {
        define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
    }
    if (!defined('WP_CONTENT_DIR')) {
        define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
    }
    if (!defined('WP_PLUGIN_URL')) {
        define('WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins');
    }
    if (!defined('WP_PLUGIN_DIR')) {
        define('WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins');
    }
    // plugin definitions
    define('FB_SUPERCUSTOM_CMS_BASENAME', plugin_basename(__FILE__));
    define('FB_SUPERCUSTOM_CMS_BASEFOLDER', plugin_basename(dirname(__FILE__)));
    define('FB_SUPERCUSTOM_CMS_TEXTDOMAIN', __wp_supercustom_cms_get_plugin_data('TextDomain'));
    define('WP_SUPERCUSTOM_CMS_ADDRESS', WP_PLUGIN_URL . '/' . FB_SUPERCUSTOM_CMS_BASEFOLDER . '/');
    define('WP_SUPERCUSTOM_CMS_ADMIN', get_option('siteurl') . '/wp-admin/admin.php?page=WP_SuperCustomCMS');
}
function __wp_supercustom_cms_get_plugin_data($value = 'Version')
{
    if (!function_exists('get_plugin_data')) {
        require_once ABSPATH . '/wp-admin/includes/plugin.php';
    }
    $plugin_data = get_plugin_data(__FILE__);
    $plugin_value = $plugin_data[$value];
    return $plugin_value;
}
// some basics for message
include 'classes/__wp_supercustom_cms_message_class.php';
include 'includes/conditionals.php';