本文整理汇总了PHP中osc_current_web_theme_url函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_current_web_theme_url函数的具体用法?PHP osc_current_web_theme_url怎么用?PHP osc_current_web_theme_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_current_web_theme_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: import
public function import($file)
{
$path = osc_current_web_theme_url($file);
$sql = @file_get_contents($path);
if (!$this->dao->importSQL($sql)) {
throw new Exception($this->dao->getErrorLevel() . ' - ' . $this->dao->getErrorDesc());
}
}
示例2: add_logo_header
function add_logo_header()
{
$html = '<img border="0" alt="' . osc_page_title() . '" src="' . osc_current_web_theme_url('images/logo.jpg') . '">';
$js = "<script>\n \$(document).ready(function () {\n \$('#logo').html('" . $html . "');\n });\n </script>";
if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) {
echo $js;
}
}
示例3: logo_header
function logo_header()
{
$html = '<img border="0" alt="' . osc_page_title() . '" src="' . osc_current_web_theme_url('images/logo.jpg') . '" />';
if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) {
return $html;
} else {
return osc_page_title();
}
}
示例4: getImage
function getImage()
{
if (getUrl() == osc_base_url()) {
if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) {
$image = osc_current_web_theme_url('images/logo.jpg');
} else {
$image = osc_current_web_theme_url('images/default-logo.jpg');
}
} else {
if (osc_images_enabled_at_items()) {
if (osc_count_item_resources() > 0) {
$image = osc_resource_url();
} else {
$image = osc_current_web_theme_url('images/logo.jpg');
}
} else {
$image = osc_current_web_theme_url('images/logo.jpg');
}
}
return $image;
}
示例5: osc_esc_js
pop.fancybox_closeBtn = '<?php
echo osc_esc_js(__('Close', 'pop'));
?>
';
</script>
<link rel="stylesheet" href="<?php
echo osc_current_web_theme_url('css/pure-min.css');
?>
" type=text/css">
<!--[if lte IE 8]>
<link rel="stylesheet" href="<?php
echo osc_current_web_theme_url('css/grids-responsive-old-ie-min.css');
?>
">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="<?php
echo osc_current_web_theme_url('css/grids-responsive-min.css');
?>
">
<!--<![endif]-->
<link href="<?php
echo osc_current_web_theme_url('css/style.css');
?>
" rel="stylesheet" type="text/css" />
<link href="<?php
echo osc_current_web_theme_url('css/bootstrap.min.css');
?>
" rel="stylesheet" type="text/css" />
<?php
osc_run_hook('header');
示例6: osc_resource_thumbnail_url
?>
"><img src="<?php
echo osc_resource_thumbnail_url();
?>
" width="75" height="56" title="<?php
echo osc_item_title();
?>
" alt="<?php
echo osc_item_title();
?>
" /></a>
<?php
} else {
?>
<img src="<?php
echo osc_current_web_theme_url('images/no_photo.gif');
?>
" title="" alt="" />
<?php
}
?>
</td>
<?php
}
?>
<td class="text">
<h3>
<a href="<?php
echo osc_item_url();
?>
"><?php
示例7: osc_add_hook
<?php
// meta tag robots
osc_add_hook('header', 'flatter_nofollow_construct');
osc_enqueue_script('tabber');
osc_enqueue_style('tabs', osc_current_web_theme_url('css/tabs.css'));
flatter_add_body_class('item item-post');
$action = 'item_add_post';
$edit = false;
if (Params::getParam('action') == 'item_edit') {
$action = 'item_edit_post';
$edit = true;
}
osc_enqueue_script('jquery-validate');
osc_current_web_theme_path('header.php');
if (osc_get_preference('location_input', 'flatter_theme') == '1') {
ItemForm::location_javascript();
} else {
ItemForm::location_javascript_new();
}
?>
<div class="itempost">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12 page-title">
<h2><?php
if ($edit) {
?>
<?php
_e('Edit your listing', 'flatter');
?>
示例8: osc_add_hook
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// meta tag robots
if (osc_item_is_spam() || osc_premium_is_spam()) {
osc_add_hook('header', 'osclasswizards_nofollow_construct');
} else {
osc_add_hook('header', 'osclasswizards_follow_construct');
}
osc_enqueue_script('fancybox');
osc_enqueue_style('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.css'));
osc_enqueue_script('jquery-validate');
osclasswizards_add_body_class('item');
//osc_add_hook('after-main','sidebar');
if (osclasswizards_show_as() == 'gallery') {
$loop_template = 'loop-search-grid.php';
$buttonClass = 'active';
} else {
$loop_template = 'loop-search-list.php';
$buttonClass = '';
}
function sidebar()
{
osc_current_web_theme_path('item-sidebar.php');
}
osc_current_web_theme_path('header.php');
示例9: pop_logo_url
function pop_logo_url()
{
$logo = osc_get_preference('logo', 'pop_theme');
if ($logo != '') {
return osc_uploads_url($logo);
}
return osc_current_web_theme_url('images/compact-logo.png');
}
示例10: osc_user_public_profile_url
</div>
<?php
}
?>
<?php
} else {
if (osc_item_user_id() != '') {
View::newInstance()->_exportVariableToView('user', User::newInstance()->findByPrimaryKey(osc_item_user_id()));
?>
<a href="<?php
echo osc_user_public_profile_url();
?>
">
<div class="listing-seller">
<div class="listing-seller-avatar" style="background-image: url('<?php
echo osc_current_web_theme_url('images/seller-default.png');
?>
')"></div>
<span class="seller-name"><?php
echo osc_user_name();
?>
</span>
<span class="seller-products"><?php
echo osc_user_items_validated(), ' ' . _n('Listing', 'Listings', osc_user_items_validated(), 'pop');
?>
</span>
</div>
</a>
<?php
}
}
示例11: osc_current_web_theme_url
?>
</div>
<div id="ads">
<?php
include 'ads.php';
?>
</div>
<div id="facebook">
<?php
include 'facebook.php';
?>
</div>
<div id="documentation">
<?php
include 'documentation.php';
?>
</div>
<address class="wizards_address">
<span>© 2015 <a target="_blank" title="osclasswizards" href="http://www.osclasswizards.com/">OsclassWizards</a>. All rights reserved.</span>
</p>
</address>
</div>
<script src="<?php
echo osc_current_web_theme_url('admin/js/jquery.switchButton.js');
?>
"></script>
<script src="<?php
echo osc_current_web_theme_url('admin/js/jquery.admin.js');
?>
"></script>
示例12: osc_get_canonical
<link rel="canonical" href="<?php
echo osc_get_canonical();
?>
"/>
<?php
}
?>
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Fri, Jan 01 1970 00:00:00 GMT" />
<link href="<?php
echo osc_current_web_theme_url('style.css');
?>
" rel="stylesheet" type="text/css" />
<link href="<?php
echo osc_current_web_theme_url('tabs.css');
?>
" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var fileDefaultText = '<?php
echo osc_esc_js(__('No file selected', 'modern'));
?>
';
var fileBtnText = '<?php
echo osc_esc_js(__('Choose File', 'modern'));
?>
';
</script>
<script type="text/javascript" src="<?php
echo osc_current_web_theme_js_url('jquery.js');
示例13: osc_run_hook
?>
</header>
</div>
<?php
osc_run_hook('before-content');
?>
<div class="wrapper" id="content">
<?php
if (osc_is_home_page()) {
echo '<div id="header_map">';
if (homepage_image()) {
echo homepage_image();
} else {
?>
<img src="<?php
echo osc_current_web_theme_url('images/map.jpg');
?>
" />
<?php
}
echo '</div>';
}
?>
<?php
if (osc_is_home_page()) {
?>
<form action="<?php
echo osc_base_url(true);
?>
" id="main_search" method="get" class="search nocsrf" <?php
/* onsubmit="javascript:return doSearch();"*/
示例14: current_user_picture
<div class="comment clearfix">
<div class="pull-left avatar">
<?php
if (function_exists("profile_picture_show")) {
?>
<?php
current_user_picture();
?>
<?php
} else {
?>
<img class="img-responsive" src="http://www.gravatar.com/avatar/<?php
echo md5(strtolower(trim(osc_logged_user_email())));
?>
?s=60&d=<?php
echo osc_current_web_theme_url('images/user-default.jpg');
?>
" />
<?php
}
?>
</div>
<div class="pull-left message">
<ul id="comment_error_list"></ul>
<form action="<?php
echo osc_base_url(true);
?>
" method="post" name="comment_form" id="comment_form">
<input type="hidden" name="action" value="add_comment" />
<input type="hidden" name="page" value="item" />
<input type="hidden" name="id" value="<?php
示例15: dd_profilepic
function dd_profilepic()
{
if (function_exists("profile_picture_show")) {
profile_picture_show();
} else {
?>
<img src="http://www.gravatar.com/avatar/<?php
echo md5(strtolower(trim(osc_item_contact_email())));
?>
?s=80&d=<?php
echo osc_current_web_theme_url('images/user-default.jpg');
?>
" />
<?php
}
}