• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP osc_current_web_theme_url函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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());
     }
 }
开发者ID:jhalendra,项目名称:classmandu,代码行数:8,代码来源:markassold.class.php


示例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;
     }
 }
开发者ID:acharei,项目名称:OSClass,代码行数:8,代码来源:functions.php


示例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();
     }
 }
开发者ID:ricktaylord,项目名称:osclass-themes,代码行数:9,代码来源:functions.php


示例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;
}
开发者ID:Ashishr2,项目名称:Kathmandu,代码行数:21,代码来源:head.php


示例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');
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:31,代码来源:head.php


示例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 
开发者ID:jmcclenon,项目名称:Osclass,代码行数:31,代码来源:search_list.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');
    ?>
开发者ID:abhi143u11,项目名称:ads,代码行数:31,代码来源:item-post.php


示例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');
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:item.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');
 }
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:8,代码来源:functions.php


示例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 
    }
}
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:31,代码来源:loop-single.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>&copy; 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>
开发者ID:bomvendador,项目名称:soroka_r,代码行数:30,代码来源:settings.php


示例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');
开发者ID:semul,项目名称:Osclass,代码行数:31,代码来源:head.php


示例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();"*/
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:header.php


示例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 
开发者ID:abhi143u11,项目名称:ads,代码行数:31,代码来源:comments.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 
    }
}
开发者ID:abhi143u11,项目名称:ads,代码行数:16,代码来源:dd-func.php


示例16: nc_osc_get_public_picture_link

function nc_osc_get_public_picture_link($user_id)
{
    $ext = ProfilePicture::newInstance()->getPictureExt($user_id);
    if ($ext['name'] == null) {
        $name = $user_id . '.' . $ext['pic_ext'];
    } else {
        $name = 'default.png';
    }
    return osc_current_web_theme_url() . 'profile_picture/' . $name;
}
开发者ID:jhalendra,项目名称:classmandu,代码行数:10,代码来源:functions.php


示例17: osc_item_meta_value

/**
 * Gets item meta value
 *
 * @return string
 */
function osc_item_meta_value()
{
    $meta = osc_item_meta();
    if ($meta['e_type'] == "CHECKBOX") {
        if (osc_field(osc_item_meta(), 's_value', '') == 1) {
            return '<img src="' . osc_current_web_theme_url('images/tick.png') . '" alt="" title=""/>';
        } else {
            return '<img src="' . osc_current_web_theme_url('images/cross.png') . '" alt="" title=""/>';
        }
    } else {
        if ($meta['e_type'] == "URL") {
            if (osc_field(osc_item_meta(), 's_value', '') != '') {
                return '<a href="' . htmlentities(osc_field(osc_item_meta(), 's_value', '')) . '" >' . htmlentities(osc_field(osc_item_meta(), 's_value', '')) . '</a>';
            } else {
                return '';
            }
        } else {
            return htmlentities(osc_field(osc_item_meta(), 's_value', ''), ENT_COMPAT, "UTF-8");
        }
    }
}
开发者ID:randomecho,项目名称:OSClass,代码行数:26,代码来源:hItems.php


示例18: osc_user_public_profile_url

)
                            <?php 
        }
        ?>
                        </div>

                    </div>

                </div>
                <!--<a href="<?php 
        echo osc_user_public_profile_url(osc_item_user_id());
        ?>
">
                    <div class="listing-seller">
                        <div class="listing-seller-avatar" style="background-image: url('<?php 
        echo osc_current_web_theme_url('images/user_default.gif');
        ?>
')"></div>
                        <span class="seller-name"><?php 
        echo osc_item_contact_name();
        ?>
</span>
                        <span class="seller-listings"><?php 
        echo osc_item_user_count_items();
        ?>
 <?php 
        _e('items', 'osclasswizards');
        ?>
</span>
                    </div>
                </a>-->
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:loop-search-grid.php


示例19: osc_current_web_theme_url

<h1>Facebook Information</h1>
<form name="submit-facebook-data" method="post" action="">
  <input id="sitebase_url" type="hidden" value="<?php 
echo osc_current_web_theme_url() . 'admin/facebook-api-check.php';
?>
" />
  <table>
    <tr>
      <td>Facebook API ID</td>
      <td><input type="text" class="xlarge" id="facebook_api_id" name="facebook_api_id" value="<?php 
echo osc_esc_html(osc_get_preference('facebook_api_id', 'classified'));
?>
" placeholder="Enter Facebook API ID"></td>
    </tr>  
    <tr>
        <td>Facebook API Secret</td>
        <td><input type="text" class="xlarge" id="facebook_api_secret" name="facebook_api_secret" value="<?php 
echo osc_esc_html(osc_get_preference('facebook_api_secret', 'classified'));
?>
" placeholder="Enter Facebook API Secret"></td>
    </tr>
   </table>

<?php 
$curl = "";
$fopen = "";
if ($connection == "curl") {
    $curl = "checked='checked'";
} elseif ($connection == "fopen") {
    $fopen = "checked='checked'";
} else {
开发者ID:jhalendra,项目名称:classmandu,代码行数:31,代码来源:facebook-login.php


示例20: add_logo_header

    function add_logo_header()
    {
        $title = osc_page_title();
        $logo = osc_current_web_theme_url('images/logo.jpg');
        $js = <<<JAVASCRIPT
                <script>
                    var title = '{$title}' ;
                    var logo  = '{$logo}' ;
                    var img   = \$("<img>").attr('border', '0').attr('alt', '{$title}').attr('title', '{$title}').attr('src', '{$logo}') ;
                    \$(document).ready(function () {
                        \$('.logo').html(img) ;
                    });
                </script>
JAVASCRIPT;
        if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) {
            echo $js;
        }
    }
开发者ID:nsswaga,项目名称:OSClass,代码行数:18,代码来源:functions.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP osc_db_connect函数代码示例发布时间:2022-05-15
下一篇:
PHP osc_current_web_theme_path函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap