diff --git a/bridges/GooglePlusPostBridge.php b/bridges/GooglePlusPostBridge.php index fd2ff0b..9da2b4d 100644 --- a/bridges/GooglePlusPostBridge.php +++ b/bridges/GooglePlusPostBridge.php @@ -14,6 +14,11 @@ class GooglePlusPostBridge extends BridgeAbstract{ 'username' => array( 'name' => 'username or Id', 'required' => true + ), + 'include_media' => array( + 'name' => 'Include media', + 'type' => 'checkbox', + 'title' => 'Enable to include media in the feed content' ) )); @@ -52,7 +57,7 @@ class GooglePlusPostBridge extends BridgeAbstract{ $message = $post->find('div[jsname=EjRJtf]', 0); - $item['content'] = '
'
 			. $item['author']
@@ -83,6 +88,14 @@ class GooglePlusPostBridge extends BridgeAbstract{
 					$item['enclosures'][] = $this->fixImage($img)->src;
 				}
 
+				if($this->getInput('include_media') === true && count($item['enclosures'] > 0)) {
+					$item['content'] .= '<div style=
'; + } + } // Add custom parameters (only useful for JSON or Plaintext)