Exemple #1
0
 function ll_popup_content()
 {
     require_once plugin_dir_path(__FILE__) . 'linkpopup.php';
     link_library_popup_content($this);
 }
 function ll_template_redirect($template)
 {
     if (!empty($_POST['link_library_user_link_submission'])) {
         require_once plugin_dir_path(__FILE__) . 'usersubmission.php';
         link_library_process_user_submission($this);
         return '';
     } else {
         if (!empty($_GET['link_library_rss_feed'])) {
             require_once plugin_dir_path(__FILE__) . 'rssfeed.php';
             link_library_generate_rss_feed();
             return '';
         } else {
             if (!empty($_GET['link_library_popup_content'])) {
                 require_once plugin_dir_path(__FILE__) . 'linkpopup.php';
                 link_library_popup_content($this);
                 return '';
             } else {
                 if (!empty($_GET['link_library_rss_preview'])) {
                     require_once plugin_dir_path(__FILE__) . 'rsspreview.php';
                     link_library_generate_rss_preview($this);
                     return '';
                 } else {
                     return $template;
                 }
             }
         }
     }
 }