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


PHP compat_get_plugin_url函数代码示例

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


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

示例1: compat_get_plugin_url

        ?>
" target="_blank"><img src="<?php 
        echo compat_get_plugin_url('wptouch');
        ?>
/themes/core/core-images/bookmarks/newsvine.jpg" target="_blank"> <?php 
        _e("Newsvine", "wptouch");
        ?>
</a></li>
			<li class="noborder"><a href="http://reddit.com/submit?url=<?php 
        echo get_permalink();
        ?>
&title=<?php 
        the_title();
        ?>
" target="_blank"><img src="<?php 
        echo compat_get_plugin_url('wptouch');
        ?>
/themes/core/core-images/bookmarks/reddit.jpg" alt="" /> <?php 
        _e("Reddit", "wptouch");
        ?>
</a></li>
		</ul>
	</div>

<!-- Let's rock the comments -->

	<?php 
        comments_template();
        ?>

	<?php 
开发者ID:alx,项目名称:Tetalab,代码行数:31,代码来源:single.php

示例2: bnc_wp_touch_get_pages

        ?>
">
	 <div class="page">
		<div class="page-title-icon">		
			<?php 
        $mypages = bnc_wp_touch_get_pages();
        if (isset($mypages[get_the_ID()])) {
            $icon_name = $mypages[get_the_ID()]['icon'];
            if (file_exists(compat_get_plugin_dir('wptouch') . '/images/icon-pool/' . $icon_name)) {
                $image = compat_get_plugin_url('wptouch') . '/images/icon-pool/' . $icon_name;
            } else {
                $image = compat_get_upload_url() . '/wptouch/custom-icons/' . $icon_name;
            }
            echo '<img class="pageicon" src="' . $image . '" alt="icon" />';
        } else {
            echo '<img class="pageicon" src="' . compat_get_plugin_url('wptouch') . '/images/icon-pool/Default.png" alt="pageicon" />';
        }
        ?>
 
		</div>
			<h2><?php 
        the_title();
        ?>
</h2>
	</div>
	      
<div class="clearer"></div>
  
    <div id="entry-<?php 
        the_ID();
        ?>
开发者ID:gigikiri,项目名称:bcnAutoWallpaperSite,代码行数:31,代码来源:page.php

示例3: wptouch_core_header_email

function wptouch_core_header_email()
{
    if (bnc_is_email_enabled()) {
        echo sprintf(__("%sE-Mail%s", "wptouch"), '<li><a href="mailto:' . get_bloginfo('admin_email') . '"><img src="' . compat_get_plugin_url('wptouch') . '/images/icon-pool/Mail.png" alt="" />', '</a></li>');
    }
}
开发者ID:nagyistoce,项目名称:moodle-Teach-Pilot,代码行数:6,代码来源:core-functions.php

示例4: sprintf

?>
</p>
				<p><?php 
echo sprintf(__("If an upload fails (usually it's a permission problem) check your wp-content path settings in WordPress' Miscellaneous Settings, or create the folder yourself using FTP and try again.", "wptouch"), "<strong>", "</strong>");
?>
</p>
						
				<div id="upload-icon" class="button"><?php 
_e('Upload Icon', 'wptouch');
?>
</div>

			<div id="upload_response"></div>
				<div id="upload_progress" style="display:none">
					<p><img src="<?php 
echo compat_get_plugin_url('wptouch') . '/images/progress.gif';
?>
" alt="" /> <?php 
_e("Uploading...");
?>
</p>
				</div>
								
			</div><!-- left-content -->

	<div class="right-content" id="icon-pool-area">	
	<div id="wptouchicons">
		<?php 
bnc_show_icons();
?>
	</div>
开发者ID:aim-web-projects,项目名称:ueno-chuoh,代码行数:31,代码来源:icon-area.php

示例5: theme_root_uri

 function theme_root_uri($url)
 {
     if ($this->applemobile && $this->desired_view === 'mobile') {
         $dir = compat_get_plugin_url('wptouch') . "/themes";
         return $dir;
     } else {
         return $url;
     }
 }
开发者ID:nagyistoce,项目名称:moodle-Teach-Pilot,代码行数:9,代码来源:wptouch.php

示例6: compat_get_plugin_url

                    } else {
                        ?>
				
							
								<?php 
                        $total = '24';
                        $file_type = '.jpg';
                        // Change to the location of the folder containing the images
                        $image_folder = '' . compat_get_plugin_url('wptouch') . '/themes/core/core-images/thumbs/';
                        $start = '1';
                        $random = mt_rand($start, $total);
                        $image_name = $random . $file_type;
                        if ($wptouch_settings['post-cal-thumb'] == 'post-thumbnails-random') {
                            echo "<img src=\"{$image_folder}/{$image_name}\" alt=\"{$image_name}\" />";
                        } else {
                            echo '<img src="' . compat_get_plugin_url('wptouch') . '/themes/core/core-images/thumbs/thumb-empty.jpg" alt="thumbnail" />';
                        }
                        ?>
						<?php 
                    }
                }
                ?>
					</div>
						<div class="thumb-bottom-left"></div><div class="thumb-bottom-right"></div>
					</div>
				<?php 
            } elseif ($wptouch_settings['post-cal-thumb'] == 'calendar-icons') {
                ?>
					<div class="calendar">
						<div class="cal-month month-<?php 
                echo get_the_time('m');
开发者ID:gigikiri,项目名称:bcnAutoWallpaperSite,代码行数:31,代码来源:index.php

示例7: bnc_get_local_icon_url

function bnc_get_local_icon_url()
{
    return compat_get_plugin_url('wptouch') . '/images/';
}
开发者ID:sjcockell,项目名称:fuzzierlogic.blog,代码行数:4,代码来源:core-functions.php

示例8: theme_root_uri

 function theme_root_uri($url)
 {
     if ($this->iphone || $this->ipad) {
         $dir = compat_get_plugin_url('buddypress-mobile') . "/themes";
         return $dir;
     } else {
         return $url;
     }
 }
开发者ID:pyropictures,项目名称:wordpress-plugins,代码行数:9,代码来源:buddypress-mobile.php

示例9: bnc_get_icon_locations

function bnc_get_icon_locations()
{
    $locations = array('default' => array(compat_get_plugin_dir('wptouch') . '/images/icon-pool', compat_get_plugin_url('wptouch') . '/images/icon-pool'), 'custom' => array(compat_get_upload_dir() . '/wptouch/custom-icons', compat_get_upload_url() . '/wptouch/custom-icons'));
    return $locations;
}
开发者ID:nagyistoce,项目名称:moodle-Teach-Pilot,代码行数:5,代码来源:icons.php


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