|
@@ 1504-1512 (lines=9) @@
|
| 1501 |
|
} |
| 1502 |
|
|
| 1503 |
|
// If I want to add a share block in my view |
| 1504 |
|
if ($game->getFbShareMessage()) { |
| 1505 |
|
$fbShareMessage = $game->getFbShareMessage(); |
| 1506 |
|
} else { |
| 1507 |
|
$fbShareMessage = str_replace( |
| 1508 |
|
'__placeholder__', |
| 1509 |
|
$game->getTitle(), |
| 1510 |
|
$this->getOptions()->getDefaultShareMessage() |
| 1511 |
|
); |
| 1512 |
|
} |
| 1513 |
|
|
| 1514 |
|
if ($game->getFbShareImage()) { |
| 1515 |
|
$fbShareImage = $this->frontendUrl()->fromRoute( |
|
@@ 1552-1560 (lines=9) @@
|
| 1549 |
|
); |
| 1550 |
|
} |
| 1551 |
|
|
| 1552 |
|
if ($game->getTwShareMessage()) { |
| 1553 |
|
$twShareMessage = $game->getTwShareMessage().$socialLinkUrl; |
| 1554 |
|
} else { |
| 1555 |
|
$twShareMessage = str_replace( |
| 1556 |
|
'__placeholder__', |
| 1557 |
|
$game->getTitle(), |
| 1558 |
|
$this->getOptions()->getDefaultShareMessage() |
| 1559 |
|
).$socialLinkUrl; |
| 1560 |
|
} |
| 1561 |
|
|
| 1562 |
|
$ogTitle = new \PlaygroundCore\Opengraph\Tag('og:title', $fbShareMessage); |
| 1563 |
|
$ogImage = new \PlaygroundCore\Opengraph\Tag('og:image', $fbShareImage); |