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


PHP exhibit_builder_link_to_exhibit函数代码示例

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


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

示例1: custom_exhibit_builder_display_random_featured_exhibit

/**
 * Return the HTML for summarizing a random featured exhibit
 *
 * @return string
 */
function custom_exhibit_builder_display_random_featured_exhibit()
{
    $html = '<div id="featured-exhibit">';
    $featuredExhibit = exhibit_builder_random_featured_exhibit();
    $html .= '<h2> L\'exposition </h2>';
    if ($featuredExhibit) {
        $html .= '<h3>' . exhibit_builder_link_to_exhibit($featuredExhibit) . '</h3>' . "\n";
        $html .= '<p>' . snippet_by_word_count(metadata($featuredExhibit, 'description', array('no_escape' => true))) . '</p>';
    } else {
        $html .= '<p>' . __('You have no featured exhibits.') . '</p>';
    }
    $html .= '</div>';
    $html = apply_filters('exhibit_builder_display_random_featured_exhibit', $html);
    return $html;
}
开发者ID:pcouchet,项目名称:seasons-ahp,代码行数:20,代码来源:custom.php

示例2: hijack_exhibit_builder_random_featured_exhibit

function hijack_exhibit_builder_random_featured_exhibit()
{
    $html = '<div id="featured-exhibit">';
    $featuredExhibit = exhibit_builder_random_featured_exhibit();
    $html .= '<h2>' . __('Featured Exhibit') . '</h2>';
    if ($featuredExhibit) {
        $html .= '<h3>' . exhibit_builder_link_to_exhibit($featuredExhibit) . '</h3>' . "\n";
        if ($item = get_record('Item', array('sort_field' => 'random', 'exhibit' => $featuredExhibit->id, 'hasImage' => true))) {
            $html .= exhibit_builder_link_to_exhibit($featuredExhibit, item_image('square_thumbnail', array(), 0, $item), array('class' => 'image'));
        }
        $html .= '<p class="description">' . snippet_by_word_count(metadata($featuredExhibit, 'description', array('no_escape' => true))) . '</p>';
    } else {
        $html .= '<p>' . __('You have no featured exhibits.') . '</p>';
    }
    $html .= '</div>';
    return $html;
}
开发者ID:sgbalogh,项目名称:peddler_clone5,代码行数:17,代码来源:functions.php

示例3: strlen

     if ($exhibitImage = record_image($exhibit, 'square_thumbnail')) {
         ?>
                     <?php 
     }
     ?>
                     <?php 
     if ($exhibitDescription = metadata('exhibit', 'description', array('no_escape' => true))) {
         ?>
                         <h3 class="title_ini" style="font-weight:300; font-size:13px; text-align:justify;">
                         <?php 
         $resumo_texto = $exhibit->description;
         $conta_letra = strlen($resumo_texto);
         if ($conta_letra <= 140) {
             echo resumo($resumo_texto, 140);
         } else {
             echo resumo($resumo_texto, 140) . exhibit_builder_link_to_exhibit($exhibit, '&nbsp;&nbsp;&nbsp;(Saiba Mais)', array('style' => 'color:#768BCD'));
         }
         ?>
                         </h3>
                     <?php 
     }
     ?>
                 </div>
                     <?php 
     $exhibitCount++;
     ?>
                 <?php 
 }
 ?>
                 <?php 
 echo pagination_links();
开发者ID:libraryman,项目名称:guarani,代码行数:31,代码来源:browse.php

示例4: __

        </div>
    </fieldset>
    </section>
    <?php 
echo $csrf;
?>
    <section class="three columns omega">
        <div id="save" class="panel">
            <?php 
echo $this->formSubmit('save_exhibit', __('Save Changes'), array('class' => 'submit big green button'));
?>
            <?php 
if ($exhibit->exists()) {
    ?>
                <?php 
    echo exhibit_builder_link_to_exhibit($exhibit, __('View Public Page'), array('class' => 'big blue button', 'target' => '_blank'));
    ?>
                <?php 
    if (is_allowed($exhibit, 'delete')) {
        ?>
                    <?php 
        echo link_to($exhibit, 'delete-confirm', __('Delete Exhibit'), array('class' => 'big red button delete-confirm'));
        ?>
                <?php 
    }
    ?>
            <?php 
}
?>
            <div id="public-featured">
                <div class="public">
开发者ID:fitnycdigitalinitiatives,项目名称:plugin-ExhibitBuilder,代码行数:31,代码来源:exhibit-metadata-form.php

示例5: exhibit_builder_page_trail

    echo $nextLink;
    ?>
    </div>
    <?php 
}
?>
    <div id="exhibit-nav-up">
    <?php 
echo exhibit_builder_page_trail();
?>
    </div>
</div>

<?php 
if ($exhibitNavOption == 'side') {
    ?>
<nav id="exhibit-pages" class="side">
    <h4><?php 
    echo exhibit_builder_link_to_exhibit($exhibit);
    ?>
</h4>
    <?php 
    echo exhibit_builder_page_tree($exhibit, $exhibit_page);
    ?>
</nav>
<?php 
}
?>

<?php 
echo foot();
开发者ID:lchen01,项目名称:STEdwards,代码行数:31,代码来源:show.php

示例6: link_to_exhibit

        if ($exhibitCount % 2 == 1) {
            echo ' even';
        } else {
            echo ' odd';
        }
        ?>
">
        <h2><?php 
        echo link_to_exhibit();
        ?>
</h2>
        <?php 
        if ($exhibitImage = record_image($exhibit, 'square_thumbnail')) {
            ?>
            <?php 
            echo exhibit_builder_link_to_exhibit($exhibit, $exhibitImage, array('class' => 'image'));
            ?>
        <?php 
        }
        ?>
        <?php 
        if ($exhibitDescription = metadata('exhibit', 'description', array('no_escape' => true))) {
            ?>
        <div class="description"><?php 
            echo $exhibitDescription;
            ?>
</div>
        <?php 
        }
        ?>
        <?php 
开发者ID:elotroalex,项目名称:mhdh,代码行数:31,代码来源:browse.php

示例7: exhibit_builder_link_to_exhibit

" alt="featured Exhibit Image" />
                    </div>
                <?php 
            }
            ?>

<!--                 <div class="sp-layer sp-static sp-black sp-padding" data-position="bottomLeft" data-height="20%">
 -->                <div class="featured-text sp-caption">
                        <h3><?php 
            echo exhibit_builder_link_to_exhibit($featuredExhibit);
            ?>
</h3>

                    <p><?php 
            echo snippet_by_word_count(metadata($featuredExhibit, 'description', array('no_escape' => true)), 200);
            echo exhibit_builder_link_to_exhibit($featuredExhibit, $text = ' Learn More&rarr;');
            ?>
</p>
                    </div>
                    
<!--                 </div>
 -->
            </div>

        <?php 
        }
        ?>
        
    </div>

</div>
开发者ID:kalbers,项目名称:religions-in-mn,代码行数:31,代码来源:index.php

示例8: exhibit_builder_link_to_parent_page

/**
 * Return a link to the parent exhibit page
 *
 * @param string $text Link text
 * @param array $props Link attributes
 * @param ExhibitPage $exhibitPage If null, will use the current exhibit page
 * @return string
 */
function exhibit_builder_link_to_parent_page($text = null, $props = array(), $exhibitPage = null)
{
    if (!$exhibitPage) {
        $exhibitPage = get_current_record('exhibit_page');
    }
    $exhibit = get_record_by_id('Exhibit', $exhibitPage->exhibit_id);
    if ($exhibitPage->parent_id) {
        $parentPage = $exhibitPage->getParent();
        if (!isset($props['class'])) {
            $props['class'] = 'parent-page';
        }
        if ($text === null) {
            $text = '&uarr; ' . metadata($parentPage, 'title');
        }
        return exhibit_builder_link_to_exhibit($exhibit, $text, $props, $parentPage);
    }
    return null;
}
开发者ID:kyfr59,项目名称:cg35,代码行数:26,代码来源:ExhibitPageFunctions.php

示例9: link_to_exhibit

/**
* Returns a link to an exhibit, or exhibit page.
* @uses exhibit_builder_link_to_exhibit
*
* @param string|null $text The text of the link
* @param array $props
* @param ExhibitPage|null $exhibitPage
* @param Exhibit $exhibit|null If null, it uses the current exhibit
* @return string
*/
function link_to_exhibit($text = null, $props = array(), $exhibitPage = null, $exhibit = null)
{
    return exhibit_builder_link_to_exhibit($exhibit, $text, $props, $exhibitPage);
}
开发者ID:rshiggin,项目名称:omeka-custom-exhibit,代码行数:14,代码来源:ExhibitFunctions.php

示例10: __

<?php 
if ($exhibitCredits = metadata('exhibit', 'credits')) {
    ?>
    <div class="exhibit-credits">
        <h2><?php 
    echo __('Credits');
    ?>
</h2>
        <p><?php 
    echo $exhibitCredits;
    ?>
</p>
    </div>
<?php 
}
?>

<?php 
if ($exhibitPages = $exhibit->getTopPages()) {
    ?>
    <p class="text-center">
        <?php 
    echo exhibit_builder_link_to_exhibit($exhibit, __('Enter the Exhibit'), array('class' => 'btn btn-primary btn-lg'), reset($exhibitPages));
    ?>
    </p>
<?php 
}
?>

<?php 
echo foot(array('exhibit' => $exhibit));
开发者ID:BGSU-LITS,项目名称:omeka-theme-bgsu,代码行数:31,代码来源:summary.php

示例11: exhibit_builder_link_to_exhibit

            <?php 
        echo exhibit_builder_link_to_exhibit($exhibit, metadata($child, 'title'), array('class' => 'list-group-item'), $child);
        ?>
        <?php 
    }
    ?>
    </div>
<?php 
}
?>

<nav class="row" id="exhibit-page-navigation">
    <div class="col-sm-5">
        <?php 
echo exhibit_builder_link_to_previous_page();
?>
    </div>
    <div class="col-sm-5 col-sm-push-2 text-right">
        <?php 
echo exhibit_builder_link_to_next_page();
?>
    </div>
    <div class="col-sm-2 col-sm-pull-5 text-center">
        <?php 
echo exhibit_builder_link_to_exhibit(null, 'Exhibit Home');
?>
    </div>
</nav>

<?php 
echo foot(array('exhibit' => $exhibit));
开发者ID:BGSU-LITS,项目名称:omeka-theme-bgsu,代码行数:31,代码来源:show.php


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