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

Welcome to YellowPencil

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

let's start!

Front-End Design Tool For WordPress!

YellowPencil is a visual design editor WordPress plugin which 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 to see 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 from ">this page. Take full control over your website's design.

Community & Support!

Join our Facebook community and checking out documentation.

Thank you for choosing YellowPencil.

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', 'yp_admin_footer'); /* ---------------------------------------------------- */ /* Update changes */ /* ---------------------------------------------------- */ function yp_option_update(){ // Can? if(current_user_can("import") == true){ // Import the data if(isset($_POST['yp_json_import_data']) && check_admin_referer('yp_json_import_data')){ $data = trim( strip_tags ( $_POST['yp_json_import_data'] ) ); if(empty($data) == false){ yp_import_data($data); // Get All CSS data as ready-to-use $output = yp_get_export_css("create"); // Update custom.css file yp_create_custom_css($output); } } // Update output format. if(isset($_POST['yp-output-option']) && check_admin_referer("yp_settings_nonce")){ $value = sanitize_key($_POST['yp-output-option']); if(!update_option('yp-output-option',$value)){ add_option('yp-output-option',$value); } } // Update draft mode. if(isset($_POST['yp-draft-mode']) && check_admin_referer("yp_settings_nonce")){ $value = sanitize_key($_POST['yp-draft-mode']); if(!update_option('yp-draft-mode',$value)){ add_option('yp-draft-mode',$value); } } // Update default globa. if(isset($_POST['yp-default-global']) && check_admin_referer("yp_settings_nonce")){ $value = sanitize_key($_POST['yp-default-global']); if(!update_option('yp-default-global',$value)){ add_option('yp-default-global',$value); } } } } add_action("admin_init","yp_option_update"); /* ---------------------------------------------------- */ /* Admin Control Functions */ /* ---------------------------------------------------- */ function yp_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); // Updated message. if(isset($_POST['yp_json_import_data']) && check_admin_referer('yp_json_import_data')){ ?>

Settings saved.

Settings saved.

Defined CSS comments and plugin options have been reset.

YellowPencil

window.aceEditorBase = '".(plugins_url( 'library/ace/' , __FILE__ ))."'; window.yp_live_styles_delete_nonce = '".wp_create_nonce('yp_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.

Global Customization

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

Template Customizations

    "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'; } yp_css_style_li($title, $link, 'template', $last_post_id, $post_type); } } // Search Template if(get_option("wt_search_css") != ''){ $count++; $allCount++; yp_css_style_li("Search template", get_home_url().'/?s='.yp_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]; } yp_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]; } yp_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; yp_css_style_li("Archive template", $archive_link, 'template', 'archive', 'archive'); } // Author Template if(get_option("wt_author_css") != ''){ $count++; $allCount++; yp_css_style_li("Author template", get_author_posts_url(1), 'template', 'author', 'author'); } // 404 Template if(get_option("wt_404_css") != ''){ $count++; $allCount++; yp_css_style_li("404 error template", get_home_url().'/?p=987654321', 'template', '404', '404'); } ?>
.yp-template-group{display:none;}"; } ?>

Single Customizations

    (Inactive)', get_home_url().'/', 'single', 'home', 'home'); } } // login Template if(get_option("wt_login_css") != ''){ $count++; $allCount++; yp_css_style_li("WordPress Login", wp_login_url(), 'single', 'login', 'login'); } // register Template if(get_option("wt_register_css") != ''){ $count++; $allCount++; yp_css_style_li("WordPress Register", wp_registration_url(), 'single', 'register', 'register'); } // lost password Template if(get_option("wt_lostpassword_css") != ''){ $count++; $allCount++; yp_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): $id = $post->post_id; $title = ucfirst(get_the_title($id)); if($title == "''"){ $title = '(Unknown)'; } if(get_post_meta($id, '_wt_css', true) != ''){ $count++; $allCount++; yp_css_style_li($title, get_the_permalink($id), 'single', $id, get_post_type($id)); } endforeach; endif; wp_reset_query(); ?>
.yp-single-group{display:none;}"; } ?> 0){ $yp_export_nonce = wp_create_nonce("yp_export_nonce"); ?>

" class="button button-primary">Download CSS File all styles as ready to use.

.yp-tab-section{display:none;}.yp-no-code{display:block}";} ?>

CSS Print Method

External CSS still in beta test, please use dynamic CSS if there is an issue.

<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); ?>
.yp-global-group{display:none;}.yp-no-animation{display:block;}'; } ?>
'; $disableLink = '
Disable License!
'; }else{ $activate_btn = "Activate YellowPencil Pro"; $aclink = ''; $disableLink = ''; } // Thank you. if(isset($_GET['purchase_code'])){ echo '

YellowPencil Pro successfully activated.

'; } // no license founded if(isset($_GET['activation_error'])){ echo '
'; } ?>

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 license

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

Check out plugin website for more information.

YellowPencil Pro Successfully 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.