Verified Commit de990330 authored by Hemangi Gokhale's avatar Hemangi Gokhale
Browse files

Issue #3157581 by arpitk: Special characters are not included in hashtag

Issue #3229629 by RishiKul: Notice: A non well formed numeric value encountered in template_preprocess_socialfeed_facebook_post() (line 44 of /var/www/html/web/modules/contrib/socialfeed/socialfeed.theme.inc)
Issue #3250078 by batigolix: Change name of config object
parent a66ce41e
Loading
Loading
Loading
Loading
+26 −26
Original line number Diff line number Diff line
@@ -6,36 +6,35 @@
  Facebook, Twitter, and Instagram profiles and then display them accordingly as
  per their requirement using the Drupal block system.

- Facebook APIs will allow you to display particular post types,
pictures, videos of your posts also the date of your post with
provision to provide number of count.
- Facebook APIs will allow you to display particular post types, pictures,
  videos of your posts also the date of your post with provision to provide
  several counts.

- Instagram APIs will allow you to display pictures from your
instagram profile with provision to provide number of count to be displayed, and
you can also provide the post link.
- Instagram APIs will allow you to display pictures from your Instagram profile,
  it provides several counts to be displayed, and you can also offer the post
  link.

- Twitter APIs will allow you get the latest tweets with date
of your format and provision to provide number of count. Twitter APIs will
not work locally but only on live sites.
- Twitter APIs will allow you to get the latest tweets with the date of your
  format and provision to provide several counts. Twitter APIs will not work
  locally but only on live sites.

- This module is easy and simple to install and use if the project page
description or the README.txt file is followed correctly.
- This module is easy to install and use if the project page description or the
  README File is followed correctly.

- This module is highly recommended for the both developers & non-developers
since the default layout of the blocks are plain and in simple text hence if
you're aware of working with CSS then this module will work for you like a
charm.
- This module is highly recommended for both developers & non-developers since
  the default layout of the blocks are plain and in simple text hence if you're
  aware of working with CSS; then this module will work for you like a charm.

## Requirements

- PHP 5.4 and above.
- PHP 7.4 and above.

## Installation

- Install as usual, see https://www.drupal.org/node/1897420 for further
- Install, as usual, see https://www.drupal.org/node/1897420 for further
  information.

- Now, in your modules/ directory download the Socialfeed module
- Now, in your modules/ directory, download the Socialfeed module

- Enable the Socialfeed module.

@@ -43,9 +42,10 @@ information.

## Configuration

There are configuration forms for each social media platform, which you
can access at admin/config/services/socialfeed.
- There are configuration forms for each social media platform, which you can
  access at admin/config/services/socialfeed.

When enabled and configured properly, this module will display the Socialfeed
form at admin/config/services/socialfeed, after this step you can use the
blocks from Drupal system to show the feeds from their respective services.
- When enabled and configured correctly, this module will display the Socialfeed
  form at admin/config/services/socialfeed; after this step, you can use the
  blocks from the Drupal system to show the feeds from their respective
  services.
+31 −31
Original line number Diff line number Diff line
socialfeed.facebook.settings:
  type: config_object
  label: Facebook Settings
  label: Facebook settings
  mapping:
    page_name:
      type: string
      label: Facebook Page Name
      label: Facebook page name
    app_id:
      type: string
      label: Facebook App ID
@@ -13,48 +13,48 @@ socialfeed.facebook.settings:
      label: Facebook Secret Key
    user_token:
      type: string
      label: Facebook User Token
      label: Facebook user token
    page_permanent_token:
      type: string
      label: Facebook User Token
      label: Facebook permanent token
    no_feeds:
      type: integer
      label: Number of feeds
    all_types:
      type: boolean
      label: Show all post types
      label: Types of posts
    post_type:
      type: string
      label: Select your post type(s) to show
      label: Selected type of post to show
    display_pic:
      type: boolean
      label: Show Post Picture
      label: Show post picture
    display_video:
      type: boolean
      label: Show Post Video
      label: Show post video
    trim_length:
      type: integer
      label: Trim Length
      label: Trim length
    teaser_text:
      type: string
      label: Teaser Text
      label: Teaser text
    hashtag:
      type: boolean
      label: Show Hashtag
      label: Show hashtag
    time_stamp:
      type: boolean
      label: Show Date/Time
      label: Show date/time
    time_format:
      type: string
      label: Date/Time format
      label: Date/time format

socialfeed.twitter.settings:
  type: config_object
  label: Twitter Settings
  label: Twitter settings
  mapping:
    consumer_key:
      type: string
      label: Twitter Consumer Key
      label: Twitter consumer Key
    consumer_secret:
      type: string
      label: Twitter Consumer Secret
@@ -66,54 +66,54 @@ socialfeed.twitter.settings:
      label: Twitter Access Token Secret
    tweets_count:
      type: integer
      label: Tweets Count
      label: Tweets count
    hashtag:
      type: boolean
      label: Show Hashtag
      label: Show hashtag
    time_stamp:
      type: boolean
      label: Show Date/Time
      label: Show date/time
    time_format:
      type: string
      label: Date/Time format
      label: Date/time format
    time_ago:
      type: boolean
      label: Show date Twitter style
      label: Show date twitter style
    trim_length:
      type: integer
      label: Trim Length
      label: Trim length
    teaser_text:
      type: string
      label: Teaser Text
      label: Teaser text

socialfeed.instagram.settings:
  type: config_object
  label: Instagram Settings
  label: Instagram settings
  mapping:
    client_id:
      type: string
      label: client_id
      label: Client ID
    app_secret:
      type: string
      label: App Secret
      label: App secret
    redirect_uri:
      type: string
      label: Redirect URI
    access_token:
      type: string
      label: Access Token
      label: Access token
    access_token_date:
      type: string
      label: Access Token Created Date
      label: Access token created date
    picture_count:
      type: integer
      label: Picture Count
      label: Picture count
    video_thumbnail:
      type: integer
      label: Show Video Thumbnails
      label: Show video thumbnails
    time_format:
      type: string
      label: Date/Time format
      label: Date/time format
    post_link:
      type: boolean
      label: Show post URL
      label: Show post url
+2 −2
Original line number Diff line number Diff line
name: Social Feed
name: 'Social Feed'
type: module
description: Provides user an option to easily fetch feeds from Facebook, Twitter or Instagram and then display them accordingly using block
description: 'Provides users an option to easily fetch feeds from Facebook, Twitter, or Instagram and then display them accordingly using block.'
core_version_requirement: ^8.8 || ^9
configure: socialfeed.configuration
+18 −24
Original line number Diff line number Diff line
@@ -27,31 +27,25 @@ function socialfeed_help($route_name, RouteMatchInterface $route_match) {
 * Implements hook_theme().
 */
function socialfeed_theme($existing, $type, $theme, $path) {
  $themes = [];

  $themes['socialfeed_facebook_post'] = [
  return [
    'socialfeed_facebook_post' => [
      'variables' => ['post' => []],
      'file' => 'socialfeed.theme.inc',
  ];

  $themes['socialfeed_twitter_post'] = [
    ],
    'socialfeed_twitter_post' => [
      'variables' => ['post' => []],
      'file' => 'socialfeed.theme.inc',
  ];

  $themes['socialfeed_instagram_post_video'] = [
    ],
    'socialfeed_instagram_post_video' => [
      'variables' => ['post' => []],
  ];

  $themes['socialfeed_instagram_post_image'] = [
    ],
    'socialfeed_instagram_post_image' => [
      'variables' => ['post' => []],
  ];

  $themes['socialfeed_instagram_post_carousel_album'] = [
    ],
    'socialfeed_instagram_post_carousel_album' => [
      'variables' => ['post' => []],
    ],
  ];

  return $themes;
}

/**
+2 −2
Original line number Diff line number Diff line
@@ -42,6 +42,6 @@ socialfeed.instagram_auth:
  path: '/socialfeed/instagram/auth'
  defaults:
    _controller: '\Drupal\socialfeed\Controller\InstagramAuthController::accessToken'
    _title: 'Socialfeed Instagram Auth'
    _title: 'Instagram Auth'
  requirements:
    _permission: 'access content'
    _permission: 'administer socialfeed'
Loading