Changeset 1249987
- Timestamp:
- 09/21/2015 04:35:31 AM (11 years ago)
- Location:
- kopa-nictitate-toolkit/trunk
- Files:
-
- 48 added
- 13 deleted
- 3 edited
-
css (added)
-
css/metabox.css (added)
-
css/widget.css (added)
-
js/metabox (added)
-
js/metabox/metabox.js (added)
-
js/widget (added)
-
js/widget/widget.js (added)
-
kopa-nictitate-toolkit.php (modified) (3 diffs)
-
kopa-shortcodes.php (modified) (4 diffs)
-
languages/default.po (deleted)
-
languages/kopa-nictitate-toolkit-en_US.mo (deleted)
-
languages/kopa-nictitate-toolkit-en_US.po (deleted)
-
languages/kopa-nictitate-toolkit.pot (added)
-
metabox-fields (added)
-
metabox-fields/icon.php (added)
-
posttype/client (added)
-
posttype/client.php (deleted)
-
posttype/client/client.php (added)
-
posttype/client/options_client.php (added)
-
posttype/options_client.php (deleted)
-
posttype/options_portfolio.php (deleted)
-
posttype/options_service.php (deleted)
-
posttype/options_staff.php (deleted)
-
posttype/options_testimonial.php (deleted)
-
posttype/portfolio (added)
-
posttype/portfolio.php (deleted)
-
posttype/portfolio/options_portfolio.php (added)
-
posttype/portfolio/portfolio.php (added)
-
posttype/post (added)
-
posttype/post/options_post.php (added)
-
posttype/service (added)
-
posttype/service.php (deleted)
-
posttype/service/options_service.php (added)
-
posttype/service/service.php (added)
-
posttype/staff (added)
-
posttype/staff.php (deleted)
-
posttype/staff/options_staff.php (added)
-
posttype/staff/staff.php (added)
-
posttype/testimonial (added)
-
posttype/testimonial.php (deleted)
-
posttype/testimonial/options_testimonial.php (added)
-
posttype/testimonial/testimonial.php (added)
-
readme.txt (modified) (2 diffs)
-
util.php (added)
-
widgets (added)
-
widgets/kopa_widget_about.php (added)
-
widgets/kopa_widget_categories.php (added)
-
widgets/kopa_widget_clients.php (added)
-
widgets/kopa_widget_contact_form.php (added)
-
widgets/kopa_widget_flickr.php (added)
-
widgets/kopa_widget_portfolios.php (added)
-
widgets/kopa_widget_posts_carousel.php (added)
-
widgets/kopa_widget_posts_list.php (added)
-
widgets/kopa_widget_sequence_slider.php (added)
-
widgets/kopa_widget_services.php (added)
-
widgets/kopa_widget_services_intro.php (added)
-
widgets/kopa_widget_services_tabs.php (added)
-
widgets/kopa_widget_skill.php (added)
-
widgets/kopa_widget_socials.php (added)
-
widgets/kopa_widget_staffs.php (added)
-
widgets/kopa_widget_subscribe.php (added)
-
widgets/kopa_widget_tagline.php (added)
-
widgets/kopa_widget_testimonials.php (added)
-
widgets/kopa_widget_text.php (added)
Legend:
- Unmodified
- Added
- Removed
-
kopa-nictitate-toolkit/trunk/kopa-nictitate-toolkit.php
r959011 r1249987 4 4 Plugin URI: http://kopatheme.com 5 5 Description: A specific plugin use in Nictitate Theme to help you register post types and shortcodes. 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: Kopatheme 8 8 Author URI: http://kopatheme.com … … 13 13 */ 14 14 15 add_action('plugins_loaded', 'kopa_nictitate_toolkit_init'); 16 add_action('after_setup_theme', 'kopa_nictitate_toolkit_after_setup_theme'); 17 18 function kopa_nictitate_toolkit_after_setup_theme() { 19 if (!class_exists('Kopa_Framework')) 20 return; 21 22 #ACTION HOOK 23 add_action('admin_enqueue_scripts', 'kopa_nictitate_toolkit_admin_enqueue_scripts', 15); 24 25 #FILTER HOOK 26 add_filter('kopa_admin_meta_box_wrap_start', 'kopa_nictitate_toolkit_meta_box_wrap_start', 10, 3); 27 add_filter('kopa_admin_meta_box_wrap_end', 'kopa_nictitate_toolkit_meta_box_wrap_end', 10, 3); 28 29 #REGISTER POST TYPES 30 require plugin_dir_path( __FILE__ ) . 'posttype/service/service.php'; 31 require plugin_dir_path( __FILE__ ) . 'posttype/service/options_service.php'; 32 33 require plugin_dir_path( __FILE__ ) . 'posttype/portfolio/portfolio.php'; 34 require plugin_dir_path( __FILE__ ) . 'posttype/portfolio/options_portfolio.php'; 35 36 require plugin_dir_path( __FILE__ ) . 'posttype/client/client.php'; 37 require plugin_dir_path( __FILE__ ) . 'posttype/client/options_client.php'; 38 39 require plugin_dir_path( __FILE__ ) . 'posttype/testimonial/testimonial.php'; 40 require plugin_dir_path( __FILE__ ) . 'posttype/testimonial/options_testimonial.php'; 41 42 require plugin_dir_path( __FILE__ ) . 'posttype/staff/staff.php'; 43 require plugin_dir_path( __FILE__ ) . 'posttype/staff/options_staff.php'; 44 45 require plugin_dir_path( __FILE__ ) . 'posttype/post/options_post.php'; 46 47 #METABOX FIELDS 48 require plugin_dir_path( __FILE__ ) . 'metabox-fields/icon.php'; 49 50 #REGISTER SHORTCODES 51 require plugin_dir_path( __FILE__ ) . 'kopa-shortcodes.php'; 52 53 #REGISTER SHORTCODES 54 require plugin_dir_path( __FILE__ ) . 'util.php'; 55 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_categories.php'; 56 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_about.php'; 57 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_contact_form.php'; 58 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_sequence_slider.php'; 59 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_portfolios.php'; 60 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_services_intro.php'; 61 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_tagline.php'; 62 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_testimonials.php'; 63 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_skill.php'; 64 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_posts_list.php'; 65 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_flickr.php'; 66 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_subscribe.php'; 67 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_socials.php'; 68 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_posts_carousel.php'; 69 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_staffs.php'; 70 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_services_tabs.php'; 71 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_services.php'; 72 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_clients.php'; 73 require plugin_dir_path( __FILE__ ) . 'widgets/kopa_widget_text.php'; 74 } 75 76 function kopa_nictitate_toolkit_admin_enqueue_scripts(){ 77 global $pagenow; 78 if(in_array( $pagenow, array('post.php', 'post-new.php', 'widgets.php'))){ 79 wp_enqueue_style('metabox', plugins_url("css/metabox.css", __FILE__), NULL, NULL); 80 wp_enqueue_style('kopa-fontawesome', get_template_directory_uri() . '/css/font-awesome.css', array(), NULL); 81 wp_enqueue_script('metabox', plugins_url("js/metabox/metabox.js", __FILE__), array('jquery'), NULL, TRUE); 82 wp_enqueue_style('kopa_widget_admin', plugins_url("css/widget.css", __FILE__), NULL, NULL); 83 wp_enqueue_script('kopa_widget_admin', plugins_url("js/widget/widget.js", __FILE__), array('jquery'), NULL, TRUE); 84 } 85 } 86 15 87 /* 16 88 * Plugin domain … … 19 91 load_plugin_textdomain( 'kopa-nictitate-toolkit', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 20 92 } 21 add_action('plugins_loaded', 'kopa_nictitate_toolkit_init');22 93 23 /* 24 * Register post types 25 */ 26 require plugin_dir_path( __FILE__ ) . 'posttype/service.php'; 27 require plugin_dir_path( __FILE__ ) . 'posttype/portfolio.php'; 28 require plugin_dir_path( __FILE__ ) . 'posttype/client.php'; 29 require plugin_dir_path( __FILE__ ) . 'posttype/testimonial.php'; 30 require plugin_dir_path( __FILE__ ) . 'posttype/staff.php'; 31 require plugin_dir_path( __FILE__ ) . 'posttype/options_client.php'; 32 require plugin_dir_path( __FILE__ ) . 'posttype/options_testimonial.php'; 33 require plugin_dir_path( __FILE__ ) . 'posttype/options_service.php'; 34 require plugin_dir_path( __FILE__ ) . 'posttype/options_staff.php'; 35 require plugin_dir_path( __FILE__ ) . 'posttype/options_portfolio.php'; 94 function kopa_nictitate_toolkit_meta_box_wrap_start($wrap, $value, $loop_index){ 95 if(0 == $loop_index){ 96 $wrap = '<div class="kopa-nictitate-toolkit-metabox-wrap kopa-nictitate-toolkit-metabox-wrap-first kopa-nictitate-toolkit-row">'; 97 }else{ 98 $wrap = '<div class="kopa-nictitate-toolkit-metabox-wrap kopa-nictitate-toolkit-row">'; 99 } 100 101 if ( $value['title'] ) { 102 $wrap .= '<div class="kopa-nictitate-toolkit-col-3">'; 103 $wrap .= esc_html($value['title']); 104 $wrap .= '</div>'; 105 $wrap .= '<div class="kopa-nictitate-toolkit-col-9">'; 106 }else{ 107 $wrap .= '<div class="kopa-nictitate-toolkit-col-12">'; 108 } 36 109 37 /* 38 * Register shortcodes 39 */ 40 require plugin_dir_path( __FILE__ ) . 'kopa-shortcodes.php'; 110 return $wrap; 111 } 112 113 function kopa_nictitate_toolkit_meta_box_wrap_end($wrap, $value, $loop_index){ 114 $wrap = ''; 115 116 if ( $value['desc'] ) { 117 $wrap .= '<p class="kopa-nictitate-toolkit-help">'. $value['desc'] . '</p>'; 118 } 119 120 $wrap .= '</div>'; 121 $wrap .= '</div>'; 122 123 return $wrap; 124 } -
kopa-nictitate-toolkit/trunk/kopa-shortcodes.php
r959011 r1249987 358 358 359 359 $out .= '<p class="input-block clearfix">'; 360 $out .= '<label class="required" for="contact_name">' . __('Name (required):', 'kopa-nictitate-toolkit') . '</label>';360 $out .= '<label class="required" for="contact_name">' . esc_html__('Name (required):', 'kopa-nictitate-toolkit') . '</label>'; 361 361 $out .= '<input class="valid" type="text" name="name" id="contact_name" value="">'; 362 362 $out .= '</p>'; 363 363 364 364 $out .= '<p class="input-block clearfix">'; 365 $out .= '<label class="required" for="contact_email">' . __('Email (required):', 'kopa-nictitate-toolkit') . '</label>';365 $out .= '<label class="required" for="contact_email">' . esc_html__('Email (required):', 'kopa-nictitate-toolkit') . '</label>'; 366 366 $out .= '<input type="email" class="valid" name="email" id="contact_email" value="">'; 367 367 $out .= '</p>'; 368 368 369 369 $out .= '<p class="input-block clearfix">'; 370 $out .= '<label class="required" for="contact_url">' . __('Website:', 'kopa-nictitate-toolkit') . '</label>';370 $out .= '<label class="required" for="contact_url">' . esc_html__('Website:', 'kopa-nictitate-toolkit') . '</label>'; 371 371 $out .= '<input type="url" class="valid" name="url" id="contact_url" value="">'; 372 372 $out .= '</p>'; 373 373 374 374 $out .= '<p class="textarea-block">'; 375 $out .= '<label class="required" for="contact_message">' . __('Message (required):', 'kopa-nictitate-toolkit') . '</label>';375 $out .= '<label class="required" for="contact_message">' . esc_html__('Message (required):', 'kopa-nictitate-toolkit') . '</label>'; 376 376 $out .= '<textarea id="contact_message" name="message"></textarea>'; 377 377 $out .= '</p>'; 378 378 379 379 $out .= '<p class="comment-button clearfix">'; 380 $out .= '<input type="submit" id="submit-contact" value="' . __('Send', 'kopa-nictitate-toolkit') . '">';380 $out .= '<input type="submit" id="submit-contact" value="' . esc_html__('Send', 'kopa-nictitate-toolkit') . '">'; 381 381 $out .= '</p>'; 382 382 … … 394 394 $out.= '<div class="span6">'; 395 395 $out.= '<div id="contact-information">'; 396 $out.= '<h2 class="contact-title">' . __('Contact Information', 'kopa-nictitate-toolkit') . '<span></span></h2>';396 $out.= '<h2 class="contact-title">' . esc_html__('Contact Information', 'kopa-nictitate-toolkit') . '<span></span></h2>'; 397 397 $out.= '<div class="acc-wrapper"> 398 398 <div class="accordion-title"> 399 <h3><a href="#">' . __('Where to find Us?', 'kopa-nictitate-toolkit') . '</a></h3>399 <h3><a href="#">' . esc_html__('Where to find Us?', 'kopa-nictitate-toolkit') . '</a></h3> 400 400 <span>+</span> 401 401 </div> … … 481 481 function kopa_shortcode_pricing_table($atts, $content = '') { 482 482 $atts = shortcode_atts(array( 483 'title' => __('Pricing Table', 'kopa-nictitate-toolkit'),483 'title' => esc_html__('Pricing Table', 'kopa-nictitate-toolkit'), 484 484 'columns' => '3' 485 485 ), $atts); … … 503 503 'first_column' => false, 504 504 'special' => false, 505 'title' => __('Pricing Column', 'kopa-nictitate-toolkit'),505 'title' => esc_html__('Pricing Column', 'kopa-nictitate-toolkit'), 506 506 'currency_symbol' => '$', 507 507 'price' => 1, 508 'plan' => __('per monthly', 'kopa-nictitate-toolkit'),509 'features' => __('feature 1, feature 2, feature 3, ext...', 'kopa-nictitate-toolkit'),508 'plan' => esc_html__('per monthly', 'kopa-nictitate-toolkit'), 509 'features' => esc_html__('feature 1, feature 2, feature 3, ext...', 'kopa-nictitate-toolkit'), 510 510 'button_url' => 'http://kopatheme.com', 511 'button_text' => __('Sign up', 'kopa-nictitate-toolkit')511 'button_text' => esc_html__('Sign up', 'kopa-nictitate-toolkit') 512 512 ), $atts); 513 513 -
kopa-nictitate-toolkit/trunk/readme.txt
r959011 r1249987 3 3 Contributors: Kopatheme 4 4 Requires at least: 3.8 5 Tested up to: 3.9.16 Stable tag: 1.0. 05 Tested up to: 4.3 6 Stable tag: 1.0.1 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 13 13 A specific plugin use in Nictitate Theme to help you register post types and shortcodes. 14 14 15 == Changelog == 16 17 *1.0.1 - 9/16/2015 18 - rewrite widgets use Kopa Framework. 19 - update security. 20 21 *1.0.0 22 - release plugin. 23 24 15 25 == Screenshots == 26
Note: See TracChangeset
for help on using the changeset viewer.