2017 © Pedro Peláez
 

wordpress-plugin logo-controller

Wordpress plugin to add new option for the theme customizer allowing the user to change th logo in website and the login page

image

hyyan/logo-controller

Wordpress plugin to add new option for the theme customizer allowing the user to change th logo in website and the login page

  • Monday, March 16, 2015
  • by hyyan
  • Repository
  • 1 Watchers
  • 1 Stars
  • 72 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Wordpress Logo Controller

project status Latest Stable Version Total Downloads License, (*1)

Wordpress plugin to add new section for the customizer to allow the user to change the logo for website and login page., (*2)

ScreenShot, (*3)

How to install

Classical way

  1. Download the plugin as zip archive and then upload it to your wordpress plugins folder and extract it there.
  2. Activate the plugin from your admin panel

Composer way

  1. run composer command : composer require hyyan/logo-controller

How to use

Plugin configutaion

The plugin comes with following configuration as default :, (*4)

$default = array(
    // path for default logo 
    'default' => '/logo.png',
    //the logo url (default to home page)
    'url' => home_url('/'),
    // the logo desciption default to (get_bloginfo('name', 'display')) 
    'description' => get_bloginfo('name', 'display'),
    // enable logo display on the login page
    'enable-on-login-page' => true,
);

You can override the default configuration using add_filter function like in the following example :, (*5)

// in the your theme's functions.php file

add_filter('Hyyan\LogoController.options', function(array $default) {

    $default['default'] = '/my-logo.png';
    $default['enable-on-login-page'] = false;

    return $default;
});

Display the logo in your theme

The plugin does not make any assumption about the place of your logo so you have to add it manually , probably in your header.php template., (*6)

<?php 

 // in you theme template use the following functions to get the logo

// print : http://example.com/path/to/logo.png 
 echo hyyan_get_the_logo(); 

// print : <img src="http://example.com/path/to/logo.png" alt="Website Title">    
 hyyan_the_logo(); 

Contributing

Everyone is welcome to help contribute and improve this plugin. There are several ways you can contribute:, (*7)

  • Reporting issues (please read issue guidelines)
  • Suggesting new features
  • Writing or refactoring code
  • Fixing issues

The Versions

16/03 2015

dev-master

9999999-dev

Wordpress plugin to add new option for the theme customizer allowing the user to change th logo in website and the login page

  Sources   Download

MIT

The Requires

 

wordpress wordpress plugin bedrock logo hyyan wordpress admin wordpress muplugin login logo wordpress theme customizer

16/03 2015

1.0

1.0.0.0

Wordpress plugin to add new option for the theme customizer allowing the user to change th logo in website and the login page

  Sources   Download

MIT

The Requires

 

wordpress wordpress plugin bedrock logo hyyan wordpress admin wordpress muplugin login logo wordpress theme customizer

14/10 2014

0.2.1

0.2.1.0

Wordpress plugin to add new option for the theme customizer allowing the user to change th logo in website and the login page

  Sources   Download

MIT

The Requires

 

wordpress wordpress plugin bedrock logo hyyan wordpress admin wordpress muplugin login logo wordpress theme customizer

10/10 2014

0.2

0.2.0.0

Wordpress plugin to add new option for the theme customizer allowing the user to change th logo in website and the login page

  Sources   Download

MIT

The Requires

 

wordpress wordpress plugin bedrock logo hyyan wordpress admin wordpress muplugin login logo wordpress theme customizer

10/10 2014

0.1

0.1.0.0

Wordpress plugin to add new option for the theme customizer allowing the user to change th logo in website and the login page

  Sources   Download

MIT

The Requires

 

wordpress wordpress plugin bedrock logo hyyan wordpress admin wordpress muplugin login logo wordpress theme customizer