コード例 #1
0
				<p class="quick-read-more"><a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        printf(__('Permalink to %s', 'arras'), get_the_title());
        ?>
">
				<?php 
        _e('Continue Reading...', 'arras');
        ?>
				</a></p>
			</div>	
		</li>
		<?php 
    }
    arras_add_tapestry('quick', __('Quick Preview', 'arras'), 'arras_tapestry_quick', array('before' => '<ul class="hfeed posts-quick clearfix">', 'after' => '</ul><!-- .posts-quick -->'));
    function arras_add_tapestry_quick_thumbs()
    {
        arras_add_image_size('quick-preview-thumb', __('Tapestry: Quick Preview', 'arras'), 115, 115);
    }
    add_action('arras_add_default_thumbnails', 'arras_add_tapestry_quick_thumbs');
    function arras_style_tapestry_quick()
    {
        $quick_preview_size = arras_get_image_size('quick-preview-thumb');
        $quick_preview_w = $quick_preview_size['w'];
        $quick_preview_h = $quick_preview_size['h'];
        ?>
		.posts-quick .entry-thumbnails img { width: <?php 
        echo $quick_preview_w;
        ?>
px; height: <?php 
コード例 #2
0
ファイル: tapestries.php プロジェクト: heikkiket/SKP-Helsinki
                        <p class="mainhead-read-more"><a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        printf(__('Permalink to %s', 'arras'), get_the_title());
        ?>
">
                        <?php 
        _e('Continue Reading...', 'arras');
        ?>
                        </a></p>
                  </div>      
            </li>
            <?php 
    }
    arras_add_tapestry('mainhead', __('Main headline', 'arras'), 'arras_tapestry_mainhead', array('before' => '<ul class="hfeed posts-mainhead clearfix">', 'after' => '</ul><!-- .posts-mainhead -->'));
    function arras_add_tapestry_mainhead_thumbs()
    {
        arras_add_image_size('mainhead-preview-thumb', __('Tapestry: Main headline', 'arras'), 250, 250);
    }
    add_action('arras_add_default_thumbnails', 'arras_add_tapestry_mainhead_thumbs');
    function arras_style_tapestry_mainhead()
    {
        $main_headline_size = arras_get_image_size('mainhead-preview-thumb');
        $main_headline_w = $main_headline_size['w'];
        $main_headline_h = $main_headline_size['h'];
        ?>
            .posts-mainhead .entry-thumbnails img { width: <?php 
        echo $main_headline_w;
        ?>
px; height: <?php