Skip to:
Content

BuddyPress.org

Changeset 10475


Ignore:
Timestamp:
01/27/2016 08:56:27 PM (4 years ago)
Author:
djpaul
Message:

Emails: add Customizer integration.

This integration allows appearance changes to be easily made to emails, and previewed. For example, font size, background and font colors, and more.

A new submenu has been added under wp-admin's "Appearance" menu that takes the current priviledged user directly to the Customizer preview for a randomly-selected email.

See #6592. Props timersys, mercime, boonebgorges, hnla, DJPaul.

Location:
trunk/src
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-admin.php

    r10474 r10475  
    936936                'dependencies' => array(),
    937937            ),
     938
     939            // 2.5
     940            'bp-customizer-controls' => array(
     941                'file'         => "{$url}customizer-controls{$min}.css",
     942                'dependencies' => array(),
     943            ),
    938944        ) );
    939945
     
    968974         */
    969975        $scripts = apply_filters( 'bp_core_admin_register_scripts', array(
     976            // 2.5
     977            'bp-customizer-controls' => array(
     978                'file'         => "{$url}customizer-controls{$min}.js",
     979                'dependencies' => array( 'jquery' ),
     980                'footer'       => true,
     981            ),
    970982        ) );
    971 
    972983
    973984        $version = bp_get_version();
  • trunk/src/bp-loader.php

    r10474 r10475  
    472472
    473473        // Require all of the BuddyPress core libraries
    474         require( $this->plugin_dir . 'bp-core/bp-core-dependency.php'  );
    475         require( $this->plugin_dir . 'bp-core/bp-core-actions.php'     );
    476         require( $this->plugin_dir . 'bp-core/bp-core-caps.php'        );
    477         require( $this->plugin_dir . 'bp-core/bp-core-cache.php'       );
    478         require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'       );
    479         require( $this->plugin_dir . 'bp-core/bp-core-update.php'      );
    480         require( $this->plugin_dir . 'bp-core/bp-core-options.php'     );
    481         require( $this->plugin_dir . 'bp-core/bp-core-classes.php'     );
    482         require( $this->plugin_dir . 'bp-core/bp-core-taxonomy.php'    );
    483         require( $this->plugin_dir . 'bp-core/bp-core-filters.php'     );
    484         require( $this->plugin_dir . 'bp-core/bp-core-attachments.php' );
    485         require( $this->plugin_dir . 'bp-core/bp-core-avatars.php'     );
    486         require( $this->plugin_dir . 'bp-core/bp-core-widgets.php'     );
    487         require( $this->plugin_dir . 'bp-core/bp-core-template.php'    );
    488         require( $this->plugin_dir . 'bp-core/bp-core-adminbar.php'    );
    489         require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php'    );
    490         require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php'    );
    491         require( $this->plugin_dir . 'bp-core/bp-core-component.php'   );
    492         require( $this->plugin_dir . 'bp-core/bp-core-functions.php'   );
    493         require( $this->plugin_dir . 'bp-core/bp-core-moderation.php'  );
    494         require( $this->plugin_dir . 'bp-core/bp-core-loader.php'      );
     474        require( $this->plugin_dir . 'bp-core/bp-core-dependency.php'       );
     475        require( $this->plugin_dir . 'bp-core/bp-core-actions.php'          );
     476        require( $this->plugin_dir . 'bp-core/bp-core-caps.php'             );
     477        require( $this->plugin_dir . 'bp-core/bp-core-cache.php'            );
     478        require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'            );
     479        require( $this->plugin_dir . 'bp-core/bp-core-update.php'           );
     480        require( $this->plugin_dir . 'bp-core/bp-core-options.php'          );
     481        require( $this->plugin_dir . 'bp-core/bp-core-classes.php'          );
     482        require( $this->plugin_dir . 'bp-core/bp-core-taxonomy.php'         );
     483        require( $this->plugin_dir . 'bp-core/bp-core-filters.php'          );
     484        require( $this->plugin_dir . 'bp-core/bp-core-attachments.php'      );
     485        require( $this->plugin_dir . 'bp-core/bp-core-avatars.php'          );
     486        require( $this->plugin_dir . 'bp-core/bp-core-widgets.php'          );
     487        require( $this->plugin_dir . 'bp-core/bp-core-template.php'         );
     488        require( $this->plugin_dir . 'bp-core/bp-core-adminbar.php'         );
     489        require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php'         );
     490        require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php'         );
     491        require( $this->plugin_dir . 'bp-core/bp-core-component.php'        );
     492        require( $this->plugin_dir . 'bp-core/bp-core-functions.php'        );
     493        require( $this->plugin_dir . 'bp-core/bp-core-moderation.php'       );
     494        require( $this->plugin_dir . 'bp-core/bp-core-loader.php'           );
     495        require( $this->plugin_dir . 'bp-core/bp-core-customizer-email.php' );
    495496
    496497        // Skip or load deprecated content
Note: See TracChangeset for help on using the changeset viewer.