You already have the premium version of the YellowPencil plugin. Please activate the "YellowPencil Pro" plugin.

'wyp-welcome-screen' ), admin_url( 'admin.php' ) ) ); exit; } } add_action( 'admin_init', 'welcome_screen_do_activation_redirect' ); /* ---------------------------------------------------- */ /* Welcome Screen Content /* ---------------------------------------------------- */ function wyp_welcome_screen_content(){ ?>

Welcome to YellowPencil

Congratulations! You are about to use the most powerful design tool for WordPress ever.
Version

let's start!

Visual Style Editor For WordPress!

YellowPencil is a visual design editor WordPress plugin that allows you to customize your website in real-time with a few clicks. Keep your website's design under control with YellowPencil editor.

Changelog

Check out Changelog for update details.

Start Customizing!

Edit fonts, color, sizes, and more with just a few clicks. Start to customizing.

Manage Customizations

">Manage customizations at any time. Take full control over the website's design.

Community & Support!

Join our Facebook community and checking out Plugin Documentation.

Thank you for choosing YellowPencil.

Front Page"; } if($page_id == $blogID && $blogID != 0){ $plusTitle = " — Posts Page"; } $deleteData = "ID|".$page_id; }elseif($type == 'template'){ $data = get_option("wt_".$page_type."_css"); $key = $page_type; $deleteData = "TYPE|".$page_type; }elseif($type == 'global'){ $data = get_option("wt_css"); $key = "global"; $deleteData = "GLOBAL|"."global"; } $class = ""; if(strstr($title, "Inactive")){ $class = " class='wyp-inactive-style'"; } if($title == ""){ $title = "Unknown"; } ?> data-delete-value="">
base, 'yellow-pencil' ) ); // if YellowPencil page if($is_yellow_pencil_screen){ if(defined('WTFV')){ echo 'Enjoyed YellowPencil? Please leave us a ★★★★★ rating. We really appreciate your support!'; }else{ echo 'Enjoyed YellowPencil? Please leave us a ★★★★★ rating. We really appreciate your support'; } } } add_filter('admin_footer_text', 'wyp_admin_footer'); /* ---------------------------------------------------- */ /* Update changes /* ---------------------------------------------------- */ function wyp_option_update(){ // Can? if(current_user_can("import") == true){ // Import the data if(isset($_POST['wyp_json_import_data']) && check_admin_referer('wyp_json_import_data')){ $data = trim( wp_strip_all_tags ( $_POST['wyp_json_import_data'] ) ); if(empty($data) == false){ wyp_import_data($data); // Get All CSS data as ready-to-use $output = wyp_get_export_css("create"); // Update custom.css file wyp_create_custom_css($output); } } // Update output format. if(isset($_POST['wyp-output-option']) && check_admin_referer("wyp_settings_nonce")){ $value = sanitize_key($_POST['wyp-output-option']); if(!update_option('yp-output-option',$value)){ add_option('yp-output-option',$value); } } // Update draft mode. if(isset($_POST['wyp-draft-mode']) && check_admin_referer("wyp_settings_nonce")){ $value = sanitize_key($_POST['wyp-draft-mode']); if(!update_option('yp-draft-mode',$value)){ add_option('yp-draft-mode',$value); } } // Update default globa. if(isset($_POST['wyp-default-global']) && check_admin_referer("wyp_settings_nonce")){ $value = sanitize_key($_POST['wyp-default-global']); if(!update_option('yp-default-global',$value)){ add_option('yp-default-global',$value); } } } } add_action("admin_init","wyp_option_update"); function wyp_options_controller() { if(current_user_can("edit_theme_options")){ // Get page, tab. global $pagenow; if(isset($_GET['page'])){ // license tab if($pagenow == "admin.php" && $_GET['page'] == "yellow-pencil-license") { // Delete license key if(isset($_GET["wyp-disable-license"]) && check_admin_referer("wyp_disable_license_nonce")){ delete_option('yp_purchase_code'); } // If isset product license, ie activation success. if(isset($_GET['purchase_code']) == true){ // Purchase Code $code = sanitize_key($_GET['purchase_code']); // Adds Product code if(!update_option("yp_purchase_code",$code)){ add_option("yp_purchase_code",$code); } // Redirect wp_safe_redirect(admin_url( 'admin.php?page=yellow-pencil-license&wyp-activated=1' )); exit; }elseif(defined('WTFV') == false){ // Get purchase code from database $purchase_code = get_option("yp_purchase_code"); // Has? if($purchase_code){ delete_option('yp_purchase_code'); } } } } } } add_action('admin_init', 'wyp_options_controller'); /* ---------------------------------------------------- */ /* Admin Control Functions /* ---------------------------------------------------- */ function wyp_option_func() { // GEt page, tab. $screen = get_current_screen(); $active_tab = $screen->base; $active_tab = str_replace("yellowpencil_page_", "", $active_tab); $active_tab = str_replace("toplevel_page_", "", $active_tab); ?>

YellowPencil

YellowPencil Pro successfully activated.

'; } // Updated message. if(isset($_POST['wyp_json_import_data']) && check_admin_referer('wyp_json_import_data')){ ?>

Settings saved.

Settings saved.

Defined CSS comments and plugin options have been reset.

$value){ // Delete customizations wyp_delete_customization(explode("|", $value)[0], explode("|", $value)[1]); } // Get All CSS data as ready-to-use $output = wyp_get_export_css("create"); // Update custom.css file wyp_create_custom_css($output); ?>

customization deleted.

$value){ // Delete animations delete_option(trim(wp_strip_all_tags(($value)))); } ?>

animation deleted.

window.aceEditorBase = '".YP_PLUGIN_URL."js/ace/'; window.wyp_live_styles_delete_nonce = '".wp_create_nonce('wyp_live_styles_delete_nonce')."';"; /* ---------------------------------------------------- */ /* CSS CHANGES */ /* ---------------------------------------------------- */ if( $active_tab == 'yellow-pencil-changes' ) { ?>

There is no style applied. Let's start!

Manage Styles

All the changes you've made with YellowPencil are listed below. You can review, edit or delete them.

" class="button">Export as CSS File

.wyp-global-group{display:none;}"; } ?>

    "publish","numberposts" => 1, "post_type" => $post_type)); // checks and get if(empty($last_post) == false){ $last_post_id = $last_post['0']['ID']; $link = get_the_permalink($last_post_id); } // if no id, leave it empty and not show a edit link if(isset($last_post_id) == false){ $last_post_id = 0; $link = null; } $title = ucfirst($post_type).' template'; } wyp_css_style_li($title, $link, 'template', $last_post_id, $post_type); } } // Search Template if(get_option("wt_search_css") != ''){ $count++; $allCount++; wyp_css_style_li("Search template", get_home_url().'/?s='.wyp_getting_last_post_title(), 'template', 'search', 'search'); } // Tag Template if(get_option("wt_tag_css") != ''){ $count++; $allCount++; $tag_id = ''; $tags = get_tags(array('orderby' => 'count', 'order' => 'DESC','number'=> 1 )); if(empty($tags) == false){ $tag_id = $tags[0]; } wyp_css_style_li("Tag template", get_tag_link($tag_id), 'template', 'tag', 'tag'); } // Category Template if(get_option("wt_category_css") != ''){ $count++; $allCount++; $cat_id = ''; $cats = get_categories(array('orderby' => 'count', 'order' => 'DESC','number'=> 1 )); if(empty($cats) == false){ $cat_id = $cats[0]; } wyp_css_style_li("Category template", get_category_link($cat_id), 'template', 'category', 'category'); } // Archive Template if(get_option("wt_archive_css") != ''){ $count++; $allCount++; $latest_post = get_posts("post_type=post&numberposts=1"); $latest_post_id = $latest_post[0]->ID; $last_post_date = get_the_date("Y",$latest_post_id); $archive_link = get_home_url()."/".$last_post_date; wyp_css_style_li("Archive template", $archive_link, 'template', 'archive', 'archive'); } // Author Template if(get_option("wt_author_css") != ''){ $count++; $allCount++; wyp_css_style_li("Author template", get_author_posts_url(1), 'template', 'author', 'author'); } // 404 Template if(get_option("wt_404_css") != ''){ $count++; $allCount++; wyp_css_style_li("404 error template", get_home_url().'/?p=987654321', 'template', '404', '404'); } ?>
.wyp-template-group{display:none;}"; } ?>

    (Inactive)', get_home_url().'/', 'single', 'home', 'home'); } } // login Template if(get_option("wt_login_css") != ''){ $count++; $allCount++; wyp_css_style_li("WordPress Login", wp_login_url(), 'single', 'login', 'login'); } // register Template if(get_option("wt_register_css") != ''){ $count++; $allCount++; wyp_css_style_li("WordPress Register", wp_registration_url(), 'single', 'register', 'register'); } // lost password Template if(get_option("wt_lostpassword_css") != ''){ $count++; $allCount++; wyp_css_style_li("WordPress Lost Password", wp_registration_url(), 'single', 'lostpassword', 'lostpassword'); } // Unknown Customizations global $wpdb; $querystr = "SELECT * FROM `$wpdb->postmeta` WHERE `meta_key` LIKE '_wt_css'"; $pageposts = $wpdb->get_results($querystr, OBJECT); if($pageposts): global $post; foreach ($pageposts as $post): if(isset($post->post_id)){ $id = $post->post_id; $title = ucfirst(get_the_title($id)); if($title == "''"){ $title = '(Unknown)'; } if(get_post_meta($id, '_wt_css', true) != ''){ $count++; $allCount++; wyp_css_style_li($title, get_the_permalink($id), 'single', $id, get_post_type($id)); } } endforeach; endif; wp_reset_query(); ?>
.wyp-single-group{display:none;}"; } ?> .wyp-tab-section{display:none;}.wyp-no-code{display:block}"; } ?>

CSS Print Method

The static external CSS file option is still in beta testing, if there is a problem please use dynamic inline CSS.

<head><style>.body{color:gray...

Settings

type="hidden" /> single customization type is the default.
type="hidden" /> doesn't forget to disable it when you ready!

There is no generated animation. You can create animation by use Animation Generator in the editor.

Manage Animations

Generated animations are listed below, You can review and delete them.

    $value){ if(stristr($name, 'yp_anim')){ $countAnim = $countAnim+1; $name = str_replace("yp_anim_", "", $name); $deleteData = "yp_anim_".$name; $value = stripslashes($value); $value = str_replace("{", "{\n\t", $value); $value = str_replace("}", "\n}\n", $value); $value = str_replace(";", ";\n\t", $value); $value = str_replace("\t\n}", "}", $value); ?>
.wyp-global-group{display:none;}.wyp-no-animation{display:block;}'; } ?>
'; }else{ $primaryButton = ''; if(defined('WTFV')){ $primaryButton = " button-primary"; } $activate_btn = "Activate YellowPencil Pro"; $aclink = ''; } ?>

Activate Your Copy!

In order to receive all benefits of YellowPencil, you need to activate your copy of the plugin. By activating YellowPencil License you will unlock premium features and direct plugin updates.

Unlock Premium Features!

Would you like to access all premium features? Font families, Backgrounds, Animations and much more. Go Pro today! First, buy a license and then activate it.

Welcome To Pro Club!

You have activated YellowPencil Pro version which allows you to access all the customer benefits! You will be notified when new updates are available. Thank you for choosing YellowPencil!

Welcome To Pro Club!

You have activated YellowPencil Pro version which allows you to access all features! Font families, Backgrounds, and other all features are now available. Thank you for choosing YellowPencil!


Buy A License

Don't have the license yet? Purchase a license!

Check out plugin website for more information.

YellowPencil Pro is activated. '>Let's Start!

Export Project

Copy what appears to be a random string of alpha numeric characters in following text area
and paste into Import field on another web site.


Import Project

Paste the exported data and click "Import Data" button.