|
@@ 1413-1421 (lines=9) @@
|
| 1410 |
|
} |
| 1411 |
|
|
| 1412 |
|
// If I want to add a share block in my view |
| 1413 |
|
if ($game->getFbShareMessage()) { |
| 1414 |
|
$fbShareMessage = $game->getFbShareMessage(); |
| 1415 |
|
} else { |
| 1416 |
|
$fbShareMessage = str_replace( |
| 1417 |
|
'__placeholder__', |
| 1418 |
|
$game->getTitle(), |
| 1419 |
|
$this->getOptions()->getDefaultShareMessage() |
| 1420 |
|
); |
| 1421 |
|
} |
| 1422 |
|
|
| 1423 |
|
if ($game->getFbShareImage()) { |
| 1424 |
|
$fbShareImage = $this->frontendUrl()->fromRoute( |
|
@@ 1461-1469 (lines=9) @@
|
| 1458 |
|
); |
| 1459 |
|
} |
| 1460 |
|
|
| 1461 |
|
if ($game->getTwShareMessage()) { |
| 1462 |
|
$twShareMessage = $game->getTwShareMessage().$socialLinkUrl; |
| 1463 |
|
} else { |
| 1464 |
|
$twShareMessage = str_replace( |
| 1465 |
|
'__placeholder__', |
| 1466 |
|
$game->getTitle(), |
| 1467 |
|
$this->getOptions()->getDefaultShareMessage() |
| 1468 |
|
).$socialLinkUrl; |
| 1469 |
|
} |
| 1470 |
|
|
| 1471 |
|
$ogTitle = new \PlaygroundCore\Opengraph\Tag('og:title', $fbShareMessage); |
| 1472 |
|
$ogImage = new \PlaygroundCore\Opengraph\Tag('og:image', $fbShareImage); |