Skip to content

Instantly share code, notes, and snippets.

View imranhoshain's full-sized avatar
🎯
Focusing

Imran Hoshain imranhoshain

🎯
Focusing
View GitHub Profile
@imranhoshain
imranhoshain / form
Created November 10, 2016 06:24
New
<html>
<body>
<body bgcolor ="pink">
<center>
<h1> Mass Students Information </h1>
</center>
<form action ="save.php" method ="POST">
<br> <br>
<center>
<pre>
@imranhoshain
imranhoshain / sql
Created November 10, 2016 06:28
Database
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 09, 2016 at 05:06 PM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 09, 2016 at 05:06 PM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
<?php
// Catalog Page Ordering
// now we set our cookie if we need to
function dl_sort_by_page($count) {
if (isset($_COOKIE['shop_pageResults'])) { // if normal page load with cookie
$count = $_COOKIE['shop_pageResults'];
}
if (isset($_POST['woocommerce-sort-by-columns'])) { //if form submitted
setcookie('shop_pageResults', $_POST['woocommerce-sort-by-columns'], time()+1209600, '/', 'www.your-domain-goes-here.com', false); //this will fail if any part of page has been output- hope this works!
$count = $_POST['woocommerce-sort-by-columns'];
if(!function_exists('spy_get_page_id')) {
function spy_get_page_id() {
global $post;
$page = array(
'id' => 0,
'type' => 'page'
);
if(isset($post->ID) && is_singular('page')) {
if(!function_exists('spy_get_page_id')) {
function spy_get_page_id() {
global $post;
$page = array(
'id' => 0,
'type' => 'page'
);
if(isset($post->ID) && is_singular('page')) {
//Metabox
function marvel_cs_metabox_options($options)
{
$options = array(); // remove old options
//All page option meta
$options[] = array(
'id' => 'theme_page_meta',
'title' => 'Page Options',
<?php
namespace Marvel\Widgets;
use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Utils;
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
<?php
//Heading ShortCode
function marvel_team_shortcode($atts)
{
extract(shortcode_atts(array(
'id' => '',
'member_name' => '',
'member_position' => '',
'member_image' => '',
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /codeigniter/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>