Skip to content

Instantly share code, notes, and snippets.

@BHWD
BHWD / KLOXO 1
Created November 12, 2014 23:52
KLOXO DEV INSTALL
Using username "root".
Access denied
[email protected]'s password:
You are required to change your password immediately (root enforced)
Last login: Wed Nov 12 23:22:49 2014 from 90.195.226.80
Changing password for root
(current) UNIX password:
New UNIX password:
Retype new UNIX password:
Sorry, passwords do not match.
<!--<div class="col-md-2 col-sd-2 text-center">
<?php if(has_post_thumbnail()) :?>
<?php the_post_thumbnail('course-thumb', array('class' => 'thumbnail')); ?>
<?php else :?>
<img class="thumbnail" src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php bloginfo('template_directory');?>/img/no_image.jpg&h=200&w=300"/>
<?php endif;?>
</div>-->
<div class="dashboard-course-item col-md-6 col-sd-6">
<?php
//Prints Note field in front end and retieves exisintg note as placeholder
function nt_course_note_entry_field() {
global $post;
//ID's
$current_user = get_current_user_id();
$current_lesson_id = $post->ID;
$current_post_type = get_post_type();
<!-- CHAPTER/TOPIC PAGE -->
<aside id="widget_ldcoursenavigation-2" class="widget widget_ldcoursenavigation panel panel-default">
<div class="panel-body">
<h2 class="widget-title">Course Navigation</h2>
<div id="course_navigation">
// set the empty variable
var maxHeight = 0;
// get the height of the tallest element of your selector e.g. tallest slide
$(yourelemselector).each(function(){
var thisH = $(this).height();
if (thisH > maxHeight) { maxHeight = thisH; }
});
// set all of the elements with your selector to this tallest elements height e.g. eqalising the height of slides
<?php
add_action( 'admin_menu', 'dat_add_admin_menu' );
add_action( 'admin_init', 'dat_settings_init' );
function dat_add_admin_menu( ) {
add_submenu_page( 'edit.php?post_type=dat_cpt', 'Automatic Divi Testimonials', 'Settings', 'manage_options', 'automatic_divi_testimonials', 'dat_options_page' );
}
@BHWD
BHWD / status
Created September 24, 2016 20:35
[Admin Page Framework]
TEXT_DOMAIN: admin-page-framework
TEXT_DOMAIN_PATH: /language
VERSION: 3.8.4
NAME: Admin Page Framework
DESCRIPTION: Facilitates WordPress plugin and theme development.
URI: http://en.michaeluno.jp/admin-page-framework
AUTHOR: Michael Uno
AUTHOR_URI: http://en.michaeluno.jp/
COPYRIGHT: Copyright (c) 2013-2016, Michael Uno
<?php
class NoouDAT extends NoouDAT_AdminPageFramework {
/**
* Sets up pages.
<div class="testimonial-container">
<div class="testimonial-image">
<img src="[dat_testimonial_image_url]" class="testimonial-image">
</div>
<div class="testimonial-content">
[dat_testimonial_content]
</div>
<div class="testimonial-info">
[dat_testimonial_name]
</div>
<!-- Single Testimonial -->
<div class="single-testimonial">
<div class="testimonial-holder">
<div class="testimonial-content">[dat_testimonial_content]
<div class="testimonial-caret"><i class="fa fa-caret-down"></i></div>
</div>
<div class="row">
<div class="testimonial-user clearfix">
<div class="testimonial-user-image"><img src="[dat_testimonial_image_url]" alt=""></div>
<div class="testimonial-user-name">[dat_testimonial_name] <br><a href="#">View Profile</a></div>