Exemplo n.º 1
0
<?php

include_partial('global/section', array('title' => 'References', 'pointer' => 'Articles documenting info on this page', 'actions' => array(array('text' => 'add', 'url' => 'reference/add?model=' . get_class($object) . '&id=' . $object->id, 'credential' => 'contributor'), array('text' => 'details', 'url' => 'reference/list?model=' . get_class($object) . '&id=' . $object->id))));
?>

<div class="padded reference-list">
<?php 
$refs = method_exists($object, 'getAllReferences') ? $object->getAllReferences() : $object->getReferencesByFields();
foreach ($refs as $ref) {
    ?>
  <?php 
    echo reference_link($ref, 50);
    ?>
<br />
<?php 
}
?>
</div>
Exemplo n.º 2
0
<input type="hidden" name="ref_id" id="ref_id" value="<?php 
    echo $ref_id;
    ?>
">



<!-- CONFIRM SCRAPE NAMES -->

<?php 
    if (isset($confirm_names)) {
        ?>
<div class="bulk_subheader">3. Confirm names found at reference link</div> 
Reference link: <?php 
        echo reference_link($reference);
        ?>
<br><br>
<input type="hidden" name="names" value='<?php 
        echo addslashes(serialize($names));
        ?>
'>


<div id="parsed_text" style="display: none"><?php 
        echo isset($text) ? $text : "";
        ?>
</div>
<a href="javascript:void(0);" onclick="showParsedText();" id="show_parsed">show parsed text...</a><br><br>

<?php 
Exemplo n.º 3
0
<?php

include_partial('global/section', array('title' => 'Source Links', 'pointer' => 'Articles documenting info on this page', 'actions' => array(array('text' => 'add', 'url' => 'reference/add?model=' . $model . '&id=' . $object['id'], 'credential' => 'contributor'), array('text' => 'edit', 'url' => $more_uri, 'credential' => 'contributor')), 'pager' => $pager, 'more' => $more_uri));
?>

<div class="padded reference-list">
<?php 
foreach ($pager->execute() as $ref) {
    ?>
  <?php 
    echo reference_link($ref, 40);
    ?>
<br />
<?php 
}
?>
</div>