<?php

return [


    /*
    |--------------------------------------------------------------------------
    | Forum Routes
    |--------------------------------------------------------------------------
    |
    | Here you can specify the specific routes for the different sections of
    | your forum.
    |
    */

    'routes' => [
        'home' => 'forums',
        'discussion' => 'discussion',
        'category' => 'category',
        'register' => 'register',
        'login' => 'login'
    ],

    /*
    |--------------------------------------------------------------------------
    | Forum Titles
    |--------------------------------------------------------------------------
    |
    | These are some default titles (words) that will be used throughout your
    | forum. You can change these to whatever you would like :)
    |
    */

    'titles' => [
        'discussion' => 'Discussion',
        'category' => 'Category',
    ],

   /*
    |--------------------------------------------------------------------------
    | The main headline and description of your forum
    |--------------------------------------------------------------------------
    |
    | Your headline and your description will be shown on the homepage of your
    | forum, unless you change the default theme.
    |
    |   *headline*: This is the main headline on the forum homepage
    |
    |   *description*: This is the main description that will show under the
    |       headline on the forum homepage.
    |
    */
    
    'headline' => 'Welcome to Nobelium',
    'description' => 'Be nice.',

    /*
    |--------------------------------------------------------------------------
    | Header and Footer Yield Inserts for your master file
    |--------------------------------------------------------------------------
    |
    | Chatter needs to add css or javascript to the header and footer of your 
    | master layout file. You can choose what these will be called. FYI, 
    | chatter will only load resources when you hit a forum route.
    |
    | example:
    | Inside of your <head></head> tag of your master file, you'll need to
    | include @yield('css').
    |
    | Next, before the ending body </body>, you will need to include the footer
    | yeild like so @yield('js')
    |
    */

    'yields' => [
        'head' => 'css',
        'footer' => 'js'
    ],

    /*
    |--------------------------------------------------------------------------
    | The master layout file for your site
    |--------------------------------------------------------------------------
    |
    | By default laravels master file is the layouts.app file, but if your
    | master layout file is somewhere else, you can specify it below
    |
    */

    'master_file_extend' => 'layouts.app',

    /*
    |--------------------------------------------------------------------------
    | Information about the forum User
    |--------------------------------------------------------------------------
    |
    | Your forum needs to know specific information about your user in order
    | to confirm that they are logged in and to link to their profile.
    |
    |   *namespace*: This is the user namespace for your User Model.
    |
    |   *database_field_with_user_name*: This is the database field that 
    |       is used for the users 'Name', could be 'username', 'first_name'.
    |       This will appear next to the users avatar in disucssions
    |
    |   *relative_url_to_profile*: Users may want to click on another users 
    |       image to view their profile. If a users profile page is at 
    |       /profile/{username} you will add '/profile/{username}' or 
    |       if it is /profile/{id}, you will specify '/profile/{id}'
    |       Tip: leave this blank and no link will be generated
    |
    |   *relative_url_to_image_assets*: This is where your image assets are
    |       located. This will be used with the 'avatar_image_database_field'
    |       so if your image assets are located at '/uploads/images/' and
    |       the 'avatar_image_database_field' contains 'avatars/johndoe.jpg'
    |       the full image url will be '/uploads/images/avatar/johndoe.jpg'
    |       Tip: leave this blank if you have absolute url's for images
    |       stored in the database.
    |
    |   *avatar_image_database_field*: This is the database field that
    |       contains the logged in user avatar image. This field will
    |       be inside of the 'users' database table. Tip: leave this
    |       empty if you want to keep the default color circles with
    |       users first initial.
    |
    */

    'user' => [
        'namespace' => 'App\User',
        'database_field_with_user_name' => 'name',
        'relative_url_to_profile' => '/user/{id}',
        'relative_url_to_image_assets' => '',
        'avatar_image_database_field' => ''
    ],

    /*
    |--------------------------------------------------------------------------
    | Alert Message Titles
    |--------------------------------------------------------------------------
    |
    | When a user successfully adds a new discussion or they do something wrong
    | they will get an alert message. Based on the alert message there is a
    | specific title message for every alert, which are defined below.
    |
    */

    'alert_messages' => [
        'success' => 'Well done!',
        'info' => 'Heads Up!',
        'warning' => 'Wuh Oh!',
        'danger' => 'Oh Snap!'
    ],

    /*
    |--------------------------------------------------------------------------
    | A Few security measures to prevent spam on your forum
    |--------------------------------------------------------------------------
    |
    | Here are a few configurations that you can add to your forum to prevent
    | possible spammers or bots.
    |
    |   *limit_time_between_posts*: Stop user from being able to spam by making 
    |       them wait a specified time before being able to post again.
    |   
    |   *time_between_posts*: In minutes, the time a user must wait before
    |       being allowed to add more content. Only valid if above value is
    |       set to true.
    |
    */

    'security' => [
        'limit_time_between_posts' => true, // 
        'time_between_posts' => 1, // In minutes
    ],

    /*
    |--------------------------------------------------------------------------
    | TinyMCE WYSIWYG Editor
    |--------------------------------------------------------------------------
    |
    | Select which tools you want to appear in the tinymce editor toolbar.
    | Find out the available tools here: 
    | tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols
    |
    |   *toolbar*: The controls you want to appear in the toolbar
    |
    |   *plugins*: Sometimes in order to add a control to the toolbar you may
    |       need to specify to include the plugin for the control. You can
    |       learn more about this in the link above. If it is part of the
    |       'core' you do not need to include a plugin in order to use it
    |       in the toolbar.
    |
    */

    'tinymce' => [
        'toolbar' => 'bold italic underline | alignleft aligncenter alignright | bullist numlist outdent indent | link image',
        'plugins' => 'link, image'
    ],

    /*
    |--------------------------------------------------------------------------
    | Pagination Settings
    |--------------------------------------------------------------------------
    |
    | These are the pagination settings for your forum. Specify how many number
    | of results you want to show per page.
    |
    */

    'paginate' => [
        'num_of_results' => 10,
    ]

];