本文整理汇总了PHP中wpgrade::coreresourceuri方法的典型用法代码示例。如果您正苦于以下问题:PHP wpgrade::coreresourceuri方法的具体用法?PHP wpgrade::coreresourceuri怎么用?PHP wpgrade::coreresourceuri使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wpgrade
的用法示例。
在下文中一共展示了wpgrade::coreresourceuri方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if ($audio_oga != '') {
?>
<source type="audio/ogg" src="<?php
echo $audio_oga;
?>
"/>
<?php
}
?>
<!-- Flash fallback for non-HTML5 browsers without JavaScript -->
<object width="100%" height="auto" type="application/x-shockwave-flash"
data="<?php
echo wpgrade::coreresourceuri('general-media/flashmediaelement.swf');
?>
">
<param name="movie" value="<?php
echo wpgrade::coreresourceuri('general-media/flashmediaelement.swf');
?>
"/>
<?php
if ($audio_m4a != '') {
?>
<param name="flashvars" value="controls=true&file=<?php
echo $audio_m4a;
?>
"/>
<?php
}
?>
</object>
</audio>
示例2:
}
?>
<!-- Flash fallback for non-HTML5 browsers without JavaScript -->
<object width="100%" height="auto" type="application/x-shockwave-flash"
data="<?php
echo wpgrade::coreresourceuri('general-media/flashmediaelement.swf');
?>
">
<param name="movie" value="<?php
echo wpgrade::coreresourceuri('general-media/flashmediaelement.swf');
?>
"/>
<?php
if ($video_m4v != '') {
?>
<param name="flashvars" value="controls=true&file=<?php
echo $video_m4v;
?>
"/>
<?php
}
?>
<!-- Image as a last resort -->
<img
src="<?php
echo !empty($video_poster) ? $video_poster : wpgrade::coreresourceuri('general-media/mediaelement/no-video-image.jpg');
?>
"
title="No video playback capabilities"/>
</object>
</video>
示例3: wpgrade_add_redux_custom_style
function wpgrade_add_redux_custom_style()
{
wp_enqueue_style('redux-custom-css', wpgrade::coreresourceuri('admin-panel/css/admin-panel.css'), array(), time(), 'all');
wp_enqueue_script('redux-custom-js', wpgrade::coreresourceuri('admin-panel/js/admin-panel.js'), array('jquery', 'redux-js', 'wp-ajax-response'), time(), true);
}