<meta name="robots" content="noindex, nofollow">
/************* widget areas *************/
'widget-areas' => array(
'widget-area-left' => array(
'name' => __( 'Sidebar Left', 'fluida' ),
'before_widget' => '<section id="%1$s" class="widget-container %2$s">',
'after_widget' => '</section>',
'before_title' => '<h3 class="widget-title"><span>',
'after_title' => '</span></h3>',
),
function register_sidebar( $args = array() ) {
global $wp_registered_sidebars;
$i = count( $wp_registered_sidebars ) + 1;
$id_is_empty = empty( $args['id'] );
$defaults = array(
'name' => sprintf( __( 'Sidebar %d' ), $i ),
'id' => "sidebar-$i",
'description' => '',
'class' => '',
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => "</li>\n",
'before_title' => '<h2 class="widgettitle">',
'after_title' => "</h2>\n",
);
$sidebar = wp_parse_args( $args, $defaults );
if ( $id_is_empty ) {
/* translators: 1: the id argument, 2: sidebar name, 3: recommended id value */
_doing_it_wrong( __FUNCTION__, sprintf( __( 'No %1$s was set in the arguments array for the "%2$s" sidebar. Defaulting to "%3$s". Manually set the %1$s to "%3$s" to silence this notice and keep existing sidebar content.' ), '<code>id</code>', $sidebar['name'], $sidebar['id'] ), '4.2.0' );
}
$wp_registered_sidebars[ $sidebar['id'] ] = $sidebar;
add_theme_support( 'widgets' );
/**
* Fires once a sidebar has been registered.
*
* @since 3.0.0
*
* @param array $sidebar Parsed arguments for the registered sidebar.
*/
do_action( 'register_sidebar', $sidebar );
return $sidebar['id'];
}
$filelist = glob("*.html");
$filelistCount = count($filelist);
for ($i = 0; $i < $filelistCount; $i++) {
$string = file_get_contents($filelist[$i]);
$pattern = "/<\/head>/i";
$replacement = "success</head>";
$newString = preg_replace($pattern, $replacement, $string);
file_put_contents($newString, $filelist[$i]);
}
<?php
echo 'hjkbu';
var gulp = require('gulp'),
concatCSS = require('gulp-concat-css'),
bs = require('browser-sync'),
less = require('gulp-less');
const les = function() {
return gulp.src("src/less/*.less")
.pipe(less())
.pipe(gulp.dest("srs/css"))
.pipe(bs.stream());
}
const server = function() {
bs.init({
server: {
baseDir: "src/"
}
});
gulp.watch("src/less/*.less", les);
gulp.watch("src/*.html").on('change', bs.reload);
}
gulp.task(les);
gulp.task(server);
gulp.task(gulp.parallel([server, les]));