Skip to content

Instantly share code, notes, and snippets.

View salehahmadbabu's full-sized avatar

Saleh Ahmad salehahmadbabu

View GitHub Profile
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// METABOX OPTIONS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$options = array();
// -----------------------------------------
// Post Metabox Options -
<?php get_header(); ?>
<?php
while ( have_posts() ) : the_post();
// checks neuron work meta is empty or not
if (get_post_meta( get_the_ID(), 'neuron_work_meta', true )) {
$work_meta = get_post_meta( get_the_ID(), 'neuron_work_meta', true );
} else {
$work_meta = array();
}
<?php get_header(); ?>
<!-- ::::::::::::::::::::: Page Title Section:::::::::::::::::::::::::: -->
<section class="page-title">
<div class="container">
<div class="row">
<div class="col-md-12">
<!-- breadcrumb content -->
<div class="page-breadcrumbd">
<h2>News &amp; Press</h2>
<p><a href="<?php echo site_url(); ?>">Home</a> / Blog</p>
/* comments form
------------------------------*/
.comments-wrapper {
padding: 15px 40px;
border-top: 1px solid #ddd;
margin-top: 20px;
}
.comment-title h2 {
.comment-list {
margin: 0;
padding: 0;
list-style: none;
}
.comment-list li {
margin-bottom: 40px;
}
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// FRAMEWORK SETTINGS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$settings = array(
'menu_title' => 'Theme options',
'menu_type' => 'theme', // menu, submenu, options, theme, etc.
'menu_slug' => 'neuron-theme-options',
<?php
/*
Template Name: Homepage Template
*/
$home_content_title = cs_get_option('home_content_title');
$home_content_text = cs_get_option('home_content_text');
// $home_content_image = cs_get_option('home_content_image');
$home_content_image_array = wp_get_attachment_image_src( cs_get_option('home_content_image'), 'large' );
<?php
/*
Template Name: About Template
*/
$enable_about_promo = cs_get_option('enable_about_promo');
$enable_about_content = cs_get_option('enable_about_content');
$about_content_title = cs_get_option('about_content_title');
$about_content_text = cs_get_option('about_content_text');
// $about_content_image = cs_get_option('about_content_image');
<?php
/*
Template Name: About Template
*/
$enable_about_promo = cs_get_option('enable_about_promo');
$enable_about_content = cs_get_option('enable_about_content');
$about_content_title = cs_get_option('about_content_title');
$about_content_text = cs_get_option('about_content_text');
// $about_content_image = cs_get_option('about_content_image');