|
@@ 1477-1485 (lines=9) @@
|
| 1474 |
|
} |
| 1475 |
|
|
| 1476 |
|
// If I want to add a share block in my view |
| 1477 |
|
if ($game->getFbShareMessage()) { |
| 1478 |
|
$fbShareMessage = $game->getFbShareMessage(); |
| 1479 |
|
} else { |
| 1480 |
|
$fbShareMessage = str_replace( |
| 1481 |
|
'__placeholder__', |
| 1482 |
|
$game->getTitle(), |
| 1483 |
|
$this->getOptions()->getDefaultShareMessage() |
| 1484 |
|
); |
| 1485 |
|
} |
| 1486 |
|
|
| 1487 |
|
if ($game->getFbShareImage()) { |
| 1488 |
|
$fbShareImage = $this->frontendUrl()->fromRoute( |
|
@@ 1525-1533 (lines=9) @@
|
| 1522 |
|
); |
| 1523 |
|
} |
| 1524 |
|
|
| 1525 |
|
if ($game->getTwShareMessage()) { |
| 1526 |
|
$twShareMessage = $game->getTwShareMessage().$socialLinkUrl; |
| 1527 |
|
} else { |
| 1528 |
|
$twShareMessage = str_replace( |
| 1529 |
|
'__placeholder__', |
| 1530 |
|
$game->getTitle(), |
| 1531 |
|
$this->getOptions()->getDefaultShareMessage() |
| 1532 |
|
).$socialLinkUrl; |
| 1533 |
|
} |
| 1534 |
|
|
| 1535 |
|
$ogTitle = new \PlaygroundCore\Opengraph\Tag('og:title', $fbShareMessage); |
| 1536 |
|
$ogImage = new \PlaygroundCore\Opengraph\Tag('og:image', $fbShareImage); |