config = $config; add_action( 'activated_plugin', array( $this, 'redirectAfterInstall' ), 10, 2 ); add_action( 'admin_init', array( $this, 'updatePoweredByOption' ) ); add_action( 'admin_init', array( $this, 'registerAdminActions' ) ); add_action( 'admin_menu', array( $this, 'updateMenu' ), 21 ); add_action( 'admin_enqueue_scripts', array( $this, 'enqueueAdminStyles' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'enqueueAdminScripts' ) ); $aboutPageKey = $this->getPageSlug(); add_action( 'cminds-' . $aboutPageKey . '-content-1', array( $this, 'displayUserGuideTab' ) ); // add_action( 'cminds-' . $aboutPageKey . '-content-5', array( $this, 'displayUpgradeToProTab' ) ); add_action( 'cminds-' . $aboutPageKey . '-content-10', array( $this, 'displayCreativeMindsTab' ) ); add_action( 'cminds-' . $aboutPageKey . '-content-30', array( $this, 'displayMembershipTab' ) ); add_action( 'cminds-' . $aboutPageKey . '-content-40', array( $this, 'displayCMProductTab' ) ); add_action( 'cminds-' . $aboutPageKey . '-content-50', array( $this, 'displayCMAddOnsTab' ) ); add_action( 'cminds-' . $aboutPageKey . '-content-60', array( $this, 'displayVideoGuidesTab' ) ); add_action( 'cminds-' . $aboutPageKey . '-content-99', array( $this, 'displaySupportTab' ) ); add_action( 'cminds-' . $aboutPageKey . '-content-199', array( $this, 'displayServerInformationTab' ) ); add_action( 'cminds_download_sysinfo', array( $this, 'cminds_generate_sysinfo_download' ) ); add_action( 'init', array( $this, 'cminds_get_actions' ) ); add_action( 'init', array( $this, 'cminds_post_actions' ) ); add_shortcode( 'cminds_free_ads', array( $this, 'showAds' ) ); add_shortcode( 'cminds_free_author', array( $this, 'showAuthor' ) ); add_shortcode( 'cminds_free_registration', array( $this, 'showRegistration' ) ); add_shortcode( 'cminds_free_guide', array( $this, 'showGuide' ) ); add_filter( 'plugin_row_meta', array( $this, 'add_plugin_meta_links' ), 10, 2 ); add_filter( 'plugin_action_links_' . $this->getOption( 'plugin-basename' ), array( $this, 'add_plugin_action_links' ) ); include_once "cminds-api.php"; $this->licensingApi = new CmindsLicensingAPI( $this ); $globalVariableName = $this->getOption( 'plugin-abbrev' ) . '_isLicenseOk'; global ${$globalVariableName}; ${$globalVariableName} = true; //$licensingApi->isLicenseOk(); $licensePageKey = $this->getLicensingSlug(); add_action( 'cminds-' . $licensePageKey . '-content-10', array( $this->licensingApi, 'license_page' ) ); add_action( 'cminds-' . $licensePageKey . '-content-20', array( $this->licensingApi, 'update_page' ) ); add_action( 'cminds-' . $licensePageKey . '-content-40', array( $this, 'displayManageProductsTab' ) ); add_action( 'cminds-' . $licensePageKey . '-content-99', array( $this, 'displayServerInformationTab' ) ); } public function redirectAfterInstall( $plugin, $network_activation ) { global $cmindsPluginPackage; $the_package = null; foreach ( $cmindsPluginPackage as $package ) { $basename = $package->getOption( 'plugin-basename' ); if ( $basename == $plugin ) { $the_package = $package; break; } } if ( $the_package && $the_package->getOption( 'plugin-redirect-after-install' ) ) { $url = $the_package->getOption( 'plugin-redirect-after-install' ); $isBulkActivate = array(); $isBulkActivate[] = filter_input( INPUT_POST, 'action2' ); $isBulkActivate[] = filter_input( INPUT_POST, 'action' ); if ( !empty( $url ) && !in_array( 'activate-selected', $isBulkActivate ) ) { wp_redirect( $url ); exit(); } } } /** * Hooks Cminds actions, when present in the $_GET superglobal. Every Cminds_action * present in $_GET is called using WordPress's do_action function. These * functions are called on init. * * @since 1.0 * @return void */ public function registerAdminActions() { if ( is_admin() ) { // If user is paying or in trial and have the free version installed, // assume that the deactivation is for the upgrade process. add_action( 'wp_ajax_cm-submit-uninstall-reason', array( $this, 'submitUninstallReason' ) ); global $pagenow; if ( 'plugins.php' === $pagenow ) { // Add action link to settings page. add_filter( 'plugin_action_links_' . $this->getOption( 'plugin-basename' ), array( $this, 'modifyPluginActionLinks' ), 10, 2 ); add_filter( 'network_admin_plugin_action_links_' . $this->getOption( 'plugin-basename' ), array( $this, 'modifyPluginActionLinks' ), 10, 2 ); add_action( 'admin_footer', array( $this, 'showDeactivationFeedbackDialog' ), 11 ); } } } /** * Modify plugin's page action links collection. * * @author Vova Feldman (@svovaf) * @since 1.0.0 * * @param array $links * @param $file * * @return array */ function modifyPluginActionLinks( $links, $file ) { /* * This HTML element is used to identify the correct plugin when attaching an event to its Deactivate link. */ if ( isset( $links[ 'deactivate' ] ) ) { $links[ 'deactivate' ] .= ''; } return $links; } /** * Displays a confirmation and feedback dialog box when the user clicks on the "Deactivate" link on the plugins * page. * * @author Vova Feldman (@svovaf) * @author Leo Fajardo (@leorw) * @since 1.1.2 */ function showDeactivationFeedbackDialog() { $content = ''; ob_start(); include_once 'views/deactivation_feedback_modal.php'; $content .= ob_get_clean(); echo $content; } function filterDeactivationReason( $reason ) { if ( strlen( $reason ) < 20 ) { return ''; } if ( str_word_count( $reason ) < 4 ) { return ''; } $dirty_words = array( 'shit', 'fuck', 'wtf' ); foreach ( $dirty_words as $a ) { if ( stripos( $reason, $a ) !== false ) { return ''; } } return $reason; } /** * Called after the user has submitted his reason for deactivating the plugin. * @since 1.1.2 */ function submitUninstallReason() { if ( empty( $_POST[ 'plugin_slug' ] ) || empty( $_POST[ 'deactivation_reason' ] ) ) { exit; } $reason = isset( $_REQUEST[ 'deactivation_reason' ] ) ? trim( esc_html( stripslashes( strip_tags( $_REQUEST[ 'deactivation_reason' ] ) ) ) ) : ''; $filteredReason = $this->filterDeactivationReason( $reason ); $postedEmail = isset( $_POST[ 'contact_email' ] ) && is_email( trim( $_POST[ 'contact_email' ] ) ) ? trim( $_POST[ 'contact_email' ] ) : null; /* * Only send the e-mail if the filtered reason is not empty */ if ( !empty( $filteredReason ) ) { global $cmindsPluginPackage; $package = $cmindsPluginPackage[ $_POST[ 'plugin_slug' ] ]; $fields = array( 'product_name' => $package->getOption( 'plugin-name' ), 'remote_url' => get_bloginfo( 'wpurl' ), 'email' => null !== $postedEmail ? $postedEmail : get_bloginfo( 'admin_email' ), 'want_contact' => isset( $_POST[ 'want_contact' ] ) ? 'true' === $_POST[ 'want_contact' ] : false, 'data_agree' => isset( $_POST[ 'data_agree' ] ) ? 'true' === $_POST[ 'data_agree' ] : true, ); $registered = $this->isRegistered( $_POST[ 'plugin_slug' ] ) ? ' (registered)' : ''; $message = '

The ' . $fields[ 'product_name' ] . ' has been deactivated on ' . $fields[ 'remote_url' ] . ' by ' . $fields[ 'email' ] . $registered . '.

The reason was:

' . $filteredReason . '

'; $message .= '

'; $mail = 'marketing@cminds.com'; if ( $fields[ 'want_contact' ] ) { $message .= '

This user is interested in contact from our side.

'; $message .= '

'; $mail = 'support@cminds.com'; } if ( $fields[ 'data_agree' ] ) { $message .= '

SYSTEM INFORMATION BELOW:

'; ob_start(); echo '
';
					echo $this->cminds_system_info_content();
					echo '
'; $message .= ob_get_clean(); } $message .= '

END OF SYSTEM INFORMATION

'; add_filter( 'wp_mail_content_type', array( __CLASS__, 'cminds_set_content_type' ) ); $result = wp_mail( $mail , 'CM Free Plugin Deactivation Feedback', $message ); remove_filter( 'wp_mail_content_type', array( __CLASS__, 'cminds_set_content_type' ) ); } // Print '1' for successful operation. echo 1; exit; } /** * Hooks Cminds actions, when present in the $_GET superglobal. Every Cminds_action * present in $_GET is called using WordPress's do_action function. These * functions are called on init. * * @since 1.0 * @return void */ public function cminds_get_actions() { if ( isset( $_GET[ 'cminds_action' ] ) ) { do_action( 'cminds_' . $_GET[ 'cminds_action' ], $_GET ); } } /** * Hooks Cminds actions, when present in the $_POST superglobal. Every Cminds_action * present in $_POST is called using WordPress's do_action function. These * functions are called on init. * * @since 1.0 * @return void */ public function cminds_post_actions() { if ( isset( $_POST[ 'cminds_action' ] ) ) { do_action( 'cminds_' . $_POST[ 'cminds_action' ], $_POST ); } } public function updatePoweredByOption() { $optionValue = filter_input( INPUT_POST, $this->getPoweredByOption() ); $submitValue = filter_input( INPUT_POST, 'cminds_poweredby_change' ); if ( null !== $optionValue && null !== $submitValue ) { update_option( $this->getPoweredByOption(), $optionValue ); } } public function getPoweredByOption() { $optionName = $this->getOption( 'plugin-abbrev' ) . '-powered-by-enabled'; return $optionName; } public function isPoweredByEnabled() { $result = get_option( $this->getPoweredByOption(), 1 ); return $result; } /** * Returns the author Url (for free version only) */ public function showAuthor( $atts = array() ) { $authorUrl = ''; global $cmindsPluginPackage; $atts = shortcode_atts( array( 'id' => null ), $atts ); $currentPlugin = !empty( $atts[ 'id' ] ) ? $cmindsPluginPackage[ $atts[ 'id' ] ] : $this; if ( !$currentPlugin->isPoweredByEnabled() ) { return; } ob_start(); ?> '; $authorUrl .= 'CreativeMinds '; $authorUrl .= ' WordPress Plugin'; $authorUrl .= ' ' . $currentPlugin->getOption( 'plugin-name' ) . ''; $authorUrl .= '
'; return $authorUrl; } /* * Licensing Page Tabs */ public function displayUpgradeTutorialTab() { $content = ''; ob_start(); ?>
Customer Dashboard

Open CreativeMinds Customer Dashboard

cminds_compatibility_check(); echo $this->cminds_system_info(); $content .= ob_get_clean(); return $content; } /* * About/User Guide Page Tabs */ public function displayUserGuideTab() { $content = ''; ob_start(); ?>
Open User Guide in a new tab

getOption( 'plugin-compare-table' ); $pluginUrl = $this->getOption( 'plugin-store-url' ); ob_start(); ?>
Open About Us page in a new tab

Open Membership Package page in a new tab

Open Product Catalog in a new tab
| Filter:

Open Add-Ons page in a new tab

Open Video Guides page in a new tab

getOption( 'plugin-support-url' ); ob_start(); ?>

WordPress supprot forum can only be viewed on WordPress.org site. Please click on the buttom to visit the forum and to submit your support questions

Open WordPress Support Formum
getOption( 'plugin-basename' ) ) { foreach ( $meta as $key => $value ) { if ( strpos( $value, 'Visit plugin site' ) !== FALSE ) { unset( $meta[ $key ] ); $meta[] = sprintf( '%s', esc_url( $this->getOption( 'plugin-store-url' ) ), __( 'Visit plugin site', 'cminds-package' ) ); break; } } foreach ( $meta as $key => $value ) { if ( strpos( $value, 'Settings'; } return $links; } public function updateMenu() { // add_submenu_page( $this->getOption( 'plugin-menu-item' ), __( 'User Guide', 'cminds-package' ), __( 'User Guide', 'cminds-package' ), 'manage_options', $this->getPageSlug(), array( $this, 'displayPage' ) ); if ( !$this->getOption( 'plugin-free-only' ) ) { add_submenu_page( $this->getOption( 'plugin-menu-item' ), __( 'Upgrade To Pro', 'cminds-package' ), __( 'Upgrade To Pro', 'cminds-package' ), 'manage_options', $this->getProSlug(), array( $this, 'displayPage' ) ); } $tag = 'cminds-' . $this->getOption( 'plugin-short-slug' ) . '-license-page'; $condition = has_action( $tag ); if ( $this->getOption( 'plugin-is-pro' ) || $condition ) { add_submenu_page( $this->getOption( 'plugin-menu-item' ), __( 'License', 'cminds-package' ), __( 'License', 'cminds-package' ), 'manage_options', $this->getLicensingSlug(), array( $this, 'displayPage' ) ); } } public function getProSlug() { $slug = $this->getOption( 'plugin-abbrev' ) . '_pro'; return $slug; } public function getPageSlug() { $slug = $this->getOption( 'plugin-abbrev' ) . '_about'; return $slug; } public function getLicensingSlug() { $slug = $this->getOption( 'plugin-abbrev' ) . '_licensing'; return $slug; } public function isOwnScreen() { $screen = get_current_screen(); return (strpos( $screen->base, $this->getPageSlug() ) !== false || strpos( $screen->base, $this->getLicensingSlug() ) !== false || strpos( $screen->base, $this->getProSlug() ) !== false); } /** * Load plugin styles for admin area * * @access public * @since 1.0 */ public function enqueueAdminStyles() { $screen = get_current_screen(); if ( !isset( $screen->id ) || !$this->isOwnScreen() ) { return; } wp_enqueue_style( 'jquery-ui-tabs-css', '//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.min.css', array() ); } /** * Load plugin scripts for admin area * * @access public * @since 1.0 */ public function enqueueAdminScripts() { $screen = get_current_screen(); if ( !isset( $screen->id ) || !$this->isOwnScreen() ) { return; } wp_enqueue_script( 'jquery-ui-tabs' ); } public function getUserguideUrl() { $url = ''; if ( $this->getOption( 'plugin-userguide-key' ) ) { $url .= 'https://www.cminds.com/wordpress-plugins-knowledge-base-and-documentation/?hscat=' . $this->getOption( 'plugin-userguide-key' ); } else { $url .= 'https://www.cminds.com/wordpress-plugins-support-documentation/'; } return $url; } public function displayPage() { global $plugin_page; $content = ''; ?>


getOption( 'plugin-name' ) ?>

showNav(); wp_enqueue_style( 'cminds_package_userguide', plugin_dir_url( __FILE__ ) . 'css/main.css' ); wp_enqueue_style( 'cminds_package_userguide_font', 'https://fonts.googleapis.com/css?family=Open+Sans:400,700,300,600' ); switch ( $plugin_page ) { default: case $this->getPageSlug(): { $title = __( 'About', 'cminds-package' ); ob_start(); include 'views/userguide_free.php'; $content .= ob_get_clean(); break; } case $this->getProSlug(): { $title = __( 'Upgrade to Pro', 'cminds-package' ); ob_start(); echo $this->displayUpgradeToProTab(); $content .= ob_get_clean(); break; } case $this->getLicensingSlug(): { $title = __( 'User Guide', 'cminds-package' ); ob_start(); $content .= $this->showTabs( $plugin_page ); $content .= ob_get_clean(); break; } } echo apply_filters( 'cminds-about-page-content', $content, $this ); ?>
renderSettingsTabsControls( $key ); $this->renderSettingsTabs( $key ); ?>
getPageSlug(): $settingsTabsArrayBase = array( '1' => 'User Guide', // '5' => 'Upgrade To Pro', '10' => 'About', '30' => 'Membership', '40' => 'CM Catalog', '60' => 'Video Guides', '99' => 'WordPress Support Forum', '199' => 'System Information', ); if ( $this->getOption( 'plugin-has-addons' ) ) { $settingsTabsArrayBase[ '50' ] = 'Plugin Add-ons'; } break; case $this->getLicensingSlug(): $settingsTabsArrayBase = array( '10' => 'License Activation', '20' => 'Check Version', // '30' => 'Upgrade Tutorial', '40' => 'Manage Your CM Products', ); break; } $settingsTabsArray = apply_filters( 'cminds-' . $key . '-tabs-array', $settingsTabsArrayBase ); ksort( $settingsTabsArray ); return $settingsTabsArray; } /** * Function renders (default) or returns the setttings tabs * * @param type $return * @return string */ protected function renderSettingsTabs( $key, $return = false ) { $content = ''; $settingsTabsArray = $this->getTabsArray( $key ); if ( $settingsTabsArray ) { foreach ( $settingsTabsArray as $tabKey => $tabLabel ) { $filterName = 'cminds-' . $key . '-content-' . $tabKey; $content .= '
'; $tabContent = apply_filters( $filterName, '' ); $content .= $tabContent; $content .= '
'; } } if ( $return ) { return $content; } echo $content; } /** * Function renders (default) or returns the setttings tabs * * @param type $return * @return string */ protected function renderSettingsTabsControls( $key, $return = false ) { $content = ''; $settingsTabsArray = $this->getTabsArray( $key ); if ( $settingsTabsArray ) { $content .= ''; } if ( $return ) { return $content; } echo $content; } protected function showSharebox( $mode = self::SHAREBOX_FLAT ) { $class = (self::SHAREBOX_SQUARE === $mode) ? 'square' : 'flat'; $pluginReviewLink = (string) $this->getOption( 'plugin-review-url' ); $pluginFullName = (string) $this->getOption( 'plugin-name' ); $pluginUrl = (string) $this->getOption( 'plugin-store-url' ); $twitterTweet = rawurlencode( 'Checkout the ' . $pluginFullName . ' ( ' . $pluginUrl . ' ) #WordPress #Plugin by @CMPLUGINS' ); ob_start(); ?>

_e( 'Share your Appreciation' ); ?>

_e( 'Submit a review' ); ?>
_e( 'Tweet' ); ?>

_e( 'Stay Up-to-Date' ); ?>


_e( 'CM Newsletter - coupons, deals, news' ); ?>

array() ); $href = 'https://www.cminds.com/wp-admin/admin-ajax.php?action=get_ads&cminds_json_api=get_ads'; $response = wp_remote_post( $href, $args ); if ( !is_wp_error( $response ) ) { $ads = json_decode( wp_remote_retrieve_body( $response ), true ); } else { $args[ 'sslverify' ] = false; $href = 'http://www.cminds.com/wp-admin/admin-ajax.php?action=get_ads&cminds_json_api=get_ads'; $response = wp_remote_post( $href, $args ); if ( !is_wp_error( $response ) ) { $ads = json_decode( wp_remote_retrieve_body( $response ), true ); } else { $ads = array(); $connectionProblem = true; } } $ads_arr = array( 'ads' => $ads, 'refresh_time' => time(), 'connection' => !$connectionProblem, ); set_transient( 'cminds_free_ads', $ads_arr, self::ADS_REFRESH_INTERVAL ); } /* * Update from old version */ if ( !isset( $ads_arr[ 'ads' ] ) && !isset( $ads_arr[ 'refresh_time' ] ) ) { $temp_ads_arr = $ads_arr; $ads_arr = array( 'ads' => $temp_ads_arr, 'refresh_time' => strtotime( '-10 DAYS' ), 'connection' => TRUE, ); } /* * Update from old version */ if ( !isset( $ads_arr[ 'connection' ] ) ) { $ads_arr[ 'connection' ] = TRUE; } return $ads_arr; } public function getStoreUrl( $args = array() ) { $category = isset( $args[ 'category' ] ) ? $args[ 'category' ] : 'All'; $storeUrl = $this->addAffiliateCode( $this->getCategoryLink( 'Wordpress', 'category', $category ) ); return esc_url( $storeUrl ); } public function getCategoryLink( $group, $type, $name ) { $categoryLinks = array( 'Wordpress' => array( 'category' => array( 'All' => '/store/', 'Plugin' => '/wordpress-plugins/', 'Service' => '/wordpress-maintenance-services/', 'Add-On' => '/wordpress-add-ons/', 'Bundle' => '/wordpress-plugins-bundles/' ), 'tags' => array( 'SEO' => '/wordpress-seo-content-plugins/', 'Business' => '/plugins-for-wordpress-business-websites/', 'Publishing' => '/wordpress-plugins-for-content-publishing/', 'Free' => '/free-wordpress-plugins/', 'eCommerce' => '/wordpress-e-commerce-plugins/', 'Marketing' => '/wordpress-plugins-for-marketers/', 'Admin' => '/admin-wordpress-plugins/', 'Community' => '/wordpress-community-plugins/', 'eLearning' => '/wordpress-e-learning-and-lms-plugins/', ) ), 'Magento' => array( 'category' => array( 'All' => '/magento-extensions-and-modules/', 'Extension' => '/ecommerce-extensions-store/', 'Service' => '/support-and-maintenance-services-for-magento/', 'Bundle' => '/extensions-bundles-magento/' ), 'tags' => array( 'Customer' => '/magento-customer-care-support/', 'Integrations' => '/magento-third-party-integration-extensions/', 'Marketing' => '/magento-marketing-extensions/', 'Marketplace' => '/magento-marketplace-extensions/', 'Marketplaces' => '/magento-marketplace-extensions/', 'Utilities' => '/magento-utilities-extensions/', 'Magento-2' => '/magento-2-extensions/', '2.0' => '/magento-2-extensions/' ) ) ); $link = null; $types = array( 'category', 'tags' ); if ( in_array( $type, $types ) ) { $link = isset( $categoryLinks[ $group ][ $type ][ $name ] ) ? $categoryLinks[ $group ][ $type ][ $name ] : null; } if ( !is_string( $link ) ) { $link = ('Wordpress' === $group) ? '/store/?' . $type . '=' . $name : '/magento-extensions-and-modules/?' . $type . '=' . $name; } $link = 'https://www.cminds.com' . $link; return $link; } public function addAffiliateCode( $link ) { if ( $this->getOption( 'plugin-affiliate' ) ) { $link = add_query_arg( array( 'af' => $this->getOption( 'plugin-affiliate' ) ), $link ); } return esc_url( $link ); } public function showGuide( $atts = array() ) { global $cmindsPluginPackage; $atts = shortcode_atts( array( 'id' => null ), $atts ); $currentPlugin = !empty( $atts[ 'id' ] ) ? $cmindsPluginPackage[ $atts[ 'id' ] ] : $this; $optionName = 'cminds-' . $currentPlugin->getOption( 'plugin-short-slug' ) . '-guide-hidden'; $guideHide = filter_input( INPUT_GET, 'cminds_guide_hide' ); if ( $guideHide ) { update_option( $optionName, 1 ); } $guideShow = filter_input( INPUT_GET, 'cminds_guide_show' ); if ( $guideShow ) { delete_option( $optionName ); } $guideHidden = get_option( $optionName ); $showGuide = $currentPlugin->getOption( 'plugin-show-guide' ); if ( $showGuide ) : ob_start(); ?>
getOption( 'plugin-guide-text' ); if ( !empty( $guideText ) ) : ?>
Initial Installation Guide
getOption( 'plugin-guide-videos' ); if ( !empty( $videos ) && is_array( $videos ) ) : ?>
Hide Installation Guide
Show Installation Guide Box
false, 'id' => null ), $atts ); $optionName = 'cminds-' . $this->getOption( 'plugin-short-slug' ) . '-ads-hidden'; $adsHide = filter_input( INPUT_GET, 'cminds_ad_hide' ); if ( $adsHide ) { update_option( $optionName, 1 ); } $adsShow = filter_input( INPUT_GET, 'cminds_ad_show' ); if ( $adsShow ) { delete_option( $optionName ); } $adsHidden = get_option( $optionName ); $adsRefreshed = filter_input( INPUT_GET, 'cminds_ad_refresh' ); if ( $adsRefreshed ) { delete_transient( 'cminds_free_ads' ); } $ads_arr = $this->getAds(); $ads = isset( $ads_arr[ 'ads' ] ) ? $ads_arr[ 'ads' ] : array(); $days_since_last_refresh = $this->getDaysSinceLastRefresh( $ads_arr ); /* * Don't display if there's no server connection */ if(!$ads_arr['connection']){ return; } ob_start(); ?>
getOption( 'plugin-is-pro' ) ) : ?> Your copy is registered. Here are some special offers from CreativeMinds:
$ad ) : ?>
%sUse code: "%s" valid until %s', $ad[ 'ad_discount' ], $ad[ 'ad_product_url' ], $ad[ 'ad_title' ], $ad[ 'ad_code' ], $dateUntil ); ?>
Currently we have no special offers.
2 ) : ?>
More
Offers have been refreshed. You haven't refreshed the ads for . Refresh now!   |  Hide offers
Show CM offers
View all Plugins View Bundles View Add-Ons View Services
showGuide( $atts ); ?>
$this->getOption( 'plugin-name' ), 'remote_url' => get_bloginfo( 'wpurl' ), 'remote_ip' => $_SERVER[ 'SERVER_ADDR' ], 'remote_country' => '', 'remote_city' => '', 'email' => get_bloginfo( 'admin_email' ), 'hostname' => get_bloginfo( 'wpurl' ), 'username' => '', ); $output = ''; foreach ( $fields as $key => $value ) { $output .= sprintf( '', $key, $value ); } return $output; } public function isRegistered( $id = null ) { global $cmindsPluginPackage; $currentPlugin = !empty( $id ) ? $cmindsPluginPackage[ $id ] : $this; $isRegistered = get_option( 'cminds-' . $currentPlugin->getOption( 'plugin-short-slug' ) . '-registered' ); return $isRegistered; } public function showRegistration( $atts = array() ) { global $cmindsPluginPackage; $atts = shortcode_atts( array( 'id' => null ), $atts ); $currentPlugin = !empty( $atts[ 'id' ] ) ? $cmindsPluginPackage[ $atts[ 'id' ] ] : $this; $optionName = 'cminds-' . $currentPlugin->getOption( 'plugin-short-slug' ) . '-registration-hidden'; $registrationHide = filter_input( INPUT_GET, 'cminds_registration_hide' ); if ( $registrationHide ) { update_option( $optionName, 1 ); } $registrationShow = filter_input( INPUT_GET, 'cminds_registration_show' ); if ( $registrationShow ) { delete_option( $optionName ); } $registrationHidden = get_option( $optionName ); $optionName = 'cminds-' . $currentPlugin->getOption( 'plugin-short-slug' ) . '-registered'; $post = filter_input_array( INPUT_POST ); if ( !empty( $post ) && !empty( $post[ 'cminds_nonce' ] ) ) { $nonceCheck = wp_verify_nonce( $post[ 'cminds_nonce' ], 'cminds_register_free' ); if ( $nonceCheck ) { unset( $post[ 'cminds_nonce' ] ); $jsonData = wp_json_encode( array( $post ) ); $args = array( 'body' => array( 'jsonData' => $jsonData ) ); $href = 'https://www.cminds.com/wp-admin/admin-ajax.php?action=add_user&cminds_json_api=add_user'; $response = wp_remote_post( $href, $args ); if ( !is_wp_error( $response ) ) { $result = json_decode( wp_remote_retrieve_body( $response ), true ); if ( $result && 1 === $result[ 'result' ] ) { update_option( $optionName, 1 ); } } else { $args[ 'sslverify' ] = false; $href = 'http://www.cminds.com/wp-admin/admin-ajax.php?action=add_user&cminds_json_api=add_user'; $response = wp_remote_post( $href, $args ); if ( !is_wp_error( $response ) ) { $result = json_decode( wp_remote_retrieve_body( $response ), true ); if ( $result && 1 === $result[ 'result' ] ) { update_option( $optionName, 1 ); } } else { $message = 'Registered fields:
'; foreach ( $post as $key => $value ) { if ( !in_array( $key, array( 'product_name', 'email', 'hostname' ) ) ) { continue; } $message .= ''; } $message .= '
' . $key . '' . $value . '
'; add_filter( 'wp_mail_content_type', array( __CLASS__, 'cminds_set_content_type' ) ); wp_mail( 'marketing@cminds.com', 'CM Free Product Registration', $message ); remove_filter( 'wp_mail_content_type', array( __CLASS__, 'cminds_set_content_type' ) ); } } } } $isRegistered = get_option( $optionName ); if ( $isRegistered ) : return $this->showAds( $atts ); else : ob_start(); ?>
getRegistrationFields(); ?>
Once registered, you will receive updates and special offers from CreativeMinds. We will only send once, your administrator's e-mail and site URL to CreativeMinds server.
No additional information will be ever collected or sent.
Show registration box
View all Plugins View Bundles View Add-Ons View Services
showGuide( $atts ); ?>
getOption( 'plugin-menu-item' ); ob_start(); if ( isset( $submenu[ $menuItem ] ) ) { $thisMenu = $submenu[ $menuItem ]; foreach ( $thisMenu as $sub_item ) { $slug = $sub_item[ 2 ]; // Handle current for post_type=post|page|foo pages, which won't match $self. $self_type = !empty( $typenow ) ? $self . '?post_type=' . $typenow : 'nothing'; $isCurrent = FALSE; $subpageUrl = get_admin_url( '', 'admin.php?page=' . $slug ); if ( (!isset( $plugin_page ) && $self == $slug) || ( isset( $plugin_page ) && $plugin_page == $slug && ( $menuItem == $self_type || $menuItem == $self || file_exists( $menuItem ) === false )) ) { $isCurrent = TRUE; } $url = ( strpos( $slug, '.php' ) !== false || strpos( $slug, 'http://' ) !== false || strpos( $slug, 'https://' ) !== false ) ? $slug : $subpageUrl; $isExternal = ( $slug === $url ) ? TRUE : FALSE; $submenus[] = array( 'link' => $url, 'title' => $sub_item[ 0 ], 'current' => $isCurrent, 'external' => $isExternal ); } ?>

The information in this table is useful to check if the plugin might have some incompabilities with you server.
WordPress Version The minimum supported version of WordPress is 3.3OK
Permalinks enabled Please enable the permalinks. Go to SettingsOK
PHP Version Recommended 5.3 or higherOK
mbstring support "mbstring" library is required for plugin to work. OK
intl support "intl" library is required for proper sorting of accented (non-ASCII) characters. OK
PHP Memory Limit This value can be too low for a site with big glossary. OK
PHP Max Upload Size This value can be too low to import large files. OK
PHP Max Post Size This value can be too low to import large files. OK
PHP Max Execution Time This value can be too low for lengthy operations. We strongly suggest setting this value to at least 300 or 0 which is no limit. OK
PHP cURL cURL library is required to check if remote audio file exists. OK
PHP allow_url_fopen allow_url_fopen is required to connect to the Merriam-Webster and Wikipedia API. OK
WordPress Version The minimum supported version of WordPress is 3.3OK Permalinks enabled Please enable the permalinks. Go to SettingsOK PHP Version Recommended 5.3 or higherOK mbstring support "mbstring" library is required for plugin to work. OK intl support "intl" library is required for proper sorting of accented characters on Glossary Index page. OK PHP Memory Limit This value can be too low for a site with big glossary. OK PHP Max Upload Size This value can be too low to import large files. OK PHP Max Post Size This value can be too low to import large files. OK PHP Max Execution Time This value can be too low for lengthy operations. We strongly suggest setting this value to at least 300 or 0 which is no limit. OK PHP cURL cURL library is required to check if remote audio file exists. OK PHP allow_url_fopen allow_url_fopen is required to connect to the Merriam-Webster and Wikipedia API. OK


Name . ' ' . $theme_data->Version; } // Try to identifty the hosting provider $host = false; if ( defined( 'WPE_APIKEY' ) ) { $host = 'WP Engine'; } elseif ( defined( 'PAGELYBIN' ) ) { $host = 'Pagely'; } $namespace = explode( '\\', __NAMESPACE__ ); ?> ### Begin System Info ### ## Please include this information when posting support requests ## Package Version: Multisite: SITE_URL: HOME_URL: WordPress Version: Permalink Structure: Active Theme: Host: Registered Post Stati: PHP Version: MySQL Version: Web Server Info: WordPress Memory Limit: PHP Safe Mode: PHP Memory Limit: PHP Upload Max Size: PHP Post Max Size: PHP Upload Max Filesize: PHP Time Limit: PHP Max Input Vars: PHP Arg Separator: PHP Allow URL File Open: WP_DEBUG: WP Table Prefix: prefix ); echo " Status:"; if ( strlen( $wpdb->prefix ) > 16 ) { echo " ERROR: Too Long"; } else { echo " Acceptable"; } echo "\n"; ?> Show On Front: Page On Front: Page For Posts: false, 'timeout' => 60, 'user-agent' => 'Cminds/' . $this->getOption( 'plugin-version' ), 'body' => $request ); $response = wp_remote_post( 'https://www.paypal.com/cgi-bin/webscr', $params ); if ( !is_wp_error( $response ) && $response[ 'response' ][ 'code' ] >= 200 && $response[ 'response' ][ 'code' ] < 300 ) { $WP_REMOTE_POST = 'wp_remote_post() works' . "\n"; } else { $WP_REMOTE_POST = 'wp_remote_post() does not work' . "\n"; } ?> WP Remote Post: Session: Session Name: Cookie Path: Save Path: Use Cookies: Use Only Cookies: DISPLAY ERRORS: FSOCKOPEN: cURL: SOAP Client: SUHOSIN: ##COMPATIBILITY cminds_compatibility_check( true ); ?> ##ACTIVE PLUGINS: $plugin ) { // If the plugin isn't active, don't show it. if ( !in_array( $plugin_path, $active_plugins ) ) continue; echo $plugin[ 'Name' ] . ': ' . $plugin[ 'Version' ] . "\n"; } if ( is_multisite() ) : ?> NETWORK ACTIVE PLUGINS: ### End System Info ### config[ $key ] ) ? $this->config[ $key ] : $default; return $value; } /** * Converts the Apache memory values to number of bytes ini_get('upload_max_filesize') or ini_get('post_max_size') * @param type $str * @return type */ public static function cminds_units2bytes( $str ) { $units = array( 'B', 'K', 'M', 'G', 'T' ); $unit = preg_replace( '/[0-9]/', '', $str ); $unitFactor = array_search( strtoupper( $unit ), $units ); if ( $unitFactor !== false ) { return preg_replace( '/[a-z]/i', '', $str ) * pow( 2, 10 * $unitFactor ); } } public static function cminds_set_content_type() { return "text/html"; } } } /* * Load the config */ global $cmindsPluginPackage; include('cminds-plugin-config.php'); $cmindsPluginPackage[ $cminds_plugin_config[ 'plugin-abbrev' ] ] = new CmindsFreePackage( $cminds_plugin_config );