当前位置: 首页>>代码示例>>PHP>>正文


PHP render_title函数代码示例

本文整理汇总了PHP中render_title函数的典型用法代码示例。如果您正苦于以下问题:PHP render_title函数的具体用法?PHP render_title怎么用?PHP render_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了render_title函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: render_show_repository

function render_show_repository($label, $resource)
{
    if (isset($resource->repository)) {
        return render_show($label, link_to(render_title($resource->repository), array($resource->repository, 'module' => 'repository')));
    }
    foreach ($resource->ancestors->orderBy('rgt') as $item) {
        if (isset($item->repository)) {
            return render_show($label, link_to(render_title($item->repository), array($item->repository, 'module' => 'repository'), array('title' => __('Inherited from %1%', array('%1%' => $item)))));
        }
    }
}
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:11,代码来源:QubitHelper.php

示例2: link_to

            echo link_to($name, array($result, 'module' => 'function'));
            ?>
            <?php 
        } elseif ('QubitRepository' == $className) {
            ?>
              <?php 
            $name = render_title($result->getAuthorizedFormOfName(array('cultureFallback' => true)));
            ?>
              <?php 
            echo link_to($name, array($result, 'module' => 'repository'));
            ?>
            <?php 
        } elseif ('QubitTerm' == $className) {
            ?>
              <?php 
            $name = render_title($result->getName(array('cultureFallback' => true)));
            ?>
              <?php 
            echo link_to($name, array($result, 'module' => 'term'));
            ?>
            <?php 
        }
        ?>
          </td>

          <?php 
        if ('QubitInformationObject' == $className && 0 < sfConfig::get('app_multi_repository')) {
            ?>
            <td>
              <?php 
            if (null !== ($repository = $result->getRepository(array('inherit' => true)))) {
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:descriptionUpdatesSuccess.php

示例3: get_component

  <?php 
echo get_component('informationobject', 'creatorDetail', array('resource' => $resource));
?>

  <?php 
foreach ($functionRelations as $item) {
    ?>
    <div class="field">
      <h3><?php 
    echo __('Related function');
    ?>
</h3>
      <div>
        <?php 
    echo link_to(render_title($item->subject->getLabel()), array($item->subject, 'module' => 'function'));
    ?>
      </div>
    </div>
  <?php 
}
?>

  <?php 
echo render_show_repository(__('Repository'), $resource);
?>

  <?php 
echo render_show(__('Archival history'), render_value($resource->getArchivalHistory(array('cultureFallback' => true))));
?>
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:29,代码来源:indexSuccess.php

示例4: __

        <?php 
echo __('Note');
?>
      </th>
    </tr>
  </thead><tbody>
    <?php 
foreach ($taxonomies as $item) {
    ?>
      <tr class="<?php 
    echo 0 == @++$row % 2 ? 'even' : 'odd';
    ?>
">
        <td>
          <?php 
    echo link_to(render_title($item), array($item, 'module' => 'taxonomy'));
    ?>
        </td><td>
          <?php 
    echo $item->getNote(array('cultureFallback' => true));
    ?>
        </td>
      </tr>
    <?php 
}
?>
  </tbody>
</table>

<?php 
echo get_partial('default/pager', array('pager' => $pager));
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:listSuccess.php

示例5: foreach

    <?php 
if (0 < count($taxonomyPermissions)) {
    ?>

      <?php 
    foreach ($taxonomyPermissions as $key => $item) {
        ?>

        <div class="form-item">

          <table id="acl_<?php 
        echo $key;
        ?>
">
            <caption><?php 
        echo render_title(QubitTaxonomy::getById($key));
        ?>
</caption>
            <thead>
              <tr>
                <th scope="col"><?php 
        echo __('Action');
        ?>
</th>
                <th scope="col"><?php 
        echo __('Permission');
        ?>
</th>
              </tr>
            </thead><tbody>
              <?php 
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:_termAclForm.php

示例6: url_for

" id="<?php 
    echo url_for(array($item, 'module' => 'relation'));
    ?>
">
          <td>
            <?php 
    if ($resource->id == $item->objectId) {
        ?>
              <?php 
        echo render_title($item->subject);
        ?>
            <?php 
    } else {
        ?>
              <?php 
        echo render_title($item->object);
        ?>
            <?php 
    }
    ?>
          </td><td>
            <?php 
    echo $item->type;
    ?>
          </td><td>
            <?php 
    echo Qubit::renderDateStartEnd($item->date, $item->startDate, $item->endDate);
    ?>
          </td><td>
            <?php 
    echo $item->description;
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:_relatedAuthorityRecord.php

示例7: __

<h1><?php 
echo __('Are you sure you want to delete %1%?', array('%1%' => render_title($resource)));
?>
</h1>

<?php 
echo $form->renderFormTag(url_for(array($resource, 'module' => 'deaccession', 'action' => 'delete')), array('method' => 'delete'));
?>

  <div class="actions section">

    <h2 class="element-invisible"><?php 
echo __('Actions');
?>
</h2>

    <div class="content">
      <ul class="clearfix links">
        <li><?php 
echo link_to(__('Cancel'), array($resource, 'module' => 'deaccession'));
?>
</li>
        <li><input class="form-submit" type="submit" value="<?php 
echo __('Confirm');
?>
"/></li>
      </ul>
    </div>

  </div>
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:30,代码来源:deleteSuccess.php

示例8: render_title

         echo render_title($date->actor);
         ?>
             <?php 
     }
     ?>
           </li>
         <?php 
 }
 ?>
       </ul>
     </td><td>
       <?php 
 if ($item->getCollectionRoot()->id != $item->id) {
     ?>
         <?php 
     echo render_title($item->getCollectionRoot());
     ?>
       <?php 
 }
 ?>
     </td><td>
     <?php 
 if (null != ($accessConditions = $item->getAccessConditions(array('cultureFallback' => true)))) {
     ?>
       <?php 
     echo render_value($accessConditions);
     ?>
     <?php 
 } else {
     ?>
       <?php 
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:boxListSuccess.php

示例9: __

<h1><?php 
echo __('View rights holder');
?>
</h1>

<?php 
echo link_to_if(QubitAcl::check($resource, 'update'), '<h1 class="label">' . render_title($resource) . '</h1>', array($resource, 'module' => 'rightsholder', 'action' => 'edit'), array('title' => __('Edit rights holder')));
?>

<?php 
if (isset($errorSchema)) {
    ?>
  <div class="messages error">
    <ul>
      <?php 
    foreach ($errorSchema as $error) {
        ?>
        <li><?php 
        echo $error;
        ?>
</li>
      <?php 
    }
    ?>
    </ul>
  </div>
<?php 
}
?>

<?php 
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:indexSuccess.php

示例10: foreach

    }
    ?>
        </resourceRelation>
      <?php 
}
?>

      <?php 
foreach ($eac->functionRelation as $item) {
    ?>
        <functionRelation xlink:href="<?php 
    echo url_for(array($item, 'module' => 'function'), true);
    ?>
" xlink:type="simple">
          <relationEntry><?php 
    echo render_title($item->subject);
    ?>
</relationEntry>
          <?php 
    echo sfEacPlugin::renderDates($item);
    if (0 < count($date = $item->getNotesByType(array('noteTypeId' => QubitTerm::RELATION_NOTE_DATE_ID)))) {
        ?>
          <descriptiveNote>
            <?php 
        echo render_value('<p>' . $date[0]) . '</p>';
        ?>
          </descriptiveNote>
<?php 
    }
    ?>
        </functionRelation>
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:indexSuccess.xml.php

示例11: __

<h1><?php 
echo __('View %1%', array('%1%' => sfConfig::get('app_ui_label_repository')));
?>
</h1>

<h1 class="label">
<?php 
echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 'repository'), render_title($resource), array($resource, 'module' => 'repository', 'action' => 'edit'), array('title' => __('Edit repository')));
?>
</h1>

<?php 
if (isset($errorSchema)) {
    ?>
  <div class="messages error">
    <ul>
      <?php 
    foreach ($errorSchema as $error) {
        ?>
        <li><?php 
        echo $error;
        ?>
</li>
      <?php 
    }
    ?>
    </ul>
  </div>
<?php 
}
?>
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:indexSuccess.php

示例12: renderYuiNodes

 public static function renderYuiNodes($tree, $options = array())
 {
     ProjectConfiguration::getActive()->loadHelpers(array('Qubit', 'Text', 'Escaping'));
     $yuiTree = array();
     foreach ($tree as $key => $item) {
         $node = array();
         if ($item instanceof QubitTerm) {
             if (QubitTerm::ROOT_ID != $item->id) {
                 $label = render_title($item);
                 $node['label'] = truncate_text($label, 50);
                 if (50 < strlen($label)) {
                     $node['title'] = esc_specialchars($label);
                 }
                 $node['href'] = sfContext::getInstance()->routing->generate(null, array($item, 'module' => 'term'));
                 $node['id'] = $item->id;
                 $node['parentId'] = $item->parentId;
                 $node['isLeaf'] = (string) (!$item->hasChildren());
                 $node['moveUrl'] = sfContext::getInstance()->routing->generate(null, array($item, 'module' => 'default', 'action' => 'move'));
                 $node['expandUrl'] = sfContext::getInstance()->routing->generate(null, array($item, 'module' => 'term', 'action' => 'treeView'));
             } else {
                 $label = render_title($options['currentNode']->taxonomy);
                 $node['label'] = truncate_text($label, 50);
                 if (50 < strlen($label)) {
                     $node['title'] = esc_specialchars($label);
                 }
                 $node['href'] = sfContext::getInstance()->routing->generate(null, array($options['currentNode']->taxonomy, 'module' => 'taxonomy'));
                 $node['id'] = $item->id;
                 $node['parentId'] = null;
                 $node['isLeaf'] = (string) (!$item->hasChildren());
                 $node['moveUrl'] = sfContext::getInstance()->routing->generate(null, array($item, 'module' => 'default', 'action' => 'move'));
                 $node['expandUrl'] = sfContext::getInstance()->routing->generate(null, array($item, 'module' => 'term', 'action' => 'treeView'));
             }
             if (isset($options['currentNode']) && $options['currentNode'] === $item) {
                 $node['style'] = 'ygtvlabel currentTextNode';
             }
         } else {
             $count = intval($item['total']) - intval($item['limit']);
             $node['label'] = sfContext::getInstance()->i18n->__('+%1% ...', array('%1%' => $count));
             $node['parentId'] = $item['parentId'];
             $node['href'] = '#';
             $node['isLeaf'] = 'true';
             $node['style'] = 'seeAllNode XmlHttpRequest';
         }
         $yuiTree[] = $node;
     }
     return $yuiTree;
 }
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:47,代码来源:QubitTerm.php

示例13: render_title

<div class="page">

  <h1><?php 
echo render_title($resource->getTitle(array('cultureFallback' => true)));
?>
</h1>

  <div>
    <?php 
echo render_value($resource->getContent(array('cultureFallback' => true)));
?>
  </div>

  <?php 
if (SecurityCheck::hasPermission($sf_user, array('module' => 'staticpage', 'action' => 'update'))) {
    ?>
    <div class="actions section">

      <h2 class="element-invisible"><?php 
    echo __('Actions');
    ?>
</h2>

      <div class="content">
        <ul class="links">
          <li><?php 
    echo link_to(__('Edit'), array($resource, 'module' => 'staticpage', 'action' => 'edit'), array('title' => __('Edit this page')));
    ?>
</li>
        </ul>
      </div>
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:indexSuccess.php

示例14: foreach

?>
</h3>
  <div>
    <ul>
      <?php 
foreach ($ancestor->getCreators() as $item) {
    ?>
        <li>
          <?php 
    if (0 < count($resource->getCreators())) {
        ?>
            <?php 
        echo link_to(render_title($item), array($item, 'module' => 'actor'));
        ?>
          <?php 
    } else {
        ?>
            <?php 
        echo link_to(render_title($item), array($item, 'module' => 'actor'), array('title' => __('Inherited from %1%', array('%1%' => $ancestor))));
        ?>
          <?php 
    }
    ?>
        </li>
      <?php 
}
?>
    </ul>
  </div>
</div>
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:30,代码来源:_creator.php

示例15: link_to

">
        <td>
          <?php 
    echo link_to($item->username, array($item, 'module' => 'user'));
    ?>
        </td><td>
          <?php 
    echo $item->email;
    ?>
        </td><td>
          <ul>
            <?php 
    foreach ($item->getAclGroups() as $group) {
        ?>
              <li><?php 
        echo render_title($group);
        ?>
</li>
            <?php 
    }
    ?>
          </ul>
        </td>
      </tr>
    <?php 
}
?>
  </tbody>
</table>

<?php 
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:listSuccess.php


注:本文中的render_title函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。