12, 'columns' => 3, 'post_type' => 'post', 'show_image' => 1, 'show_excerpt' => 1, 'show_date' => 1, 'show_term' => 1, 'excerpt_words' => 22, 'allow_term' => 1, // "Hide everything from " 'show_hint' => 1, 'stats' => 1, 'accent' => '#3346d3', 'radius' => 12, 'label_dismiss' => '', // empty = translated default 'label_hint' => '', 'label_more' => '', ); } function swapfeed_settings() { static $s = null; if ( null === $s ) { $s = wp_parse_args( (array) get_option( 'swapfeed_settings', array() ), swapfeed_default_settings() ); } return $s; } /** Labels with translated defaults. */ function swapfeed_labels() { $s = swapfeed_settings(); return array( 'dismiss' => $s['label_dismiss'] !== '' ? $s['label_dismiss'] : __( 'Not for me', 'swapfeed' ), 'hint' => $s['label_hint'] !== '' ? $s['label_hint'] : __( 'Not interested in something? Dismiss it and another post takes its place.', 'swapfeed' ), 'more' => $s['label_more'] !== '' ? $s['label_more'] : __( 'Load more', 'swapfeed' ), 'hidden' => __( 'Post hidden.', 'swapfeed' ), 'undo' => __( 'Undo', 'swapfeed' ), /* translators: %s: category name */ 'hideTerm' => __( 'Hide everything from “%s”', 'swapfeed' ), /* translators: %s: category name */ 'termGone' => __( '“%s” is hidden.', 'swapfeed' ), /* translators: %d: number of hidden items */ 'restore' => __( 'Show hidden (%d)', 'swapfeed' ), 'restored' => __( 'All hidden posts are visible again.', 'swapfeed' ), 'end' => __( "That's everything — you've seen or hidden all posts.", 'swapfeed' ), 'all' => __( 'All', 'swapfeed' ), 'hideTitle' => __( 'Hide this post', 'swapfeed' ), ); }