wp/wp-content/plugins/include-mastodon-feed/config-example.php
author ymh <ymh.work@gmail.com>
Mon, 08 Sep 2025 19:44:41 +0200
changeset 23 417f20492bf7
parent 21 48c4eec2b7e6
permissions -rw-r--r--
Update Docker configuration and plugin versions - Upgrade MariaDB from 10.6 to 11 with auto-upgrade support - Add WordPress debug environment variable to FPM container - Update PHP-FPM Dockerfile base image - Update Include Mastodon Feed plugin with bug fixes and improvements - Update Portfolio plugin (v2.58) with latest translations and demo data enhancements - Remove old README.md from Mastodon Feed plugin 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>

<?php

    /*
     * NOTE
     * 
     * None, any, or all constants can be defined in the
     * wp-config.php file to override default settings
     * 
     * default settings apply if file does not exist
     */

    /*
     *  DEFAULT SETTINGS
     */

    // enable/discable JavaScript console debug output
    define('INCLUDE_MASTODON_FEED_DEBUG', false);

    // set a default instance
    // can still be overriden in shortcode
    // plugin will show a warning if no default is set and instance is omitted in shortcode
    define('INCLUDE_MASTODON_FEED_DEFAULT_INSTANCE', 'example.org');

    // Maximum number of statuses
    define('INCLUDE_MASTODON_FEED_LIMIT', 20);

    // exclude boosts from statuses
    define('INCLUDE_MASTODON_FEED_EXCLUDE_BOOSTS', false);

    // exclude replies to other accounts from statuses
    define('INCLUDE_MASTODON_FEED_EXCLUDE_REPLIES', false);

    // exclude statuses that start with a user mention
    define('INCLUDE_MASTODON_FEED_EXCLUDE_CONVERSATIONSTARTERS', false);

    // show only pinned statuses
    define('INCLUDE_MASTODON_FEED_ONLY_PINNED', false);

    // show only statuses containing media
    define('INCLUDE_MASTODON_FEED_ONLY_MEDIA', false);

    // preserve image aspect ratio
    // can be overridden in shortcode
    define('INCLUDE_MASTODON_FEED_PRESERVE_IMAGE_ASPECT_RATIO', true);

    // load small sized preview images or full size high quality images
    define( 'INCLUDE_MASTODON_FEED_IMAGE_SIZE', 'preview' );

    // link image to status or image
    define( 'INCLUDE_MASTODON_FEED_IMAGE_LINK', 'status' );

    // only tagged statuses
    // tag name without leading #, case insensitive
    define('INCLUDE_MASTODON_FEED_TAGGED', 'tagname');

    // target for all links (e.g. new tab "_blank")
    define('INCLUDE_MASTODON_FEED_LINKTARGET', '_self');

    // show / hide preview cards
    define('INCLUDE_MASTODON_FEED_SHOW_PREVIEWCARDS', true);

    /*
     *  DEFAULT STYLES
     */

    // enable dark mode
    define('INCLUDE_MASTODON_FEED_DARKMODE', false);

    // define background color in light mode
    // (light mode default)
    define('INCLUDE_MASTODON_FEED_STYLE_BG_LIGHT_COLOR', 'rgba(100, 100, 100, 0.15)');

    // define background color in dark mode
    // (dark mode can be set in shortcode)
    define('INCLUDE_MASTODON_FEED_STYLE_BG_DARK_COLOR', 'rgba(155, 155, 155, 0.15)');

    // main accent color
    // (highlighting - button backgrounds and link colors)
    define('INCLUDE_MASTODON_FEED_STYLE_ACCENT_COLOR', 'rgb(99, 100, 255)');

    // font color to use with accent color background
    define('INCLUDE_MASTODON_FEED_STYLE_ACCENT_FONT_COLOR', 'rgb(255, 255, 255)');

    // general border radius on elements
    define('INCLUDE_MASTODON_FEED_STYLE_BORDER_RADIUS', '0.25rem',);

    // hide status meta information (automatically also hides date and time)
    define('INCLUDE_MASTODON_FEED_HIDE_STATUS_META', true);

    // hide date and time from status meta information
    define('INCLUDE_MASTODON_FEED_HIDE_DATETIME', true);



    /*
     *  DEFAULT TEXTS AND LOCALIZATION
     */

    // default loading text
    // can be overridden in shortcode
    define('INCLUDE_MASTODON_FEED_TEXT_LOADING', 'Loading Mastodon feed...',);

    // default text when no statuses are available
    // can be overridden in shortcode
    define('INCLUDE_MASTODON_FEED_TEXT_NO_STATUSES', 'No statuses available',);

    // default "boosted" indicator
    // can be overridden in shortcode
    define('INCLUDE_MASTODON_FEED_TEXT_BOOSTED', 'boosted 🚀',);

    // default view status on instance link text
    // can be overridden in shortcode
    define('INCLUDE_MASTODON_FEED_TEXT_VIEW_ON_INSTANCE', 'view on instance',);

    // default text for content warning buttons
    // can be overridden in shortcode
    define('INCLUDE_MASTODON_FEED_TEXT_SHOW_CONTENT', 'Show content');
    
    // default text in front of post permalink (date & time)
    // can be overridden in shortcode
    define('INCLUDE_MASTODON_FEED_TEXT_PERMALINK_PRE', 'on');

    // default text after post permalink (date & time)
    // can be overridden in shortcode
    // empty by default
    define('INCLUDE_MASTODON_FEED_TEXT_PERMALINK_POST', '');

    // default text indicating edited posts
    // can be overridden in shortcode
    define('INCLUDE_MASTODON_FEED_TEXT_EDITED', '(edited)');

    // locale for date string, used in toLocaleString()
    // see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
    // can be overridden in shortcode
    define('INCLUDE_MASTODON_FEED_DATE_LOCALE', 'en-US');

    // format options directly fed into toLocaleString()
    // see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
    // can be overridden in shortcode
    define('INCLUDE_MASTODON_FEED_DATE_OPTIONS', '{}');