Instant Articles for WP - Version 2.7

Version Description

Download this release

Release Info

Developer diegoquinteiro
Plugin Icon 128x128 Instant Articles for WP
Version 2.7
Comparing to
See all releases

Code changes from version 2.5 to 2.7

README.md CHANGED
@@ -30,6 +30,10 @@ Facebook requires a minimum number of articles in your feed before they will rev
30
 
31
  There are a number of filters available in the plugin for modifying the output.
32
 
 
 
 
 
33
  **How do I change the feed slug/URL if I'm using the RSS integration?**
34
 
35
  To change the feed slug, set the constant INSTANT_ARTICLES_SLUG to whatever you like. If you do, remember to flush the rewrite rules afterwards.
30
 
31
  There are a number of filters available in the plugin for modifying the output.
32
 
33
+ **How do I post articles to Instant Articles after plugin is installed?**
34
+
35
+ You can re-publish existing articles (simply edit + save) or post new articles in order to submit them to Instant Articles. After you have 50 articles added, you will be able to submit them for review.
36
+
37
  **How do I change the feed slug/URL if I'm using the RSS integration?**
38
 
39
  To change the feed slug, set the constant INSTANT_ARTICLES_SLUG to whatever you like. If you do, remember to flush the rewrite rules afterwards.
class-instant-articles-post.php CHANGED
@@ -398,7 +398,7 @@ class Instant_Articles_Post {
398
 
399
  $authors = array();
400
 
401
- $wp_user = get_userdata( $this->_post->author );
402
 
403
  if ( is_a( $wp_user, 'WP_User' ) ) {
404
  $author = new stdClass;
@@ -604,7 +604,7 @@ class Instant_Articles_Post {
604
  if ( $author->user_url ) {
605
  $author_obj->withURL( $author->user_url );
606
  }
607
- $header->addAuthor( $author );
608
  }
609
  $kicker = $this->get_the_kicker();
610
  if ( $kicker ) {
398
 
399
  $authors = array();
400
 
401
+ $wp_user = get_userdata( $this->_post->post_author );
402
 
403
  if ( is_a( $wp_user, 'WP_User' ) ) {
404
  $author = new stdClass;
604
  if ( $author->user_url ) {
605
  $author_obj->withURL( $author->user_url );
606
  }
607
+ $header->addAuthor( $author_obj );
608
  }
609
  $kicker = $this->get_the_kicker();
610
  if ( $kicker ) {
facebook-instant-articles.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: Add support for Instant Articles for Facebook to your WordPress site.
5
  * Author: Automattic, Dekode, Facebook
6
  * Author URI: https://vip.wordpress.com/plugins/instant-articles/
7
- * Version: 2.5
8
  * Text Domain: instant-articles
9
  * License: GPLv2
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -67,6 +67,7 @@ if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
67
 
68
  defined( 'ABSPATH' ) || die( 'Shame on you' );
69
 
 
70
  define( 'IA_PLUGIN_PATH_FULL', __FILE__ );
71
  define( 'IA_PLUGIN_PATH', plugin_basename( __FILE__ ) );
72
  define( 'IA_PLUGIN_FILE_BASENAME', pathinfo( __FILE__, PATHINFO_FILENAME ) );
@@ -162,8 +163,8 @@ if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
162
  if ( $query->is_main_query() && $query->is_feed( INSTANT_ARTICLES_SLUG ) ) {
163
 
164
  $query->set( 'orderby', 'modified' );
165
- $query->set( 'posts_per_page', 100 );
166
- $query->set( 'posts_per_rss', 100 );
167
 
168
  /**
169
  * If the constant INSTANT_ARTICLES_LIMIT_POSTS is set to true, we will limit the feed
@@ -293,7 +294,7 @@ if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
293
 
294
  if ( isset( $fb_page_settings['page_id'] ) ) {
295
  ?>
296
- <meta property="fb:pages" content="<?php echo absint( $fb_page_settings['page_id'] ); ?>" />
297
  <?php
298
  }
299
  }
4
  * Description: Add support for Instant Articles for Facebook to your WordPress site.
5
  * Author: Automattic, Dekode, Facebook
6
  * Author URI: https://vip.wordpress.com/plugins/instant-articles/
7
+ * Version: 2.7
8
  * Text Domain: instant-articles
9
  * License: GPLv2
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
67
 
68
  defined( 'ABSPATH' ) || die( 'Shame on you' );
69
 
70
+ define( 'IA_PLUGIN_VERSION', '2.7' );
71
  define( 'IA_PLUGIN_PATH_FULL', __FILE__ );
72
  define( 'IA_PLUGIN_PATH', plugin_basename( __FILE__ ) );
73
  define( 'IA_PLUGIN_FILE_BASENAME', pathinfo( __FILE__, PATHINFO_FILENAME ) );
163
  if ( $query->is_main_query() && $query->is_feed( INSTANT_ARTICLES_SLUG ) ) {
164
 
165
  $query->set( 'orderby', 'modified' );
166
+ $query->set( 'posts_per_page', 10 );
167
+ $query->set( 'posts_per_rss', 10 );
168
 
169
  /**
170
  * If the constant INSTANT_ARTICLES_LIMIT_POSTS is set to true, we will limit the feed
294
 
295
  if ( isset( $fb_page_settings['page_id'] ) ) {
296
  ?>
297
+ <meta property="fb:pages" content="<?php echo esc_attr( $fb_page_settings['page_id'] ); ?>" />
298
  <?php
299
  }
300
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: trrine, olethomas, bjornjohansen, dekode, automattic, facebook
3
  Tags: instant articles, facebook, mobile
4
  Requires at least: 4.3
5
  Tested up to: 4.5
6
- Stable tag: 2.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
3
  Tags: instant articles, facebook, mobile
4
  Requires at least: 4.3
5
  Tested up to: 4.5
6
+ Stable tag: 2.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
rules-configuration.json CHANGED
@@ -56,6 +56,9 @@
56
  }, {
57
  "class": "BlockquoteRule",
58
  "selector": "blockquote"
 
 
 
59
  }, {
60
  "class": "ImageRule",
61
  "selector": "//p[img]",
@@ -129,8 +132,10 @@
129
  "attribute": "class"
130
  }
131
  }
132
- },
133
- {
 
 
134
  "class": "SocialEmbedRule",
135
  "selector" : "iframe",
136
  "properties" : {
56
  }, {
57
  "class": "BlockquoteRule",
58
  "selector": "blockquote"
59
+ }, {
60
+ "class": "PassThroughRule",
61
+ "selector": "blockquote p"
62
  }, {
63
  "class": "ImageRule",
64
  "selector": "//p[img]",
132
  "attribute": "class"
133
  }
134
  }
135
+ }, {
136
+ "class": "H2Rule",
137
+ "selector" : "h3,h4,h5,h6"
138
+ }, {
139
  "class": "SocialEmbedRule",
140
  "selector" : "iframe",
141
  "properties" : {
settings/class-instant-articles-settings-fb-page.php CHANGED
@@ -7,12 +7,36 @@
7
  * @package default
8
  */
9
 
 
 
10
  /**
11
  * Class responsible for functionality and rendering of the settings
12
  *
13
  * @since 0.4
14
  */
15
- class Instant_Articles_Settings_FB_Page {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  /**
18
  * Facebook Permissions.
@@ -53,18 +77,17 @@ class Instant_Articles_Settings_FB_Page {
53
  'app_id' => $app_id,
54
  'app_secret' => $app_secret,
55
  'default_graph_version' => 'v2.5',
 
56
  ));
57
-
58
- $this->render_settings_page_scripts();
59
  }
60
  }
61
 
62
  /**
63
- * Gets the login url scaped.
64
  *
65
  * @since 0.4
66
  */
67
- public function get_escaped_login_url() {
68
  if ( isset( $this->fb_sdk ) ) {
69
  $helper = $this->fb_sdk->getRedirectLoginHelper();
70
 
@@ -73,7 +96,7 @@ class Instant_Articles_Settings_FB_Page {
73
  self::$fb_app_permissions
74
  );
75
 
76
- return htmlspecialchars( $login_url );
77
  }
78
  }
79
 
@@ -131,11 +154,9 @@ class Instant_Articles_Settings_FB_Page {
131
  $access_token = null;
132
 
133
  if ( isset( $this->fb_sdk ) ) {
134
- $js_helper = $this->fb_sdk->getJavaScriptHelper();
135
-
136
  try {
137
- $access_token = $js_helper->getAccessToken();
138
-
139
  } catch (Facebook\Exceptions\FacebookResponseException $e) {
140
  // When Graph returns an error.
141
  Logger::getLogger( 'instantarticles-wp-plugin' )->error(
@@ -157,38 +178,4 @@ class Instant_Articles_Settings_FB_Page {
157
  return $access_token;
158
  }
159
  }
160
-
161
- /**
162
- * Render the page scripts.
163
- *
164
- * @since 0.4
165
- */
166
- public function render_settings_page_scripts() {
167
- $app_id = $this->fb_app_settings['app_id'];
168
-
169
- ?>
170
- <script>
171
- window.fbAsyncInit = function() {
172
- FB.init({
173
- appId : <?php echo esc_html( $app_id ); ?>,
174
- xfbml : true,
175
- version : "v2.5",
176
- cookie : true
177
- });
178
- };
179
-
180
- (function(d, s, id){
181
- var js, fjs = d.getElementsByTagName(s)[0];
182
- if (d.getElementById(id)) {return;}
183
- js = d.createElement(s); js.id = id;
184
- js.src = "//connect.facebook.net/en_US/sdk.js";
185
- fjs.parentNode.insertBefore(js, fjs);
186
- }(document, "script", "facebook-jssdk"));
187
-
188
- function loginCallback(response) {
189
- location.reload();
190
- }
191
- </script>
192
- <?php
193
- }
194
  }
7
  * @package default
8
  */
9
 
10
+ use Facebook\PersistentData\PersistentDataInterface;
11
+
12
  /**
13
  * Class responsible for functionality and rendering of the settings
14
  *
15
  * @since 0.4
16
  */
17
+ class Instant_Articles_Settings_FB_Page implements PersistentDataInterface {
18
+
19
+ /**
20
+ * @var string Prefix to use for session options.
21
+ */
22
+ protected $session_prefix = 'instant_articles_fbrlh_';
23
+
24
+ /**
25
+ * @inheritdoc
26
+ */
27
+ public function get( $key )
28
+ {
29
+ return get_option( $this->session_prefix . $key );
30
+ }
31
+
32
+ /**
33
+ * @inheritdoc
34
+ */
35
+ public function set( $key, $value )
36
+ {
37
+ update_option( $this->session_prefix . $key, $value );
38
+ }
39
+
40
 
41
  /**
42
  * Facebook Permissions.
77
  'app_id' => $app_id,
78
  'app_secret' => $app_secret,
79
  'default_graph_version' => 'v2.5',
80
+ 'persistent_data_handler' => $this
81
  ));
 
 
82
  }
83
  }
84
 
85
  /**
86
+ * Gets the login url.
87
  *
88
  * @since 0.4
89
  */
90
+ public function get_login_url() {
91
  if ( isset( $this->fb_sdk ) ) {
92
  $helper = $this->fb_sdk->getRedirectLoginHelper();
93
 
96
  self::$fb_app_permissions
97
  );
98
 
99
+ return $login_url;
100
  }
101
  }
102
 
154
  $access_token = null;
155
 
156
  if ( isset( $this->fb_sdk ) ) {
 
 
157
  try {
158
+ $helper = $this->fb_sdk->getRedirectLoginHelper();
159
+ $access_token = $helper->getAccessToken();
160
  } catch (Facebook\Exceptions\FacebookResponseException $e) {
161
  // When Graph returns an error.
162
  Logger::getLogger( 'instantarticles-wp-plugin' )->error(
178
  return $access_token;
179
  }
180
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  }
settings/class-instant-articles-settings.php CHANGED
@@ -133,18 +133,6 @@ class Instant_Articles_Settings {
133
  $fb_page_settings = Instant_Articles_Option_FB_Page::get_option_decoded();
134
  $fb_app_settings = Instant_Articles_Option_FB_App::get_option_decoded();
135
 
136
- if ( isset( $fb_page_settings['page_id'] ) && ! empty( $fb_page_settings['page_id'] ) ) {
137
-
138
- $claim_url_href = add_query_arg(
139
- array(
140
- 'section' => 'claim-url',
141
- 'url-placeholder' => wp_parse_url( site_url(), PHP_URL_HOST ),
142
- ),
143
- 'https://www.facebook.com/' . $fb_page_settings['page_id'] . '/settings/?tab=instant_articles'
144
- );
145
-
146
- }
147
-
148
  if ( filter_input( INPUT_GET, 'current_tab' ) ) {
149
  $tab = filter_input( INPUT_GET, 'current_tab' );
150
  } else {
133
  $fb_page_settings = Instant_Articles_Option_FB_Page::get_option_decoded();
134
  $fb_app_settings = Instant_Articles_Option_FB_App::get_option_decoded();
135
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  if ( filter_input( INPUT_GET, 'current_tab' ) ) {
137
  $tab = filter_input( INPUT_GET, 'current_tab' );
138
  } else {
settings/template-settings-info.php CHANGED
@@ -12,11 +12,11 @@
12
  </p>
13
  <ol>
14
  <li><a href="https://www.facebook.com/instant_articles/signup" target="_blank">Sign up</a> for Instant Articles, if you haven't already, and come back to activate the plugin using the page you enabled.
15
- <li>Claim the URL you will use to publish articles. Right now, we think the URL you will use to publish to this Page is: <code><?php echo esc_url(site_url()); ?></code>.
16
  <?php if ( isset( $fb_page_settings['page_id'] ) && ! empty ( $fb_page_settings['page_id'] ) ) : ?>
17
  Claim your URL
18
  <a
19
- href="https://www.facebook.com/<?php echo absint( $fb_page_settings['page_id'] ); ?>/settings/?tab=instant_articles#URL" target="_blank">here</a>.
20
  <?php endif; ?>
21
  <li>Install the Pages Manager app to preview your articles and styles on <a href="http://itunes.apple.com/app/facebook-pages-manager/id514643583?ls=1&mt=8&ign-mscache=1" target="_blank">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.facebook.pages.app" target="_blank">Android</a>.
22
  <li>Create a style template for your articles, using the Style Editor. Be sure to provide the name of the template you want to use in the Plugin Configuration settings below.
@@ -25,7 +25,7 @@
25
  <?php if ( isset( $fb_page_settings['page_id'] ) && ! empty ( $fb_page_settings['page_id'] ) ) : ?>
26
  <li>
27
  <a
28
- href="https://www.facebook.com/<?php echo absint( $fb_page_settings['page_id'] ); ?>/settings/?tab=instant_articles#Setup-Step2" target="_blank">Submit your articles for review</a>.
29
  </li>
30
  <?php else : ?>
31
  <li>Submit your articles for review.</li>
@@ -41,10 +41,10 @@
41
  <li>
42
  To give other members of your team access to your Instant Articles
43
  <a
44
- href="https://www.facebook.com/<?php echo absint( $fb_page_settings['page_id'] ); ?>/settings/?tab=instant_articles" target="_blank">tools</a>
45
  on your Facebook Page, assign them Page roles
46
  <a
47
- href="https://www.facebook.com/<?php echo absint( $fb_page_settings['page_id'] ); ?>/settings/?tab=admin_roles" target="_blank">here</a>.
48
  </li>
49
  <?php else : ?>
50
  <li>To give other members of your team access to your Instant Articles tools on your Facebook Page, assign them Page roles.
12
  </p>
13
  <ol>
14
  <li><a href="https://www.facebook.com/instant_articles/signup" target="_blank">Sign up</a> for Instant Articles, if you haven't already, and come back to activate the plugin using the page you enabled.
15
+ <li>Claim the URL you will use to publish articles. Right now, we think the URL you will use to publish to this Page is: <code><?php echo esc_url(home_url()); ?></code>.
16
  <?php if ( isset( $fb_page_settings['page_id'] ) && ! empty ( $fb_page_settings['page_id'] ) ) : ?>
17
  Claim your URL
18
  <a
19
+ href="https://www.facebook.com/<?php echo esc_attr( $fb_page_settings['page_id'] ); ?>/settings/?tab=instant_articles#URL" target="_blank">here</a>.
20
  <?php endif; ?>
21
  <li>Install the Pages Manager app to preview your articles and styles on <a href="http://itunes.apple.com/app/facebook-pages-manager/id514643583?ls=1&mt=8&ign-mscache=1" target="_blank">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.facebook.pages.app" target="_blank">Android</a>.
22
  <li>Create a style template for your articles, using the Style Editor. Be sure to provide the name of the template you want to use in the Plugin Configuration settings below.
25
  <?php if ( isset( $fb_page_settings['page_id'] ) && ! empty ( $fb_page_settings['page_id'] ) ) : ?>
26
  <li>
27
  <a
28
+ href="https://www.facebook.com/<?php echo esc_attr( $fb_page_settings['page_id'] ); ?>/settings/?tab=instant_articles#Setup-Step2" target="_blank">Submit your articles for review</a>.
29
  </li>
30
  <?php else : ?>
31
  <li>Submit your articles for review.</li>
41
  <li>
42
  To give other members of your team access to your Instant Articles
43
  <a
44
+ href="https://www.facebook.com/<?php echo esc_attr( $fb_page_settings['page_id'] ); ?>/settings/?tab=instant_articles" target="_blank">tools</a>
45
  on your Facebook Page, assign them Page roles
46
  <a
47
+ href="https://www.facebook.com/<?php echo esc_attr( $fb_page_settings['page_id'] ); ?>/settings/?tab=admin_roles" target="_blank">here</a>.
48
  </li>
49
  <?php else : ?>
50
  <li>To give other members of your team access to your Instant Articles tools on your Facebook Page, assign them Page roles.
settings/template-settings-wizard.php CHANGED
@@ -15,9 +15,9 @@
15
  <p>
16
  Your App is
17
  <a
18
- href="http://developers.facebook.com/apps/<?php echo absint( $fb_app_settings['app_id'] ); ?>"
19
  target="_blank"><?php
20
- echo absint( $fb_app_settings['app_id'] );
21
  ?></a>.
22
 
23
  <?php settings_fields( Instant_Articles_Option::PAGE_OPTION_GROUP_WIZARD ); ?>
@@ -29,7 +29,7 @@
29
  <p>
30
  Your page is
31
  <a
32
- href="http://facebook.com/<?php echo absint( $fb_page_settings['page_id'] ); ?>"
33
  target="_blank"><?php
34
  echo esc_html( $fb_page_settings['page_name'] );
35
  ?></a>.
@@ -61,9 +61,9 @@
61
  <p>
62
  Your App is
63
  <a
64
- href="http://developers.facebook.com/apps/<?php echo absint( $fb_app_settings['app_id'] ); ?>"
65
  target="_blank"><?php
66
- echo absint( $fb_app_settings['app_id'] );
67
  ?></a>.
68
 
69
  <?php settings_fields( Instant_Articles_Option::PAGE_OPTION_GROUP_WIZARD ); ?>
@@ -88,32 +88,12 @@
88
 
89
  <?php if ( ! $access_token ) : ?>
90
 
91
- <script>
92
- function instant_articles_login_callback(response) {
93
- if (response.status === 'connected') {
94
- location.reload();
95
- //probably good to do an ajax call to a login_callback page
96
- } else if (response.status === 'not_authorized') {
97
- // The person is logged into Facebook, but not your app.
98
- } else {
99
- // The person is not logged into Facebook, so we're not sure if
100
- // they are logged into this app or not.
101
- }
102
- }
103
- </script>
104
-
105
  <p>Login to Facebook and select the Facebook Page where you will publish Instant Articles.</p>
106
 
107
- <div
108
- class="fb-login-button"
109
- data-size="large"
110
- data-scope="<?php
111
- echo esc_html(
112
- implode( Instant_Articles_Settings_FB_Page::$fb_app_permissions, ',' )
113
- );
114
- ?>"
115
- onlogin="instant_articles_login_callback">
116
- Login with Facebook
117
  </div>
118
 
119
  <?php
@@ -123,22 +103,6 @@
123
  ) :
124
  ?>
125
 
126
- <script>
127
- //*
128
- function instant_articles_login_callback(response) {
129
- if (response.status === 'connected') {
130
- location.reload();
131
- //probably good to do an ajax call to a login_callback page
132
- } else if (response.status === 'not_authorized') {
133
- // The person is logged into Facebook, but not your app.
134
- } else {
135
- // The person is not logged into Facebook, so we're not sure if
136
- // they are logged into this app or not.
137
- }
138
- }
139
- //*/
140
- </script>
141
-
142
  <p>In order to finish the activation, you need to grant all the requested permissions:</p>
143
  <ul>
144
  <?php if ( ! isset( $permissions['pages_show_list'] ) ) : ?>
@@ -157,16 +121,10 @@
157
 
158
  <p>Please grant the needed permissions to continue:</p>
159
 
160
- <div
161
- class="fb-login-button"
162
- data-size="large"
163
- data-scope="<?php
164
- echo esc_attr(
165
- implode( Instant_Articles_Settings_FB_Page::$fb_app_permissions, ',' )
166
- );
167
- ?>"
168
- onlogin="instant_articles_login_callback">
169
- Login with Facebook
170
  </div>
171
 
172
  <?php else : ?>
15
  <p>
16
  Your App is
17
  <a
18
+ href="http://developers.facebook.com/apps/<?php echo esc_attr( $fb_app_settings['app_id'] ); ?>"
19
  target="_blank"><?php
20
+ echo esc_html( $fb_app_settings['app_id'] );
21
  ?></a>.
22
 
23
  <?php settings_fields( Instant_Articles_Option::PAGE_OPTION_GROUP_WIZARD ); ?>
29
  <p>
30
  Your page is
31
  <a
32
+ href="http://facebook.com/<?php echo esc_attr( $fb_page_settings['page_id'] ); ?>"
33
  target="_blank"><?php
34
  echo esc_html( $fb_page_settings['page_name'] );
35
  ?></a>.
61
  <p>
62
  Your App is
63
  <a
64
+ href="http://developers.facebook.com/apps/<?php echo esc_attr( $fb_app_settings['app_id'] ); ?>"
65
  target="_blank"><?php
66
+ echo esc_html( $fb_app_settings['app_id'] );
67
  ?></a>.
68
 
69
  <?php settings_fields( Instant_Articles_Option::PAGE_OPTION_GROUP_WIZARD ); ?>
88
 
89
  <?php if ( ! $access_token ) : ?>
90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  <p>Login to Facebook and select the Facebook Page where you will publish Instant Articles.</p>
92
 
93
+ <div>
94
+ <a href="<?php echo esc_attr( $fb_helper->get_login_url() ) ?>">
95
+ <img src="https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-xtf1/t39.2178-6/11405239_920140564714397_256329502_n.png">
96
+ </a>
 
 
 
 
 
 
97
  </div>
98
 
99
  <?php
103
  ) :
104
  ?>
105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  <p>In order to finish the activation, you need to grant all the requested permissions:</p>
107
  <ul>
108
  <?php if ( ! isset( $permissions['pages_show_list'] ) ) : ?>
121
 
122
  <p>Please grant the needed permissions to continue:</p>
123
 
124
+ <div>
125
+ <a href="<?php echo esc_attr( $fb_helper->get_login_url() ) ?>">
126
+ <img src="https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-xtf1/t39.2178-6/11405239_920140564714397_256329502_n.png">
127
+ </a>
 
 
 
 
 
 
128
  </div>
129
 
130
  <?php else : ?>
vendor/composer/installed.json CHANGED
@@ -145,17 +145,17 @@
145
  },
146
  {
147
  "name": "facebook/facebook-instant-articles-sdk-php",
148
- "version": "v1.0.2",
149
- "version_normalized": "1.0.2.0",
150
  "source": {
151
  "type": "git",
152
  "url": "https://github.com/facebook/facebook-instant-articles-sdk-php.git",
153
- "reference": "a92f4095c8f470ed747f79699b794fdd15f89ad2"
154
  },
155
  "dist": {
156
  "type": "zip",
157
- "url": "https://api.github.com/repos/facebook/facebook-instant-articles-sdk-php/zipball/a92f4095c8f470ed747f79699b794fdd15f89ad2",
158
- "reference": "a92f4095c8f470ed747f79699b794fdd15f89ad2",
159
  "shasum": ""
160
  },
161
  "require": {
@@ -167,7 +167,7 @@
167
  "require-dev": {
168
  "phpunit/phpunit": "^4.8"
169
  },
170
- "time": "2016-04-12 18:06:23",
171
  "type": "library",
172
  "installation-source": "dist",
173
  "autoload": {
145
  },
146
  {
147
  "name": "facebook/facebook-instant-articles-sdk-php",
148
+ "version": "v1.0.3",
149
+ "version_normalized": "1.0.3.0",
150
  "source": {
151
  "type": "git",
152
  "url": "https://github.com/facebook/facebook-instant-articles-sdk-php.git",
153
+ "reference": "736aba9bba141cbb4e45bd045969afce023ad926"
154
  },
155
  "dist": {
156
  "type": "zip",
157
+ "url": "https://api.github.com/repos/facebook/facebook-instant-articles-sdk-php/zipball/736aba9bba141cbb4e45bd045969afce023ad926",
158
+ "reference": "736aba9bba141cbb4e45bd045969afce023ad926",
159
  "shasum": ""
160
  },
161
  "require": {
167
  "require-dev": {
168
  "phpunit/phpunit": "^4.8"
169
  },
170
+ "time": "2016-04-13 16:07:02",
171
  "type": "library",
172
  "installation-source": "dist",
173
  "autoload": {
vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Elements/InstantArticle.php CHANGED
@@ -33,7 +33,7 @@ use Facebook\InstantArticles\Validators\Type;
33
  */
34
  class InstantArticle extends Element
35
  {
36
- const CURRENT_VERSION = '1.0.2';
37
 
38
  /**
39
  * The meta properties that are used on <head>
33
  */
34
  class InstantArticle extends Element
35
  {
36
+ const CURRENT_VERSION = '1.0.3';
37
 
38
  /**
39
  * The meta properties that are used on <head>
vendor/facebook/facebook-instant-articles-sdk-php/src/Facebook/InstantArticles/Elements/LineBreak.php CHANGED
@@ -27,7 +27,7 @@ class LineBreak extends FormattedText
27
 
28
  public function appendText($text)
29
  {
30
- throw new BadMethodCallException('Cannot append text to a line break');
31
  }
32
 
33
  /**
27
 
28
  public function appendText($text)
29
  {
30
+ throw new \BadMethodCallException('Cannot append text to a line break');
31
  }
32
 
33
  /**