Skip to content

Instantly share code, notes, and snippets.

View ssbalakumar's full-sized avatar
💭
I may be slow to respond.

Bala Kumar Sankarapandian ssbalakumar

💭
I may be slow to respond.
  • Wipro
  • Bengaluru, Karnataka, India
View GitHub Profile
@ssbalakumar
ssbalakumar / header-navigation-menu.markdown
Created October 7, 2017 21:31
Header Navigation Menu
@ssbalakumar
ssbalakumar / micromodal.css
Created October 2, 2017 19:42 — forked from ghosh/micromodal.css
Demo modal styles for micromodal.js and corresponding expected html
/**************************\
Basic Modal Styles
\**************************/
.modal {
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}
.modal__overlay {
position: fixed;
<?php
/*Custom functions*/
// Logo
if ( ! function_exists( 'tekardia_get_logo' ) ) {
function tekardia_get_logo() {
global $tekardia_config;
$original_logo = $retina_logo = $width = $height = null;
<?php
/**
* WP Bootstrap Navwalker
*
* @package WP-Bootstrap-Navwalker
*/
/**
* Class Name: WP_Bootstrap_Navwalker
* Plugin Name: WP Bootstrap Navwalker
.wpmm-menu .mm-listview > li > .dropdown-toggle {
display: block !important
}
.wpmm-menu .mm-listview > li > .dropdown-toggle .caret {
display:none
}
------Conn String
<connectionStrings>
<add name="DBConnection" connectionString="Data Source=balan-pc;Initial Catalog=Tekardia;Persist Security Info=True;User ID=sa;Password=sqlserver" providerName="System.Data.SqlClient" />
</connectionStrings>
--SQL
use Tekardia
-- Table Department
create table tblDepartment (
use Tekardia
-- Table Department
create table tblDepartment (
intDeptId int primary key identity(1,1),
varDeptName varchar(40)
)
go
alter procedure spdept
as
// Pagination for paged posts, Page 1, Page 2, Page 3, with Next and Previous Links, No plugin
function thunderwp_pagination()
{
global $wp_query;
$big = 999999999;
$pages = paginate_links(array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?page=%#%',
'current' => max(1, get_query_var('paged')),
@ssbalakumar
ssbalakumar / Recent Posts WP
Last active April 22, 2017 08:16
Recent Posts WP
<div class="row">
<h3>Recent Posts</h3>
</div>
<div class="row recent-post-style">
<ul>
<?php
$args = array( 'numberposts' => '5' );
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ) {
echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"].'</a> </li> ';
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Shortcode attributes
* @var $atts
* @var $el_class
* @var $full_width
* @var $full_height