Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- if (get_option('photonx') == '1') {
- add_filter('wp_get_attachment_url', 'parallelize_hostnames', 10, 2);
- }
- if (get_option('removeslug') == '1') {
- add_filter('post_type_link', 'rmslug', 10, 3);
- add_action('pre_get_posts', 'parse_request');
- }
- if (!function_exists('dev_breadcrumbs_chapter')) {
- function dev_breadcrumbs_chapter($id)
- {
- echo " <div id=\"breadcrumbs\">\r\n <ol itemscope itemtype=\"http://schema.org/BreadcrumbList\">\r\n\r\n <li itemprop=\"itemListElement\" itemscope\r\n itemtype=\"https://schema.org/ListItem\">\r\n <a itemtype=\"https://schema.org/Thing\"\r\n itemprop=\"item\" href=\"";
- bloginfo('url');
- echo "\">\r\n <span itemprop=\"name\">Home</span></a>\r\n <meta itemprop=\"position\" content=\"1\" />\r\n </li>\r\n › \r\n <li itemprop=\"itemListElement\" itemscope\r\n itemtype=\"https://schema.org/ListItem\">\r\n <a itemtype=\"https://schema.org/Thing\"\r\n itemprop=\"item\" href=\"";
- bloginfo('url');
- echo "/manga\">\r\n <span itemprop=\"name\">Manga</span></a>\r\n <meta itemprop=\"position\" content=\"2\" />\r\n </li>\r\n\r\n ›\r\n <li itemprop=\"itemListElement\" itemscope\r\n itemtype=\"https://schema.org/ListItem\">\r\n <a itemtype=\"https://schema.org/Thing\"\r\n itemprop=\"item\" href=\"";
- $meta = get_post_meta($id, 'dev_seri', true);
- echo get_the_permalink($meta);
- echo "\">\r\n <span itemprop=\"name\">";
- $meta = get_post_meta($id, 'dev_seri', true);
- echo get_the_title($meta);
- echo "</span></a>\r\n <meta itemprop=\"position\" content=\"3\" />\r\n </li>\r\n\r\n ›\r\n <li itemprop=\"itemListElement\" itemscope\r\n itemtype=\"https://schema.org/ListItem\">\r\n <a itemtype=\"https://schema.org/Thing\"\r\n itemprop=\"item\" href=\"";
- the_permalink();
- echo "\">\r\n <span itemprop=\"name\">";
- the_title();
- echo "</span></a>\r\n <meta itemprop=\"position\" content=\"4\" />\r\n</li>\r\n</ol>\r\n</div>\r\n";
- }
- }
- if (!function_exists('dev_breadcrumbs_manga')) {
- function dev_breadcrumbs_manga($id)
- {
- echo " <div id=\"breadcrumbs\">\r\n <ol itemscope itemtype=\"http://schema.org/BreadcrumbList\">\r\n\r\n <li itemprop=\"itemListElement\" itemscope\r\n itemtype=\"https://schema.org/ListItem\">\r\n <a itemtype=\"https://schema.org/Thing\"\r\n itemprop=\"item\" href=\"";
- bloginfo('url');
- echo "\">\r\n <span itemprop=\"name\">Home</span></a>\r\n <meta itemprop=\"position\" content=\"1\" />\r\n </li>\r\n › \r\n <li itemprop=\"itemListElement\" itemscope\r\n itemtype=\"https://schema.org/ListItem\">\r\n <a itemtype=\"https://schema.org/Thing\"\r\n itemprop=\"item\" href=\"";
- bloginfo('url');
- echo "/manga\">\r\n <span itemprop=\"name\">Manga</span></a>\r\n <meta itemprop=\"position\" content=\"2\" />\r\n </li>\r\n\r\n ›\r\n <li itemprop=\"itemListElement\" itemscope\r\n itemtype=\"https://schema.org/ListItem\">\r\n <a itemtype=\"https://schema.org/Thing\"\r\n itemprop=\"item\" href=\"";
- the_permalink();
- echo "\">\r\n <span itemprop=\"name\">";
- the_title();
- echo "</span></a>\r\n <meta itemprop=\"position\" content=\"3\" />\r\n </li>\r\n</ol>\r\n</div>\r\n";
- }
- }
- add_action('add_meta_boxes', 'serieslist_register_meta_box');
- add_action('save_post', 'chapter_save_post');
- add_shortcode('az', 'az_sc');
- add_shortcode('manga_genre', 'manga_genre');
- add_shortcode('manga_status', 'manga_status');
- add_shortcode('manga_type', 'manga_type');
- $updater = new EDD_Theme_Updater_Admin($config = array('remote_api_url' => 'https://developersidn.com', 'item_name' => 'Devreader', 'theme_slug' => 'devreader', 'version' => DEV_VERSION, 'author' => 'DevelopersID', 'download_id' => '', 'renew_url' => ''), $strings = array('theme-license' => __('Theme License', 'edd-theme-updater'), 'enter-key' => __('Enter your theme license key.', 'edd-theme-updater'), 'license-key' => __('License Key', 'edd-theme-updater'), 'license-action' => __('License Action', 'edd-theme-updater'), 'deactivate-license' => __('Deactivate License', 'edd-theme-updater'), 'activate-license' => __('Activate License', 'edd-theme-updater'), 'status-unknown' => __('License status is unknown.', 'edd-theme-updater'), 'renew' => __('Renew?', 'edd-theme-updater'), 'unlimited' => __('unlimited', 'edd-theme-updater'), 'license-key-is-active' => __('License key is active.', 'edd-theme-updater'), 'expires%s' => __('Expires %s.', 'edd-theme-updater'), '%1$s/%2$-sites' => __('You have %1$s / %2$s sites activated.', 'edd-theme-updater'), 'license-key-expired-%s' => __('License key expired %s.', 'edd-theme-updater'), 'license-key-expired' => __('License key has expired.', 'edd-theme-updater'), 'license-keys-do-not-match' => __('License keys do not match.', 'edd-theme-updater'), 'license-is-inactive' => __('License is inactive.', 'edd-theme-updater'), 'license-key-is-disabled' => __('License key is disabled.', 'edd-theme-updater'), 'site-is-inactive' => __('Site is inactive.', 'edd-theme-updater'), 'license-status-unknown' => __('License status is unknown.', 'edd-theme-updater'), 'update-notice' => __("Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update.", 'edd-theme-updater'), 'update-available' => __("<strong>%1\$s %2\$s</strong> is available. <a href=\"%3\$s\" class=\"thickbox\" title=\"%4s\">Check out what's new</a> or <a href=\"%5\$s\"%6\$s>update now</a>.", 'edd-theme-updater')));
- new DevNotices();
- class EDD_Theme_Updater_Admin
- {
- /**
- * Variables required for the theme updater
- *
- * @since 1.0.0
- * @type string
- */
- protected $remote_api_url = null;
- protected $theme_slug = null;
- protected $version = null;
- protected $author = null;
- protected $download_id = null;
- protected $renew_url = null;
- protected $strings = null;
- /**
- * Initialize the class.
- *
- * @since 1.0.0
- */
- public function __construct($config = array(), $strings = array())
- {
- $config = wp_parse_args($config, array('remote_api_url' => 'https://developersidn.com', 'theme_slug' => get_template(), 'item_name' => '', 'license' => '', 'version' => '', 'author' => '', 'download_id' => '', 'renew_url' => ''));
- $this->remote_api_url = $config['remote_api_url'];
- $this->item_name = $config['item_name'];
- $this->theme_slug = sanitize_key($config['theme_slug']);
- $this->version = $config['version'];
- $this->author = $config['author'];
- $this->download_id = $config['download_id'];
- $this->renew_url = $config['renew_url'];
- if ('' == $config['version']) {
- $theme = wp_get_theme($this->theme_slug);
- $this->version = $theme->get('Version');
- }
- $this->strings = $strings;
- add_action('admin_init', array($this, 'updater'));
- add_action('admin_init', array($this, 'register_option'));
- add_action('admin_init', array($this, 'license_action'));
- add_action('admin_menu', array($this, 'license_menu'));
- add_action('update_option_' . $this->theme_slug . '_license_key', array($this, 'activate_license'), 10, 2);
- add_filter('http_request_args', array($this, 'disable_wporg_request'), 5, 2);
- }
- public function updater()
- {
- if (get_option($this->theme_slug . '_license_key_status', false) != 'valid') {
- return null;
- }
- new EDD_Theme_Updater(array('remote_api_url' => $this->remote_api_url, 'version' => $this->version, 'license' => trim(get_option($this->theme_slug . '_license_key')), 'item_name' => $this->item_name, 'author' => $this->author), $this->strings);
- }
- /**
- * Adds a menu item for the theme license under the appearance menu.
- *
- * since 1.0.0
- */
- public function license_menu()
- {
- $strings = $this->strings;
- add_theme_page($strings['theme-license'], $strings['theme-license'], 'manage_options', $this->theme_slug . '-license', array($this, 'license_page'));
- }
- /**
- * Outputs the markup used on the theme license page.
- *
- * since 1.0.0
- */
- public function license_page()
- {
- $strings = $this->strings;
- $license = trim(get_option($this->theme_slug . '_license_key'));
- $status = get_option($this->theme_slug . '_license_key_status', false);
- if (!$license) {
- $message = $strings['enter-key'];
- } else {
- if (!get_transient($this->theme_slug . '_license_message', false)) {
- set_transient($this->theme_slug . '_license_message', $this->check_license(), 60 * 60 * 24);
- }
- $message = get_transient($this->theme_slug . '_license_message');
- }
- echo " <div class=\"wrap\">\r\n <h2>";
- echo $strings['theme-license'];
- echo "</h2>\r\n <form method=\"post\" action=\"options.php\">\r\n\r\n ";
- settings_fields($this->theme_slug . '-license');
- echo "\r\n <table class=\"form-table\">\r\n <tbody>\r\n\r\n <tr valign=\"top\">\r\n <th scope=\"row\" valign=\"top\">\r\n ";
- echo $strings['license-key'];
- echo " </th>\r\n <td>\r\n <input id=\"";
- echo $this->theme_slug;
- echo '_license_key" name="';
- echo $this->theme_slug;
- echo '_license_key" type="text" class="regular-text" value="';
- echo esc_attr($license);
- echo "\" />\r\n <p class=\"description\">\r\n ";
- echo $message;
- echo " </p>\r\n </td>\r\n </tr>\r\n\r\n ";
- if ($license) {
- echo " <tr valign=\"top\">\r\n <th scope=\"row\" valign=\"top\">\r\n ";
- echo $strings['license-action'];
- echo " </th>\r\n <td>\r\n ";
- wp_nonce_field($this->theme_slug . '_nonce', $this->theme_slug . '_nonce');
- if ('valid' == $status) {
- echo ' <input type="submit" class="button-secondary" name="';
- echo $this->theme_slug;
- echo '_license_deactivate" value="';
- esc_attr_e($strings['deactivate-license']);
- ..........................................................................
- .............................................
- ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement