private function suppressPostFromHomePage($post)
    {
        $categoriesToSuppress = Config::get('lasallecmsfrontend.frontend_suppress_categories_on_home_page');

        if (empty($categoriesToSuppress)) return false;

        // find the categories associated with the post
        $categories     = $this->repository->findCategoryForPostById($post->id);

        foreach ($categories as $category)
        {
            $categoryName = $this->repository->getCategoryTitleById($category->category_id);

            if (in_array($categoryName, $categoriesToSuppress)) return true;
        }

        return false;
    }
private function suppressPostFromHomePage($post)
    {
        $categoriesToSuppress = Config::get('lasallecmsfrontend.frontend_suppress_categories_on_home_page');

        if (empty($categoriesToSuppress)) return false;

        // find the categories associated with the post
        $categories     = $this->repository->findCategoryForPostById($post->id);

        foreach ($categories as $category)
        {
            $categoryName = $this->repository->getCategoryTitleById($category->category_id);

            if (in_array($categoryName, $categoriesToSuppress)) return true;
        }

        return false;
    }
private function suppressPostFromHomePage ( $ post ) { $ categoriesToSuppress = Config :: get ( 'lasallecmsfrontend.frontend_suppress_categories_on_home_page' ) ; if ( empty ( $ categoriesToSuppress ) ) return false ; // find the categories associated with the post $ categories = $ this -> repository -> findCategoryForPostById ( $ post -> id ) ; foreach ( $ categories as $ category ) { $ categoryName = $ this -> repository -> getCategoryTitleById ( $ category -> category_id ) ; if ( in_array ( $ categoryName , $ categoriesToSuppress ) ) return true ; } return false ; }
Should this post be suppressed on the home, based on the categories
the post is associated?

@param   $post
@return  bool
Should this post be suppressed on the home based on the categories the post is associated?