From 33fc21192107fd4a596dfabd84c954388bd8c6db Mon Sep 17 00:00:00 2001 From: cheh Date: Thu, 2 Jul 2015 18:27:22 +0300 Subject: [PATCH 1/5] UPD: facebook like widget --- admin/views/facebook-like-box-admin.php | 29 +++++-------- .../class-cherry-facebook-likebox-widget.php | 42 ++++++------------- public/views/facebook-like-box.php | 29 ++++++------- 3 files changed, 35 insertions(+), 65 deletions(-) diff --git a/admin/views/facebook-like-box-admin.php b/admin/views/facebook-like-box-admin.php index 4689b6a..5362945 100644 --- a/admin/views/facebook-like-box-admin.php +++ b/admin/views/facebook-like-box-admin.php @@ -29,34 +29,25 @@

- +

- - + > +

> - -

- -

- > - -

- -

- > - +

> - + +

+ +

+ > +

get_skin_options() ) ) ) ? $instance['skin'] : ''; - - $header = !empty( $instance['header'] ) ? 1 : 0; - $border = !empty( $instance['border'] ) ? 1 : 0; - $stream = !empty( $instance['stream'] ) ? 1 : 0; - $faces = !empty( $instance['faces'] ) ? 1 : 0; + $cover = !empty( $instance['cover'] ) ? 1 : 0; + $header = !empty( $instance['header'] ) ? 1 : 0; + $faces = !empty( $instance['faces'] ) ? 1 : 0; + $posts = !empty( $instance['posts'] ) ? 1 : 0; ob_start(); include( trailingslashit( CHERRY_SOCIAL_PUBLIC ) . 'views/facebook-like-box.php' ); @@ -156,11 +154,10 @@ public function update( $new_instance, $old_instance ) { $instance['title'] = strip_tags( $new_instance['title'] ); $instance['page_url'] = esc_url( $new_instance['page_url'] ); $instance['height'] = absint( $new_instance['height'] ); + $instance['cover'] = !empty( $new_instance['cover'] ) ? 1 : 0; $instance['header'] = !empty( $new_instance['header'] ) ? 1 : 0; - $instance['border'] = !empty( $new_instance['border'] ) ? 1 : 0; - $instance['stream'] = !empty( $new_instance['stream'] ) ? 1 : 0; $instance['faces'] = !empty( $new_instance['faces'] ) ? 1 : 0; - $instance['skin'] = esc_attr( $new_instance['skin'] ); + $instance['posts'] = !empty( $new_instance['posts'] ) ? 1 : 0; return $instance; } @@ -182,40 +179,25 @@ public function form( $instance ) { 'title' => '', 'page_url' => '', 'height' => 250, - 'skin' => 'light', - 'faces' => 1, - 'header' => 0, - 'stream' => 0, - 'border' => 0, + 'cover' => 0, + 'header' => 1, + 'faces' => 0, + 'posts' => 1, ) ); $instance = wp_parse_args( (array) $instance, $defaults ); $title = esc_attr( $instance['title'] ); $page_url = esc_url( $instance['page_url'] ); $height = intval( $instance['height'] ); - $skin = $this->get_skin_options(); + $cover = (bool) $instance['cover']; $faces = (bool) $instance['faces']; $header = (bool) $instance['header']; - $stream = (bool) $instance['stream']; - $border = (bool) $instance['border']; + $posts = (bool) $instance['posts']; // Display the admin form. include( trailingslashit( CHERRY_SOCIAL_ADMIN ) . 'views/facebook-like-box-admin.php' ); } - /** - * Get an array of the available orderby options. - * - * @since 1.0.0 - * @return array - */ - public function get_skin_options() { - return apply_filters( 'cherry_facebook_like_box_get_skin_options', array( - 'light' => __( 'Light', 'cherry-social' ), - 'dark' => __( 'Dark', 'cherry-social' ), - ) ); - } - } } diff --git a/public/views/facebook-like-box.php b/public/views/facebook-like-box.php index 3e513f1..ada3eb4 100644 --- a/public/views/facebook-like-box.php +++ b/public/views/facebook-like-box.php @@ -4,23 +4,20 @@ die; } ?> -
+ data-hide-cover="" + data-small-header="" + data-show-facepile="" + data-show-posts="" + data-adapt-container-width="true">
- \ No newline at end of file + \ No newline at end of file From b1e5fa36a2374ff32cc0d152230bb07e927cb2cf Mon Sep 17 00:00:00 2001 From: cheh Date: Fri, 3 Jul 2015 11:37:00 +0300 Subject: [PATCH 2/5] UPD: prev commit --- public/views/facebook-like-box.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/public/views/facebook-like-box.php b/public/views/facebook-like-box.php index ada3eb4..bbb60d2 100644 --- a/public/views/facebook-like-box.php +++ b/public/views/facebook-like-box.php @@ -4,6 +4,15 @@ die; } ?> +
+ +
-
- - \ No newline at end of file + \ No newline at end of file From d448c353ada3faaafe7a9422afe0e2d6186f5416 Mon Sep 17 00:00:00 2001 From: cheh Date: Fri, 3 Jul 2015 17:12:26 +0300 Subject: [PATCH 3/5] ADD: instagram widget --- admin/views/facebook-like-box-admin.php | 2 +- admin/views/instagram-admin.php | 89 ++++ admin/views/social-follow.php | 2 +- admin/views/twitter-timeline-admin.php | 2 +- cherry-social.php | 1 + public/assets/css/public.css | 24 + public/assets/scss/_mixins.scss | 3 +- .../assets/scss/mixins/_vendor-prefixes.scss | 222 +++++++++ public/assets/scss/public.scss | 23 + .../class-cherry-instagram-widget.php | 437 ++++++++++++++++++ 10 files changed, 801 insertions(+), 4 deletions(-) create mode 100644 admin/views/instagram-admin.php create mode 100644 public/assets/scss/mixins/_vendor-prefixes.scss create mode 100644 public/includes/class-cherry-instagram-widget.php diff --git a/admin/views/facebook-like-box-admin.php b/admin/views/facebook-like-box-admin.php index 5362945..29d7737 100644 --- a/admin/views/facebook-like-box-admin.php +++ b/admin/views/facebook-like-box-admin.php @@ -1,6 +1,6 @@ + + +

+ + +

+ +

+ + +

+ +

+ +
+ +

+ +

+ +
+ +

+ +

+ +
+ link", 'cherry-social' ), esc_url( 'https://instagram.com/developer/clients/manage/' ) ); ?> + +

+ +

+ + +

+ +

+ + +

+ +

+ > + +

+ +

+ > + +

+ +

+ > + +

+ +

+ + +

+ \ No newline at end of file diff --git a/admin/views/social-follow.php b/admin/views/social-follow.php index 4598790..eebb16c 100644 --- a/admin/views/social-follow.php +++ b/admin/views/social-follow.php @@ -1,6 +1,6 @@ get_widget_slug(), + __( 'Cherry Instagram', 'cherry-social' ), + array( + 'classname' => $this->get_widget_slug() . '_widget', + 'description' => __( 'A widget for Instagram.', 'cherry-social' ) + ) + ); + + // Refreshing the widget's cached output with each new post. + add_action( 'save_post', array( $this, 'flush_widget_cache' ) ); + add_action( 'deleted_post', array( $this, 'flush_widget_cache' ) ); + add_action( 'switch_theme', array( $this, 'flush_widget_cache' ) ); + } + + /** + * Return the widget slug. + * + * @since 1.0.0 + * @return Plugin slug variable. + */ + public function get_widget_slug() { + return $this->widget_slug; + } + + /** + * Outputs the content of the widget. + * + * @since 1.0.0 + * @param array $args The array of form elements. + * @param array $instance The current instance of the widget. + */ + public function widget( $args, $instance ) { + + // Check if there is a cached output. + $cache = wp_cache_get( $this->get_widget_slug(), 'widget' ); + + if ( !is_array( $cache ) ) { + $cache = array(); + } + + if ( !isset( $args['widget_id'] ) ) { + $args['widget_id'] = $this->id; + } + + if ( isset( $cache[ $args['widget_id'] ] ) ) { + return print $cache[ $args['widget_id'] ]; + } + + extract( $args, EXTR_SKIP ); + + $client_id = esc_attr( $instance['client_id'] ); + $user_name = !empty( $instance['user_name'] ) ? strtolower( trim( $instance['user_name'] ) ) : ''; + $tag = !empty( $instance['tag'] ) ? esc_attr( $instance['tag'] ) : ''; + $image_counter = !empty( $instance['image_counter'] ) ? absint( $instance['image_counter'] ) : ''; + $button_text = !empty( $instance['button_text'] ) ? esc_attr( $instance['button_text'] ) : ''; + + $endpoints = ( !empty( $instance['endpoints'] ) && in_array( $instance['endpoints'], array_keys( $this->get_endpoints_options() ) ) ) ? $instance['endpoints'] : ''; + $image_size = ( !empty( $instance['image_size'] ) && in_array( $instance['image_size'], array_keys( $this->get_image_size_options() ) ) ) ? $instance['image_size'] : ''; + + if ( 'hashtag' == $endpoints ) { + if ( empty( $tag ) ) { + return print $before_widget . __( 'Please, enter #hashtag.', 'cherry-social' ) . $after_widget; + } + } + + if ( 'self' == $endpoints ) { + if ( empty( $user_name ) ) { + return print $before_widget . __( 'Please, enter your username.', 'cherry-social' ) . $after_widget; + } + } + + if ( empty( $client_id ) ) { + return print $before_widget . __( 'Please, enter your Instagram CLIENT ID.', 'cherry-social' ) . $after_widget; + } + + if ( $image_counter <= 0 ) { + return ''; + } + + $config = array(); + + if ( ! empty( $instance['link'] ) ) $config[] = 'link'; + if ( ! empty( $instance['display_time'] ) ) $config[] = 'time'; + if ( ! empty( $instance['display_description'] ) ) $config[] = 'description'; + if ( ! empty( $image_size ) ) $config['thumb'] = $image_size; + + if ( 'self' == $endpoints ) { + $user_id = $this->get_user_id( $user_name, $client_id ); + + if ( ! $user_id ) { + return print $before_widget . __( 'Please, enter a valid username and CLIENT ID.', 'cherry-social' ) . $after_widget; + } + + $data = $user_id; + + } else { + $data = $tag; + } + + $config['endpoints'] = $endpoints; + $photos = $this->get_photos( $data, $client_id, $image_counter, $config ); + + if ( ! $photos ) { + return print $before_widget . __( 'Please, enter a valid CLIENT ID.', 'cherry-social' ) . $after_widget; + } + + $output = $before_widget; + + /** + * Fires before a content widget. + * + * @since 1.0.0 + */ + do_action( $this->widget_slug . '_before', $args, $instance ); + + if ( !empty( $instance['title'] ) ) { + /** + * Filter the widget title. + * + * @since 1.0.0 + * @param string $title The widget title. + * @param array $instance An array of the widget's settings. + * @param mixed $widget_slug The widget ID. + */ + $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->widget_slug ); + + // Display the widget title if one was input. + if ( $title ) { + $output .= $before_title; + $output .= $title; + $output .= $after_title; + } + } + + $date_format = get_option( 'date_format' ); + + $output .= '
'; + + foreach ( (array) $photos as $key => $photo ) { + + $desc = in_array( 'description', $config ) ? $photo['description'] : ''; + $output .= '
'; + + $output .= '
'; + $output .= in_array( 'link', $config ) ? '' : ''; + $output .= '' . esc_attr( $desc ) . ''; + $output .= in_array( 'link', $config ) ? '' : ''; + $output .= '
'; + + $wrap = in_array( 'time', $config ) || in_array( 'description', $config ) ? '
%s
' : '%s'; + + $_output = in_array( 'time', $config ) ? '' : ''; + + $_output .= in_array( 'description', $config ) ? '
' . $photo['description'] . '
' : ''; + + $output .= sprintf( $wrap, $_output ); + + $output .= '
'; + } + + $output .= '
'; + + $btn_link = ( 'self' == $endpoints ) ? '//instagram.com/' . $user_name : '//instagram.com/explore/tags/' . $tag; + + $output .= $button_text ? '' . $button_text . '' : ''; + + /** + * Fires after a content widget. + * + * @since 1.0.0 + */ + do_action( $this->widget_slug . '_after', $args, $instance ); + + $output .= $after_widget; + + $cache[ $args['widget_id'] ] = $output; + wp_cache_set( $this->get_widget_slug(), $cache, 'widget' ); + + print $output; + } + + public function flush_widget_cache() { + wp_cache_delete( $this->get_widget_slug(), 'widget' ); + } + + /** + * Processes the widget's options to be saved. + * + * @since 1.0.0 + * @param array new_instance The new instance of values to be generated via the update. + * @param array old_instance The previous instance of values before the update. + */ + public function update( $new_instance, $old_instance ) { + $instance = $old_instance; + + $instance['title'] = strip_tags( $new_instance['title'] ); + $instance['tag'] = trim( $new_instance['tag'], '#' ); + $instance['user_name'] = esc_attr( $new_instance['user_name'] ); + $instance['client_id'] = esc_attr( $new_instance['client_id'] ); + $instance['button_text'] = esc_attr( $new_instance['button_text'] ); + $instance['endpoints'] = esc_attr( $new_instance['endpoints'] ); + $instance['image_size'] = esc_attr( $new_instance['image_size'] ); + $instance['image_counter'] = absint( $new_instance['image_counter'] ); + + $instance['display_description'] = !empty( $new_instance['display_description'] ) ? 1 : 0; + $instance['display_time'] = !empty( $new_instance['display_time'] ) ? 1 : 0; + $instance['link'] = !empty( $new_instance['link'] ) ? 1 : 0; + + // Delete a cache. + delete_transient( 'cherry_instagram_user_id' ); + delete_transient( 'cherry_instagram_photos' ); + + return $instance; + } + + /** + * Generates the administration form for the widget. + * + * @since 1.0.0 + * @param array instance The array of keys and values for the widget. + */ + public function form( $instance ) { + /** + * Filters default widget settings. + * + * @since 1.0.0 + * @param array + */ + $defaults = array( + 'title' => '', + 'endpoints' => 'hashtag', // hashtag or self + 'user_name' => '', + 'tag' => '', + 'client_id' => '', + 'image_counter' => 4, + 'image_size' => 'thumbnail', + 'display_description' => 0, + 'display_time' => 0, + 'link' => 1, + 'button_text' => '', + ); + + // Input (string) + $instance = wp_parse_args( (array) $instance, $defaults ); + $title = esc_attr( $instance['title'] ); + $user_name = esc_attr( $instance['user_name'] ); + $tag = esc_attr( $instance['tag'] ); + $client_id = esc_attr( $instance['client_id'] ); + $button_text = esc_attr( $instance['button_text'] ); + + // Input (number) + $image_counter = ! empty( $instance['image_counter'] ) ? intval( $instance['image_counter'] ) : esc_attr( $defaults['image_counter'] ); + + // Select + $endpoints = $this->get_endpoints_options(); + $image_size = $this->get_image_size_options(); + + // Checkbox + $display_description = (bool) $instance['display_description']; + $display_time = (bool) $instance['display_time']; + $link = (bool) $instance['link']; + + // Display the admin form. + include( trailingslashit( CHERRY_SOCIAL_ADMIN ) . 'views/instagram-admin.php' ); + } + + /** + * Get an array of the available endpoints options. + * + * @since 1.0.0 + * @return array + */ + public function get_endpoints_options() { + return apply_filters( 'cherry_instagram_get_endpoints_options', array( + 'self' => __( 'My Photos', 'cherry-social' ), + 'hashtag' => __( 'Tagged photos', 'cherry-social' ), + ) ); + } + + /** + * Get an array of the available endpoints options. + * + * @since 1.0.0 + * @return array + */ + public function get_image_size_options() { + return apply_filters( 'cherry_instagram_get_image_size_options', array( + 'large' => __( 'Large', 'cherry-social' ), + 'thumbnail' => __( 'Thumbnail', 'cherry-social' ), + ) ); + } + + public function get_user_id( $user_name, $client_id ) { + $cached = get_transient( 'cherry_instagram_user_id' ); + + if ( false !== $cached ) { + return $cached; + } + + $url = add_query_arg( + array( 'q' => esc_attr( $user_name ), 'client_id' => esc_attr( $client_id ) ), + 'https://api.instagram.com/v1/users/search/' + ); + $response = wp_remote_get( $url ); + + if ( is_wp_error( $response ) || empty( $response ) || $response ['response']['code'] != '200' ) { + set_transient( 'cherry_instagram_user_id', false, HOUR_IN_SECONDS ); + return false; + } + + $result = json_decode( wp_remote_retrieve_body( $response ), true ); + $user_id = false; + + foreach ( $result['data'] as $key => $data ) { + + if ( $user_name != $data['username'] ) { + continue; + } + + $user_id = $data['id']; + } + + set_transient( 'cherry_instagram_user_id', $user_id, HOUR_IN_SECONDS ); + + return $user_id; + } + + public function get_photos( $data, $client_id, $img_counter, $config ) { + $cached = get_transient( 'cherry_instagram_photos' ); + + if ( false !== $cached ) { + return $cached; + } + + if ( 'self' == $config['endpoints'] ) { + $old_url = 'https://api.instagram.com/v1/users/' . $data . '/media/recent/'; + } else { + $old_url = 'https://api.instagram.com/v1/tags/' . $data . '/media/recent/'; + } + + $url = add_query_arg( + array( 'client_id' => esc_attr( $client_id ) ), + $old_url + ); + + $response = wp_remote_get( $url ); + + if ( is_wp_error( $response ) || empty( $response ) || $response ['response']['code'] != '200' ) { + set_transient( 'cherry_instagram_photos', false, HOUR_IN_SECONDS ); + return false; + } + + $result = json_decode( wp_remote_retrieve_body( $response ), true ); + $photos = array(); + $counter = 1; + + foreach ( $result['data'] as $photo ) { + + if ( $counter > $img_counter ) { + break; + } + + if ( 'image' != $photo['type'] ) { + continue; + } + + $_photo = array(); + + if ( in_array( 'link', $config ) ) + $_photo = array_merge( $_photo, array( 'link' => esc_url( $photo['link'] ) ) ); + + if ( in_array( 'time', $config ) ) + $_photo = array_merge( $_photo, array( 'time' => sanitize_text_field( $photo['created_time'] ) ) ); + + if ( in_array( 'description', $config ) ) + $_photo = array_merge( $_photo, array( 'description' => wp_trim_words( $photo['caption']['text'], 3 ) ) ); + + if ( array_key_exists( 'thumb', $config ) ) { + $size = ( 'large' == $config['thumb'] ) ? 'standard_resolution' : 'thumbnail'; + $_photo = array_merge( $_photo, array( 'thumb' => $photo['images'][ $size ]['url'] ) ); + } + + if ( ! empty( $_photo ) ) { + array_push( $photos, $_photo ); + } + + $counter++; + } + + set_transient( 'cherry_instagram_photos', $photos, HOUR_IN_SECONDS ); + + return $photos; + } + + } +} + +function cherry_instagram_register_widget() { + register_widget( 'Cherry_Instagram' ); +} + +add_action( 'widgets_init', 'cherry_instagram_register_widget' ); \ No newline at end of file From 58fe52429f28d03161caaa1c3963f8b75f627c88 Mon Sep 17 00:00:00 2001 From: cheh Date: Mon, 20 Jul 2015 17:54:57 +0300 Subject: [PATCH 4/5] UPD: localization --- languages/cherry-social-blank.mo | Bin 590 -> 0 bytes languages/cherry-social-blank.po | 252 -------------------- languages/cherry-social-blank.pot | 371 ++++++++++++++++++++++++++++++ languages/index.php | 1 - 4 files changed, 371 insertions(+), 253 deletions(-) delete mode 100644 languages/cherry-social-blank.mo delete mode 100644 languages/cherry-social-blank.po create mode 100644 languages/cherry-social-blank.pot delete mode 100644 languages/index.php diff --git a/languages/cherry-social-blank.mo b/languages/cherry-social-blank.mo deleted file mode 100644 index 399900c115b684536b53c57921b655b63c379315..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 590 zcmaJ+O;5r=5XFyEkH({iG4Y_0Ep3Alx8Wj!Awp~vjkjhgBdwO*W_MBeA^tsoi&JWf zCntH?_h#RGeIM+9H7IrnM}!l?9-&DnqeD2{Z8WavEj@KaTD@Un*>J|5QJYLj4%1x7 zcPF}^u%1R?DaUSvMGk@IUofxDf;RX*54>|P@H{fI2mHv&+JAi`VJw?yAx$o<(j1(T zkn^ROBb%UDaOkC|^%_c1e{n$RjECd?c0J$qoSu>vCAC`@w3o$|Z56r5WC%$rv_ac_ znhaQH>nq2;qGo-Ws97fG96Hm?Ixp-NCF*LQNZ~BA;JcTuPd}ApcewskdS*tMu^i$! zj4_O57_UM!Nu1h6PKlbv8!D{Tzu65fi&ork1__m}cspqlFKH~5Dr#L@O6zumYhkbu zHs#>Dt!?^IEp>vu>Rt}j!BM`{B4-1o7lwl@Hqvy15GvX|m2lhz|1A8|2!&44h$b+P HW;l%>{7\n" +"Language-Team: Cherry Team \n" +"Language: su\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-KeywordsList: _e;__;__;_x;esc_html_e;esc_html__;esc_attr_e;" +"esc_attr__;_x:1,2c;_n:1,2\n" +"X-Poedit-Basepath: ..\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Generator: Poedit 1.8.2\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Poedit-SearchPath-0: .\n" + +#: admin/class-cherry-social-admin.php:116 +#: admin/class-cherry-social-admin.php:117 +msgid "Cherry Social" +msgstr "" + +#: admin/class-cherry-social-admin.php:143 +msgid "Settings" +msgstr "" + +#: admin/views/facebook-like-box-admin.php:17 +#: admin/views/instagram-admin.php:17 admin/views/social-follow.php:17 +#: admin/views/twitter-timeline-admin.php:17 +msgid "Title:" +msgstr "" + +#: admin/views/facebook-like-box-admin.php:22 +msgid "Page URL:" +msgstr "" + +#: admin/views/facebook-like-box-admin.php:25 +#, php-format +msgid "The Like Box only works with %s." +msgstr "" + +#: admin/views/facebook-like-box-admin.php:29 +#: admin/views/twitter-timeline-admin.php:29 +msgid "Height (px):" +msgstr "" + +#: admin/views/facebook-like-box-admin.php:30 +#: admin/views/twitter-timeline-admin.php:30 +#, php-format +msgid "Default (%spx)" +msgstr "" + +#: admin/views/facebook-like-box-admin.php:35 +msgid "Hide cover photo in the header" +msgstr "" + +#: admin/views/facebook-like-box-admin.php:40 +msgid "Use the small header instead" +msgstr "" + +#: admin/views/facebook-like-box-admin.php:45 +msgid "Show profile photos when friends like this" +msgstr "" + +#: admin/views/facebook-like-box-admin.php:50 +msgid "Show posts from the Page's timeline" +msgstr "" + +#: admin/views/instagram-admin.php:22 +msgid "Content type:" +msgstr "" + +#: admin/views/instagram-admin.php:31 +msgid "User Name:" +msgstr "" + +#: admin/views/instagram-admin.php:33 +msgid "" +"Widget will work only for users who have full rights opened in Instagram " +"account." +msgstr "" + +#: admin/views/instagram-admin.php:37 +msgid "Hashtag:" +msgstr "" + +#: admin/views/instagram-admin.php:39 +msgid "Enter without `#` symbol." +msgstr "" + +#: admin/views/instagram-admin.php:43 +msgid "Client ID:" +msgstr "" + +#: admin/views/instagram-admin.php:45 +#, php-format +msgid "link" +msgstr "" + +#: admin/views/instagram-admin.php:46 +#, php-format +msgid "" +"Follow this %s and create the application. After that you will get your " +"applications data where you will see the CLIENT ID." +msgstr "" + +#: admin/views/instagram-admin.php:50 +msgid "Number of photos:" +msgstr "" + +#: admin/views/instagram-admin.php:55 +msgid "Size of photos" +msgstr "" + +#: admin/views/instagram-admin.php:65 +msgid "Linked photo?" +msgstr "" + +#: admin/views/instagram-admin.php:70 +msgid "Description" +msgstr "" + +#: admin/views/instagram-admin.php:75 +msgid "Date" +msgstr "" + +#: admin/views/instagram-admin.php:79 +msgid "User account button text:" +msgstr "" + +#: admin/views/social-follow.php:22 +msgid "Networks:" +msgstr "" + +#: admin/views/social-follow.php:35 +msgid "Custom CSS Class:" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:22 +msgid "Widget ID:" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:24 +#, php-format +msgid "page" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:25 +#, php-format +msgid "" +"ID of your widget. First of all you need make a new one widget on %s. After " +"it copy and paste here ID of widget. You can find it after creating of " +"widget in browser's URL field. It contents only numbers." +msgstr "" + +#: admin/views/twitter-timeline-admin.php:34 +msgid "Tweet limit:" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:36 +msgid "Value between 1 and 20 Tweets" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:40 +msgid "Skin:" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:49 +msgid "Link Color (#):" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:51 +#: admin/views/twitter-timeline-admin.php:57 +msgid "e.g. 89c9fa" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:55 +msgid "Border Color (#):" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:62 +msgid "Hide header?" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:67 +msgid "Hide footer?" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:72 +msgid "Hide borders?" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:77 +msgid "Hide scrollbar?" +msgstr "" + +#: admin/views/twitter-timeline-admin.php:82 +msgid "Hide background?" +msgstr "" + +#: cherry-social.php:297 +msgid "Share on " +msgstr "" + +#: cherry-social.php:675 +msgid "Sharing networks" +msgstr "" + +#: cherry-social.php:676 +msgid "Select the social networks to display for sharing" +msgstr "" + +#: cherry-social.php:679 +msgid "Type a macros" +msgstr "" + +#: cherry-social.php:732 +msgid "Follow Us title" +msgstr "" + +#: cherry-social.php:733 +msgid "This title are using in `Follow Us` static." +msgstr "" + +#: cherry-social.php:734 init/statics/social-follow.php:33 +msgid "Follow Us" +msgstr "" + +#: cherry-social.php:738 +msgid "Follow Us networks" +msgstr "" + +#: cherry-social.php:739 +msgid "Set the social networks to display for following" +msgstr "" + +#: cherry-social.php:744 +msgid "Facebook" +msgstr "" + +#: cherry-social.php:749 +msgid "Twitter" +msgstr "" + +#: cherry-social.php:754 +msgid "Google+" +msgstr "" + +#: cherry-social.php:760 +msgid "Social" +msgstr "" + +#: public/includes/class-cherry-facebook-likebox-widget.php:37 +msgid "Cherry Facebook Like Box" +msgstr "" + +#: public/includes/class-cherry-facebook-likebox-widget.php:40 +msgid "A widget for Facebook Like Box." +msgstr "" + +#: public/includes/class-cherry-facebook-likebox-widget.php:83 +msgid "Please, enter URL to the your facebook page." +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:37 +msgid "Cherry Instagram" +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:40 +msgid "A widget for Instagram." +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:97 +msgid "Please, enter #hashtag." +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:103 +msgid "Please, enter your username." +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:108 +msgid "Please, enter your Instagram CLIENT ID." +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:126 +msgid "Please, enter a valid username and CLIENT ID." +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:139 +msgid "Please, enter a valid CLIENT ID." +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:310 +msgid "My Photos" +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:311 +msgid "Tagged photos" +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:323 +msgid "Large" +msgstr "" + +#: public/includes/class-cherry-instagram-widget.php:324 +msgid "Thumbnail" +msgstr "" + +#: public/includes/class-cherry-social-follow-widget.php:38 +msgid "Cherry Follow Us" +msgstr "" + +#: public/includes/class-cherry-social-follow-widget.php:41 +msgid "A social follow widget." +msgstr "" + +#: public/includes/class-cherry-social-follow-widget.php:96 +msgid "Sorry, but networks not found." +msgstr "" + +#: public/includes/class-cherry-social-shortcodes.php:172 +msgid "Sharing" +msgstr "" + +#: public/includes/class-cherry-social-shortcodes.php:182 +#: public/includes/class-cherry-social-shortcodes.php:220 +msgid "Networks" +msgstr "" + +#: public/includes/class-cherry-social-shortcodes.php:183 +#: public/includes/class-cherry-social-shortcodes.php:221 +msgid "Select the social networks to display" +msgstr "" + +#: public/includes/class-cherry-social-shortcodes.php:187 +#: public/includes/class-cherry-social-shortcodes.php:225 +msgid "Class" +msgstr "" + +#: public/includes/class-cherry-social-shortcodes.php:188 +#: public/includes/class-cherry-social-shortcodes.php:226 +msgid "Extra CSS class" +msgstr "" + +#: public/includes/class-cherry-social-shortcodes.php:210 +msgid "Follow" +msgstr "" + +#: public/includes/class-cherry-twitter-timeline-widget.php:37 +msgid "Cherry Twitter Timeline" +msgstr "" + +#: public/includes/class-cherry-twitter-timeline-widget.php:40 +msgid "A widget for Twitter timeline." +msgstr "" + +#: public/includes/class-cherry-twitter-timeline-widget.php:87 +msgid "Please, enter ID of your Twitter widget." +msgstr "" + +#: public/includes/class-cherry-twitter-timeline-widget.php:245 +msgid "Light" +msgstr "" + +#: public/includes/class-cherry-twitter-timeline-widget.php:246 +msgid "Dark" +msgstr "" diff --git a/languages/index.php b/languages/index.php deleted file mode 100644 index e71af0e..0000000 --- a/languages/index.php +++ /dev/null @@ -1 +0,0 @@ - Date: Tue, 21 Jul 2015 16:48:33 +0300 Subject: [PATCH 5/5] Version bump to 1.0.1 --- cherry-social.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cherry-social.php b/cherry-social.php index 3c33d5e..c1bc3b4 100644 --- a/cherry-social.php +++ b/cherry-social.php @@ -3,7 +3,7 @@ * Plugin Name: Cherry Social * Plugin URI: http://www.cherryframework.com/ * Description: A social plugin for WordPress. - * Version: 1.0.0 beta + * Version: 1.0.1 * Author: Cherry Team * Author URI: http://www.cherryframework.com/ * Text Domain: cherry-social @@ -102,7 +102,7 @@ private function __construct() { * @since 1.0.0 */ public function constants() { - define( 'CHERRY_SOCIAL_VERSION', '1.0.0' ); + define( 'CHERRY_SOCIAL_VERSION', '1.0.1' ); define( 'CHERRY_SOCIAL_SLUG', basename( dirname( __FILE__ ) ) ); define( 'CHERRY_SOCIAL_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) ); define( 'CHERRY_SOCIAL_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );