-
Open Ampps Application -> MySQL Tab -> Configuration.
-
In [mysqld] section, add the following line:
innodb_force_recovery = 1
-
Save the file and try starting MySQL
-
Remove that line which you just added and Save.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Visual Composer DropDown Item Example in Right Way | |
* Dropdown attribute with default value in WPBakery Visual Composer | |
* | |
* @package VC_Dropdown | |
* @author Mahfuz <asrmahfuz8@gmail.com> | |
*/ | |
vc_map(array( | |
"name" => __( "VC Dropdown", 'textdomain' ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Shortcode Documentation | |
======================= | |
=> Bootstrap 4 Component | |
=> Github Documentation | |
=> Gist Link: https://goo.gl/vuhT4r | |
TOC: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function stock_service_box_shortcode($atts, $content = null){ | |
extract( shortcode_atts( array( | |
'title' => '', | |
'desc' => '', | |
'type' => 1, | |
'link_to_page' => '', | |
'external_link' => '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$frozen_body_font_get = cs_get_option('frozen_body_font'); | |
$frozen_heading_font_get = cs_get_option('frozen_headding_font'); | |
function frozen_crazycafe_body_gf_url() { | |
$font_url = ''; | |
$frozen_body_font_get = cs_get_option('frozen_body_font'); | |
if(array_key_exists('family', $frozen_body_font_get)) { | |
$frozen_body_font_get_family = $frozen_body_font_get['family']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly. | |
function stock_humayunbd_theme_shortcode_options($options){ | |
$options = array(); // remove shortcode old options | |
} | |
add_filter('cs_shortcode_options', 'stock_humayunbd_theme_shortcode_options'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function post_list_shortcode($atts){ | |
extract( shortcode_atts( array( | |
'count' => '', | |
), $atts) ); | |
$q = new WP_Query( | |
array('posts_per_page' => $count, 'post_type' => 'posttype', 'orderby' => 'menu_order','order' => 'ASC') | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Stock Toolkit | |
Plugin URI: http://humayunbd.com | |
Description: Theme shortcode and visual composer addons here. | |
Version: 1.2 | |
Author: Humayun Ahemed | |
Author URI: http://humayunbd.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Visual Composer Blocks Load | |
if(!defined('ABSPATH')) die('-1'); | |
// Class started | |
class stockVCExtendAddonClass{ | |
function __construct() { | |
//We safely integrate with VC with this hook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly. | |
function stock_theme_page_metabox($options){ | |
$options = array(); // remove old options | |
// ----------------------------------------- | |
// Slide Options - | |
// ----------------------------------------- |