|
@@ 1389-1397 (lines=9) @@
|
| 1386 |
|
} |
| 1387 |
|
|
| 1388 |
|
// If I want to add a share block in my view |
| 1389 |
|
if ($game->getFbShareMessage()) { |
| 1390 |
|
$fbShareMessage = $game->getFbShareMessage(); |
| 1391 |
|
} else { |
| 1392 |
|
$fbShareMessage = str_replace( |
| 1393 |
|
'__placeholder__', |
| 1394 |
|
$game->getTitle(), |
| 1395 |
|
$this->getOptions()->getDefaultShareMessage() |
| 1396 |
|
); |
| 1397 |
|
} |
| 1398 |
|
|
| 1399 |
|
if ($game->getFbShareImage()) { |
| 1400 |
|
$fbShareImage = $this->frontendUrl()->fromRoute( |
|
@@ 1437-1445 (lines=9) @@
|
| 1434 |
|
); |
| 1435 |
|
} |
| 1436 |
|
|
| 1437 |
|
if ($game->getTwShareMessage()) { |
| 1438 |
|
$twShareMessage = $game->getTwShareMessage().$socialLinkUrl; |
| 1439 |
|
} else { |
| 1440 |
|
$twShareMessage = str_replace( |
| 1441 |
|
'__placeholder__', |
| 1442 |
|
$game->getTitle(), |
| 1443 |
|
$this->getOptions()->getDefaultShareMessage() |
| 1444 |
|
).$socialLinkUrl; |
| 1445 |
|
} |
| 1446 |
|
|
| 1447 |
|
$ogTitle = new \PlaygroundCore\Opengraph\Tag('og:title', $fbShareMessage); |
| 1448 |
|
$ogImage = new \PlaygroundCore\Opengraph\Tag('og:image', $fbShareImage); |