|
@@ 1431-1439 (lines=9) @@
|
| 1428 |
|
} |
| 1429 |
|
|
| 1430 |
|
// If I want to add a share block in my view |
| 1431 |
|
if ($game->getFbShareMessage()) { |
| 1432 |
|
$fbShareMessage = $game->getFbShareMessage(); |
| 1433 |
|
} else { |
| 1434 |
|
$fbShareMessage = str_replace( |
| 1435 |
|
'__placeholder__', |
| 1436 |
|
$game->getTitle(), |
| 1437 |
|
$this->getOptions()->getDefaultShareMessage() |
| 1438 |
|
); |
| 1439 |
|
} |
| 1440 |
|
|
| 1441 |
|
if ($game->getFbShareImage()) { |
| 1442 |
|
$fbShareImage = $this->frontendUrl()->fromRoute( |
|
@@ 1479-1487 (lines=9) @@
|
| 1476 |
|
); |
| 1477 |
|
} |
| 1478 |
|
|
| 1479 |
|
if ($game->getTwShareMessage()) { |
| 1480 |
|
$twShareMessage = $game->getTwShareMessage().$socialLinkUrl; |
| 1481 |
|
} else { |
| 1482 |
|
$twShareMessage = str_replace( |
| 1483 |
|
'__placeholder__', |
| 1484 |
|
$game->getTitle(), |
| 1485 |
|
$this->getOptions()->getDefaultShareMessage() |
| 1486 |
|
).$socialLinkUrl; |
| 1487 |
|
} |
| 1488 |
|
|
| 1489 |
|
$ogTitle = new \PlaygroundCore\Opengraph\Tag('og:title', $fbShareMessage); |
| 1490 |
|
$ogImage = new \PlaygroundCore\Opengraph\Tag('og:image', $fbShareImage); |