Exemplo n.º 1
0
function rw_get_css_url($css)
{
    if (rw_starts_with($css, 'http')) {
        return $css;
    }
    if ((!WP_RW__LOCALHOST && !WP_RW__LOCALHOST_SCRIPTS || !WP_RW__DEBUG) && rw_ends_with($css, '.php')) {
        $css = substr($css, 0, strlen($css) - 3) . 'css';
    }
    return WP_RW__ADDRESS_CSS . $css . '?ck=' . rw_get_url_daily_cache_killer();
}
Exemplo n.º 2
0
 private function setup_on_dashboard()
 {
     RWLogger::LogEnterence('setup_on_dashboard');
     // Init settings.
     $this->settings = new RatingWidgetPlugin_Settings();
     $this->_inDashboard = isset($_GET['page']) && rw_starts_with($_GET['page'], $this->GetMenuSlug());
     if (!$this->fs->is_registered() && $this->_inDashboard && strtolower($_GET['page']) !== $this->GetMenuSlug()) {
         rw_admin_redirect();
     }
     $this->setup_dashboard_actions();
     return true;
 }
Exemplo n.º 3
0
 private function SetupOnDashboard()
 {
     if (RWLogger::IsOn()) {
         RWLogger::LogEnterence("SetupOnDashboard");
     }
     // Init settings.
     $this->settings = new RatingWidgetPlugin_Settings();
     $this->_inDashboard = isset($_GET['page']) && rw_starts_with($_GET['page'], $this->GetMenuSlug());
     if (!$this->_isRegistered && $this->_inDashboard && strtolower($_GET['page']) !== $this->GetMenuSlug()) {
         rw_admin_redirect();
     }
     $this->SetupDashboardActions();
     return true;
 }