예제 #1
0
    ?>
");
      $('input[name="autor"]').val("<?php 
    echo utf8_encode($v->getAutor());
    ?>
");
      $('input[name="autorvideo"]').val("<?php 
    echo utf8_encode($v->getAutorVideo());
    ?>
");
      $('select[name="ref1"]').val("<?php 
    echo utf8_encode($v->referit1());
    ?>
");
      $('input[name="lat"]').val("<?php 
    echo $v->getLatitud();
    ?>
");
      $('input[name="lon"]').val("<?php 
    echo $v->getLongitud();
    ?>
");
      $('input[name="ln"]').attr('checked', <?php 
    if ($v->getLletraNegra() == 0) {
        echo 'false';
    } else {
        echo 'true';
    }
    ?>
);
      <?php 
예제 #2
0
?>
'};(function() {var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;po.src = 'https://apis.google.com/js/platform.js';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);})();</script>-->
      <h5><small>Tags</small>&nbsp;&nbsp;<?php 
$tags = explode(',', $v->getTags());
for ($i = 0; $i < count($tags); $i++) {
    ?>
          <a href="#" class="tag"><span class="label label-default"><?php 
    echo utf8_encode($tags[$i]);
    ?>
</span></a>
        <?php 
}
?>
      </h5><hr>
      <div id="mapa" class="col-md-12 col-sm-6  pull-left"><?php 
echo $v->getLatitud() . '-' . $v->getLongitud();
?>
</div>
    </div>
  </div>
</div>
<script>
    var fbShareBtn = document.querySelector('.fb_share');
    fbShareBtn.addEventListener('click', function(e) {
        e.preventDefault();
        var title = fbShareBtn.getAttribute('data-title'),
            desc = fbShareBtn.getAttribute('data-desc'),
            url = fbShareBtn.getAttribute('href'),
            image = fbShareBtn.getAttribute('data-image');
        postToFeed(title, desc, url, image);