Skip to content

Instantly share code, notes, and snippets.

View WPArena's full-sized avatar

Jazib WPArena

View GitHub Profile
class GitHub_Login_Widget extends WP_Widget
{
public function __construct()
{
parent::__construct( "Github_login_widget", "GitHub Login", array( "description" => __("Display a GitHub Login Button" ) ) );
}
public function form( $instance ) {
if ( $instance ) {
@WPArena
WPArena / package.php
Created April 29, 2017 07:52 — forked from neilgee/package.php
Using Responsive Tabs and ACF repeater fields
<?php
add_action( 'genesis_entry_content', 'themeprefix_color_content' );
// ACF Values
// themeprefix_colors Main Repeater Field
// themeprefix_color sub-field - list of color values in a single radio button field
// Other Sub fields
// themeprefix_session
@WPArena
WPArena / horiz-subs.css
Created April 29, 2017 07:51 — forked from neilgee/horiz-subs.css
Genesis SubMenu Horizontal
/* SubMenu > Sub Menu Vertical*/
.genesis-nav-menu .sub-menu .menu-item:hover > .sub-menu {
left: auto;
right: initial;
margin: initial;
}
.menu .sub-menu .menu-item > a:focus + ul.sub-menu,
@WPArena
WPArena / reddit_button.php
Created March 6, 2017 07:44
A Detailed Guide on Adding a Reddit Button To Your WordPress Site https://wp.me/p6prCM-4uk
<?php
require_once("inc/redditoauth.php");
class Reddit_Login_Widget extends WP_Widget
{
public function __construct()
{
parent::__construct("Reddit_login_widget", "Reddit Login", array("description" => __("Display a Reddit Login Button")));
}
@WPArena
WPArena / custom-login.php
Last active February 15, 2017 04:28
How to Create a new Login Page for WordPress Powered WebSite https://wp.me/p6prCM-2Mq
<?php
/*
Template Name: Custom WordPress Login
*/
global $user_ID;
if (!$user_ID) {
if($_POST){
//We shall SQL escape all inputs