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


PHP osc_admin_render_plugin_url函数代码示例

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


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

示例1: feed_admin_menu

function feed_admin_menu()
{
    echo '<h3><a href="#">Extra Feeds help</a></h3>
    <ul>
        <li><a href="' . osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'conf.php') . '">&raquo; ' . __('Help', 'extra_feeds') . '</a></li>
    </ul>';
}
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:7,代码来源:index.php

示例2: popular_ads_admin_help

function popular_ads_admin_help()
{
    echo '<h3><a href="#">Popular Ads</a></h3>
    <ul>
	<li><a href="' . osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'admin_config.php') . '">&raquo; ' . __('Configure', 'Popular Ads') . '</a><li>
    </ul>';
}
开发者ID:abhi143u11,项目名称:ads,代码行数:7,代码来源:index.php

示例3: nm_copypaste_plugin_actions

function nm_copypaste_plugin_actions()
{
    $dao_preference = new Preference();
    $option = Params::getParam('nomoreoption');
    if (Params::getParam('file') != 'nm_copypaste_plugin/admin/settings.php') {
        return '';
    }
    if ($option == 'nomoresettings') {
        osc_set_preference('nm_id', Params::getParam("nm_id") ? Params::getParam("nm_id") : '0', 'nm_copypaste_plugin', 'STRING');
        osc_add_flash_ok_message(__('Nomore copy/paste settings has been updated', 'nm_copypaste_plugin'), 'admin');
        osc_redirect_to(osc_admin_render_plugin_url('nm_copypaste_plugin/admin/settings.php'));
    }
}
开发者ID:krahamath,项目名称:nm_copypaste_plugin,代码行数:13,代码来源:index.php

示例4: qrcode_admin_menu

function qrcode_admin_menu()
{
    if (osc_version() < 320) {
        echo '<h3><a href="#">QR Code</a></h3>
            <ul>
                <li><a href="' . osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'conf.php') . '">&raquo; ' . __('Settings', 'qrcode') . '</a></li>
                <li><a href="' . osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'help.php') . '">&raquo; ' . __('Help', 'qrcode') . '</a></li>
            </ul>';
    } else {
        osc_add_admin_submenu_divider('plugins', 'QR Codes', 'qrcode_divider', 'administrator');
        osc_add_admin_submenu_page('plugins', __('QR Settings', 'qrcode'), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'conf.php'), 'qrcode_settings', 'administrator');
        osc_add_admin_submenu_page('plugins', __('QR Help', 'qrcode'), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'help.php'), 'qrcode_help', 'administrator');
    }
}
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:14,代码来源:index.php

示例5: google_analytics_actions

function google_analytics_actions()
{
    $dao_preference = new Preference();
    $option = Params::getParam('option');
    if (Params::getParam('file') != 'google_analytics/admin.php') {
        return '';
    }
    if ($option == 'stepone') {
        $webid = Params::getParam('webid');
        Preference::newInstance()->update(array("s_value" => $webid), array("s_section" => "plugin-google_analytics", "s_name" => "google_analytics_id"));
        osc_add_flash_ok_message(__('The tracking ID has been updated', 'google_analytics'), 'admin');
        osc_redirect_to(osc_admin_render_plugin_url('google_analytics/admin.php'));
    }
}
开发者ID:jmcclenon,项目名称:Osclass,代码行数:14,代码来源:index.php

示例6: digitalgoods_admin_menu

function digitalgoods_admin_menu()
{
    if (osc_version() < 320) {
        echo '<h3><a href="#">Digital Goods</a></h3>
            <ul>
                <li><a href="' . osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'admin/conf.php') . '">&raquo; ' . __('Settings', 'digitalgoods') . '</a></li>
                <li><a href="' . osc_admin_configure_plugin_url("digitalgoods/index.php") . '">&raquo; ' . __('Configure categories', 'digitalgoods') . '</a></li>
                <li><a href="' . osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'admin/stats.php') . '">&raquo; ' . __('Stats', 'digitalgoods') . '</a></li>
            </ul>';
    } else {
        osc_add_admin_submenu_divider('plugins', 'Digital Goods', 'digitalgoods_divider', 'administrator');
        osc_add_admin_submenu_page('plugins', __('Settings', 'digitalgoods'), osc_route_admin_url('digitalgoods-admin-conf'), 'digitalgoods_settings', 'administrator');
        osc_add_admin_submenu_page('plugins', __('Configure categories', 'digitalgoods'), osc_admin_configure_plugin_url("digitalgoods/index.php"), 'digitalgoods_categories', 'administrator');
        osc_add_admin_submenu_page('plugins', __('File stats', 'digitalgoods'), osc_route_admin_url('digitalgoods-admin-stats'), 'digitalgoods_stats', 'administrator');
    }
}
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:16,代码来源:index.php

示例7: seo_init_admin

function seo_init_admin()
{
    //scripts
    osc_enqueue_style('seoCSS', osc_plugin_url(SEO_PLUGIN_FOLDER . '/css/style.css') . 'style.css');
    //admin menu pages
    osc_add_admin_menu_page(__('SEO Wiz', SEO_PLUGIN_FOLDER), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'configure.php'), 'seo_dashboard');
    osc_add_admin_submenu_page('seo_dashboard', __('Configure Plugin', SEO_PLUGIN_FOLDER), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'configure.php'), 'configure');
    osc_add_admin_submenu_page('seo_dashboard', __('Titles & Metas', SEO_PLUGIN_FOLDER), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'titles_metas.php'), 'titles_metas');
    //form actions
    switch (Params::getParam('seo_action')) {
        //configure page
        case 'seo_configure':
            $page_title_separator = Params::getParam('page_title_separator', false, false, false);
            osc_set_preference('page_title_separator', $page_title_separator, 'seo_plugin');
            osc_add_flash_ok_message(__('Saved correctly', SEO_PLUGIN_FOLDER), 'admin');
            osc_redirect_to(osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'configure.php'));
            break;
            //titles_metas_home
        //titles_metas_home
        case 'titles_metas_home':
            $seo_titles = Params::getParam('seo_titles');
            if (!empty($seo_titles)) {
                foreach ($seo_titles as $key => $value) {
                    osc_set_preference($key, trim($value), 'seo_plugin');
                }
            }
            osc_add_flash_ok_message(__('Saved correctly', SEO_PLUGIN_FOLDER), 'admin');
            osc_redirect_to(osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'titles_metas.php#home'));
            break;
            //titles_metas_pages
        //titles_metas_pages
        case 'titles_metas_pages':
            $seo_titles = Params::getParam('seo_titles');
            if (!empty($seo_titles)) {
                foreach ($seo_titles as $key => $value) {
                    osc_set_preference($key, trim($value), 'seo_plugin');
                }
            }
            osc_add_flash_ok_message(__('Saved correctly', SEO_PLUGIN_FOLDER), 'admin');
            osc_redirect_to(osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'titles_metas.php#pages'));
            break;
    }
}
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:43,代码来源:index.php

示例8: fb_page_plugin_actions

function fb_page_plugin_actions()
{
    $dao_preference = new Preference();
    $option = Params::getParam('fbpageoption');
    if (Params::getParam('file') != 'fb_page_plugin/admin.php') {
        return '';
    }
    if ($option == 'fbpagesettings') {
        osc_set_preference('fb_page_url', Params::getParam("fb_page_url") ? Params::getParam("fb_page_url") : '0', 'fb_page_plugin', 'STRING');
        osc_set_preference('fb_page_width', Params::getParam("fb_page_width") ? Params::getParam("fb_page_width") : '0', 'fb_page_plugin', 'STRING');
        osc_set_preference('fb_page_height', Params::getParam("fb_page_height") ? Params::getParam("fb_page_height") : '0', 'fb_page_plugin', 'STRING');
        osc_set_preference('fb_show_faces', Params::getParam("fb_show_faces") ? Params::getParam("fb_show_faces") : '0', 'fb_page_plugin', 'STRING');
        osc_set_preference('show_page_posts', Params::getParam("show_page_posts") ? Params::getParam("show_page_posts") : '0', 'fb_page_plugin', 'STRING');
        osc_set_preference('hide_page_cover', Params::getParam("hide_page_cover") ? Params::getParam("hide_page_cover") : '0', 'fb_page_plugin', 'STRING');
        osc_set_preference('use_small_header', Params::getParam("use_small_header") ? Params::getParam("use_small_header") : '0', 'fb_page_plugin', 'STRING');
        osc_set_preference('adapt_container_width', Params::getParam("adapt_container_width") ? Params::getParam("adapt_container_width") : '0', 'fb_page_plugin', 'STRING');
        osc_add_flash_ok_message(__('Facebook page plugin has been updated', 'fb_page_plugin'), 'admin');
        osc_redirect_to(osc_admin_render_plugin_url('fb_page_plugin/admin.php'));
    }
}
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:20,代码来源:index.php

示例9: xml_import_export_category_admin_menu

function xml_import_export_category_admin_menu()
{
    osc_add_admin_submenu_page('plugins', __('XML Import Export Category', 'xml_import_export_category'), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . "functions.php"), 'xml_import_export_category', 'moderator');
}
开发者ID:michaelxizhou,项目名称:myeden69,代码行数:4,代码来源:index.php

示例10: osc_admin_render_plugin

/**
 * Show custom plugin administrationfile
 *
 * @param string $file
 * @return void
 */
function osc_admin_render_plugin($file = '')
{
    header('Location: ' . osc_admin_render_plugin_url($file));
    exit;
}
开发者ID:nsswaga,项目名称:OSClass,代码行数:11,代码来源:hPlugins.php

示例11: dd_fb_sidebar

    	<div class="promobox">
		<?php 
echo dd_fb_sidebar();
?>
 
        <?php 
echo dd_fb_related();
?>
        </div>
    </div><!-- /COL6 -->
    <div class="clearfix"></div>
</div>

<div class="footer">
    <p class="form-row">
    &copy; <?php 
echo date('Y');
?>
 Facebook Page Plugin - <a href="<?php 
echo osc_admin_render_plugin_url('fb_page_plugin/help.php');
?>
"><?php 
_e('Help', 'fb_page_plugin');
?>
</a> - <a href="http://forums.osclass.org/plugins/facebook-page-plugin/" target="_blank"><?php 
_e('Support', 'fb_page_plugin');
?>
</a> - <a href="http://www.drizzlethemes.com/">DrizzleThemes</a>.
    </p>
</div>
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:30,代码来源:help.php

示例12: osc_esc_html

          </select>
          <input type="submit" class="btn btn-mini" name="submit" value="<?php 
echo osc_esc_html(__('Donate', SEO_PLUGIN_FOLDER));
?>
">
        </p>
      </div>
    </form>
  </div>
</div>
<h2 class="render-title"><?php 
_e('Configure SEO Plugin', SEO_PLUGIN_FOLDER);
?>
</h2>
<form action="<?php 
echo osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'configure.php');
?>
" method="post" class="nocsrf">
<h3 class="render-title"><?php 
_e('Title Separator', SEO_PLUGIN_FOLDER);
?>
</h3>
<input type="hidden" name="seo_action" value="seo_configure" />
    <fieldset>
        <div class="form-horizontal">
			<div class="form-row">
                <div id="title_separators">
			  
				<?php 
$value = osc_get_preference('page_title_separator', 'seo_plugin') ? osc_get_preference('page_title_separator', 'seo_plugin') : '';
?>
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:configure.php

示例13: item_adManage_admin_menu

function item_adManage_admin_menu()
{
    echo '<h3><a href="#">Advanced Ad Management</a></h3><ul>';
    echo '<li class="" ><a href="' . osc_admin_render_plugin_url('advanced_ad_management/admin.php') . '" > &raquo; ' . __('Configure', 'adManage') . '</a></li>' . '<li class="" ><a href="' . osc_admin_render_plugin_url('advanced_ad_management/help.php') . '" >&raquo; ' . __('F.A.Q. / Help', 'adManage') . '</a></li>';
    echo '</ul>';
}
开发者ID:oanav,项目名称:closetshare,代码行数:6,代码来源:index.php

示例14: osc_plugin_get_info

<link href="admin.css" rel="stylesheet" type="text/css" />
<div class="plugin-page">
	<div class="col5">
		<?php 
$pluginInfo = osc_plugin_get_info('nm_copypaste_plugin/index.php');
?>
        <div class="form-container">
        <h2 class="render-title"><?php 
_e('Nomore Copy/Paste Settings', 'nm_copypaste_plugin');
?>
</h2>
        <form action="<?php 
echo osc_admin_render_plugin_url('nm_copypaste_plugin/admin/settings.php');
?>
" class="form-horizontal" method="post">
          <input type="hidden" name="nomoreoption" value="nomoresettings" />
          <fieldset>
          <div class="control-group">
            <label class="control-label"><strong><?php 
_e('Enter field id/class name to disable paste option', 'nm_copypaste_plugin');
?>
</strong></label>
            <div class="controls">
                <textarea rows="6" name="nm_id"><?php 
echo osc_esc_html(dd_nm_id());
?>
</textarea>
            </div>
            <span class="help"><?php 
_e('Add more id/class names by adding comma', 'nm_copypaste_plugin');
?>
开发者ID:krahamath,项目名称:nm_copypaste_plugin,代码行数:31,代码来源:settings.php

示例15: osc_esc_js

        });

        $("#dialog-stats").dialog({
            width: 550,
            height: 450,
            autoOpen: false,
            modal: true,
            title: "<?php 
        echo osc_esc_js(__("Import completed", "adimporter"));
        ?>
"
        });

        $("#close-dialog-progress").on("click", function(){
            window.location = '<?php 
        echo osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . "importer.php");
        ?>
';
        });

        parse_ad(0, '', '');
    });

    function parse_ad(num_ad, cat_info, meta_info) {
        $("#progress").text("<?php 
        echo osc_esc_js(__("Importing ad {NUM_AD} out of {TOTAL_ADS}", "adimporter"));
        ?>
".replace("{NUM_AD}", (num_ad+1)).replace("{TOTAL_ADS}", total_ads));
        $.getJSON(
        "<?php 
        echo osc_admin_base_url(true);
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:31,代码来源:importer.php


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