本文整理汇总了PHP中osc_admin_render_theme_url函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_admin_render_theme_url函数的具体用法?PHP osc_admin_render_theme_url怎么用?PHP osc_admin_render_theme_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_admin_render_theme_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: newcorp_admin_menu
function newcorp_admin_menu()
{
echo '<h3><a href="#">NewCorp</a></h3>
<ul>
<li><a href="' . osc_admin_render_theme_url('oc-content/themes/newcorp/admin/settings.php') . '">» ' . __('Settings', 'newcorp') . '</a></li>
</ul>';
}
示例2: theme_classified_actions_admin
function theme_classified_actions_admin()
{
switch (Params::getParam('action_specific')) {
case 'upload_logo':
$package = Params::getFiles('logo');
if ($package['error'] == UPLOAD_ERR_OK) {
if (move_uploaded_file($package['tmp_name'], WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) {
osc_add_flash_ok_message(__('The logo image has been uploaded correctly', 'classified'), 'admin');
} else {
osc_add_flash_error_message(__("An error has occurred, please try again", 'classified'), 'admin');
}
} else {
osc_add_flash_error_message(__("An error has occurred, please try again", 'classified'), 'admin');
}
header('Location: ' . osc_admin_render_theme_url('oc-content/themes/classified/admin/header.php'));
exit;
break;
case 'remove':
if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) {
@unlink(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg");
osc_add_flash_ok_message(__('The logo image has been removed', 'classified'), 'admin');
} else {
osc_add_flash_error_message(__("Image not found", 'classified'), 'admin');
}
header('Location: ' . osc_admin_render_theme_url('oc-content/themes/classified/admin/header.php'));
exit;
break;
}
}
示例3: modern_admin_menu
function modern_admin_menu()
{
echo '<h3><a href="#">' . __('Modern theme', 'modern') . '</a></h3>
<ul>
<li><a href="' . osc_admin_render_theme_url('oc-content/themes/modern/admin/admin_settings.php') . '">» ' . __('Settings theme', 'modern') . '</a></li>
</ul>';
}
示例4: classified_admin_menu
function classified_admin_menu()
{
echo '<h3><a href="#">' . __('Classified theme', 'classified') . '</a></h3>
<ul>
<li><a href="' . osc_admin_render_theme_url('oc-content/themes/classified/admin/header.php') . '">» ' . __('Header logo', 'classified') . '</a></li>
<li><a href="' . osc_admin_render_theme_url('oc-content/themes/classified/admin/settings.php') . '">» ' . __('Theme settings', 'classified') . '</a></li>
</ul>';
}
示例5: theme_modern_actions_admin
function theme_modern_actions_admin()
{
if (Params::getParam('file') == 'oc-content/themes/modern/admin/settings.php') {
if (Params::getParam('donation') == 'successful') {
osc_set_preference('donation', '1', 'modern_theme');
osc_reset_preferences();
}
}
switch (Params::getParam('action_specific')) {
case 'settings':
$footerLink = Params::getParam('footer_link');
$defaultLogo = Params::getParam('default_logo');
osc_set_preference('keyword_placeholder', Params::getParam('keyword_placeholder'), 'modern_theme');
osc_set_preference('footer_link', $footerLink ? '1' : '0', 'modern_theme');
osc_set_preference('default_logo', $defaultLogo ? '1' : '0', 'modern_theme');
osc_add_flash_ok_message(__('Theme settings updated correctly', 'modern'), 'admin');
header('Location: ' . osc_admin_render_theme_url('oc-content/themes/modern/admin/settings.php'));
exit;
break;
case 'upload_logo':
$package = Params::getFiles('logo');
if ($package['error'] == UPLOAD_ERR_OK) {
if (move_uploaded_file($package['tmp_name'], WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) {
osc_add_flash_ok_message(__('The logo image has been uploaded correctly', 'modern'), 'admin');
} else {
osc_add_flash_error_message(__("An error has occurred, please try again", 'modern'), 'admin');
}
} else {
osc_add_flash_error_message(__("An error has occurred, please try again", 'modern'), 'admin');
}
header('Location: ' . osc_admin_render_theme_url('oc-content/themes/modern/admin/header.php'));
exit;
break;
case 'remove':
if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) {
@unlink(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg");
osc_add_flash_ok_message(__('The logo image has been removed', 'modern'), 'admin');
} else {
osc_add_flash_error_message(__("Image not found", 'modern'), 'admin');
}
header('Location: ' . osc_admin_render_theme_url('oc-content/themes/modern/admin/header.php'));
exit;
break;
}
}
示例6: osc_admin_render_theme_url
<?php
$testo = Testimonial::newInstance()->testimonialList();
$ct_url = 'oc-content/themes/nepcoders/admin/add-edit-testimonial.php';
?>
<a href='<?php
echo osc_admin_render_theme_url($ct_url);
?>
'>Add new testimonial</a>
<table class="table" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th class="col-status ">Title</th>
</tr>
</thead>
<tbody>
<?php
foreach ($testo as $test) {
echo '<tr><td>' . $test['testimonial_title'] . '</td>';
echo "<td><a href='" . osc_admin_render_theme_url($ct_url) . "?nepcoders_action=edit&tid=" . $test["pk_testimonial_id"] . "'>Edit</a></td>";
echo '</tr>';
}
?>
</tbody>
</table>
示例7: _e
_e('The preferred size of the logo is 195x50.', 'pop');
?>
</p>
<?php
if ($logo_prefence) {
?>
<div class="flashmessage flashmessage-inline flashmessage-warning"><p><?php
_e('<strong>Note:</strong> Uploading another logo will overwrite the current logo.', 'pop');
?>
</p></div>
<?php
}
?>
<br/><br/>
<form action="<?php
echo osc_admin_render_theme_url('oc-content/themes/pop/admin/header.php');
?>
" method="post" enctype="multipart/form-data" class="nocsrf">
<input type="hidden" name="action_specific" value="upload_logo" />
<fieldset>
<div class="form-horizontal">
<div class="form-row">
<div class="form-label"><?php
_e('Logo image (png,gif,jpg)', 'pop');
?>
</div>
<div class="form-controls">
<input type="file" name="logo" id="package" />
</div>
</div>
<div class="form-actions">
示例8: _e
_e('Upload image', 'osclasswizards');
?>
</h2>
<?php
if ($logo_prefence) {
?>
<div class="flashmessage flashmessage-inline flashmessage-warning"><p><?php
_e('<strong>Note:</strong> Uploading another image will overwrite the current image.', 'osclasswizards');
?>
</p></div>
<?php
}
?>
<br/><br/>
<form action="<?php
echo osc_admin_render_theme_url('oc-content/themes/osclasswizards/admin/settings.php');
?>
" method="post" enctype="multipart/form-data" class="nocsrf">
<input type="hidden" name="action_specific" value="upload_favicon" />
<fieldset>
<div class="form-horizontal">
<div class="form-row">
<div class="form-label"><?php
_e('Accepted image (png,gif,jpg)', 'osclasswizards');
?>
</div>
<div class="form-controls">
<input type="file" name="favicon" id="package" />
</div>
</div>
<div class="form-actions">
示例9: pop_getColorScheme
<?php
//Show params acording to subaction
$params = pop_getColorScheme();
// pop_theme_options(Params::getParam('subaction'));
$paramsOrigin = array();
//pop_theme_options();
?>
<p >
<?php
osc_run_hook("logo_tool");
?>
<div class="clear"></div>
</p>
<form id="live-preview-form" action="<?php
echo osc_admin_render_theme_url('oc-content/themes/pop/admin/settings.php');
?>
" method="post" enctype="multipart/form-data">
<div class="widget-settings">
<table width="100%">
<tr class="head-section">
<td colspan="2"><div><?php
_e('Header buttons', 'pop');
?>
</div></td>
</tr>
<tr>
<td><?php
_e('Background', 'pop');
?>
</td>
示例10: twitter_admin_menu
function twitter_admin_menu()
{
echo '<h3><a href="#">' . __('Twitter theme', 'twitter') . '</a></h3>
<ul>
<li><a href="' . osc_admin_render_theme_url('oc-content/themes/twitter/admin/admin_settings.php') . '">» ' . __('Settings theme', 'twitter') . '</a></li>
</ul>';
}
示例11: theme_pop_actions_admin
function theme_pop_actions_admin()
{
//if(OC_ADMIN)
if (Params::getParam('file') == 'oc-content/themes/pop/admin/settings.php') {
if (Params::getParam('donation') == 'successful') {
osc_set_preference('donation', '1', 'pop_theme');
osc_reset_preferences();
}
}
switch (Params::getParam('subaction')) {
case 'color-update':
/* theme color staff here */
$aParams = Params::getParamsAsArray();
unset($aParams['page']);
unset($aParams['action']);
unset($aParams['file']);
unset($aParams['CSRFName']);
unset($aParams['CSRFToken']);
osc_set_preference('pop-theme-colors', json_encode($aParams), 'pop_theme');
osc_add_flash_ok_message(__('Theme settings updated correctly', 'pop'), 'admin');
osc_redirect_to(osc_admin_render_theme_url('oc-content/themes/pop/admin/color_settings.php'));
break;
case 'color-restore':
$aParams = pop_getColorScheme(true);
osc_set_preference('pop-theme-colors', json_encode($aParams), 'pop_theme');
osc_add_flash_ok_message(__('Theme settings updated correctly', 'pop'), 'admin');
osc_redirect_to(osc_admin_render_theme_url('oc-content/themes/pop/admin/color_settings.php'));
break;
default:
break;
}
switch (Params::getParam('action_specific')) {
case 'settings':
$footerLink = Params::getParam('footer_link');
osc_set_preference('pop_max_premium', Params::getParam('pop_max_premium'), 'pop_theme');
osc_set_preference('keyword_placeholder', Params::getParam('keyword_placeholder'), 'pop_theme');
osc_set_preference('footer_link', $footerLink ? '1' : '0', 'pop_theme');
osc_set_preference('header-728x90', trim(Params::getParam('header-728x90', false, false, false)), 'pop_theme');
osc_set_preference('search-results-300x250', trim(Params::getParam('search-results-300x250', false, false, false)), 'pop_theme');
osc_set_preference('item-detail-300x250', trim(Params::getParam('item-detail-300x250', false, false, false)), 'pop_theme');
osc_add_flash_ok_message(__('Theme settings updated correctly', 'pop'), 'admin');
osc_redirect_to(osc_admin_render_theme_url('oc-content/themes/pop/admin/settings.php'));
break;
case 'upload_logo':
$package = Params::getFiles('logo');
if ($package['error'] == UPLOAD_ERR_OK) {
$img = ImageResizer::fromFile($package['tmp_name']);
$ext = $img->getExt();
$logo_name = 'pop_logo';
$logo_name .= '.' . $ext;
$path = osc_uploads_path() . $logo_name;
move_uploaded_file($package['tmp_name'], $path);
osc_set_preference('logo', $logo_name, 'pop_theme');
osc_add_flash_ok_message(__('The logo image has been uploaded correctly', 'pop'), 'admin');
} else {
osc_add_flash_error_message(__("An error has occurred, please try again", 'pop'), 'admin');
}
osc_redirect_to(osc_admin_render_theme_url('oc-content/themes/pop/admin/header.php'));
break;
case 'remove':
$logo = osc_get_preference('logo', 'pop_theme');
$path = osc_uploads_path() . $logo;
if (file_exists($path)) {
@unlink($path);
osc_delete_preference('logo', 'pop_theme');
osc_reset_preferences();
osc_add_flash_ok_message(__('The logo image has been removed', 'pop'), 'admin');
} else {
osc_add_flash_error_message(__("Image not found", 'pop'), 'admin');
}
osc_redirect_to(osc_admin_render_theme_url('oc-content/themes/pop/admin/header.php'));
break;
}
}
示例12: _e
_e('Facebook Page', OSCLASSWIZARDS_THEME_FOLDER);
?>
</a></li>
<li><a href="#documentation"><?php
_e('Documentation', OSCLASSWIZARDS_THEME_FOLDER);
?>
</a></li>
</ul>
<div id="general">
<h2 class="render-title">
<?php
_e('Theme settings', OSCLASSWIZARDS_THEME_FOLDER);
?>
</h2>
<form action="<?php
echo osc_admin_render_theme_url('oc-content/themes/' . OSCLASSWIZARDS_THEME_FOLDER . '/admin/settings.php');
?>
" method="post" class="nocsrf">
<input type="hidden" name="action_specific" value="settings" />
<fieldset>
<div class="form-horizontal">
<div class="form-row">
<div class="form-label">
<?php
_e('Welcome message', OSCLASSWIZARDS_THEME_FOLDER);
?>
</div>
<div class="form-controls">
<textarea style="height: 50px; width: 500px;" name="welcome_message"><?php
echo osc_get_preference('welcome_message', 'osclasswizards_theme');
?>
示例13: osc_base_url
if (file_exists(osc_uploads_path() . "realestate-logo-footer.jpg")) {
?>
<p>
Preview:<br>
<?php
$logo_footer = osc_base_url() . str_replace(ABS_PATH, '', osc_uploads_path()) . "realestate-logo-footer.jpg";
?>
<img border="0" alt="<?php
echo osc_page_title();
?>
" src="<?php
echo $logo_footer;
?>
"/>
<form action="<?php
echo osc_admin_render_theme_url('oc-content/themes/realestate/admin/logo_settings.php');
?>
" method="post" enctype="multipart/form-data">
<input type="hidden" name="action_specific" value="footer_remove" />
<input id="button_remove" type="submit" value="<?php
_e('Remove logo footer', 'realestate');
?>
" />
</form>
</p>
<?php
} else {
?>
<p><?php
_e('Has not uploaded any logo image for footer', 'realestate');
?>
示例14: osc_add_flash_ok_message
$image_url = Params::getParam('image_url');
if (Testimonial::newInstance()->insertTestimonialData($title, $message, $image_url)) {
$ct_url = 'oc-content/themes/nepcoders/admin/testimonial.php';
osc_add_flash_ok_message(__('Testimonial Saved', 'nepcoders'), 'admin');
header('Location:' . osc_admin_render_theme_url($ct_url));
}
}
if (Params::getParam('nep_action') == 'edit_testimonial') {
$title = Params::getParam('title');
$message = Params::getParam('message');
$image_url = Params::getParam('image_url');
$tid = Params::getParam('testimonial_id');
if (Testimonial::newInstance()->updateTestimonial($tid, $title, $message, $image_url)) {
$ct_url = 'oc-content/themes/nepcoders/admin/testimonial.php';
osc_add_flash_ok_message(__('Testimonial Updated', 'nepcoders'), 'admin');
header('Location:' . osc_admin_render_theme_url($ct_url));
}
}
?>
<h1>Testimonial Information</h1>
<form name="testimonial-form" method="post" action="">
<?php
if (Params::getParam('nepcoders_action') == 'edit') {
?>
<input type="hidden" name="nep_action" value="edit_testimonial">
<input type="hidden" name="testimonial_id" value="<?php
echo Params::getParam('tid');
?>
">
<?php
$result = Testimonial::newInstance()->getTestimonial(Params::getParam('tid'));
示例15: _e
<p>
<?php
_e('The preferred size of the logo is 300x70.', 'classified');
?>
<?php
if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) {
?>
<?php
_e('<strong>Note:</strong> Uploading another logo will overwrite the current logo.', 'classified');
?>
<?php
}
?>
</p>
<form action="<?php
echo osc_admin_render_theme_url('oc-content/themes/classified/admin/header.php');
?>
" method="post" enctype="multipart/form-data">
<input type="hidden" name="action_specific" value="upload_logo" />
<fieldset>
<div class="form-horizontal">
<div class="form-row">
<div class="form-label"><?php
_e('Logo image (png,gif,jpg)', 'classified');
?>
</div>
<div class="form-controls">
<input type="file" name="logo" id="package" />
</div>
</div>
<div class="form-actions">