Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3390 | Rev 3393 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3390 Rev 3391
Línea 9... Línea 9...
9
$this->headMeta()->appendName('twitter:card', "summary");
9
$this->headMeta()->appendName('twitter:card', "summary");
10
$this->headMeta()->appendName('twitter:title', "$share_title");
10
$this->headMeta()->appendName('twitter:title', "$share_title");
11
$this->headMeta()->appendName('twitter:description', "$share_description");
11
$this->headMeta()->appendName('twitter:description', "$share_description");
12
$this->headMeta()->appendName('twitter:image', "$share_image");
12
$this->headMeta()->appendName('twitter:image', "$share_image");
Línea -... Línea 13...
-
 
13
 
-
 
14
$js = <<<JS
-
 
15
const backendVars = {
-
 
16
  title:  $share_title,
-
 
17
  description:  $share_description,
-
 
18
  image:  $share_image,
-
 
19
  url:  $share_url,
-
 
20
}
Línea 13... Línea -...
13
 
-
 
-
 
21
JS;
-
 
22
 
14
 
23
$this->inlineScript()->appendScript($js);
Línea 15... Línea -...
15
 
-
 
16
?>
24
$this->inlineScript()->appendFile('/react-bundles/public-post/publicPostViewBundle.js');
17
 
-
 
18
<h1><?php echo $share_description ?></h1>
25
?>
19
<a href="<?php echo $share_url ?>">
-
 
20
<img src="<?php echo $share_image ?>"  style="width: 200px; height: auto"/>
26