Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get_page_content(FALSE)
#1
I need a function which returns whether the page has content or not. So i modified the function get_page_content() in this way

PHP Code:
function get_page_content($echo true) {
    global 
$content;
    
exec_action('content-top');
    
$content strip_decode($content);
    
$content exec_filter('content',$content);
    if(
getDef('GSCONTENTSTRIP',true)) $content strip_content($content);
    if (
$echo) {
        echo 
$content;
    } else {
        return 
$content;
    }
    
exec_action('content-bottom');

Can you include it in the core so that it can be called by get_page_content(FALSE)?

Thx

Alex
Reply


Messages In This Thread
get_page_content(FALSE) - by Alexander_ - 2019-10-23, 03:15:46
RE: get_page_content(FALSE) - by Felix - 2019-10-23, 23:15:15
RE: get_page_content(FALSE) - by Alexander_ - 2019-10-28, 01:30:34
RE: get_page_content(FALSE) - by lesh - 2019-10-28, 05:53:38



Users browsing this thread: 1 Guest(s)