wp/wp-content/plugins/include-mastodon-feed/config-example.php
changeset 21 48c4eec2b7e6
child 23 417f20492bf7
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
       
     1 <?php
       
     2 
       
     3     /*
       
     4      * NOTE
       
     5      * 
       
     6      * None, any, or all constants can be defined in the
       
     7      * wp-config.php file to override default settings
       
     8      * 
       
     9      * default settings apply if file does not exist
       
    10      */
       
    11 
       
    12     /*
       
    13      *  DEFAULT SETTINGS
       
    14      */
       
    15 
       
    16     // enable/discable JavaScript console debug output
       
    17     define('INCLUDE_MASTODON_FEED_DEBUG', false);
       
    18 
       
    19     // set a default instance
       
    20     // can still be overriden in shortcode
       
    21     // plugin will show a warning if no default is set and instance is omitted in shortcode
       
    22     //define('INCLUDE_MASTODON_FEED_DEFAULT_INSTANCE', 'example.org');
       
    23 
       
    24     // Maximum number of statuses
       
    25     define('INCLUDE_MASTODON_FEED_LIMIT', 20);
       
    26 
       
    27     // exclude boosts from statuses
       
    28     define('INCLUDE_MASTODON_FEED_EXCLUDE_BOOSTS', false);
       
    29 
       
    30     // exclude replies to other accounts from statuses
       
    31     define('INCLUDE_MASTODON_FEED_EXCLUDE_REPLIES', false);
       
    32 
       
    33     // exclude statuses that start with a user mention
       
    34     define('INCLUDE_MASTODON_FEED_EXCLUDE_CONVERSATIONSTARTERS', false);
       
    35 
       
    36     // show only pinned statuses
       
    37     define('INCLUDE_MASTODON_FEED_ONLY_PINNED', false);
       
    38 
       
    39     // show only statuses containing media
       
    40     define('INCLUDE_MASTODON_FEED_ONLY_MEDIA', false);
       
    41 
       
    42     // preserve image aspect ratio
       
    43     // can be overridden in shortcode
       
    44     define('INCLUDE_MASTODON_FEED_PRESERVE_IMAGE_ASPECT_RATIO', true);
       
    45 
       
    46     // only tagged statuses
       
    47     // tag name without leading #, case insensitive
       
    48     define('INCLUDE_MASTODON_FEED_TAGGED', 'tagname');
       
    49 
       
    50     // target for all links (e.g. new tab "_blank")
       
    51     define('INCLUDE_MASTODON_FEED_LINKTARGET', '_self');
       
    52 
       
    53     // show / hide preview cards
       
    54     define('INCLUDE_MASTODON_FEED_SHOW_PREVIEWCARDS', true);
       
    55 
       
    56     /*
       
    57      *  DEFAULT STYLES
       
    58      */
       
    59 
       
    60     // enable dark mode
       
    61     define('INCLUDE_MASTODON_FEED_DARKMODE', false);
       
    62 
       
    63     // define background color in light mode
       
    64     // (light mode default)
       
    65     define('INCLUDE_MASTODON_FEED_STYLE_BG_LIGHT_COLOR', 'rgba(100, 100, 100, 0.15)');
       
    66 
       
    67     // define background color in dark mode
       
    68     // (dark mode can be set in shortcode)
       
    69     define('INCLUDE_MASTODON_FEED_STYLE_BG_DARK_COLOR', 'rgba(155, 155, 155, 0.15)');
       
    70 
       
    71     // main accent color
       
    72     // (highlighting - button backgrounds and link colors)
       
    73     define('INCLUDE_MASTODON_FEED_STYLE_ACCENT_COLOR', 'rgb(99, 100, 255)');
       
    74 
       
    75     // font color to use with accent color background
       
    76     define('INCLUDE_MASTODON_FEED_STYLE_ACCENT_FONT_COLOR', 'rgb(255, 255, 255)');
       
    77 
       
    78     // general border radius on elements
       
    79     define('INCLUDE_MASTODON_FEED_STYLE_BORDER_RADIUS', '0.25rem',);
       
    80 
       
    81     // hide status meta information (automatically also hides date and time)
       
    82     define('INCLUDE_MASTODON_FEED_HIDE_STATUS_META', true);
       
    83 
       
    84     // hide date and time from status meta information
       
    85     define('INCLUDE_MASTODON_FEED_HIDE_DATETIME', true);
       
    86 
       
    87 
       
    88 
       
    89     /*
       
    90      *  DEFAULT TEXTS AND LOCALIZATION
       
    91      */
       
    92 
       
    93     // default loading text
       
    94     // can be overridden in shortcode
       
    95     define('INCLUDE_MASTODON_FEED_TEXT_LOADING', 'Loading Mastodon feed...',);
       
    96 
       
    97     // default text when no statuses are available
       
    98     // can be overridden in shortcode
       
    99     define('INCLUDE_MASTODON_FEED_TEXT_NO_STATUSES', 'No statuses available',);
       
   100 
       
   101     // default "boosted" indicator
       
   102     // can be overridden in shortcode
       
   103     define('INCLUDE_MASTODON_FEED_TEXT_BOOSTED', 'boosted 🚀',);
       
   104 
       
   105     // default view status on instance link text
       
   106     // can be overridden in shortcode
       
   107     define('INCLUDE_MASTODON_FEED_TEXT_VIEW_ON_INSTANCE', 'view on instance',);
       
   108 
       
   109     // default text for content warning buttons
       
   110     // can be overridden in shortcode
       
   111     define('INCLUDE_MASTODON_FEED_TEXT_SHOW_CONTENT', 'Show content');
       
   112     
       
   113     // default text in front of post permalink (date & time)
       
   114     // can be overridden in shortcode
       
   115     define('INCLUDE_MASTODON_FEED_TEXT_PERMALINK_PRE', 'on');
       
   116 
       
   117     // default text after post permalink (date & time)
       
   118     // can be overridden in shortcode
       
   119     // empty by default
       
   120     define('INCLUDE_MASTODON_FEED_TEXT_PERMALINK_POST', '');
       
   121 
       
   122     // default text indicating edited posts
       
   123     // can be overridden in shortcode
       
   124     define('INCLUDE_MASTODON_FEED_TEXT_EDITED', '(edited)');
       
   125 
       
   126     // locale for date string, used in toLocaleString()
       
   127     // see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
       
   128     // can be overridden in shortcode
       
   129     define('INCLUDE_MASTODON_FEED_DATE_LOCALE', 'en-US');
       
   130 
       
   131     // format options directly fed into toLocaleString()
       
   132     // see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
       
   133     // can be overridden in shortcode
       
   134     define('INCLUDE_MASTODON_FEED_DATE_OPTIONS', '{}');