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


PHP record_image函数代码示例

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


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

示例1: array

                <tr class="collection<?php 
            if (++$key % 2 == 1) {
                echo ' odd';
            } else {
                echo ' even';
            }
            ?>
">
                    <td class="title<?php 
            if ($collection->featured) {
                echo ' featured';
            }
            ?>
">
                        <?php 
            if ($collectionImage = record_image('collection', 'square_thumbnail')) {
                ?>
                            <?php 
                echo link_to_collection($collectionImage, array('class' => 'image'));
                ?>
                        <?php 
            }
            ?>
                        <?php 
            echo link_to_collection();
            ?>
                        <?php 
            if (!$collection->public) {
                echo __('(Private)');
            }
            ?>
开发者ID:kent-state-university-libraries,项目名称:MultiCollections,代码行数:31,代码来源:browse.php

示例2: exhibit_builder_link_to_exhibit

                    <div style="width: 170px; height: 170px"><?php 
            echo exhibit_builder_link_to_exhibit($exhibit, $exhibitImage, array('class' => 'image'));
            ?>
</div>
                            <?php 
        } else {
            ?>
                                <div style="width: 170px; height: 170px; text-align:center; padding-top:3em; background:#fff;" class="img-circle tit_b">&nbsp;</div>             
                            <?php 
        }
        ?>
                            <h3 class="title_ini"><?php 
        echo link_to_exhibit();
        ?>
</h3>                       <?php 
        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'));
开发者ID:libraryman,项目名称:guarani,代码行数:31,代码来源:browse.php

示例3: foreach

                    <tbody>
                        <?php 
        foreach (loop('search_texts') as $searchText) {
            ?>
                        <?php 
            $record = get_record_by_id($searchText['record_type'], $searchText['record_id']);
            ?>
						<?php 
            $recordType = $searchText['record_type'];
            ?>
						<?php 
            set_current_record($recordType, $record);
            ?>
                        <tr>
                            <td style="width:25%;"><?php 
            if ($recordImage = record_image($recordType, 'square_thumbnail', array('class' => 'gallery'))) {
                ?>
                    <?php 
                echo link_to($record, 'show', $recordImage, array('class' => 'searchimage'));
                ?>


                <?php 
            }
            ?>
</td>
                            <td style="width:50%;">
                                <a href="<?php 
            echo record_url($record, 'show');
            ?>
"><?php 
开发者ID:pyscajor,项目名称:cornishmemory-omeka,代码行数:31,代码来源:index.php

示例4: set_current_record

        ?>
        <?php 
        $recordType = $searchText['record_type'];
        ?>
        <?php 
        set_current_record($recordType, $record);
        ?>
        <tr class="<?php 
        echo strtolower($filter->filter($recordType));
        ?>
">

            <td>
                <div id="title-search-cell">
                    <?php 
        if ($recordImage = record_image($recordType, 'square_thumbnail')) {
            ?>
                        <?php 
            echo link_to($record, 'show', $recordImage, array('class' => 'image'));
            ?>
                    <?php 
        }
        ?>
                    <a href="<?php 
        echo record_url($record, 'show');
        ?>
"><?php 
        echo $searchText['title'] ? $searchText['title'] : '[Unknown]';
        ?>
</a>
                </div>
开发者ID:KelvinSmithLibrary,项目名称:playhouse,代码行数:31,代码来源:index.php

示例5: browse_sort_links

    $sortLinks[__('Date Added')] = 'added';
    echo browse_sort_links($sortLinks, array('list_attr' => array('class' => 'list-inline')));
    ?>
    </div>

    <?php 
    echo pagination_links();
}
?>

<?php 
foreach (loop('collections') as $collection) {
    ?>
    <div class="record collection">
        <?php 
    if ($image = record_image('collection', 'thumbnail')) {
        ?>
            <div class="picture picture-stack">
                <?php 
        echo link_to_collection($image);
        ?>
            </div>
        <?php 
    }
    ?>

        <h2><?php 
    echo link_to_collection();
    ?>
</h2>
开发者ID:BGSU-LITS,项目名称:omeka-theme-bgsu,代码行数:30,代码来源:browse.php

示例6: array

 
                                    <?php 
            } else {
                ?>
                                    <div style="width: 200px; height: 200px; text-align:center; padding-top:3em; background:#fff;" class="img-circle tit_b">&nbsp;</div>
                                    <?php 
            }
            ?>
				    
				<!--Else da verificaao se eh arquivo -->
				<?php 
        } else {
            ?>

				   <?php 
            if ($recordImage = record_image($recordType, 'square_thumbnail', array('class' => 'img-circle imgi'))) {
                ?>
                                    <?php 
                echo link_to($record, 'show', $recordImage, array('class' => 'img-circle imgi'));
                ?>
                                    <?php 
            } else {
                ?>
                                    <div style="width: 200px; height: 200px; text-align:center; padding-top:3em; background:#fff;" class="img-circle tit_b">&nbsp;</div>
                                    <?php 
            }
            ?>

				<?php 
        }
        ?>
开发者ID:libraryman,项目名称:guarani,代码行数:30,代码来源:index.php

示例7: item_search_filters

</div>

<?php 
echo item_search_filters();
?>

<?php 
echo pagination_links();
?>

<?php 
foreach (loop('exhibits') as $exhibit) {
    ?>
    <div class="record exhibit">
        <?php 
    if ($image = record_image('exhibit', 'thumbnail')) {
        ?>
            <div class="picture picture-stack">
                <?php 
        echo link_to_exhibit($image);
        ?>
            </div>
        <?php 
    }
    ?>

        <h2><?php 
    echo link_to_exhibit();
    ?>
</h2>
开发者ID:BGSU-LITS,项目名称:omeka-theme-bgsu,代码行数:30,代码来源:browse.php

示例8: get_records

    <?php 
$exhibits = get_records('Exhibit', array('featured' => true, 'sort' => 'recent'));
$i = 0;
foreach ($exhibits as $exhibit) {
    if ($i == 0) {
        echo '<div class="row">';
    }
    if ($i % 4 == 0) {
        echo '</div><div class="row">';
    }
    ?>
             <div class="col-md-3">    
              <center>
              <?php 
    if ($exhibitImage = record_image($exhibit, 'square_thumbnail', array('class' => 'img-circle imgi'))) {
        ?>
              <?php 
        echo exhibit_builder_link_to_exhibit($exhibit, $exhibitImage, array('class' => 'image'));
        ?>
              <?php 
    } else {
        ?>
                <div style="width: 200px; height: 200px; text-align:center; padding-top:3em; background:#fff;" class="img-circle tit_b">&nbsp;</div>             
              <?php 
    }
    ?>

              <?php 
    echo '<center><h3 class="title_ini"><div id="title_center"><a href="/exhibits/show/' . $exhibit->slug . '">' . $exhibit->title . '</a></div></h3></center>';
    $resumo_texto = $exhibit->description;
开发者ID:libraryman,项目名称:guarani,代码行数:30,代码来源:index.php

示例9: foreach

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

示例10: record_image

    $recordType = $doc->resulttype;
    ?>
					<?php 
    if ($recordType == 'Exhibit Page') {
        ?>
						<?php 
        $exhibit = $record->getExhibit();
        ?>
						<?php 
        $recordImage = record_image($exhibit, 'square_thumbnail', array('class' => 'img-responsive'));
        ?>
					<?php 
    } else {
        ?>
						<?php 
        $recordImage = record_image($record, 'square_thumbnail', array('class' => 'img-responsive'));
        ?>
					<?php 
    }
    ?>
					<?php 
    echo $recordImage;
    ?>
					<!-- Result type. -->
					<?php 
    if ($recordType == 'Item') {
        ?>
						<span class="badge result-type"><?php 
        echo metadata($record, 'item_type_name');
        ?>
</span>
开发者ID:fitnycdigitalinitiatives,项目名称:SolrSearch,代码行数:31,代码来源:index.php

示例11: exhibit_builder_link_to_exhibit

<div class="exhibit record">
    <h3><?php 
echo exhibit_builder_link_to_exhibit($exhibit);
?>
</h3>
    <?php 
if ($exhibitImage = record_image($exhibit, 'item_thumbnail')) {
    ?>
        <?php 
    echo exhibit_builder_link_to_exhibit($exhibit, $exhibitImage, array('class' => 'image'));
    ?>
    <?php 
}
?>
    <p><?php 
echo snippet_by_word_count(metadata($exhibit, 'description', array('no_escape' => true)));
?>
</p>
</div>
开发者ID:elotroalex,项目名称:mhdh,代码行数:19,代码来源:single.php


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