little fixes
This commit is contained in:
parent
0831315217
commit
36973a515b
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
include "php/wordpress/constants.php";
|
||||||
include "php/wordpress/actions.php";
|
include "php/wordpress/actions.php";
|
||||||
include "php/wordpress/filters.php";
|
include "php/wordpress/filters.php";
|
||||||
include "php/wordpress/styles.php";
|
include "php/wordpress/styles.php";
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import gulp from 'gulp';
|
|||||||
import pathConfig from '../paths.js';
|
import pathConfig from '../paths.js';
|
||||||
|
|
||||||
const fontsBuild = () => {
|
const fontsBuild = () => {
|
||||||
return gulp.src(`${pathConfig.src.fonts}/**/*.{ttf, woff, woff2, svg, eot}`)
|
return gulp.src(`${pathConfig.src.fonts}/**/*`)
|
||||||
.pipe(gulp.dest(pathConfig.assets.fonts))
|
.pipe(gulp.dest(pathConfig.assets.fonts))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import autoprefixer from 'gulp-autoprefixer';
|
|||||||
import sourcemaps from 'gulp-sourcemaps';
|
import sourcemaps from 'gulp-sourcemaps';
|
||||||
import browser from 'browser-sync';
|
import browser from 'browser-sync';
|
||||||
import pathConfig from '../paths.js'
|
import pathConfig from '../paths.js'
|
||||||
|
import gcmq from 'gulp-group-css-media-queries';
|
||||||
|
|
||||||
export const stylesBuild = () => {
|
export const stylesBuild = () => {
|
||||||
return gulp.src(`${pathConfig.src.sass}/**/*.sass`, {
|
return gulp.src(`${pathConfig.src.sass}/**/*.sass`, {
|
||||||
@ -17,8 +18,9 @@ export const stylesBuild = () => {
|
|||||||
.pipe(newer('*'))
|
.pipe(newer('*'))
|
||||||
.pipe(gulpif(pathConfig.isDevelop, sourcemaps.init()))
|
.pipe(gulpif(pathConfig.isDevelop, sourcemaps.init()))
|
||||||
.pipe(sass.sync().on('error', sass.logError))
|
.pipe(sass.sync().on('error', sass.logError))
|
||||||
.pipe(gulpif(pathConfig.isProd, cleanCSS({compatibility: 'ie8'})))
|
.pipe(gulpif(pathConfig.isProd, gcmq()))
|
||||||
.pipe(gulpif(pathConfig.isProd, autoprefixer()))
|
.pipe(gulpif(pathConfig.isProd, autoprefixer()))
|
||||||
|
.pipe(gulpif(pathConfig.isProd, cleanCSS({ level: 2 })))
|
||||||
.pipe(gulpif(pathConfig.isDevelop, sourcemaps.write('./')))
|
.pipe(gulpif(pathConfig.isDevelop, sourcemaps.write('./')))
|
||||||
.pipe(gulp.dest(pathConfig.assets.css))
|
.pipe(gulp.dest(pathConfig.assets.css))
|
||||||
|
|
||||||
|
|||||||
214
package-lock.json
generated
214
package-lock.json
generated
@ -14,6 +14,7 @@
|
|||||||
"gulp-autoprefixer": "^7.0.1",
|
"gulp-autoprefixer": "^7.0.1",
|
||||||
"gulp-changed": "^4.0.2",
|
"gulp-changed": "^4.0.2",
|
||||||
"gulp-clean-css": "^4.3.0",
|
"gulp-clean-css": "^4.3.0",
|
||||||
|
"gulp-group-css-media-queries": "^1.2.2",
|
||||||
"gulp-header": "^2.0.9",
|
"gulp-header": "^2.0.9",
|
||||||
"gulp-if": "^3.0.0",
|
"gulp-if": "^3.0.0",
|
||||||
"gulp-imagemin": "^7.1.0",
|
"gulp-imagemin": "^7.1.0",
|
||||||
@ -2019,6 +2020,40 @@
|
|||||||
"source-map-resolve": "^0.6.0"
|
"source-map-resolve": "^0.6.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/css-parse": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/css-parse/-/css-parse-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-pGjuZnwW2BzPBcWMONKpfHgNv9Q=",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"css": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/css-parse/node_modules/css": {
|
||||||
|
"version": "2.2.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz",
|
||||||
|
"integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"inherits": "^2.0.3",
|
||||||
|
"source-map": "^0.6.1",
|
||||||
|
"source-map-resolve": "^0.5.2",
|
||||||
|
"urix": "^0.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/css-parse/node_modules/source-map-resolve": {
|
||||||
|
"version": "0.5.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
|
||||||
|
"integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"atob": "^2.1.2",
|
||||||
|
"decode-uri-component": "^0.2.0",
|
||||||
|
"resolve-url": "^0.2.1",
|
||||||
|
"source-map-url": "^0.4.0",
|
||||||
|
"urix": "^0.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/css-select": {
|
"node_modules/css-select": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz",
|
||||||
@ -2039,6 +2074,40 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
"node_modules/css-stringify": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/css-stringify/-/css-stringify-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-LvM9z0mMPT7oK9c9CgGsKGKM0Po=",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"css": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/css-stringify/node_modules/css": {
|
||||||
|
"version": "2.2.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz",
|
||||||
|
"integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"inherits": "^2.0.3",
|
||||||
|
"source-map": "^0.6.1",
|
||||||
|
"source-map-resolve": "^0.5.2",
|
||||||
|
"urix": "^0.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/css-stringify/node_modules/source-map-resolve": {
|
||||||
|
"version": "0.5.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
|
||||||
|
"integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"atob": "^2.1.2",
|
||||||
|
"decode-uri-component": "^0.2.0",
|
||||||
|
"resolve-url": "^0.2.1",
|
||||||
|
"source-map-url": "^0.4.0",
|
||||||
|
"urix": "^0.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/css-tree": {
|
"node_modules/css-tree": {
|
||||||
"version": "1.0.0-alpha.37",
|
"version": "1.0.0-alpha.37",
|
||||||
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz",
|
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz",
|
||||||
@ -7196,6 +7265,22 @@
|
|||||||
"integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==",
|
"integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/group-css-media-queries": {
|
||||||
|
"version": "1.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/group-css-media-queries/-/group-css-media-queries-1.4.1.tgz",
|
||||||
|
"integrity": "sha1-jlTLMcxFqcXgjrg4lAuKKAONcXU=",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"css-parse": "^2.0.0",
|
||||||
|
"css-stringify": "^2.0.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"group-css-media-queries": "bin/group-css-media-queries"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/gulp": {
|
"node_modules/gulp": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/gulp/-/gulp-4.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/gulp/-/gulp-4.0.2.tgz",
|
||||||
@ -7440,6 +7525,30 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/gulp-group-css-media-queries": {
|
||||||
|
"version": "1.2.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/gulp-group-css-media-queries/-/gulp-group-css-media-queries-1.2.2.tgz",
|
||||||
|
"integrity": "sha512-uOs8aJ5TV12aRstfc6pn107edDT2XSY7KNAU721Dz+gKHu/AUIlAaOdFdo9n/eHWqfb9QWMArrM8fiPOCqZPGg==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"group-css-media-queries": "^1.4.1",
|
||||||
|
"plugin-error": "^1.0.1",
|
||||||
|
"through2": "^2.0.3"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/gulp-group-css-media-queries/node_modules/through2": {
|
||||||
|
"version": "2.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz",
|
||||||
|
"integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"readable-stream": "~2.3.6",
|
||||||
|
"xtend": "~4.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/gulp-header": {
|
"node_modules/gulp-header": {
|
||||||
"version": "2.0.9",
|
"version": "2.0.9",
|
||||||
"resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-2.0.9.tgz",
|
"resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-2.0.9.tgz",
|
||||||
@ -21409,6 +21518,42 @@
|
|||||||
"source-map-resolve": "^0.6.0"
|
"source-map-resolve": "^0.6.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"css-parse": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/css-parse/-/css-parse-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-pGjuZnwW2BzPBcWMONKpfHgNv9Q=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"css": "^2.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"css": {
|
||||||
|
"version": "2.2.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz",
|
||||||
|
"integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"inherits": "^2.0.3",
|
||||||
|
"source-map": "^0.6.1",
|
||||||
|
"source-map-resolve": "^0.5.2",
|
||||||
|
"urix": "^0.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"source-map-resolve": {
|
||||||
|
"version": "0.5.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
|
||||||
|
"integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"atob": "^2.1.2",
|
||||||
|
"decode-uri-component": "^0.2.0",
|
||||||
|
"resolve-url": "^0.2.1",
|
||||||
|
"source-map-url": "^0.4.0",
|
||||||
|
"urix": "^0.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"css-select": {
|
"css-select": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz",
|
||||||
@ -21429,6 +21574,42 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
"css-stringify": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/css-stringify/-/css-stringify-2.0.0.tgz",
|
||||||
|
"integrity": "sha1-LvM9z0mMPT7oK9c9CgGsKGKM0Po=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"css": "^2.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"css": {
|
||||||
|
"version": "2.2.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz",
|
||||||
|
"integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"inherits": "^2.0.3",
|
||||||
|
"source-map": "^0.6.1",
|
||||||
|
"source-map-resolve": "^0.5.2",
|
||||||
|
"urix": "^0.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"source-map-resolve": {
|
||||||
|
"version": "0.5.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
|
||||||
|
"integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"atob": "^2.1.2",
|
||||||
|
"decode-uri-component": "^0.2.0",
|
||||||
|
"resolve-url": "^0.2.1",
|
||||||
|
"source-map-url": "^0.4.0",
|
||||||
|
"urix": "^0.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"css-tree": {
|
"css-tree": {
|
||||||
"version": "1.0.0-alpha.37",
|
"version": "1.0.0-alpha.37",
|
||||||
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz",
|
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz",
|
||||||
@ -25675,6 +25856,16 @@
|
|||||||
"integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==",
|
"integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"group-css-media-queries": {
|
||||||
|
"version": "1.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/group-css-media-queries/-/group-css-media-queries-1.4.1.tgz",
|
||||||
|
"integrity": "sha1-jlTLMcxFqcXgjrg4lAuKKAONcXU=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"css-parse": "^2.0.0",
|
||||||
|
"css-stringify": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"gulp": {
|
"gulp": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/gulp/-/gulp-4.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/gulp/-/gulp-4.0.2.tgz",
|
||||||
@ -25874,6 +26065,29 @@
|
|||||||
"readable-stream": "^2.0.2"
|
"readable-stream": "^2.0.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"gulp-group-css-media-queries": {
|
||||||
|
"version": "1.2.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/gulp-group-css-media-queries/-/gulp-group-css-media-queries-1.2.2.tgz",
|
||||||
|
"integrity": "sha512-uOs8aJ5TV12aRstfc6pn107edDT2XSY7KNAU721Dz+gKHu/AUIlAaOdFdo9n/eHWqfb9QWMArrM8fiPOCqZPGg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"group-css-media-queries": "^1.4.1",
|
||||||
|
"plugin-error": "^1.0.1",
|
||||||
|
"through2": "^2.0.3"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"through2": {
|
||||||
|
"version": "2.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz",
|
||||||
|
"integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"readable-stream": "~2.3.6",
|
||||||
|
"xtend": "~4.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"gulp-header": {
|
"gulp-header": {
|
||||||
"version": "2.0.9",
|
"version": "2.0.9",
|
||||||
"resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-2.0.9.tgz",
|
"resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-2.0.9.tgz",
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
"gulp-autoprefixer": "^7.0.1",
|
"gulp-autoprefixer": "^7.0.1",
|
||||||
"gulp-changed": "^4.0.2",
|
"gulp-changed": "^4.0.2",
|
||||||
"gulp-clean-css": "^4.3.0",
|
"gulp-clean-css": "^4.3.0",
|
||||||
|
"gulp-group-css-media-queries": "^1.2.2",
|
||||||
"gulp-header": "^2.0.9",
|
"gulp-header": "^2.0.9",
|
||||||
"gulp-if": "^3.0.0",
|
"gulp-if": "^3.0.0",
|
||||||
"gulp-imagemin": "^7.1.0",
|
"gulp-imagemin": "^7.1.0",
|
||||||
@ -36,5 +37,11 @@
|
|||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"type": "module"
|
"type": "module",
|
||||||
|
"browserslist": [
|
||||||
|
"> 1%",
|
||||||
|
"last 2 versions",
|
||||||
|
"not dead",
|
||||||
|
"not IE 11"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,19 +4,11 @@
|
|||||||
<div class="carousel-inner">
|
<div class="carousel-inner">
|
||||||
<!-- Вывод изображений в слайдер -->
|
<!-- Вывод изображений в слайдер -->
|
||||||
<?php
|
<?php
|
||||||
if ( get_post_meta( get_the_ID(), 'quest_slider_imgs', false ) ){ //images название вашего произвольного поля
|
$image_array = get_field('quest_slider_imgs');
|
||||||
$image_array = get_post_meta( get_the_ID(), 'quest_slider_imgs', false ); //images название вашего произвольного поля
|
foreach ( $image_array as $image ) { ?>
|
||||||
}
|
<div class="carousel-item" style="height: 600px; background: url(<?php echo $image ?>) center top / cover no-repeat">
|
||||||
if ( $image_array ) {
|
</div>
|
||||||
|
<?php } ?>
|
||||||
foreach ( $image_array as $image ) {
|
|
||||||
|
|
||||||
$thumbimg = wp_get_attachment_image( $image['ID'], 'thumbnail');
|
|
||||||
$fullimg = pods_image_url( $image['ID'], 'large');
|
|
||||||
echo '<div class="carousel-item" style="height: 600px; background: url(' . $fullimg .') center top / cover no-repeat">
|
|
||||||
</div>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
|
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
|
||||||
|
|||||||
@ -1,21 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
add_action( 'wp_enqueue_scripts', 'armanty_get_styles');
|
add_theme_support( 'post-thumbnails' );
|
||||||
add_action( 'wp_enqueue_scripts', 'armanty_get_scripts');
|
|
||||||
|
|
||||||
add_action( 'after_setup_theme', 'armanty_register_menus');
|
add_filter('show_admin_bar', '__return_false');
|
||||||
add_action( 'init', 'register_armanty_types' );
|
|
||||||
|
|
||||||
add_action( 'wp_ajax_send_mail', 'send_mail');
|
remove_action('wp_head', 'print_emoji_detection_script', 7 );
|
||||||
add_action( 'wp_ajax_nopriv_send_mail', 'send_mail');
|
remove_action('admin_print_scripts', 'print_emoji_detection_script' );
|
||||||
|
remove_action('wp_print_styles', 'print_emoji_styles' );
|
||||||
|
remove_action('admin_print_styles', 'print_emoji_styles' );
|
||||||
|
|
||||||
add_action( 'wp_ajax_send_main_form', 'send_main_form');
|
remove_action('wp_head', 'wp_resource_hints', 2 ); //remove dns-prefetch
|
||||||
add_action( 'wp_ajax_nopriv_send_main_form', 'send_main_form');
|
remove_action('wp_head', 'wp_generator'); //remove meta name="generator"
|
||||||
|
remove_action('wp_head', 'wlwmanifest_link'); //remove wlwmanifest
|
||||||
add_action( 'wp_ajax_send_callback', 'send_callback');
|
remove_action('wp_head', 'rsd_link'); // remove EditURI
|
||||||
add_action( 'wp_ajax_nopriv_send_callback', 'send_callback');
|
remove_action('wp_head', 'rest_output_link_wp_head');// remove 'https://api.w.org/
|
||||||
|
remove_action('wp_head', 'rel_canonical'); //remove canonical
|
||||||
add_action( 'wp_ajax_graduation_callback', 'graduation_callback');
|
remove_action('wp_head', 'wp_shortlink_wp_head', 10); //remove shortlink
|
||||||
add_action( 'wp_ajax_nopriv_graduation_callback', 'graduation_callback');
|
remove_action('wp_head', 'wp_oembed_add_discovery_links'); //remove alternate
|
||||||
|
|
||||||
add_action( 'admin_menu', 'remove_menus' );
|
|
||||||
?>
|
?>
|
||||||
18
php/wordpress/constants.php
Normal file
18
php/wordpress/constants.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
add_action('init', 'create_global_variable');
|
||||||
|
|
||||||
|
function create_global_variable() {
|
||||||
|
global $paths;
|
||||||
|
global $version;
|
||||||
|
|
||||||
|
$paths = [
|
||||||
|
'assets' => get_template_directory_uri() . '/assets',
|
||||||
|
'css' => get_template_directory_uri() . '/assets/css',
|
||||||
|
'js' => get_template_directory_uri() . '/assets/js',
|
||||||
|
'libs' => get_template_directory_uri() . '/assets/libs',
|
||||||
|
'img' => get_template_directory_uri() . '/assets/img',
|
||||||
|
];
|
||||||
|
|
||||||
|
$version = '1.0.1';
|
||||||
|
}
|
||||||
|
?>
|
||||||
@ -1,3 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
add_filter( 'nav_menu_submenu_css_class', 'change_wp_nav_menu', 10, 3 );
|
add_filter( 'nav_menu_submenu_css_class', 'change_wp_nav_menu', 10, 3 );
|
||||||
|
function change_wp_nav_menu( $classes, $args, $depth ) {
|
||||||
|
if ( $args->theme_location == 'header_menu' ) {
|
||||||
|
$classes[] = 'header-submenu';
|
||||||
|
}
|
||||||
|
if ( $args->theme_location == 'footer_menu' ) {
|
||||||
|
$classes[] = 'footer__submenu';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $classes;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
add_action( 'wp_ajax_send_mail', 'send_mail');
|
||||||
|
add_action( 'wp_ajax_nopriv_send_mail', 'send_mail');
|
||||||
function send_mail(){
|
function send_mail(){
|
||||||
$orderName = $_POST['orderName'];
|
$orderName = $_POST['orderName'];
|
||||||
$orderTel = $_POST['orderTel'];
|
$orderTel = $_POST['orderTel'];
|
||||||
@ -24,6 +26,8 @@
|
|||||||
wp_die();
|
wp_die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_action( 'wp_ajax_send_main_form', 'send_main_form');
|
||||||
|
add_action( 'wp_ajax_nopriv_send_main_form', 'send_main_form');
|
||||||
function send_main_form(){
|
function send_main_form(){
|
||||||
$name = $_POST['name'];
|
$name = $_POST['name'];
|
||||||
$phone = $_POST['phone'];
|
$phone = $_POST['phone'];
|
||||||
@ -82,6 +86,8 @@
|
|||||||
wp_die();
|
wp_die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_action( 'wp_ajax_send_callback', 'send_callback');
|
||||||
|
add_action( 'wp_ajax_nopriv_send_callback', 'send_callback');
|
||||||
function send_callback(){
|
function send_callback(){
|
||||||
$name = $_POST['name'];
|
$name = $_POST['name'];
|
||||||
$phone = $_POST['phone'];
|
$phone = $_POST['phone'];
|
||||||
@ -104,6 +110,8 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_action( 'wp_ajax_graduation_callback', 'graduation_callback');
|
||||||
|
add_action( 'wp_ajax_nopriv_graduation_callback', 'graduation_callback');
|
||||||
function graduation_callback(){
|
function graduation_callback(){
|
||||||
date_default_timezone_set('Europe/Moscow');
|
date_default_timezone_set('Europe/Moscow');
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
add_theme_support( 'post-thumbnails' );
|
|
||||||
|
|
||||||
// Удаляем ненужные пункты в консоли WordPress
|
// Удаляем ненужные пункты в консоли WordPress
|
||||||
|
add_action( 'admin_menu', 'remove_menus' );
|
||||||
function remove_menus(){
|
function remove_menus(){
|
||||||
remove_menu_page( 'index.php' ); //Консоль
|
remove_menu_page( 'index.php' ); //Консоль
|
||||||
remove_menu_page( 'edit.php' ); //Записи
|
remove_menu_page( 'edit.php' ); //Записи
|
||||||
@ -14,22 +13,12 @@
|
|||||||
// remove_menu_page( 'tools.php' ); //Инструменты
|
// remove_menu_page( 'tools.php' ); //Инструменты
|
||||||
// remove_menu_page( 'options-general.php' ); //Настройки
|
// remove_menu_page( 'options-general.php' ); //Настройки
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_action( 'after_setup_theme', 'armanty_register_menus');
|
||||||
function armanty_register_menus(){
|
function armanty_register_menus(){
|
||||||
register_nav_menus( [
|
register_nav_menus( [
|
||||||
'header_menu' => 'Меню в шапке',
|
'header_menu' => 'Меню в шапке',
|
||||||
'footer_menu' => 'Меню в подвале'
|
'footer_menu' => 'Меню в подвале'
|
||||||
] );
|
] );
|
||||||
}
|
}
|
||||||
|
|
||||||
function change_wp_nav_menu( $classes, $args, $depth ) {
|
|
||||||
if ( $args->theme_location == 'header_menu' ) {
|
|
||||||
$classes[] = 'header-submenu';
|
|
||||||
}
|
|
||||||
if ( $args->theme_location == 'footer_menu' ) {
|
|
||||||
$classes[] = 'footer__submenu';
|
|
||||||
}
|
|
||||||
|
|
||||||
return $classes;
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
@ -1,47 +1,52 @@
|
|||||||
<?php
|
<?php
|
||||||
|
add_action( 'wp_enqueue_scripts', 'armanty_get_scripts');
|
||||||
|
|
||||||
function armanty_get_scripts(){
|
function armanty_get_scripts(){
|
||||||
|
$js = $GLOBALS['paths']['js'];
|
||||||
|
$libs = $GLOBALS['paths']['libs'];
|
||||||
|
|
||||||
wp_deregister_script( 'jquery' );
|
wp_deregister_script( 'jquery' );
|
||||||
wp_register_script( 'jquery', get_template_directory_uri() . '/assets/libs/jquery-3.4.1/jquery-3.4.1.min.js');
|
wp_register_script( 'jquery', $libs . '/jquery-3.4.1/jquery-3.4.1.min.js');
|
||||||
wp_enqueue_script('jquery');
|
wp_enqueue_script('jquery');
|
||||||
|
|
||||||
wp_enqueue_script( 'jqmask', get_template_directory_uri( ) . '/assets/libs/jQuery-Mask-Plugin-master/dist/jquery.mask.min.js', ['jquery'], null, true);
|
wp_enqueue_script( 'jqmask', $libs . '/jQuery-Mask-Plugin-master/dist/jquery.mask.min.js', ['jquery'], null, true);
|
||||||
|
|
||||||
if (!is_page_template('templates/graduation.php')) {
|
if (!is_page_template('templates/graduation.php')) {
|
||||||
wp_enqueue_script( 'poper', get_template_directory_uri( ) . '/assets/libs/bootstrap-4.4.1-dist/js/popper.min.js', ['jquery'], null, true);
|
wp_enqueue_script( 'poper', $libs . '/bootstrap-4.4.1-dist/js/popper.min.js', ['jquery'], null, true);
|
||||||
wp_enqueue_script( 'bootstrap', get_template_directory_uri( ) . '/assets/libs/bootstrap-4.4.1-dist/js/bootstrap.bundle.min.js', ['jquery'], null, true);
|
wp_enqueue_script( 'bootstrap', $libs . '/bootstrap-4.4.1-dist/js/bootstrap.bundle.min.js', ['jquery'], null, true);
|
||||||
wp_enqueue_script( 'owlcarousel', get_template_directory_uri( ) . '/assets/libs/OwlCarousel2-2.3.4/dist/owl.carousel.js', ['jquery'], null, true);
|
wp_enqueue_script( 'owlcarousel', $libs . '/OwlCarousel2-2.3.4/dist/owl.carousel.js', ['jquery'], null, true);
|
||||||
wp_enqueue_script( 'moment', get_template_directory_uri( ) . '/assets/libs/bootstrap_datetimepicker/js/moment-with-locales.min.js', ['jquery'], null, true);
|
wp_enqueue_script( 'moment', $libs . '/bootstrap_datetimepicker/js/moment-with-locales.min.js', ['jquery'], null, true);
|
||||||
wp_enqueue_script( 'bootstrap', get_template_directory_uri( ) . '/assets/libs/bootstrap_datetimepicker/js/bootstrap.min.js', ['jquery', 'moment'], null, true);
|
wp_enqueue_script( 'bootstrap', $libs . '/bootstrap_datetimepicker/js/bootstrap.min.js', ['jquery', 'moment'], null, true);
|
||||||
wp_enqueue_script( 'dtpicker', get_template_directory_uri( ) . '/assets/libs/bootstrap_datetimepicker/js/bootstrap-datetimepicker.min.js', ['jquery', 'moment'], null, true);
|
wp_enqueue_script( 'dtpicker', $libs . '/bootstrap_datetimepicker/js/bootstrap-datetimepicker.min.js', ['jquery', 'moment'], null, true);
|
||||||
wp_enqueue_script( 'select', get_template_directory_uri() . '/assets/libs/bootstrap-select/bootstrap-select.min.js');
|
wp_enqueue_script( 'select', $libs . '/bootstrap-select/bootstrap-select.min.js');
|
||||||
wp_enqueue_script( 'ksv741script', get_template_directory_uri( ) . '/assets/js/script.js', ['jquery'], null, true);
|
wp_enqueue_script( 'script', $js . '/script.js', ['jquery'], null, true);
|
||||||
wp_enqueue_script( 'slider', get_template_directory_uri( ) . '/assets/libs/jQuery-Waterwheel-Carousel/js/jquery.waterwheelCarousel.min.js', ['jquery'], null, true);
|
wp_enqueue_script( 'slider', $libs . '/jQuery-Waterwheel-Carousel/js/jquery.waterwheelCarousel.min.js', ['jquery'], null, true);
|
||||||
wp_enqueue_script( 'swiper', get_template_directory_uri( ) . '/assets/libs/jQueryTouchSwipe/jquery.touchSwipe.min.js', ['jquery'], null, true);
|
wp_enqueue_script( 'swiper', $libs . '/jQueryTouchSwipe/jquery.touchSwipe.min.js', ['jquery'], null, true);
|
||||||
wp_enqueue_script( 'slick', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js', ['jquery'], null, true);
|
wp_enqueue_script( 'slick', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js', ['jquery'], null, true);
|
||||||
|
|
||||||
|
|
||||||
if(is_front_page() || is_page ('24') || is_page('35') || is_page('56')){
|
if(is_front_page() || is_page ('24') || is_page('35') || is_page('56')){
|
||||||
wp_enqueue_script( 'main', get_template_directory_uri( ) . '/assets/js/components/main.js', ['jquery'], null, true);
|
wp_enqueue_script( 'main', $js . '/components/main.js', ['jquery'], null, true);
|
||||||
}
|
}
|
||||||
if(is_page ('8')){
|
if(is_page ('8')){
|
||||||
wp_enqueue_script( 'quests', get_template_directory_uri( ) . '/assets/js/components/quests.js', ['jquery'], null, true);
|
wp_enqueue_script( 'quests', $js . '/components/quests.js', ['jquery'], null, true);
|
||||||
}
|
}
|
||||||
if(is_page ('24')){
|
if(is_page ('24')){
|
||||||
wp_enqueue_script( 'quests', get_template_directory_uri( ) . '/assets/js/components/holiday.js', ['jquery'], null, true);
|
wp_enqueue_script( 'quests', $js . '/components/holiday.js', ['jquery'], null, true);
|
||||||
}
|
}
|
||||||
if(is_page ('35')){
|
if(is_page ('35')){
|
||||||
wp_enqueue_script( 'certificates', get_template_directory_uri( ) . '/assets/js/components/certificates.js', ['jquery'], null, true);
|
wp_enqueue_script( 'certificates', $js . '/components/certificates.js', ['jquery'], null, true);
|
||||||
}
|
}
|
||||||
if(is_page ('56')){
|
if(is_page ('56')){
|
||||||
wp_enqueue_script( 'sales', get_template_directory_uri( ) . '/assets/js/components/sales.js', ['jquery'], null, true);
|
wp_enqueue_script( 'sales', $js . '/components/sales.js', ['jquery'], null, true);
|
||||||
}
|
}
|
||||||
if(is_page ('59')){
|
if(is_page ('59')){
|
||||||
wp_enqueue_script( 'form', get_template_directory_uri( ) . '/assets/js/components/form.js', ['jquery'], null, true);
|
wp_enqueue_script( 'form', $js . '/components/form.js', ['jquery'], null, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_page_template('templates/graduation.php')) {
|
if (is_page_template('templates/graduation.php')) {
|
||||||
wp_enqueue_script( 'graduation', get_template_directory_uri( ) . '/assets/js/components/graduation.js');
|
wp_enqueue_script( 'graduation', $js . '/components/graduation.js');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
?>
|
?>
|
||||||
@ -1,37 +1,44 @@
|
|||||||
<?php
|
<?php
|
||||||
|
add_action('wp_enqueue_scripts', 'armanty_get_styles');
|
||||||
|
|
||||||
|
|
||||||
function armanty_get_styles(){
|
function armanty_get_styles(){
|
||||||
wp_enqueue_style( 'styles', get_stylesheet_uri());
|
$libs = $GLOBALS['paths']['libs'];;
|
||||||
|
$css = $GLOBALS['paths']['css'];;
|
||||||
|
$pagesStyle = $css . '/pages';
|
||||||
|
$styleVersion = $GLOBALS['version'];
|
||||||
|
|
||||||
|
wp_enqueue_style( 'styles', get_stylesheet_uri());
|
||||||
|
|
||||||
|
wp_enqueue_style('fonts', "https://fonts.googleapis.com/css?family=PT+Sans:400,700&display=swap&subset=cyrillic", array(), $styleVersion);
|
||||||
|
wp_enqueue_style('my_fonts', $css . '/fonts.css', array(), $styleVersion);
|
||||||
|
wp_enqueue_style('fontawesome', $libs . '/font-awesome-4.7.0/css/font-awesome.min.css', array(), $styleVersion);
|
||||||
|
wp_enqueue_style('bootstrap', $libs . '/bootstrap-4.4.1-dist/css/bootstrap.min.css', array(), $styleVersion);
|
||||||
|
wp_enqueue_style('owlcarousel', $libs . '/OwlCarousel2-2.3.4/dist/assets/owl.carousel.min.css', array(), $styleVersion);
|
||||||
|
if(is_page ('59')){
|
||||||
|
wp_enqueue_style('btdtpicker', $libs . '/bootstrap_datetimepicker/css/bootstrap.min.css', array(), $styleVersion);
|
||||||
|
}
|
||||||
|
wp_enqueue_style('dtpicker', $libs . '/bootstrap_datetimepicker/css/bootstrap-datetimepicker.min.css', array(), $styleVersion);
|
||||||
|
wp_enqueue_style('bootstrapselect', $libs . '/bootstrap-select/bootstrap-select.min.css', array(), $styleVersion);
|
||||||
|
wp_enqueue_style('slick', 'http://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css', array(), $styleVersion);
|
||||||
|
|
||||||
|
wp_enqueue_style('armanty_other', $css . '/other.css', array(), $styleVersion);
|
||||||
|
wp_enqueue_style('armanty_style', $css . '/style.css', array(), $styleVersion);
|
||||||
|
|
||||||
|
if (is_page_template('templates/about.php')) wp_enqueue_style('armanty_about', $pagesStyle . '/about.css', array(), $styleVersion);
|
||||||
|
if (is_page_template('templates/certificates.php')) wp_enqueue_style('armanty_certificates', $pagesStyle . '/certificates.css', array(), $styleVersion);
|
||||||
|
if (is_page_template('templates/contacts.php')) wp_enqueue_style('armanty_contacts', $pagesStyle . '/contacts.css', array(), $styleVersion);
|
||||||
|
if (is_page_template('templates/form.php')) wp_enqueue_style('armanty_form', $pagesStyle . '/form.css', array(), $styleVersion);
|
||||||
|
if (is_page_template('templates/gallery.php')) wp_enqueue_style('armanty_gallery', $pagesStyle . '/gallery.css', array(), $styleVersion);
|
||||||
|
if (is_page_template('templates/home.php')) wp_enqueue_style('armanty_home', $pagesStyle . '/home.css', array(), $styleVersion);
|
||||||
|
if (is_page_template('templates/price.php')) wp_enqueue_style('armanty_price', $pagesStyle . '/price.css', array(), $styleVersion);
|
||||||
|
if (is_page_template('templates/quests.php')) wp_enqueue_style('armanty_quests', $pagesStyle . '/quests.css', array(), $styleVersion);
|
||||||
|
if (is_page_template('templates/sales.php')) wp_enqueue_style('armanty_sales', $pagesStyle . '/sales.css', array(), $styleVersion);
|
||||||
|
if (is_page_template('templates/single-quest.php')) wp_enqueue_style('armanty_single-quest', $pagesStyle . '/single-quest.css', array(), $styleVersion);
|
||||||
|
if (is_page_template('templates/graduation.php')) wp_enqueue_style('armanty_graduation', $pagesStyle . '/graduation.css', array(), $styleVersion);
|
||||||
|
|
||||||
|
wp_enqueue_style('armanty_holiday', $pagesStyle . '/holiday.css', array(), $styleVersion);
|
||||||
|
wp_enqueue_style('armanty_quests', $pagesStyle . '/quests.css', array(), $styleVersion);
|
||||||
|
|
||||||
wp_enqueue_style('fonts', "https://fonts.googleapis.com/css?family=PT+Sans:400,700&display=swap&subset=cyrillic");
|
|
||||||
wp_enqueue_style('my_fonts', get_template_directory_uri() . '/assets/css/fonts.css');
|
|
||||||
wp_enqueue_style('fontawesome', get_template_directory_uri() . '/assets/libs/font-awesome-4.7.0/css/font-awesome.min.css');
|
|
||||||
wp_enqueue_style('bootstrap', get_template_directory_uri() . '/assets/libs/bootstrap-4.4.1-dist/css/bootstrap.min.css');
|
|
||||||
wp_enqueue_style('owlcarousel', get_template_directory_uri() . '/assets/libs/OwlCarousel2-2.3.4/dist/assets/owl.carousel.min.css');
|
|
||||||
if(is_page ('59')){
|
|
||||||
wp_enqueue_style('btdtpicker', get_template_directory_uri() . '/assets/libs/bootstrap_datetimepicker/css/bootstrap.min.css');
|
|
||||||
}
|
}
|
||||||
wp_enqueue_style('dtpicker', get_template_directory_uri() . '/assets/libs/bootstrap_datetimepicker/css/bootstrap-datetimepicker.min.css');
|
|
||||||
wp_enqueue_style('bootstrapselect', get_template_directory_uri() . '/assets/libs/bootstrap-select/bootstrap-select.min.css');
|
|
||||||
wp_enqueue_style('slick', 'http://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css');
|
|
||||||
|
|
||||||
wp_enqueue_style('armanty_other', get_template_directory_uri() . '/assets/css/other.css');
|
|
||||||
wp_enqueue_style('armanty_style', get_template_directory_uri() . '/assets/css/style.css');
|
|
||||||
|
|
||||||
if (is_page_template('templates/about.php')) wp_enqueue_style('armanty_about', get_template_directory_uri() . '/assets/css/pages/about.css');
|
|
||||||
if (is_page_template('templates/certificates.php')) wp_enqueue_style('armanty_certificates', get_template_directory_uri() . '/assets/css/pages/certificates.css');
|
|
||||||
if (is_page_template('templates/contacts.php')) wp_enqueue_style('armanty_contacts', get_template_directory_uri() . '/assets/css/pages/contacts.css');
|
|
||||||
if (is_page_template('templates/form.php')) wp_enqueue_style('armanty_form', get_template_directory_uri() . '/assets/css/pages/form.css');
|
|
||||||
if (is_page_template('templates/gallery.php')) wp_enqueue_style('armanty_gallery', get_template_directory_uri() . '/assets/css/pages/gallery.css');
|
|
||||||
if (is_page_template('templates/home.php')) wp_enqueue_style('armanty_home', get_template_directory_uri() . '/assets/css/pages/home.css');
|
|
||||||
if (is_page_template('templates/price.php')) wp_enqueue_style('armanty_price', get_template_directory_uri() . '/assets/css/pages/price.css');
|
|
||||||
if (is_page_template('templates/quests.php')) wp_enqueue_style('armanty_quests', get_template_directory_uri() . '/assets/css/pages/quests.css');
|
|
||||||
if (is_page_template('templates/sales.php')) wp_enqueue_style('armanty_sales', get_template_directory_uri() . '/assets/css/pages/sales.css');
|
|
||||||
if (is_page_template('templates/single-quest.php')) wp_enqueue_style('armanty_single-quest', get_template_directory_uri() . '/assets/css/pages/single-quest.css');
|
|
||||||
if (is_page_template('templates/graduation.php')) wp_enqueue_style('armanty_graduation', get_template_directory_uri() . '/assets/css/pages/graduation.css');
|
|
||||||
|
|
||||||
wp_enqueue_style('armanty_holiday', get_template_directory_uri() . '/assets/css/pages/holiday.css');
|
|
||||||
wp_enqueue_style('armanty_quests', get_template_directory_uri() . '/assets/css/pages/quests.css');
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
add_action( 'init', 'register_armanty_types' );
|
||||||
function register_armanty_types(){
|
function register_armanty_types(){
|
||||||
register_post_type('armanty_quests', array(
|
register_post_type('armanty_quests', array(
|
||||||
'labels' => array(
|
'labels' => array(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user