Last active
April 4, 2016 17:58
-
-
Save mo3aser/e380bcd40db48e31b348e3fe833241e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_head', 'tie_add_mce_button'); | |
add_action( 'wp_enqueue_scripts', 'tie_admin_register2' ); | |
add_action( 'wp_enqueue_scripts', 'tie_shortcodes_mce_css' ); | |
function tie_admin_register2(){ | |
wp_register_script( 'tie-admin-main', get_template_directory_uri() . '/framework/admin/assets/js/tie.js', array( 'jquery' ) , false , false ); | |
wp_register_style( 'tie-style', get_template_directory_uri().'/framework/admin/assets/style.css', array(), '', 'all' ); | |
wp_enqueue_script( 'tie-admin-main' ); | |
$tie_lang = array( | |
"update" => __( 'Update', 'tie' ), | |
"shortcode_tielabs" => __( 'Tielabs Shortcodes', 'tie' ), | |
"shortcode_box" => __( 'Box', 'tie' ), | |
"shortcode_alignment" => __( 'Alignment:', 'tie' ), | |
"shortcode_class" => __( 'Custom CSS Class:', 'tie' ), | |
"shortcode_style" => __( 'Style:', 'tie' ), | |
"shortcode_shadow" => __( 'Shadow', 'tie' ), | |
"shortcode_info" => __( 'Info', 'tie' ), | |
"shortcode_success" => __( 'Success', 'tie' ), | |
"shortcode_warning" => __( 'Warning', 'tie' ), | |
"shortcode_error" => __( 'Error', 'tie' ), | |
"shortcode_download" => __( 'Download', 'tie' ), | |
"shortcode_note" => __( 'Note', 'tie' ), | |
"shortcode_right" => __( 'Right', 'tie' ), | |
"shortcode_left" => __( 'Left', 'tie' ), | |
"shortcode_center" => __( 'Center', 'tie' ), | |
"shortcode_width" => __( 'Width:', 'tie' ), | |
"shortcode_content" => __( 'Content:', 'tie' ), | |
"shortcode_button" => __( 'Button', 'tie' ), | |
"shortcode_color" => __( 'Color:', 'tie' ), | |
"shortcode_red" => __( 'Red', 'tie' ), | |
"shortcode_orange" => __( 'Orange', 'tie' ), | |
"shortcode_blue" => __( 'Blue', 'tie' ), | |
"shortcode_green" => __( 'Green', 'tie' ), | |
"shortcode_black" => __( 'Black', 'tie' ), | |
"shortcode_gray" => __( 'Gray', 'tie' ), | |
"shortcode_white" => __( 'White', 'tie' ), | |
"shortcode_pink" => __( 'Pink', 'tie' ), | |
"shortcode_purple" => __( 'Purple', 'tie' ), | |
"shortcode_yellow" => __( 'Yellow', 'tie' ), | |
"shortcode_size" => __( 'Size:', 'tie' ), | |
"shortcode_small" => __( 'Small', 'tie' ), | |
"shortcode_medium" => __( 'Medium', 'tie' ), | |
"shortcode_big" => __( 'Big', 'tie' ), | |
"shortcode_link" => __( 'Link:', 'tie' ), | |
"shortcode_text" => __( 'Text:', 'tie' ), | |
"shortcode_icon" => __( 'Icon (use full Font Awesome name):', 'tie' ), | |
"shortcode_new_window" => __( 'Open link in a new window/tab', 'tie' ), | |
"shortcode_tabs" => __( 'Tabs', 'tie' ), | |
"shortcode_tab_title1" => __( 'Tab 1 Title', 'tie' ), | |
"shortcode_tab_title2" => __( 'Tab 2 Title', 'tie' ), | |
"shortcode_tab_title3" => __( 'Tab 3 Title', 'tie' ), | |
"shortcode_tab_content1" => __( 'Tab 1 | Your Content', 'tie' ), | |
"shortcode_tab_content2" => __( 'Tab 2 | Your Content', 'tie' ), | |
"shortcode_tab_content3" => __( 'Tab 3 | Your Content', 'tie' ), | |
"shortcode_slide1" => __( 'Slide 1 | Your Content', 'tie' ), | |
"shortcode_slide2" => __( 'Slide 2 | Your Content', 'tie' ), | |
"shortcode_slide3" => __( 'Slide 3 | Your Content', 'tie' ), | |
"shortcode_vertical" => __( 'Vertical', 'tie' ), | |
"shortcode_horizontal" => __( 'Horizontal', 'tie' ), | |
"shortcode_toggle" => __( 'Toggle Box', 'tie' ), | |
"shortcode_title" => __( 'Title:', 'tie' ), | |
"shortcode_state" => __( 'State:', 'tie' ), | |
"shortcode_opened" => __( 'Opened', 'tie' ), | |
"shortcode_closed" => __( 'Closed', 'tie' ), | |
"shortcode_slideshow" => __( 'Content Slideshow', 'tie' ), | |
"shortcode_bio" => __( 'Author Bio', 'tie' ), | |
"shortcode_avatar" => __( 'Author Image URL:', 'tie' ), | |
"shortcode_flickr" => __( 'Flickr', 'tie' ), | |
"shortcode_add_flickr" => __( 'Add photos from Flickr', 'tie' ), | |
"shortcode_flickr_id" => __( 'Account ID : ( get it from http://idgettr.com )', 'tie' ), | |
"shortcode_flickr_num" => __( 'Number of photos', 'tie' ), | |
"shortcode_sorting" => __( 'Sorting:', 'tie' ), | |
"shortcode_recent" => __( 'Recent', 'tie' ), | |
"shortcode_random" => __( 'Random', 'tie' ), | |
"shortcode_feed" => __( 'Display Feeds', 'tie' ), | |
"shortcode_feed_url" => __( 'URL of the RSS feed:', 'tie' ), | |
"shortcode_feeds_num" => __( 'Number of Feeds:', 'tie' ), | |
"shortcode_map" => __( 'Google Maps', 'tie' ), | |
"shortcode_map_url" => __( 'Google Maps URL', 'tie' ), | |
"shortcode_height" => __( 'Height:', 'tie' ), | |
"shortcode_video" => __( 'Video', 'tie' ), | |
"shortcode_video_url" => __( 'Video URL:', 'tie' ), | |
"shortcode_audio" => __( 'Audio', 'tie' ), | |
"shortcode_mp3" => __( 'MP3 file URL', 'tie' ), | |
"shortcode_m4a" => __( 'M4A file URL', 'tie' ), | |
"shortcode_ogg" => __( 'OGG file URL', 'tie' ), | |
"shortcode_lightbox" => __( 'Lightbox', 'tie' ), | |
"shortcode_lightbox_url" => __( 'Full Image or YouTube / Vimeo Video URL', 'tie' ), | |
"shortcode_tooltip" => __( 'ToolTip', 'tie' ), | |
"shortcode_direction" => __( 'Direction:', 'tie' ), | |
"shortcode_northwest" => __( 'Northwest', 'tie' ), | |
"shortcode_north" => __( 'North', 'tie' ), | |
"shortcode_northeast" => __( 'Northeast', 'tie' ), | |
"shortcode_west" => __( 'West', 'tie' ), | |
"shortcode_east" => __( 'East', 'tie' ), | |
"shortcode_southwest" => __( 'Southwest', 'tie' ), | |
"shortcode_south" => __( 'South', 'tie' ), | |
"shortcode_southeast" => __( 'Southeast', 'tie' ), | |
"shortcode_share" => __( 'Share Buttons', 'tie' ), | |
"shortcode_facebook" => __( 'Facebook Like Button', 'tie' ), | |
"shortcode_tweet" => __( 'Tweet Button', 'tie' ), | |
"shortcode_digg" => __( 'Digg Button', 'tie' ), | |
"shortcode_stumble" => __( 'Stumble Button', 'tie' ), | |
"shortcode_google" => __( 'Google+ Button', 'tie' ), | |
"shortcode_pinterest" => __( 'Pinterest Button', 'tie' ), | |
"shortcode_follow" => __( 'Twitter Follow Button', 'tie' ), | |
"shortcode_username" => __( 'Twitter Username', 'tie' ), | |
"shortcode_dropcap" => __( 'Dropcap', 'tie' ), | |
"shortcode_highlight" => __( 'Highlight Text', 'tie' ), | |
"shortcode_padding" => __( 'Padding', 'tie' ), | |
"shortcode_padding_right" => __( 'Padding right', 'tie' ), | |
"shortcode_padding_left" => __( 'Padding Left', 'tie' ), | |
"shortcode_divider" => __( 'Divider Line', 'tie' ), | |
"shortcode_solid" => __( 'Solid', 'tie' ), | |
"shortcode_dashed" => __( 'Dashed', 'tie' ), | |
"shortcode_normal" => __( 'Normal', 'tie' ), | |
"shortcode_double" => __( 'Double', 'tie' ), | |
"shortcode_dotted" => __( 'Dotted', 'tie' ), | |
"shortcode_margin_top" => __( 'Margin Top:', 'tie' ), | |
"shortcode_margin_bottom" => __( 'Margin Bottom:', 'tie' ), | |
"shortcode_lists" => __( 'Lists', 'tie' ), | |
"shortcode_star" => __( 'Star', 'tie' ), | |
"shortcode_check" => __( 'Check', 'tie' ), | |
"shortcode_thumb_up" => __( 'Thumb Up', 'tie' ), | |
"shortcode_thumb_down" => __( 'Thumb Down', 'tie' ), | |
"shortcode_plus" => __( 'Plus', 'tie' ), | |
"shortcode_minus" => __( 'Minus', 'tie' ), | |
"shortcode_heart" => __( 'Heart', 'tie' ), | |
"shortcode_light_bulb" => __( 'Light Bulb', 'tie' ), | |
"shortcode_cons" => __( 'Cons', 'tie' ), | |
"shortcode_ads" => __( 'Ads', 'tie' ), | |
"shortcode_ads1" => __( 'Ads Shortcode 1', 'tie' ), | |
"shortcode_ads2" => __( 'Ads Shortcode 2', 'tie' ), | |
"shortcode_Restrict" => __( 'Restrict Content', 'tie' ), | |
"shortcode_registered" => __( 'For Registered Users only', 'tie' ), | |
"shortcode_guests" => __( 'For Guests only', 'tie' ), | |
"shortcode_columns" => __( 'Columns', 'tie' ), | |
"shortcode_add_content" => __( 'Add content here', 'tie' ), | |
"shortcode_full_img" => __( 'Full Width Image', 'tie' ), | |
); | |
wp_localize_script( 'tie-admin-main', 'tieLang', $tie_lang ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment