Merge remote-tracking branch 'upstream/wordpress' into wordpress

Conflicts:
	composer.json
This commit is contained in:
Egor Svitin
2020-07-23 13:55:29 +02:00
55 changed files with 4708 additions and 903 deletions

4
.gitignore vendored
View File

@@ -11,6 +11,8 @@ htdocs/wp-content/*
!htdocs/wp-content/themes/
!htdocs/wp-content/index.php
!htdocs/wp-content/sunrise.php
!htdocs/wp-content/uploads/
!htdocs/wp-content/uploads/.gitkeep
htdocs/wp-content/mu-plugins/*
!htdocs/wp-content/mu-plugins/domain_mapping.php
@@ -24,4 +26,6 @@ htdocs/wp-content/themes/*
!htdocs/wp-content/themes/livecarta
!htdocs/wp-content/themes/index.php
!htdocs/wp-content/plugins/wp-rest-api-event
vendor/

41
build/build.xml Normal file
View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="LawCarta wordpress project" default="build-without-tests">
<target name="build-without-tests"
depends="composer_install, replace, archive"
description="Build project and run all tests"/>
<target name="replace"
unless="replace.done"
description="Replace placeholders in config files" >
<replace dir="../environments" token="@lcWpMySqlHostDev@" value="${lcWpMySqlHostDev}"/>
<replace dir="../environments" token="@lcWpMySqlDbnameDev@" value="${lcWpMySqlDbnameDev}"/>
<replace dir="../environments" token="@lcWpMySqlUsernameDev@" value="${lcWpMySqlUsernameDev}"/>
<replace dir="../environments" token="@lcWpMySqlPasswordDev@" value="${lcWpMySqlPasswordDev}"/>
<replace dir="../environments" token="@lcWpMySqlHostDemo@" value="${lcWpMySqlHostDemo}"/>
<replace dir="../environments" token="@lcWpMySqlDbnameDemo@" value="${lcWpMySqlDbnameDemo}"/>
<replace dir="../environments" token="@lcWpMySqlUsernameDemo@" value="${lcWpMySqlUsernameDemo}"/>
<replace dir="../environments" token="@lcWpMySqlPasswordDemo@" value="${lcWpMySqlPasswordDemo}"/>
<property name="replace.done" value="true"/>
</target>
<target name="composer_install">
<exec dir="${basedir}/.." executable="composer" failonerror="true">
<arg line="install" />
</exec>
</target>
<target name="archive">
<tar compression="gzip" destfile="lc_wp.tar.gz" longfile="posix">
<tarfileset dir="${basedir}/..">
<include name="*/**" />
<exclude name="build/**" />
</tarfileset>
</tar>
</target>
</project>

View File

@@ -11,10 +11,13 @@
"wpackagist-plugin/enhanced-media-library": "~2.6.4",
"wpackagist-plugin/menu-item-custom-fields": "~1.0.0",
"wpackagist-plugin/wp-rest-api-v2-menus": "~0.3.1",
"wpackagist-plugin/wp-mail-smtp": "~1.4.1",
"wpackagist-plugin/cf7-field-validation": "~1.1.3",
"wpackagist-plugin/taxonomy-terms-order": "~1.5.5",
"wpackagist-plugin/wordpress-seo": "~14.6.1"
"wpackagist-plugin/wordpress-seo": "~14.6.1",
"wpackagist-plugin/post-types-order": "~1.9.4",
"wpackagist-plugin/post-smtp": "~1.9.8",
"wpackagist-plugin/meta-tag-manager": "~2.1.0",
"wpackagist-plugin/wps-hide-login": "~1.5.4"
},
"repositories": [
{

174
composer.lock generated
View File

@@ -1,23 +1,23 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "d1b639321d8f7b0ae9403c11c2bd7cc3",
"content-hash": "195f79aea0a99483cfe42a79ce03d029",
"packages": [
{
"name": "composer/installers",
"version": "v1.6.0",
"version": "v1.7.0",
"source": {
"type": "git",
"url": "https://github.com/composer/installers.git",
"reference": "cfcca6b1b60bc4974324efb5783c13dca6932b5b"
"reference": "141b272484481432cda342727a427dc1e206bfa0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/installers/zipball/cfcca6b1b60bc4974324efb5783c13dca6932b5b",
"reference": "cfcca6b1b60bc4974324efb5783c13dca6932b5b",
"url": "https://api.github.com/repos/composer/installers/zipball/141b272484481432cda342727a427dc1e206bfa0",
"reference": "141b272484481432cda342727a427dc1e206bfa0",
"shasum": ""
},
"require": {
@@ -73,6 +73,7 @@
"RadPHP",
"SMF",
"Thelia",
"Whmcs",
"WolfCMS",
"agl",
"aimeos",
@@ -95,6 +96,7 @@
"installer",
"itop",
"joomla",
"known",
"kohana",
"laravel",
"lavalite",
@@ -124,7 +126,7 @@
"zend",
"zikula"
],
"time": "2018-08-27T06:10:37+00:00"
"time": "2019-08-12T15:00:31+00:00"
},
{
"name": "wpackagist-plugin/cf7-field-validation",
@@ -136,9 +138,7 @@
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/cf7-field-validation.zip?timestamp=1523974032",
"reference": null,
"shasum": null
"url": "https://downloads.wordpress.org/plugin/cf7-field-validation.zip?timestamp=1523974032"
},
"require": {
"composer/installers": "~1.0"
@@ -156,9 +156,7 @@
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/contact-form-7.5.0.5.zip",
"reference": null,
"shasum": null
"url": "https://downloads.wordpress.org/plugin/contact-form-7.5.0.5.zip"
},
"require": {
"composer/installers": "~1.0"
@@ -176,9 +174,7 @@
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/enhanced-media-library.2.6.4.zip",
"reference": null,
"shasum": null
"url": "https://downloads.wordpress.org/plugin/enhanced-media-library.2.6.4.zip"
},
"require": {
"composer/installers": "~1.0"
@@ -196,9 +192,7 @@
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/flamingo.1.9.zip",
"reference": null,
"shasum": null
"url": "https://downloads.wordpress.org/plugin/flamingo.1.9.zip"
},
"require": {
"composer/installers": "~1.0"
@@ -216,9 +210,7 @@
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/menu-item-custom-fields.1.0.0.zip",
"reference": null,
"shasum": null
"url": "https://downloads.wordpress.org/plugin/menu-item-custom-fields.1.0.0.zip"
},
"require": {
"composer/installers": "~1.0"
@@ -227,18 +219,70 @@
"homepage": "https://wordpress.org/plugins/menu-item-custom-fields/"
},
{
"name": "wpackagist-plugin/really-simple-captcha",
"version": "2.0.1",
"name": "wpackagist-plugin/meta-tag-manager",
"version": "2.1",
"source": {
"type": "svn",
"url": "https://plugins.svn.wordpress.org/really-simple-captcha/",
"reference": "tags/2.0.1"
"url": "https://plugins.svn.wordpress.org/meta-tag-manager/",
"reference": "tags/2.1"
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/really-simple-captcha.2.0.1.zip",
"reference": null,
"shasum": null
"url": "https://downloads.wordpress.org/plugin/meta-tag-manager.2.1.zip"
},
"require": {
"composer/installers": "~1.0"
},
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/meta-tag-manager/"
},
{
"name": "wpackagist-plugin/post-smtp",
"version": "1.9.8",
"source": {
"type": "svn",
"url": "https://plugins.svn.wordpress.org/post-smtp/",
"reference": "tags/1.9.8"
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/post-smtp.1.9.8.zip"
},
"require": {
"composer/installers": "~1.0"
},
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/post-smtp/"
},
{
"name": "wpackagist-plugin/post-types-order",
"version": "1.9.4.1",
"source": {
"type": "svn",
"url": "https://plugins.svn.wordpress.org/post-types-order/",
"reference": "tags/1.9.4.1"
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/post-types-order.1.9.4.1.zip"
},
"require": {
"composer/installers": "~1.0"
},
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/post-types-order/"
},
{
"name": "wpackagist-plugin/really-simple-captcha",
"version": "2.0.2",
"source": {
"type": "svn",
"url": "https://plugins.svn.wordpress.org/really-simple-captcha/",
"reference": "tags/2.0.2"
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/really-simple-captcha.2.0.2.zip"
},
"require": {
"composer/installers": "~1.0"
@@ -256,9 +300,7 @@
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/svg-support.2.3.15.zip",
"reference": null,
"shasum": null
"url": "https://downloads.wordpress.org/plugin/svg-support.2.3.15.zip"
},
"require": {
"composer/installers": "~1.0"
@@ -266,6 +308,24 @@
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/svg-support/"
},
{
"name": "wpackagist-plugin/taxonomy-terms-order",
"version": "1.5.7",
"source": {
"type": "svn",
"url": "https://plugins.svn.wordpress.org/taxonomy-terms-order/",
"reference": "tags/1.5.7"
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/taxonomy-terms-order.1.5.7.zip"
},
"require": {
"composer/installers": "~1.0"
},
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/taxonomy-terms-order/"
},
{
"name": "wpackagist-plugin/tinymce-advanced",
"version": "4.8.2",
@@ -276,9 +336,7 @@
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/tinymce-advanced.4.8.2.zip",
"reference": null,
"shasum": null
"url": "https://downloads.wordpress.org/plugin/tinymce-advanced.4.8.2.zip"
},
"require": {
"composer/installers": "~1.0"
@@ -296,9 +354,7 @@
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/toggle-wpautop.1.2.5.zip",
"reference": null,
"shasum": null
"url": "https://downloads.wordpress.org/plugin/toggle-wpautop.1.2.5.zip"
},
"require": {
"composer/installers": "~1.0"
@@ -306,26 +362,6 @@
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/toggle-wpautop/"
},
{
"name": "wpackagist-plugin/wp-mail-smtp",
"version": "1.4.1",
"source": {
"type": "svn",
"url": "https://plugins.svn.wordpress.org/wp-mail-smtp/",
"reference": "tags/1.4.1"
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/wp-mail-smtp.1.4.1.zip",
"reference": null,
"shasum": null
},
"require": {
"composer/installers": "~1.0"
},
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/wp-mail-smtp/"
},
{
"name": "wpackagist-plugin/wp-rest-api-v2-menus",
"version": "0.3.2",
@@ -336,15 +372,31 @@
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/wp-rest-api-v2-menus.0.3.2.zip",
"reference": null,
"shasum": null
"url": "https://downloads.wordpress.org/plugin/wp-rest-api-v2-menus.0.3.2.zip"
},
"require": {
"composer/installers": "~1.0"
},
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/wp-rest-api-v2-menus/"
},
{
"name": "wpackagist-plugin/wps-hide-login",
"version": "1.5.4.2",
"source": {
"type": "svn",
"url": "https://plugins.svn.wordpress.org/wps-hide-login/",
"reference": "tags/1.5.4.2"
},
"dist": {
"type": "zip",
"url": "https://downloads.wordpress.org/plugin/wps-hide-login.1.5.4.2.zip"
},
"require": {
"composer/installers": "~1.0"
},
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/wps-hide-login/"
}
],
"packages-dev": [],

View File

@@ -0,0 +1,17 @@
UPDATE `WordPress`.`wp_users` SET `user_login` = 'cartaadmin2019', `user_nicename` = 'cartaadmin2019', `display_name` = 'cartaadmin2019' WHERE (`ID` = '1');
----------------------------------------------------------------------------------------------------------------------
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
wp super-admin add cartaadmin2019 --allow-root --path=`/var/www/WordPress/htdocs/index.php`
wp super-admin remove admin --allow-root
wp super-admin list --allow-root
----------------------------------------------------------------------------------------------------------------------
Your login page is now here: http://livecarta.loc/login_4f8cb66f7d92/. Bookmark this page!
----------------------------------------------------------------------------------------------------------------------
wp plugin install wps-hide-login --allow-root

15
devops/domain_db_fix.txt Normal file
View File

@@ -0,0 +1,15 @@
Update wp domain names in 5 db tables:
wp_options
wp_2_options
wp_blogs
wp_domain_mapping
wp_site
Run domain_db_fix.sql script from environment

View File

@@ -1,6 +1,6 @@
server {
server_name wp-dev.lawcarta.com wp-dev.livecarta.com;
server_name dev1.lawcarta.com dev1.livecarta.com;
root /var/www/WordPress/htdocs/;
index index.html index.php;
@@ -48,12 +48,12 @@ server {
}
server {
if ($host = wp-dev.livecarta.com) {
if ($host = dev1.livecarta.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = wp-dev.lawcarta.com) {
if ($host = dev1.lawcarta.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
@@ -61,7 +61,7 @@ server {
listen 80;
listen [::]:80;
server_name wp-dev.lawcarta.com wp-dev.livecarta.com;
server_name dev1.lawcarta.com dev1.livecarta.com;
return 404; # managed by Certbot

11
devops/update.txt Normal file
View File

@@ -0,0 +1,11 @@
1 Backup all files
2 Backup Database
3 Download latest version of WP https://wordpress.org/latest.tar.gz
4 Go to WP document root e.g. /var/www/WordPress/htdocs
5 Delete the old wp-includes and wp-admin directories
6 Do NOT delete your existing wp-content folder. Do NOT delete any files or folders in your existing wp-content directory !!!
7 Copy all files from latest.tar.gz archive to WP document root. (overwrite all)
8 chown -R jenkins:jenkins /var/www/WordPress
9 chmod -R 664 /var/www/WordPress
10 Run Jenkins job to update all files from repository

View File

@@ -0,0 +1,14 @@
######FOR TEST DEMO ENV
update wp_options set option_value = "https://demo.lawcarta.com" where option_id = 1 limit 1;
update wp_options set option_value = "https://demo.lawcarta.com" where option_id = 2 limit 1;
update wp_2_options set option_value = "https://demo.livecarta.com" where option_id = 1 limit 1;
update wp_2_options set option_value = "https://demo.lawcarta.com/livecarta" where option_id = 2 limit 1;
update wp_blogs set domain = "demo.lawcarta.com" where blog_id = 1 limit 1;
update wp_blogs set domain = "demo.lawcarta.com" where blog_id = 2 limit 1;
update wp_domain_mapping set domain = "demo.livecarta.com" where blog_id = 2 limit 1;
update wp_site set domain = "demo.lawcarta.com" where id =1 limit 1;

View File

@@ -0,0 +1,18 @@
<?php
define( 'DB_NAME', '@lcWpMySqlDbnameDemo@' );
define( 'DB_USER', '@lcWpMySqlUsernameDemo@' );
define( 'DB_PASSWORD', '@lcWpMySqlPasswordDemo@' );
define( 'DB_HOST', '@lcWpMySqlHostDemo@' );
define('DOMAIN_CURRENT_SITE', 'demo.lawcarta.com');
define('LAWCARTA_SUBDOMAIN', 'app-demo');
define('LAWCARTA_PORT', '');
define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-demo.lawcarta.com/v1/event/request');
define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-demo.lawcarta.com/v1/event/response');
define('LAWCARTA_ENVIRONMENT_NAME', 'demo');
$_SERVER['HTTPS'] = 'On';

View File

@@ -0,0 +1,14 @@
######FOR TEST DEV ENV
update wp_options set option_value = "https://dev.lawcarta.com" where option_id = 1 limit 1;
update wp_options set option_value = "https://dev.lawcarta.com" where option_id = 2 limit 1;
update wp_2_options set option_value = "https://dev.livecarta.com" where option_id = 1 limit 1;
update wp_2_options set option_value = "https://dev.lawcarta.com/livecarta" where option_id = 2 limit 1;
update wp_blogs set domain = "dev.lawcarta.com" where blog_id = 1 limit 1;
update wp_blogs set domain = "dev.lawcarta.com" where blog_id = 2 limit 1;
update wp_domain_mapping set domain = "dev.livecarta.com" where blog_id = 2 limit 1;
update wp_site set domain = "dev.lawcarta.com" where id =1 limit 1;

View File

@@ -0,0 +1,18 @@
<?php
define( 'DB_NAME', '@lcWpMySqlDbnameDev@' );
define( 'DB_USER', '@lcWpMySqlUsernameDev@' );
define( 'DB_PASSWORD', '@lcWpMySqlPasswordDev@' );
define( 'DB_HOST', '@lcWpMySqlHostDev@' );
define('DOMAIN_CURRENT_SITE', 'dev.lawcarta.com');
define('LAWCARTA_SUBDOMAIN', 'app-dev');
define('LAWCARTA_PORT', '');
define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-dev.lawcarta.com/v1/event/request');
define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-dev.lawcarta.com/v1/event/response');
define('LAWCARTA_ENVIRONMENT_NAME', 'dev');
$_SERVER['HTTPS'] = 'On';

View File

@@ -0,0 +1,13 @@
<?php
define( 'DB_NAME', 'WordPress' );
define( 'DB_USER', 'wpuser' );
define( 'DB_PASSWORD', 'BPB6Eter&tjFcL?a' );
define( 'DB_HOST', 'localhost' );
define('DOMAIN_CURRENT_SITE', 'dev1.lawcarta.com');
define('LAWCARTA_SUBDOMAIN', 'app-dev1');
define('LAWCARTA_PORT', '');
$_SERVER['HTTPS'] = 'On';

View File

@@ -0,0 +1,13 @@
<?php
define( 'DB_NAME', 'WordPress' );
define( 'DB_USER', 'wpuser' );
define( 'DB_PASSWORD', 'er1tjFc4?aB5B6Et' );
define( 'DB_HOST', 'localhost' );
define('DOMAIN_CURRENT_SITE', 'lion.lawcarta.com');
define('LAWCARTA_SUBDOMAIN', 'app-lion');
define('LAWCARTA_PORT', '');
$_SERVER['HTTPS'] = 'On';

View File

@@ -0,0 +1,14 @@
######FOR TEST DEV ENV
update wp_options set option_value = "http://lawcarta.loc" where option_id = 1 limit 1;
update wp_options set option_value = "http://lawcarta.loc" where option_id = 2 limit 1;
update wp_2_options set option_value = "http://livecarta.loc" where option_id = 1 limit 1;
update wp_2_options set option_value = "http://lawcarta.loc/livecarta" where option_id = 2 limit 1;
update wp_blogs set domain = "lawcarta.loc" where blog_id = 1 limit 1;
update wp_blogs set domain = "lawcarta.loc" where blog_id = 2 limit 1;
update wp_domain_mapping set domain = "livecarta.loc" where blog_id = 2 limit 1;
update wp_site set domain = "lawcarta.loc" where id =1 limit 1;

View File

@@ -0,0 +1,18 @@
<?php
define( 'DB_NAME', 'WordPress' );
define( 'DB_USER', 'root' );
define( 'DB_PASSWORD', 'TK5nQ9AdHzsF1m' );
define( 'DB_HOST', 'localhost' );
define('DOMAIN_CURRENT_SITE', 'lawcarta.loc');
define('LAWCARTA_SUBDOMAIN', 'app');
define('LAWCARTA_PORT', '');
define('LAWCARTA_ENVIRONMENT_NAME', 'local');
$_SERVER['HTTPS'] = 'On';
define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-dev1.lawcarta.com/v1/event/request');
define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-dev1.lawcarta.com/v1/event/response');

View File

@@ -0,0 +1,19 @@
<?php
define( 'DB_NAME', 'WordPress' );
define( 'DB_USER', 'wpuser' );
define( 'DB_PASSWORD', '9cL?at5gPB6Ejr&t' );
define( 'DB_HOST', '198.61.196.23' );
define('DOMAIN_CURRENT_SITE', 'lawcarta.com');
define('LAWCARTA_SUBDOMAIN', 'app');
define('LAWCARTA_PORT', '');
define('LAWCARTA_ENVIRONMENT_NAME', 'prod');
define('LAWCARTA_GA_CONFIG', 'UA-111488943-1');
define('LIVECARTA_GA_CONFIG', 'UA-111488943-2');
$_SERVER['HTTPS'] = 'On';

View File

@@ -0,0 +1,14 @@
######FOR QA ENV
update wp_options set option_value = "https://qa.lawcarta.net" where option_id = 1 limit 1;
update wp_options set option_value = "https://qa.lawcarta.net" where option_id = 2 limit 1;
update wp_2_options set option_value = "https://qa.livecarta.com" where option_id = 1 limit 1;
update wp_2_options set option_value = "https://qa.lawcarta.net/livecarta" where option_id = 2 limit 1;
update wp_blogs set domain = "qa.lawcarta.net" where blog_id = 1 limit 1;
update wp_blogs set domain = "qa.lawcarta.net" where blog_id = 2 limit 1;
update wp_domain_mapping set domain = "qa.livecarta.com" where blog_id = 2 limit 1;
update wp_site set domain = "qa.lawcarta.net" where id =1 limit 1;

View File

@@ -0,0 +1,15 @@
<?php
define( 'DB_NAME', 'WordPress' );
define( 'DB_USER', 'wpuser' );
define( 'DB_PASSWORD', '?aeB366Er81t9Fc4' );
define( 'DB_HOST', 'localhost' );
define('DOMAIN_CURRENT_SITE', 'qa.lawcarta.net');
define('LAWCARTA_SUBDOMAIN', 'app-qa');
define('LAWCARTA_PORT', '');
define('LAWCARTA_ENVIRONMENT_NAME', 'qa');
$_SERVER['HTTPS'] = 'On';

View File

@@ -0,0 +1,63 @@
<?php
namespace app\wpRestApiEvent;
/**
* Class HttpClient
* @package app\wpRestApiEvent
*/
class HttpClient
{
/**
* @param $data
* @return null|string
*/
public function sendRequest($data)
{
return $this->doPostRequest(LAWCARTA_WP_REST_API_REQUEST_URL, $data);
}
/**
* @param $sysLogId
* @param $data
* @return string|\WP_Error
*/
public function sendResponse($sysLogId, $data)
{
$data['sysLogId'] = $sysLogId;
return $this->doPostRequest(LAWCARTA_WP_REST_API_RESPONSE_URL, $data);
}
/**
* @param $url
* @param $data
* @return string|\WP_Error
*/
private function doPostRequest($url, $data)
{
$response = wp_remote_post($url, [
'headers' => [
'Content-Type' => 'application/json',
],
'body' => json_encode($data),
'sslverify' => false
]);
$sysLogId = null;
/** @var \WP_HTTP_Requests_Response $httpResponse */
$httpResponse = $response['http_response'];
if ($httpResponse->get_status() == 200) {
$body = isset($response['body']) ? json_decode($response['body'], true) : null;
$sysLogId = $body['sysLogId'] ?? null;
}
return $sysLogId;
}
/**
* @return HttpClient
*/
public static function create()
{
return new self();
}
}

View File

@@ -0,0 +1,124 @@
<?php
namespace app\wpRestApiEvent\event;
use app\wpRestApiEvent\HttpClient;
/**
* Class EventSubscriber
* @package app\wpRestApiEvent\event
*/
class EventSubscriber
{
/**
* @var array
*/
private static $request;
/**
* @var array
*/
private static $get;
/**
* @var array
*/
private static $post;
/**
* @var array
*/
private static $cookie;
/**
* @var array
*/
private static $session;
/**
* @var array
*/
private static $env;
/**
* @var array
*/
private static $headers;
/**
* @var array
*/
private static $server;
/**
* @var string
*/
private static $parentSysLogId;
public static function onInit()
{
apply_filters('parse_request', [self::class, 'onParseRequest']);
apply_filters('http_response', [self::class, 'onResponse'], 0);
//apply_filters('shutdown', [self::class, 'onResponse'], 0);
register_shutdown_function([self::class, 'onShutdown']);
apply_filters('pre_http_request', [self::class, 'onRequest'], 0);
self::onRequest();
}
public static function onRequest()
{
$client = HttpClient::create();
self::$parentSysLogId = $client->sendRequest(self::getSuperGlobals());
}
public static function onResponse(array $response, array $r, $url)
{
// todo: add response handler
}
public static function onParseRequest()
{
// todo: add request data from wp
}
public static function onShutdown()
{
$client = HttpClient::create();
$client->sendResponse(self::$parentSysLogId, array_merge(self::getSuperGlobals(), [
'headers_list' => headers_list(),
'response_code' => http_response_code()
]));
}
public static function setGlobals()
{
self::$get = $_GET;
self::$post = $_POST;
self::$cookie = $_COOKIE;
self::$session = $_SESSION;
self::$env = $_ENV;
self::$request = $_REQUEST;
self::$server = $_SERVER;
if (function_exists('getallheaders')) {
self::$headers = getallheaders();
} elseif (function_exists('http_get_request_headers')) {
self::$headers = http_get_request_headers();
}
}
/**
* @return array
*/
private static function getSuperGlobals()
{
return [
'request' => self::$request,
'server' => self::$server,
'get' => self::$get,
'post' => self::$post,
'cookie' => self::$cookie,
'env' => self::$env,
'headers' => self::$headers
];
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
Plugin Name: WP-REST-API Event
Version: 0.0.1
Description:
Author:
*/
function wp_rest_api_event_register() {
spl_autoload_register(function($class) {
$namespace = 'app\\wpRestApiEvent\\';
if (false === strpos($class, $namespace)) {
return false;
}
$filename = __DIR__ . '/' . str_replace('\\', '/', str_replace($namespace, '', $class)) . '.php';
if (!file_exists($filename)) {
return false;
}
include $filename;
return true;
});
\app\wpRestApiEvent\event\EventSubscriber::setGlobals();
add_action('init', [\app\wpRestApiEvent\event\EventSubscriber::class, 'onInit']);
}
wp_rest_api_event_register();

View File

@@ -0,0 +1,14 @@
<?php get_header();?>
<div class="content no-pb">
<div class="top-panel empty"></div>
<div class="cont back-white">
<div class="site-error">
<h1>Not Found (#404)</h1>
<p>The above error occurred while the Web server was processing your request.</p>
<p>Please contact us if you think this is a server error. Thank you.</p>
</div>
</div>
</div>
<?php get_footer();

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +0,0 @@
/*!
* New UI Styles.
*/
.casebook-view p .highlight.note-highlight{background:#90ee90}.note-editor .ae-btn-audio,.note-editor .ae-btn-video,.note-editor .ae-mode-edit,.note-editor .ae-mode-edit .delete,.note-editor .ae-share,.note-editor .label-share{display:none}.note-view .stars{display:none}.download-btns{margin-right:110px}.download-btns label{width:49%;margin:0;white-space:nowrap;color:#46362d}.download-btns label input{position:relative;top:1px}.download-btns .button{width:48.9%}@media (max-width:1180px){.download-btns .button,.download-btns label{width:100%}}.modal h2{margin:0 0 20px}.merge-notes-table table{width:100%}.merge-notes-table table td,.merge-notes-table table th{padding:5px 15px 10px 0;width:1%;text-align:left;vertical-align:top}.merge-notes-table table td:last-child,.merge-notes-table table th:last-child{padding-right:0;width:auto}.merge-notes-table table th{white-space:nowrap;vertical-align:middle;border-bottom:1px solid #ccc;padding-bottom:15px}.merge-notes-table table tbody tr:first-child td{padding-top:15px}.merge-notes-s2 .form-group{padding-left:140px;position:relative;line-height:30px;min-height:30px}.merge-notes-s2 .form-group>label{position:absolute;left:0;top:0;line-height:30px}.merge-notes-s2 .form-group.add-stud{padding-right:80px}.merge-notes-s2 .form-group.add-stud .button{position:absolute;right:0;top:0}.merge-notes-s2 .form-group.add-stud select.form-control{padding:4px 12px;height:30px}.merge-notes-s2 .button{display:inline-block}.merge-notes-s2 span.red{color:red}.merge-notes-s2 .added-stud{display:block;padding:0 0 0 17px}.merge-notes-s2 .added-stud .remove-stud{margin-left:10px}.merge-notes-s2 .added-stud .remove-stud:hover{text-decoration:none;color:#000}.merge-notes-s2 .added-stud.sample{display:none}

File diff suppressed because one or more lines are too long

View File

@@ -88,8 +88,15 @@
<glyph unicode="&#xe932;" glyph-name="linkedin" d="M384 576h177.106v-90.782h2.532c24.64 44.194 84.958 90.782 174.842 90.782 186.946 0 221.52-116.376 221.52-267.734v-308.266h-184.61v273.278c0 65.184-1.334 149.026-96.028 149.026-96.148 0-110.82-70.986-110.82-144.292v-278.012h-184.542v576zM64 576h192v-576h-192v576zM256 736c0-53.019-42.981-96-96-96s-96 42.981-96 96c0 53.019 42.981 96 96 96s96-42.981 96-96z" />
<glyph unicode="&#xe933;" glyph-name="pinterest" d="M512 891.6c-245 0-443.6-198.6-443.6-443.6 0-188 117-348.4 282-413-3.8 35-7.4 89 1.6 127.2 8 34.6 52 220.4 52 220.4s-13.2 26.6-13.2 65.8c0 61.6 35.8 107.8 80.2 107.8 37.8 0 56.2-28.4 56.2-62.4 0-38-24.2-95-36.8-147.6-10.6-44.2 22-80.2 65.6-80.2 78.8 0 139.4 83.2 139.4 203.2 0 106.2-76.4 180.4-185.2 180.4-126.2 0-200.2-94.6-200.2-192.6 0-38.2 14.6-79 33-101.2 3.6-4.4 4.2-8.2 3-12.8-3.4-14-10.8-44.2-12.4-50.4-2-8.2-6.4-9.8-14.8-6-55.4 25.8-90 106.8-90 171.8 0 140 101.6 268.4 293 268.4 153.8 0 273.4-109.6 273.4-256.2 0-152.8-96.4-276-230.2-276-45 0-87.2 23.4-101.6 51 0 0-22.2-84.6-27.6-105.4-10-38.6-37-86.8-55.2-116.2 41.6-12.8 85.6-19.8 131.4-19.8 245 0 443.6 198.6 443.6 443.6 0 245.2-198.6 443.8-443.6 443.8z" />
<glyph unicode="&#xe934;" glyph-name="instagram" d="M512 867.8c136.8 0 153-0.6 206.8-3 50-2.2 77-10.6 95-17.6 23.8-9.2 41-20.4 58.8-38.2 18-18 29-35 38.4-58.8 7-18 15.4-45.2 17.6-95 2.4-54 3-70.2 3-206.8s-0.6-153-3-206.8c-2.2-50-10.6-77-17.6-95-9.2-23.8-20.4-41-38.2-58.8-18-18-35-29-58.8-38.4-18-7-45.2-15.4-95-17.6-54-2.4-70.2-3-206.8-3s-153 0.6-206.8 3c-50 2.2-77 10.6-95 17.6-23.8 9.2-41 20.4-58.8 38.2-18 18-29 35-38.4 58.8-7 18-15.4 45.2-17.6 95-2.4 54-3 70.2-3 206.8s0.6 153 3 206.8c2.2 50 10.6 77 17.6 95 9.2 23.8 20.4 41 38.2 58.8 18 18 35 29 58.8 38.4 18 7 45.2 15.4 95 17.6 53.8 2.4 70 3 206.8 3zM512 960c-139 0-156.4-0.6-211-3-54.4-2.4-91.8-11.2-124.2-23.8-33.8-13.2-62.4-30.6-90.8-59.2-28.6-28.4-46-57-59.2-90.6-12.6-32.6-21.4-69.8-23.8-124.2-2.4-54.8-3-72.2-3-211.2s0.6-156.4 3-211c2.4-54.4 11.2-91.8 23.8-124.2 13.2-33.8 30.6-62.4 59.2-90.8 28.4-28.4 57-46 90.6-59 32.6-12.6 69.8-21.4 124.2-23.8 54.6-2.4 72-3 211-3s156.4 0.6 211 3c54.4 2.4 91.8 11.2 124.2 23.8 33.6 13 62.2 30.6 90.6 59s46 57 59 90.6c12.6 32.6 21.4 69.8 23.8 124.2 2.4 54.6 3 72 3 211s-0.6 156.4-3 211c-2.4 54.4-11.2 91.8-23.8 124.2-12.6 34-30 62.6-58.6 91-28.4 28.4-57 46-90.6 59-32.6 12.6-69.8 21.4-124.2 23.8-54.8 2.6-72.2 3.2-211.2 3.2v0zM512 711c-145.2 0-263-117.8-263-263s117.8-263 263-263 263 117.8 263 263c0 145.2-117.8 263-263 263zM512 277.4c-94.2 0-170.6 76.4-170.6 170.6s76.4 170.6 170.6 170.6c94.2 0 170.6-76.4 170.6-170.6s-76.4-170.6-170.6-170.6zM846.8 721.4c0-33.91-27.49-61.4-61.4-61.4s-61.4 27.49-61.4 61.4c0 33.91 27.49 61.4 61.4 61.4s61.4-27.49 61.4-61.4z" />
<glyph unicode="&#xe935;" glyph-name="banner-right" horiz-adv-x="647" d="M647.245 960h-647.245v-1024h647.245l-512 512z" />
<glyph unicode="&#xe936;" glyph-name="banner-bg" horiz-adv-x="13947" d="M13947.17 960h-13947.17v-1024h13947.17l-512 512z" />
<glyph unicode="&#xe937;" glyph-name="lock" d="M204.8 563.2v102.4c0 169.662 137.538 307.2 307.2 307.2s307.2-137.538 307.2-307.2v0-102.4h51.2c56.554 0 102.4-45.846 102.4-102.4v0-409.6c0-56.554-45.846-102.4-102.4-102.4v0h-716.8c-56.554 0-102.4 45.846-102.4 102.4v0 409.6c0 56.32 46.080 102.4 102.4 102.4h51.2zM460.8 218.624v-116.224h102.4v116.224c30.824 18.035 51.2 50.978 51.2 88.681 0 56.554-45.846 102.4-102.4 102.4s-102.4-45.846-102.4-102.4c0-37.703 20.376-70.646 50.717-88.419l0.483-0.262zM358.4 665.6v-102.4h307.2v102.4c0 84.831-68.769 153.6-153.6 153.6s-153.6-68.769-153.6-153.6v0z" />
<glyph unicode="&#xe938;" glyph-name="credit-card, money, payment, ecommerce" d="M928 832h-832c-52.8 0-96-43.2-96-96v-576c0-52.8 43.2-96 96-96h832c52.8 0 96 43.2 96 96v576c0 52.8-43.2 96-96 96zM96 768h832c17.346 0 32-14.654 32-32v-96h-896v96c0 17.346 14.654 32 32 32zM928 128h-832c-17.346 0-32 14.654-32 32v288h896v-288c0-17.346-14.654-32-32-32zM128 320h64v-128h-64zM256 320h64v-128h-64zM384 320h64v-128h-64z" />
<glyph unicode="&#xe939;" glyph-name="cons" horiz-adv-x="1059" d="M587.034 346.483l472.276 366.345-242.759 247.172-353.103-472.276-348.69 406.069-114.759-119.172 410.483-366.345-353.103-472.276 472.276 366.345 406.069-366.345z" />
<glyph unicode="&#xe93a;" glyph-name="print" d="M640 192.005h-319.988v-64.015h319.988v64.015zM256.017 895.997h511.993v-127.999h63.995v127.999c0 35.311-28.626 64.003-63.995 64.003h-511.993c-35.346 0-64.005-28.691-64.005-64.003v-127.999h64.005v127.999zM703.99 320h-383.977v-64.005h383.977v64.005zM960.010 703.994h-896.006c-35.346 0-64.005-28.683-64.005-63.996v-384.003c0-35.369 28.658-63.99 64.005-63.99h128.003v-192.010c0-35.379 28.659-64 64.005-64h511.992c35.369 0 63.995 28.621 63.995 64v192.010h128.005c35.374 0 63.995 28.621 63.995 63.99v384.003c0 35.314-28.621 63.996-63.99 63.996zM768.005-0.005h-511.992v384.005h511.992v-384.005zM895.995 511.992c-35.374 0-63.995 28.626-63.995 64.003 0 35.31 28.621 64.003 63.995 64.003 35.384 0 64.015-28.691 64.015-64.003 0-35.375-28.636-64.003-64.015-64.003z" />
<glyph unicode="&#xe953;" glyph-name="calendar" d="M320 576h128v-128h-128zM512 576h128v-128h-128zM704 576h128v-128h-128zM128 192h128v-128h-128zM320 192h128v-128h-128zM512 192h128v-128h-128zM320 384h128v-128h-128zM512 384h128v-128h-128zM704 384h128v-128h-128zM128 384h128v-128h-128zM832 960v-64h-128v64h-448v-64h-128v64h-128v-1024h960v1024h-128zM896 0h-832v704h832v-704z" />
<glyph unicode="&#xe968;" glyph-name="redo2" d="M576 711.628v248.372l384-384-384-384v253.824c-446.75 10.482-427.588-303.792-313.86-509.824-280.712 303.414-221.1 789.57 313.86 775.628z" />
<glyph unicode="&#xe978;" glyph-name="quotes-right" d="M800 320c-123.712 0-224 100.29-224 224 0 123.712 100.288 224 224 224s224-100.288 224-224l1-32c0-247.424-200.576-448-448-448v128c85.474 0 165.834 33.286 226.274 93.726 11.634 11.636 22.252 24.016 31.83 37.020-11.438-1.8-23.16-2.746-35.104-2.746zM224 320c-123.71 0-224 100.29-224 224 0 123.712 100.29 224 224 224s224-100.288 224-224l1-32c0-247.424-200.576-448-448-448v128c85.474 0 165.834 33.286 226.274 93.726 11.636 11.636 22.254 24.016 31.832 37.020-11.44-1.8-23.16-2.746-35.106-2.746z" />
<glyph unicode="&#xe9d2;" glyph-name="bookmark" d="M192 960v-1024l320 320 320-320v1024z" />
<glyph unicode="&#xea03;" glyph-name="point-up" d="M960 352v160c0 52.934-43.066 96-96 96-17.104 0-33.176-4.494-47.098-12.368-17.076 26.664-46.958 44.368-80.902 44.368-24.564 0-47.004-9.274-64-24.504-16.996 15.23-39.436 24.504-64 24.504-11.214 0-21.986-1.934-32-5.484v229.484c0 52.934-43.066 96-96 96s-96-43.066-96-96v-394.676l-176.018 93.836c-14.536 8.4-31.126 12.84-47.982 12.84-52.934 0-96-43.066-96-96 0-26.368 10.472-50.954 29.49-69.226 0.248-0.238 0.496-0.47 0.75-0.7l239.17-218.074h-45.41c-17.672 0-32-14.326-32-32v-192c0-17.674 14.328-32 32-32h640c17.674 0 32 14.326 32 32v192c0 17.674-14.326 32-32 32h-44.222l72.844 145.69c2.222 4.442 3.378 9.342 3.378 14.31zM896 96c0-17.674-14.326-32-32-32s-32 14.326-32 32 14.326 32 32 32 32-14.326 32-32zM896 359.554l-83.776-167.554h-383.826l-290.818 265.166c-6.18 6.070-9.58 14.164-9.58 22.834 0 17.644 14.356 32 32 32 5.46 0 10.612-1.31 15.324-3.894 0.53-0.324 1.070-0.632 1.622-0.926l224-119.416c9.92-5.288 21.884-4.986 31.52 0.8 9.638 5.782 15.534 16.196 15.534 27.436v448c0 17.644 14.356 32 32 32s32-14.356 32-32v-320c0-17.672 14.326-32 32-32s32 14.328 32 32c0 17.644 14.356 32 32 32s32-14.356 32-32c0-17.672 14.326-32 32-32s32 14.328 32 32c0 17.644 14.356 32 32 32s32-14.356 32-32v-32c0-17.672 14.326-32 32-32s32 14.328 32 32c0 17.644 14.356 32 32 32s32-14.356 32-32v-152.446z" />
<glyph unicode="&#xea1c;" glyph-name="caret" d="M192 832l640-384-640-384z" />
@@ -98,4 +105,5 @@
<glyph unicode="&#xea8d;" glyph-name="facebook" d="M853.35 960h-682.702c-94.25 0-170.648-76.42-170.648-170.686v-682.63c0-94.266 76.398-170.684 170.648-170.684h341.352v448h-128v128h128v96c0 88.366 71.634 160 160 160h160v-128h-160c-17.674 0-32-14.328-32-32v-96h176l-32-128h-144v-448h213.35c94.25 0 170.65 76.418 170.65 170.684v682.63c0 94.266-76.4 170.686-170.65 170.686z" />
<glyph unicode="&#xea91;" glyph-name="twitter-2" d="M1024 765.582c-37.676-16.708-78.164-28.002-120.66-33.080 43.372 26 76.686 67.17 92.372 116.23-40.596-24.078-85.556-41.56-133.41-50.98-38.32 40.83-92.922 66.34-153.346 66.34-116.022 0-210.088-94.058-210.088-210.078 0-16.466 1.858-32.5 5.44-47.878-174.6 8.764-329.402 92.4-433.018 219.506-18.084-31.028-28.446-67.116-28.446-105.618 0-72.888 37.088-137.192 93.46-174.866-34.438 1.092-66.832 10.542-95.154 26.278-0.020-0.876-0.020-1.756-0.020-2.642 0-101.788 72.418-186.696 168.522-206-17.626-4.8-36.188-7.372-55.348-7.372-13.538 0-26.698 1.32-39.528 3.772 26.736-83.46 104.32-144.206 196.252-145.896-71.9-56.35-162.486-89.934-260.916-89.934-16.958 0-33.68 0.994-50.116 2.94 92.972-59.61 203.402-94.394 322.042-94.394 386.422 0 597.736 320.124 597.736 597.744 0 9.108-0.206 18.168-0.61 27.18 41.056 29.62 76.672 66.62 104.836 108.748z" />
<glyph unicode="&#xea92;" glyph-name="twitter" d="M853.342 960h-682.656c-93.874 0-170.686-76.81-170.686-170.69v-682.624c0-93.936 76.812-170.686 170.686-170.686h682.656c93.876 0 170.658 76.75 170.658 170.69v682.62c0 93.88-76.782 170.69-170.658 170.69zM766.478 578.52c0.252-5.632 0.38-11.296 0.38-16.988 0-173.51-132.070-373.588-373.584-373.588-74.15 0-143.168 21.738-201.276 58.996 10.272-1.218 20.724-1.84 31.322-1.84 61.518 0 118.134 20.992 163.072 56.21-57.458 1.054-105.948 39.020-122.658 91.184 8.018-1.532 16.244-2.36 24.704-2.36 11.976 0 23.578 1.61 34.592 4.61-60.064 12.066-105.326 65.132-105.326 128.75 0 0.554 0 1.104 0.012 1.652 17.7-9.834 37.948-15.742 59.47-16.424-35.232 23.546-58.414 63.736-58.414 109.292 0 24.064 6.476 46.62 17.78 66.010 64.76-79.44 161.51-131.712 270.634-137.19-2.238 9.612-3.4 19.632-3.4 29.924 0 72.512 58.792 131.298 131.304 131.298 37.766 0 71.892-15.944 95.842-41.462 29.908 5.886 58.008 16.814 83.38 31.862-9.804-30.662-30.624-56.394-57.732-72.644 26.56 3.174 51.866 10.232 75.412 20.674-17.594-26.328-39.854-49.454-65.514-67.966z" />
<glyph unicode="&#xea9d;" glyph-name="youtube" d="M1013.8 652.8c0 0-10 70.6-40.8 101.6-39 40.8-82.6 41-102.6 43.4-143.2 10.4-358.2 10.4-358.2 10.4h-0.4c0 0-215 0-358.2-10.4-20-2.4-63.6-2.6-102.6-43.4-30.8-31-40.6-101.6-40.6-101.6s-10.2-82.8-10.2-165.8v-77.6c0-82.8 10.2-165.8 10.2-165.8s10-70.6 40.6-101.6c39-40.8 90.2-39.4 113-43.8 82-7.8 348.2-10.2 348.2-10.2s215.2 0.4 358.4 10.6c20 2.4 63.6 2.6 102.6 43.4 30.8 31 40.8 101.6 40.8 101.6s10.2 82.8 10.2 165.8v77.6c-0.2 82.8-10.4 165.8-10.4 165.8zM406.2 315.2v287.8l276.6-144.4-276.6-143.4z" />
</font></defs></svg>

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 61 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -0,0 +1,17 @@
$(document).ready(function () {
function promoTopNext() {
if ($('.promo-backs').length) {
setTimeout(function () {
var current = $('.promo-bg.current');
current.removeClass('current');
if (current.next().length) {
current.next().addClass('current');
} else {
current.parent().find('.promo-bg:first-child').addClass('current');
}
promoTopNext();
}, 4500);
}
};
promoTopNext();
});

View File

@@ -11,11 +11,10 @@ require_once 'inc/walker-nav-menu.php';
<div class="title">Menu</div>
<a href="/features">Features</a>
<a href="/about-us">About Us</a>
<a href="/privacy-policy">Private Policy</a>
<a href="/privacy-policy">Privacy Policy</a>
<a href="/terms-of-use">Terms of Use</a>
<a href="/contact-us">Contact Us</a>
<a href="#">FAQ</a>
<a href="#">Help</a>
<a href="/faq-page">FAQs</a>
</div>
<div class="fm-col hide-sm">
<div class="title">Product</div>
@@ -24,14 +23,13 @@ require_once 'inc/walker-nav-menu.php';
</div>
<div class="fm-col hide-sm">
<div class="title">Legal</div>
<a href="/privacy-policy">Private Policy</a>
<a href="/privacy-policy">Privacy Policy</a>
<a href="/terms-of-use">Terms of Use</a>
</div>
<div class="fm-col hide-sm">
<div class="title">Contact</div>
<a href="/contact-us">Contact Us</a>
<a href="#">FAQ</a>
<a href="#">Help</a>
<a href="/faq-page">FAQs</a>
</div>
<div class="fm-col">
<div class="title">Follow Us</div>
@@ -47,7 +45,7 @@ require_once 'inc/walker-nav-menu.php';
<div class="title">Subscribe</div>
<div class="sub-input">
<div id="mc_embed_signup">
<form action="https://lawcarta.us12.list-manage.com/subscribe/post?u=f1055fdbaf5889ec432f2821f&amp;id=fbabc18ead" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate="">
<form action="https://lawcarta.us12.list-manage.com/subscribe/post?u=f1055fdbaf5889ec432f2821f&id=fbabc18ead" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate="">
<div id="mc_embed_signup_scroll">
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Enter your Email" required="">
@@ -61,11 +59,17 @@ require_once 'inc/walker-nav-menu.php';
<a href="#" class="logo">
<img src="<?= get_theme_file_uri('/assets/img/logo.png'); ?>" alt="LawCarta lawcarta">
</a>
<p>&copy; 2018 <?= get_option('lawcarta_company'); ?>. All rights reserved</p>
<p>&copy; <?=date("Y"); ?> <?= get_option('lawcarta_company'); ?>. All rights reserved</p>
</div>
</div>
</div>
<?php if(0):?>
<div class="app-download">
<div class="title">Download our app</div>
<a target="_blank" href="https://apps.apple.com/us/app/livecarta/id1505717341" class="app-download"><img src="<?= get_theme_file_uri('/assets/img/app-store.png'); ?>" alt=""></a>
<a target="_blank" href="https://play.google.com/store/apps/details?id=com.teqspring.apps.livecarta" class="app-download"><img src="<?= get_theme_file_uri('/assets/img/google-store.png'); ?>" alt=""></a>
</div>
<?php endif;?>
</div>
</footer>
@@ -76,6 +80,7 @@ require_once 'inc/walker-nav-menu.php';
<?php wp_footer(); ?>
<script src="<?= get_theme_file_uri('/assets/js/featuresScroll.js'); ?>"></script>
<script src="<?= get_theme_file_uri('/assets/js/faqSearch.js'); ?>"></script>
<script src="<?= get_theme_file_uri('/assets/js/promoImage.js'); ?>"></script>
</body>
</html>

View File

@@ -22,7 +22,6 @@ add_action('after_setup_theme', function () {
add_editor_style([
lawcarta_fonts_url(),
'assets/css/style.min.css',
'assets/css/newcss.min.css',
'assets/css/custom.css',
'assets/css/livecarta.css'
]);
@@ -66,11 +65,16 @@ add_action('wp_enqueue_scripts', function () {
wp_enqueue_style('jquery-ui', '//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css', ['bootstrap'], null);
wp_enqueue_script('jquery-ui', '//code.jquery.com/ui/1.12.1/jquery-ui.min.js', ['custom-jquery'], null, true);
wp_enqueue_script('lawcarta-js', get_theme_file_uri('/assets/js/faqSearch.js'), ['custom-jquery'], null, true);
wp_enqueue_style('lawcarta-libs', get_theme_file_uri('/assets/css/libs.min.css'));
if(is_front_page()){
wp_enqueue_style('lawcarta-style-index', get_theme_file_uri('/assets/css/main-page.min.css'),['lawcarta-libs']);
}else{
wp_enqueue_style('lawcarta-style-index', get_theme_file_uri('/assets/css/main-page.min.css'),['lawcarta-libs']);
//wp_enqueue_style('lawcarta-external-style', get_theme_file_uri('/assets/css/style.min.css'), ['jquery-ui','lawcarta-style-index']);
wp_enqueue_style('lawcarta-custom', get_theme_file_uri('/assets/css/custom.css'), ['lawcarta-style-index']);
wp_enqueue_style('lawcarta-style', get_stylesheet_uri(), ['lawcarta-custom']);
}
wp_enqueue_style('lawcarta-external-style', get_theme_file_uri('/assets/css/style.min.css'), ['jquery-ui']);
wp_enqueue_style('lawcarta-newcss', get_theme_file_uri('/assets/css/newcss.min.css'), ['lawcarta-external-style']);
wp_enqueue_style('lawcarta-custom', get_theme_file_uri('/assets/css/custom.css'), ['lawcarta-newcss']);
wp_enqueue_style('lawcarta-style', get_stylesheet_uri(), ['lawcarta-custom']);
});
/**
@@ -175,10 +179,59 @@ function my_filter_post_where( $where) {
if (!enableSearchQuery()) {
return $where;
}
$parts = explode(' ', trim($_POST['search_text']));
$likeConditions = [];
foreach($parts as $part){
$likeConditions [] = $wpdb->posts . '.post_title LIKE \'%' . trim(esc_sql( $part )) . '%\' ';
$likeConditions [] = $wpdb->posts . '.post_content LIKE \'%' . trim(esc_sql( $part )) . '%\' ';
}
$where .= ' AND (
' . $wpdb->posts . '.post_title LIKE \'%' . esc_sql( $_POST['search_text'] ) . '%\' OR
' . $wpdb->posts . '.post_content LIKE \'%' . esc_sql( $_POST['search_text'] ) . '%\'
'.implode(' OR ', $likeConditions) .'
)';
return $where;
}
function get_lawcarta_url(){
$urlParts = parse_url(home_url());
$scheme = isset($urlParts['scheme']) ? $urlParts['scheme'] . '://' : '';
$baseTemplate = basename( get_page_template() );
$host = isset($urlParts['host']) ? $urlParts['host'] : '';
if (defined('LAWCARTA_SUBDOMAIN')) {
$hostParts = explode('.', $host);
if (count($hostParts) === 3) {
array_shift($hostParts);
}
if (!empty(LAWCARTA_SUBDOMAIN)) {
array_unshift($hostParts, LAWCARTA_SUBDOMAIN);
}
$host = implode('.', $hostParts);
}
$port = isset($urlParts['port']) ? $urlParts['port'] : '';
if (defined('LAWCARTA_PORT')) {
$port = LAWCARTA_PORT;
}
if (!empty($port)) {
$port = ':' . $port;
}
return "$scheme$host$port";
}
function get_lawcarta_ga_config(){
$res = '';
if(wp_get_theme() == 'LawCarta'){
$res = LAWCARTA_GA_CONFIG;
}elseif(wp_get_theme() == 'LiveCarta'){
$res = LIVECARTA_GA_CONFIG;
}
return $res;
}

View File

@@ -2,38 +2,12 @@
require_once 'inc/walker-nav-menu.php';
$urlParts = parse_url(home_url());
$scheme = isset($urlParts['scheme']) ? $urlParts['scheme'] . '://' : '';
$baseTemplate = basename( get_page_template() );
$host = isset($urlParts['host']) ? $urlParts['host'] : '';
if (defined('LAWCARTA_SUBDOMAIN')) {
$hostParts = explode('.', $host);
if (count($hostParts) === 3) {
array_shift($hostParts);
}
if (!empty(LAWCARTA_SUBDOMAIN)) {
array_unshift($hostParts, LAWCARTA_SUBDOMAIN);
}
$host = implode('.', $hostParts);
}
$port = isset($urlParts['port']) ? $urlParts['port'] : '';
if (defined('LAWCARTA_PORT')) {
$port = LAWCARTA_PORT;
}
if (!empty($port)) {
$port = ':' . $port;
}
$lawCartaUrl = "$scheme$host$port";
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="60x60" href="<?= get_theme_file_uri('/assets/img/favicon/apple-touch-icon.png'); ?>">
<link rel="icon" type="image/png" sizes="32x32" href="<?= get_theme_file_uri('/assets/img/favicon/favicon-32x32.png'); ?>">
@@ -48,16 +22,48 @@ $lawCartaUrl = "$scheme$host$port";
<?php if ($baseTemplate == 'page_home.php'):?>
<script type="application/javascript">
var isHomeTemplate = true;
var lawCartaDomain = '<?= $lawCartaUrl?>';
var lawCartaDomain = '<?= get_lawcarta_url()?>';
</script>
<?php endif;?>
<?php if (LAWCARTA_ENVIRONMENT_NAME == 'prod'):?>
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '233239914388499');
fbq('track', 'PageView');
</script>
<noscript>
<img height="1" width="1" src="https://www.facebook.com/tr?id=233239914388499&ev=PageView&noscript=1"/>
</noscript>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '<?=get_lawcarta_ga_config()?>' , 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<?php endif;?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="wrapper">
<div class="wrapper white new-footer">
<?php
$the_page = sanitize_post( $GLOBALS['wp_the_query']->get_queried_object() );
$slug = $the_page->post_name;
if ($slug != 'publish-your-book'):?>
<header>
<div id="header-menu" class="cont">
<a href="<?= site_url(); ?>" class="main-logo"><img src="<?= get_theme_file_uri('/assets/img/logo.png'); ?>"></a>
@@ -68,7 +74,7 @@ $lawCartaUrl = "$scheme$host$port";
'menu' => 'top',
'menu_class' => 'navTab nav',
'container' => 'div',
'container_class' => 'header-menu',
'container_class' => 'header-menu center',
'depth' => 1,
'walker' => new LawCarta_Walker_Nav_Menu(),
'icon_wrap' => 'i',
@@ -77,25 +83,114 @@ $lawCartaUrl = "$scheme$host$port";
}
?>
</div>
<iframe src="<?= $lawCartaUrl ?>/menu" style="display: none;"></iframe>
<div class="mobile-menu">
<a href="#" class="btn-toggle-menu">
<i class="icon-menu" title="Menu"></i>
<i class="icon-close" title="Close"></i>
</a>
</div>
<div class="mobile-nav" style="display: none;">
<div class="mm-bg">
<?php
if (has_nav_menu('top')) {
wp_nav_menu([
'menu' => 'top',
'menu_class' => 'navTab nav',
'container' => 'div',
'container_class' => 'header-menu center',
'depth' => 1,
'walker' => new LawCarta_Walker_Nav_Menu(),
'icon_wrap' => 'i',
'theme_location' => 'top',
]);
}
?>
<!-- <div class="header-menu static">-->
<!-- <ul id="w3" class="navTab nav">-->
<!-- <li><a href="http://lawcarta.loc/casebook/lib">My Library</a></li>-->
<!-- <li><a href="http://lawcarta.loc/course">Courses</a></li>-->
<!-- <li><a class="header-menu-point nav-shop" href="http://lawcarta.loc/checkout/cart">My Cart (0) <i class="icon-shop"></i></a></li>-->
<!-- </ul>-->
<!-- </div>-->
<!---->
<!-- <div class="sign-block">-->
<!---->
<!-- <ul id="w4" class="signed-user-block nav">-->
<!-- <li class="dropdown">-->
<!-- <a class="signed-user dropdown-toggle" href="#" data-toggle="dropdown">Zheka <span class="icon-account-settings"></span> <span class="icon-caret"></span></a>-->
<!-- <ul id="w5" class="dropdown-menu">-->
<!-- <li>-->
<!-- <a href="http://lawcarta.loc/user/registration/profile" tabindex="-1">My Profile</a></li>-->
<!-- <li>-->
<!-- <a href="http://lawcarta.loc/report/royalties" tabindex="-1">Royalties</a>-->
<!-- </li>-->
<!-- <li>-->
<!-- <a href="http://lawcarta.loc/report/transactions" tabindex="-1">Transaction History</a></li>-->
<!-- <li>-->
<!-- <a href="http://lawcarta.loc/user/admin/index?sort=-created_at" tabindex="-1">Admin</a>-->
<!-- </li>-->
<!-- <li>-->
<!-- <a href="http://lawcarta.loc/user/logout" data-method="post" tabindex="-1">Logout</a>-->
<!-- </li>-->
<!-- </ul>-->
<!-- </li>-->
<!-- </ul>-->
<!-- </div>-->
<!-- <div class="sign-block">-->
<!-- <a href="#" class="button bordered">LOGIN</a>-->
<!-- <a href="#" class="button bordered">REGISTER</a>-->
<!-- </div>-->
</div>
</div>
<iframe src="<?= get_lawcarta_url()?>/menu" style="display: none;"></iframe>
<script type="application/javascript">
var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
var eventer = window[eventMethod];
var messageEvent = eventMethod === "attachEvent" ? "onmessage" : "message";
eventer(messageEvent, function (ev) {
if (ev.origin.indexOf('<?= $lawCartaUrl ?>') !== -1) {
document.getElementById('header-menu').insertAdjacentHTML('beforeend', ev.data);
if ($('#is-guest').text() == 'true') {
$('.guest-data').css('display', 'inline-block');
} else {
$('.home-label').text('Dashboard').attr('href', '<?= $lawCartaUrl?>/dashboard');
if (typeof isHomeTemplate != 'undefined' && isHomeTemplate === true) {
window.location.href = lawCartaDomain + '/dashboard';
}
}
if (ev.origin.indexOf('<?= get_lawcarta_url()?>') !== -1) {
// document.getElementById('header-menu').insertAdjacentHTML('beforeend', ev.data);
$('body').append('<div id="header-parser"></div>');
$('#header-parser').append(ev.data);
var inHTML;
if ($('#header-parser .header-menu').length){
$('.header-menu.center ul').each(function(){
$(this).append($('#header-parser .header-menu ul').html());
});
}
if ($('#header-parser .sign-block').length){
inHTML = $('#header-parser .sign-block')[0].outerHTML;
$('header .cont').append(inHTML);
$('.mobile-nav .mm-bg').append(inHTML);
}
if ($('#header-parser #is-guest').length){
$('#header-parser #is-guest').appendTo($('header .cont'));
}
// $('#header-parser').hide();
$('#header-parser').remove();
if ($('#is-guest').text() == 'true') {
$('.guest-data').css('display', 'inline-block');
$('.mobile-nav .guest-data').css('display', 'block');
} else {
$('.home-label').text('Dashboard').attr('href', '<?= get_lawcarta_url()?>/dashboard');
if (typeof isHomeTemplate != 'undefined' && isHomeTemplate === true) {
window.location.href = lawCartaDomain + '/dashboard';
}
}
}
});
jQuery('.btn-toggle-menu').on('click', function (e) {
e.preventDefault();
jQuery(this).toggleClass('on');
jQuery('.mobile-nav').toggleClass('show');
});
</script>
</header>
<?php endif;?>

View File

@@ -0,0 +1,123 @@
<?php
get_header();
if (have_posts()):
while (have_posts()):
the_post();
?>
<?php// the_title(); ?>
<?php// the_content(); ?>
<div class="content promo-facebook">
<div class="main-page">
<div class="feature-block promo facebook right-img">
<div class="cont">
<div class="fb-img"><img src="<?= get_theme_file_uri('/assets/img/promo-page/live-feature4.png'); ?>" alt=""></div>
<div class="fb-title logo"><img src="<?= get_theme_file_uri('/assets/img/livecarta-logo.png'); ?>" alt=""></div>
<div class="fb-title">Your all-in-one publishing platform</div>
<div class="fb-title bottom">Get your book published and delivered to a global audience or selected groups</div>
<div class="fb-text">
<p>With one-on-one support from our team, you can focus on writing and we'll get your book e-ready and print-ready in no time. Personalize your book settings to control how your book is used and publish new editions and revisions instantly. A fully flexible publishing solution from start to finish.</p>
<div class="sub-input">
<div id="mc_embed_signup">
<form action="https://lawcarta.us12.list-manage.com/subscribe/post?u=f1055fdbaf5889ec432f2821f&id=fbabc18ead" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate="">
<div id="mc_embed_signup_scroll">
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Enter your Email" required="">
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_f1055fdbaf5889ec432f2821f_fbabc18ead" tabindex="-1" value=""></div>
<input type="submit" value="Request a demo" name="subscribe" id="mc-embedded-subscribe" class="button mp-top-right">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="feature-block promo facebook">
<div class="cont">
<div class="fb-text">
<p class="with-icon">
<span class="icon-edit-history"></span>
<b>Publish faster. <br>Release new editions and minor revisions at any time.</b>
Keep your work up-to-date. Easily fix typos and revisions in real time and never worry about delays between new editions.
</p>
<p class="with-icon">
<span class="icon-book"></span>
<b>Earn higher royalties. <br>Have full control over your intellectual property.</b>
Set your own price and earn 50% royalties or higher. Our non-exclusive license gives you the freedom publish anywhere.
</p>
<p class="with-icon">
<span class="icon-account-settings"></span>
<b>Publish for the whole world or just your class. <br>Flexible privacy and distribution settings are just a couple of clicks away.</b>
Check your preference settings before publishing to decide how your book is used. Choose from multiple formats, from the electronic copy to print-on-demand and pdf downloads. You can share your work publicly in the Catalog or privately to a selected audience.
</p>
<p class="with-icon">
<span class="icon-youtube"></span>
<b>Supplement your work with relevant videos, podcasts, and other multimedia.</b>
Enhance books in a way traditional publishing cant. Incorpate a mix of mediums from images, audio, videos, and more to really make your book come to life.
</p>
<p class="with-icon">
<span class="icon-edit2"></span>
<b>Customize books for teaching a course and empower students.</b>
Improve how books and other learning materials can be used for your courses: customize materials that can easily be shared with your class, create tailored books for targeted audiences, and match your lesson plans for a cohesive learning experience.
</p>
</div>
</div>
</div>
<div class="promo-header">
<div class="cont">
<h3>What our authors are saying</h3>
</div>
</div>
<div class="mp-serve facebook reviews">
<div class="cont">
<div class="sc-cont">
<div class="serve-col">
<div class="quote-icon"><span class="icon-quotes-right"></span></div>
<p class="italic">LawCarta has enabled me to publish a casebook that is easily accessible to students at low or no cost to them. I can make revisions whenever new developments come along to keep the material current. I think this is the way to go with casebook publishing!</p>
<div class="sc-author">
<div class="sc-avatar"><img src="<?= get_theme_file_uri('/assets/img/reviews-avatars/thomascotter.png'); ?>" alt=""></div>
<div class="sc-author-text">
<p><b>Thomas Cotter</b></p>
<p>Taft Stettinius & Hollister Professor of Law, University of Minnesota Law School</p>
</div>
</div>
</div>
<div class="divider"></div>
<div class="serve-col">
<div class="quote-icon"><span class="icon-quotes-right"></span></div>
<p class="italic">LawCarta is an innovative, cost effective and quick way to produce a case book. It offers both an online and a well bound, well printed, glossy physical copy option. The staff are efficient, helpful and very responsive throughout the production process. There is no other option that offers such a quick turnaround time. What is particularly unique is the option to easily make revisions for subsequent editions.</p>
<div class="sc-author">
<div class="sc-avatar"><img src="<?= get_theme_file_uri('/assets/img/reviews-avatars/ziyadmotala.png'); ?>" alt=""></div>
<div class="sc-author-text">
<p><b>Ziyad Motala</b></p>
<p>Professor of Law at Howard University School of Law</p>
</div>
</div>
</div>
<div class="divider"></div>
<div class="serve-col">
<div class="quote-icon"><span class="icon-quotes-right"></span></div>
<p class="italic">Open-access publishing is the future of legal pedagogy, and LawCarta is on the cutting edge. I deeply appreciate their work formatting, distributing, and promoting the open-access professional responsibility casebook I co-authored. Our goal was to make free teaching materials available to as many people as possible, and LawCarta helped make it happen.</p>
<div class="sc-author">
<div class="sc-avatar"><img src="<?= get_theme_file_uri('/assets/img/reviews-avatars/brianfrye.png'); ?>" alt=""></div>
<div class="sc-author-text">
<p><b>Brian L. Frye</b></p>
<p>Spears-Gilbert Associate Professor of Law, UK Rosenberg College of Law</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
endwhile;
endif;
get_footer();

View File

@@ -45,7 +45,7 @@ if ($tIds !== false) {
<div class="cont">
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li class="active">FAQ</li>
<li class="active">FAQs</li>
</ol>
</div>
</div>
@@ -93,8 +93,8 @@ if ($tIds !== false) {
<div class="cont">
<div class="sb-head">Interested? Get to know more</div>
<div class="buttons">
<a href="#" class="button xxl mp-top-right">Request a demo</a>
<a href="#" class="button xxl mp-top-left">Sign Up For Free</a>
<a href="/contact-us" class="button xxl mp-top-right">Request a demo</a>
<a href="<?= get_lawcarta_url()?>/user/registration" class="button xxl mp-top-left">Sign Up For Free</a>
</div>
</div>
</div>
@@ -103,4 +103,3 @@ if ($tIds !== false) {
<?php
get_footer();

View File

@@ -23,7 +23,7 @@ $post = $posts[0];
<div class="cont">
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li class="active"><a href="/faq-page">FAQ</a></li>
<li class="active"><a href="/faq-page">FAQs</a></li>
</ol>
</div>
</div>
@@ -43,8 +43,8 @@ $post = $posts[0];
<div class="cont">
<div class="sb-head">Interested? Get to know more</div>
<div class="buttons">
<a href="#" class="button xxl mp-top-right">Request a demo</a>
<a href="#" class="button xxl mp-top-left">Sign Up For Free</a>
<a href="/contact-us" class="button xxl mp-top-right">Request a demo</a>
<a href="<?= get_lawcarta_url()?>/user/registration" class="button xxl mp-top-left">Sign Up For Free</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,373 @@
.front-accordion .fa-head {
border: 1px solid #779bca;
color: #475669;
background: #fff;
-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
position: relative;
z-index: 2; }
.front-accordion .fa-head .collapse-link {
color: #475669; }
.front-accordion .fa-head .collapse-link span {
color: #0c4e91; }
.front-accordion .fa-head.with-options .options-link {
color: #475669; }
.front-accordion .fa-head.with-options .options-link:hover {
color: #333; }
.front-accordion .form-group label {
color: #0c4e91; }
.front-accordion .form-group.checkbox-label label {
color: #333; }
/* Buttons. */
.button {
background: #ff6b00; }
.button.xxl {
border-radius: 25px;
padding: 0 28px;
border: none;
height: 40px;
line-height: 40px; }
.button.mp-top-left {
background: #ff6b00;
border-color: #ff6b00;
color: #fff; }
.button.mp-top-left:hover {
opacity: 1;
background: #ff8933;
border-color: #ff8933; }
.button.mp-top-right, .button.mp-top-blue {
background: #134d94;
border-color: #134d94;
color: #fff; }
.button.mp-top-right:hover, .button.mp-top-blue:hover {
background: #1965c1;
background: #1965c1;
opacity: 1; }
.button.mp-top-right.xl, .button.mp-top-blue.xl {
border: none;
line-height: 30px; }
@media (min-width: 769px) {
.button.mp-top-right.xl, .button.mp-top-blue.xl {
line-height: 36px; } }
.button.mp-btn {
background: #ff6b00;
border-color: #ff6b00; }
.button.mp-btn:hover {
opacity: 1;
background: #cc5600;
border-color: #cc5600; }
.button.bordered {
background: #fff;
border: 2px solid #134d96;
color: #134d96;
-webkit-box-shadow: none;
box-shadow: none;
line-height: 36px; }
.button.bordered.xxl {
-webkit-box-shadow: none;
box-shadow: none; }
.button.bordered:hover {
background: rgba(0, 0, 0, 0.05); }
header {
background: #fff; }
header .main-logo {
height: 33px;
top: 5px;
left: -5px; }
@media (min-width: 769px) {
header .main-logo {
top: 20px;
left: 40px; } }
header .header-menu ul li a {
color: #0c4e91;
font-weight: bold; }
header .header-menu ul li a:hover {
color: #0c4e91;
border-bottom-color: #0c4e91; }
header .header-menu ul li a.selected {
color: #0c4e91;
border-bottom-color: #0c4e91; }
header .header-menu ul li.active a {
color: #ff6b00; }
header .header-menu ul li.active a:hover {
border-bottom-color: #ff6b00; }
header .sign-block a {
color: #ff6b00;
font-weight: bold; }
header .sign-block a:hover {
color: #ff6b00; }
header .sign-block > a, header .sign-block .signed-user {
color: #ff6b00; }
header .sign-block > a:hover, header .sign-block .signed-user:hover {
color: #ff6b00;
border-bottom-color: #ff6b00; }
header .sign-block > a .icon-caret, header .sign-block > a .icon-account-settings, header .sign-block .signed-user .icon-caret, header .sign-block .signed-user .icon-account-settings {
color: #0c4e91; }
header .sign-block .button.bordered {
color: #ff6b00;
border-color: #ff6b00;
border-radius: 20px;
height: 40px;
line-height: 36px; }
header .sign-block .button.bordered:hover {
border: 2px solid #ff6b00;
background: #ff6b00;
color: #fff; }
header .sign-block .button.mp-top-left {
color: #fff;
border: none;
background: #ff6b00;
-webkit-box-shadow: none;
box-shadow: none;
border-radius: 20px;
height: 40px;
line-height: 40px; }
header .sign-block .button.mp-top-left:hover {
color: #fff;
opacity: 0.7; }
header .mobile-menu .btn-toggle-menu {
color: #333;
text-shadow: none; }
header .mobile-menu .btn-toggle-menu:hover {
color: #999; }
header .mobile-nav .mm-bg {
background: #fff;
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
header .mobile-nav .header-menu li a {
color: #0c4e91; }
header .mobile-nav .header-menu li a:hover {
color: #0c4e91;
background: rgba(0, 0, 0, 0.1); }
header .mobile-nav .sign-block .signed-user-block .dropdown-menu a {
color: #333; }
header .mobile-nav .sign-block .signed-user-block .dropdown-menu a:hover {
color: #333;
background: rgba(0, 0, 0, 0.1); }
header .mobile-nav .sign-block .button.bordered {
border: none;
border-radius: 0;
line-height: normal;
height: auto;
opacity: 1; }
header .mobile-nav .sign-block .button.mp-top-left {
background: #fff;
color: #ff6b00;
border-radius: 0;
line-height: normal;
height: auto;
border: none; }
header .mobile-nav .sign-block .button.mp-top-left:hover {
background: #ff6b00;
color: #fff;
opacity: 1; }
footer.v2 {
color: #fff;
background: -webkit-gradient(linear, left top, right top, from(#539aea), to(#0e3f7b));
background: linear-gradient(to right, #539aea, #0e3f7b); }
/* Main Page */
.main-page .mp-top {
background-image: url(../img/main-page/top-bg-live.jpg); }
.main-page .mp-top .top-text {
background: -webkit-gradient(linear, left top, right top, from(rgba(19, 77, 149, 0.4)), to(rgba(1, 26, 51, 0.4)));
background: linear-gradient(to right, rgba(19, 77, 149, 0.4), rgba(1, 26, 51, 0.4)); }
.main-page .mp-capabs h4 {
color: #3090f0; }
.main-page .mp-capabs .cap-col .cc-img {
border: none;
background: #fff;
-webkit-box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.4);
box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.4); }
.main-page .mp-capabs .cap-col .cc-title {
color: #003366; }
.main-page .mp-capabs .cap-col .cc-text {
color: #475669; }
.main-page .mp-capabs .buttons {
margin-top: 60px;
text-align: center; }
.main-page .mp-footer {
background: -webkit-gradient(linear, left top, right top, from(#539aea), to(#0e3f7b));
background: linear-gradient(to right, #539aea, #0e3f7b); }
.main-page .mp-footer .buttons {
margin: 25px 0 22px; }
.main-page .mp-footer .buttons .button {
min-width: 175px; }
.main-page .mp-footer .copyright {
color: #fff;
font-size: 9px;
font-weight: 300;
margin-top: 5px; }
.main-page .mp-footer .bot-logo {
background: url(../img/live-bot-logo.png) center center no-repeat; }
.main-page .breadcrumbs .breadcrumb li {
color: #536174; }
.main-page .breadcrumbs .breadcrumb a {
color: #536174; }
.main-page .about-top h1 {
color: #003366; }
.main-page .about-top p {
color: #48566b; }
.main-page .about-top p.big {
color: #003366; }
.main-page .about-bot {
background: #edf4fd; }
.main-page .about-bot .ab-line {
color: #48566b; }
.main-page .about-bot .ab-line [class^="icon-"], .main-page .about-bot .ab-line [class*=" icon-"] {
color: #98c2f2; }
.main-page .mp-small-block.with-bg {
background: #edf4fc; }
.main-page .mp-small-block .sb-head {
color: #539aea; }
.main-page .mp-small-block .feature-links .feature-link {
color: #003366;
background: #fff;
-webkit-box-shadow: 5px 5px 18px rgba(4, 40, 79, 0.4);
box-shadow: 5px 5px 18px rgba(4, 40, 79, 0.4); }
.main-page .mp-small-block .feature-links .feature-link:hover {
color: #fff;
background: #125095; }
@media (min-width: 769px) {
.main-page .mp-small-block .buttons .button {
line-height: 48px; } }
.main-page .feature-block .cont {
color: #475669; }
.main-page .feature-block.with-bg {
background: -webkit-gradient(linear, left top, right top, from(#539aea), to(#0e3f7b));
background: linear-gradient(to right, #539aea, #0e3f7b);
background-size: cover; }
.main-page .feature-block.with-bg .cont {
color: #ffffff; }
.main-page .feature-block.with-bg.facebook {
background: -webkit-gradient(linear, left top, right top, from(#0e3f7b), to(#539aea));
background: linear-gradient(to right, #0e3f7b, #539aea); }
.main-page .feature-block .fb-img img {
-webkit-box-shadow: 16px 16px 16px rgba(0, 0, 0, 0.4);
box-shadow: 16px 16px 16px rgba(0, 0, 0, 0.4); }
.main-page .feature-block .fb-text p.with-icon [class^="icon-"], .main-page .feature-block .fb-text p.with-icon [class*=" icon-"] {
color: #94c0ef; }
.main-page .feature-block.promo .cont {
color: #475669; }
.main-page .feature-block.promo .fb-title {
color: #003366; }
.main-page .feature-block.promo .fb-text p.with-icon [class^="icon-"], .main-page .feature-block.promo .fb-text p.with-icon [class*=" icon-"] {
color: #98c2f2; }
.main-page .feature-block.promo.with-bg .cont, .main-page .feature-block.promo.with-bg .fb-title {
color: #ffffff; }
.main-page .feature-block.promo.with-bg .fb-text p.with-icon [class^="icon-"], .main-page .feature-block.promo.with-bg .fb-text p.with-icon [class*=" icon-"] {
color: #aac1dd; }
.main-page .feature-block.feat-descr .fb-img {
-webkit-box-shadow: 5px 5px 18px rgba(4, 40, 79, 0.4);
box-shadow: 5px 5px 18px rgba(4, 40, 79, 0.4);
background: #fff;
border-color: #fff; }
.main-page .feature-block.feat-descr .fb-text .custom-marks li .icon-promo-check {
color: #98c2f2; }
.main-page .feature-block.feat-descr.with-bg .fb-text .custom-marks li .icon-promo-check {
color: #98c2f2; }
.main-page .promo-top .opacity-bg {
background: rgba(255, 255, 255, 0.7); }
.main-page .promo-top .line1 {
color: #003366; }
.main-page .promo-top .line2 {
color: #003366; }
@media (min-width: 769px) {
.main-page .promo-top .button.xxl {
line-height: 48px; } }
.main-page .promo-header h3 {
color: #539aea; }
.main-page .faq-search {
background: -webkit-gradient(linear, left top, right top, from(#539aea), to(#0e3f7b));
background: linear-gradient(to right, #539aea, #0e3f7b);
border-bottom: none; }
.main-page .faq-search .start-search {
color: #134d96; }
.main-page .faq-list .faq-question {
color: #337ab7; }
.main-page .faq-list .faq-question a {
color: #475669; }
.main-page .faq-list .faq-question a:hover {
color: #3090f0;
text-shadow: none; }
.main-page .faq-answer .answer-cont {
border: 1px solid #d7d7d7; }
.main-page .faq-answer h4 {
color: #3090f0; }
.main-page .faq-answer .answer-text {
color: #48566b; }
.main-page .faq-answer .answer-text ul li:before {
background: #48566b; }
.main-page .mp-serve {
background: #e6ebf2; }
.main-page .mp-serve .serve-col {
color: #475669;
background: #fff;
-webkit-box-shadow: 5px 5px 18px rgba(4, 40, 79, 0.4);
box-shadow: 5px 5px 18px rgba(4, 40, 79, 0.4); }
.main-page .mp-serve .serve-col + .serve-col {
border-top: 2px solid #fff; }
.main-page .mp-serve .serve-col .buttons .button {
border-radius: 26px;
border-color: #134d96; }
.main-page .mp-serve .serve-col .buttons .button:hover {
color: #fff;
border-color: #fff;
background: #125095; }
.main-page .mp-serve .serve-col .sc-title {
color: #003366; }
.main-page .mp-serve .serve-col .normal {
color: #003366; }
.main-page .mp-serve .serve-col:hover {
background: #125095;
color: #fff;
-webkit-box-shadow: 5px 5px 18px rgba(4, 40, 79, 0.4);
box-shadow: 5px 5px 18px rgba(4, 40, 79, 0.4); }
.main-page .mp-serve .serve-col:hover .sc-title {
color: #fff; }
.main-page .mp-serve .serve-col:hover .normal {
color: #fff; }

File diff suppressed because one or more lines are too long

View File

@@ -1,23 +1,35 @@
.front-accordion .fa-head {
border: 1px solid #779bca;
color: #475669;
background: #fff;
-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
position: relative;
z-index: 2; }
.front-accordion .fa-head .collapse-link {
color: #475669; }
.front-accordion .fa-head .collapse-link span {
color: #0c4e91; }
.front-accordion .fa-head.with-options .options-link {
color: #475669; }
.front-accordion .fa-head.with-options .options-link:hover {
color: #333; }
.front-accordion .form-group label {
color: #0c4e91; }
.front-accordion .form-group.checkbox-label label {
color: #333; }
/* Buttons. */
.button {
background: #ff6b00; }
.button.xl {
padding: 0 8px; }
@media (min-width: 768px) {
.button.xl {
height: 36px;
line-height: 36px; } }
.button.xxl {
border-radius: 25px;
padding: 0 28px;
border: none;
height: 40px;
line-height: 40px; }
.button.add-chapter {
background: #0c4e91;
color: #fff; }
.button.add-chapter-front {
background: #0c4e91; }
.button.mp-top-left {
background: #ff6b00;
border-color: #ff6b00;
@@ -37,7 +49,7 @@
.button.mp-top-right.xl, .button.mp-top-blue.xl {
border: none;
line-height: 30px; }
@media (min-width: 768px) {
@media (min-width: 769px) {
.button.mp-top-right.xl, .button.mp-top-blue.xl {
line-height: 36px; } }
.button.mp-btn {
@@ -59,18 +71,34 @@
box-shadow: none; }
.button.bordered:hover {
background: rgba(0, 0, 0, 0.05); }
.button.back-btn {
background: #fff;
border: 2px solid #0c4e91;
/* Buttons. */
.button.xl {
padding: 0 8px; }
@media (min-width: 769px) {
.button.xl {
height: 36px;
line-height: 36px; } }
.button.add-chapter {
background: #0c4e91;
color: #fff; }
.button.add-chapter-front {
background: #0c4e91; }
.button.back-btn {
background: #fff;
border: 2px solid #0c4e91;
color: #0c4e91;
-webkit-box-shadow: none;
box-shadow: none; }
.button.back-btn.xxl {
line-height: 36px; }
.button.back-btn:hover {
background: rgba(0, 0, 0, 0.05);
color: #0c4e91;
-webkit-box-shadow: none;
box-shadow: none; }
.button.back-btn.xxl {
line-height: 36px; }
.button.back-btn:hover {
background: rgba(0, 0, 0, 0.05);
color: #0c4e91;
opacity: 1; }
opacity: 1; }
.button.green {
-webkit-box-sizing: border-box;
@@ -82,7 +110,10 @@
box-shadow: none !important;
line-height: 25px; }
.button.green.xl {
line-height: 32px; }
line-height: 26px; }
@media (min-width: 769px) {
.button.green.xl {
line-height: 32px; } }
.casebook-list .add-casebook {
background: #ff6b00;
@@ -96,7 +127,7 @@ header {
height: 33px;
top: 5px;
left: -5px; }
@media (min-width: 768px) {
@media (min-width: 769px) {
header .main-logo {
top: 20px;
left: 40px; } }
@@ -152,37 +183,37 @@ header {
text-shadow: none; }
header .mobile-menu .btn-toggle-menu:hover {
color: #999; }
header .mobile-nav {
header .mobile-nav .mm-bg {
background: #fff;
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
header .mobile-nav .header-menu li a {
color: #0c4e91; }
header .mobile-nav .header-menu li a:hover {
color: #0c4e91;
background: rgba(0, 0, 0, 0.1); }
header .mobile-nav .sign-block .signed-user-block .dropdown-menu a {
color: #333; }
header .mobile-nav .sign-block .signed-user-block .dropdown-menu a:hover {
color: #333;
background: rgba(0, 0, 0, 0.1); }
header .mobile-nav .sign-block .button.bordered {
border: none;
border-radius: 0;
line-height: normal;
height: auto;
header .mobile-nav .header-menu li a {
color: #0c4e91; }
header .mobile-nav .header-menu li a:hover {
color: #0c4e91;
background: rgba(0, 0, 0, 0.1); }
header .mobile-nav .sign-block .signed-user-block .dropdown-menu a {
color: #333; }
header .mobile-nav .sign-block .signed-user-block .dropdown-menu a:hover {
color: #333;
background: rgba(0, 0, 0, 0.1); }
header .mobile-nav .sign-block .button.bordered {
border: none;
border-radius: 0;
line-height: normal;
height: auto;
opacity: 1; }
header .mobile-nav .sign-block .button.mp-top-left {
background: #fff;
color: #ff6b00;
border-radius: 0;
line-height: normal;
height: auto;
border: none; }
header .mobile-nav .sign-block .button.mp-top-left:hover {
background: #ff6b00;
color: #fff;
opacity: 1; }
header .mobile-nav .sign-block .button.mp-top-left {
background: #fff;
color: #ff6b00;
border-radius: 0;
line-height: normal;
height: auto;
border: none; }
header .mobile-nav .sign-block .button.mp-top-left:hover {
background: #ff6b00;
color: #fff;
opacity: 1; }
footer.v2 {
color: #fff;
@@ -190,16 +221,21 @@ footer.v2 {
background: linear-gradient(to right, #539aea, #0e3f7b); }
/* Casebook Item */
.casebook-item .casebook-top {
.casebook-item .casebook-top:before {
background: #0c4e91; }
.casebook-item .casebook-top .ct-cont {
background: #fff; }
.casebook-item .casebook-top .ct-cont {
background: #fff; }
.casebook-item .casebook-top:after {
height: 43px;
bottom: 18px;
background-image: url("../img/live-book-logo.png"); }
.casebook-item .casebook-top:before {
background: #0c4e91; }
.casebook-item .casebook-top:after {
height: 43px;
bottom: 18px;
background-image: url("../img/live-book-logo.png"); }
.casebook-item .casebook-top .casebook-status {
background: #0c4e91; }
.casebook-item .casebook-top .casebook-status.transparent:after {
background: #134d96; }
.casebook-item .casebook-bottom .casebook-title {
color: #3090f0; }
@@ -214,9 +250,6 @@ footer.v2 {
border-color: #134d95;
background: #134d95; }
.casebook-item .casebook-status.transparent:after {
background: #134d96; }
.casebook-item .preview-link .button {
border: 2px solid #134d96;
color: #134d96; }
@@ -250,7 +283,7 @@ ul.tabset-tabs li {
box-shadow: none;
font-weight: 400;
margin: 0; }
@media (min-width: 768px) {
@media (min-width: 769px) {
ul.tabset-tabs li a {
font-size: 18px;
padding: 0 16px;
@@ -269,7 +302,7 @@ ul.tabset-tabs li {
height: 30px;
line-height: 30px;
margin-bottom: -5px; }
@media (min-width: 768px) {
@media (min-width: 769px) {
ul.tabset-tabs li.active a {
height: 40px;
line-height: 40px;
@@ -363,7 +396,7 @@ ul.tabset-tabs li {
color: #fff;
background: #125095; }
@media (min-width: 768px) {
@media (min-width: 769px) {
.main-page .mp-small-block .buttons .button {
line-height: 48px; } }
@@ -377,6 +410,10 @@ ul.tabset-tabs li {
.main-page .feature-block.with-bg .cont {
color: #ffffff; }
.main-page .feature-block.with-bg.facebook {
background: -webkit-gradient(linear, left top, right top, from(#0e3f7b), to(#539aea));
background: linear-gradient(to right, #0e3f7b, #539aea); }
.main-page .feature-block .fb-img img {
-webkit-box-shadow: 16px 16px 16px rgba(0, 0, 0, 0.4);
box-shadow: 16px 16px 16px rgba(0, 0, 0, 0.4); }
@@ -420,7 +457,7 @@ ul.tabset-tabs li {
.main-page .promo-top .line2 {
color: #003366; }
@media (min-width: 768px) {
@media (min-width: 769px) {
.main-page .promo-top .button.xxl {
line-height: 48px; } }
@@ -483,6 +520,12 @@ ul.tabset-tabs li {
.main-page .mp-serve .serve-col:hover .normal {
color: #fff; }
h1 .header-number {
color: #ff6b00; }
.page404 .big {
color: #539aea; }
h1, .sign-page h1 {
color: #3090f0; }
@@ -526,7 +569,7 @@ h1, .sign-page h1 {
border-bottom: none;
padding-top: 3px;
margin-top: -5px; }
@media (min-width: 768px) {
@media (min-width: 769px) {
.casebook-tabs-links ul li.selected, .casebook-tabs-links .right-download.selected {
height: 40px;
line-height: 40px;
@@ -540,20 +583,7 @@ h1, .sign-page h1 {
.casebook-tabs-links ul li + li {
margin-left: -1px; }
.front-accordion .fa-head {
border: 1px solid #779bca;
color: #475669;
background: #fff;
-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
position: relative;
z-index: 2; }
.front-accordion .fa-head .collapse-link {
color: #475669; }
.front-accordion .fa-head .collapse-link span {
color: #0c4e91; }
.front-accordion .form-group label {
.ca-table-cont .core-color {
color: #0c4e91; }
.casebook-chapter .chapter-head, .casebook-chapter .casebook-chapter .chapter-head {
@@ -616,7 +646,7 @@ h1, .sign-page h1 {
color: #fff;
font-weight: 600;
line-height: 26px; }
@media (min-width: 768px) {
@media (min-width: 769px) {
.casebook-top-options .dropdown .button.xl.white {
line-height: 30px; } }
@@ -680,16 +710,20 @@ body .cd-mob-chat-widget {
color: #48566b; }
.checkout-table tr .book-info {
color: #475669; }
.checkout-table.step3 .bot-total {
color: #ff6b00; }
.checkout-table .action {
color: #0c4e91; }
.checkout-btns .button.xxl {
line-height: 30px; }
@media (min-width: 768px) {
@media (min-width: 769px) {
.checkout-btns .button.xxl {
line-height: 40px; } }
.checkout-btns .button.back-btn {
line-height: 26px; }
@media (min-width: 768px) {
@media (min-width: 769px) {
.checkout-btns .button.back-btn {
line-height: 36px; } }
@@ -708,6 +742,21 @@ body .cd-mob-chat-widget {
.student-casebook-title .toc-toggle {
padding: 0 5px; }
.royalties-list .front-accordion .fa-head {
color: #475669; }
.chapters-summ .num {
color: #ff6b00; }
.bot-total-block .btb-fixed .selected-num {
color: #0c4e91; }
.chapter-ws.new-chapters:before {
background: #ff6b00; }
.casebook-tabs-links .right-download.new-chapters:after, .casebook-tabs-links ul li.new-chapters:after {
background: #ff6b00; }
.dash-top-links .dash-link .dl-icon {
background: #fff;
border: 3px solid #fff;
@@ -735,7 +784,29 @@ body .cd-mob-chat-widget {
.pd-container .features p .icon-promo-check {
color: #98c2f2; }
.pd-container .features p .icon-cons {
color: #B9B1A1; }
.pd-container .center-bottom .preview-link a.button {
color: #0c4e91; }
.pd-container .center-bottom .preview-link a.button .icon-view {
color: #0c4e91; }
/* Widgets. */
.modal .modal-dialog .modal-head {
color: #3090f0; }
.modal .modal-dialog .modal-head .cont {
color: #3090f0; }
.modal .modal-dialog .modal-head .header-number {
color: #ff6b00; }
.modal .modal-dialog .modal-head.alert {
color: #f03081; }
.modal .modal-dialog .modal-head.alert .cont {
color: #f03081; }
.modal .modal-footer .cancel {
color: #3090f0; }
.modal .input-add-new .btn-add-new .icon-add-circle {
background: #3090f0; }

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@@ -1,5 +0,0 @@
document.addEventListener("DOMContentLoaded", function(event) {
$('.start-search').on('click', function(){
$('#search-form').submit();
});
})

View File

@@ -5,11 +5,10 @@
<div class="title">Menu</div>
<a href="/features">Features</a>
<a href="/about-us">About Us</a>
<a href="/privacy-policy">Private Policy</a>
<a href="/privacy-policy">Privacy Policy</a>
<a href="/terms-of-use">Terms of Use</a>
<a href="/contact-us">Contact Us</a>
<a href="#">FAQ</a>
<a href="#">Help</a>
<a href="/faq-page">FAQs</a>
</div>
<div class="fm-col hide-sm">
<div class="title">Product</div>
@@ -18,19 +17,18 @@
</div>
<div class="fm-col hide-sm">
<div class="title">Legal</div>
<a href="/privacy-policy">Private Policy</a>
<a href="/privacy-policy">Privacy Policy</a>
<a href="/terms-of-use">Terms of Use</a>
</div>
<div class="fm-col hide-sm">
<div class="title">Contact</div>
<a href="/contact-us">Contact Us</a>
<a href="#">FAQ</a>
<a href="#">Help</a>
<a href="/faq-page">FAQs</a>
</div>
<div class="fm-col">
<div class="title">Follow Us</div>
<div class="social">
<a target="_blank" href="https://twitter.com/livecarta"><span class="icon-twitter1"></span></a>
<a target="_blank" href="https://twitter.com/_livecarta"><span class="icon-twitter1"></span></a>
<a target="_blank" href="https://www.instagram.com/livecarta"><span class="icon-instagram"></span></a>
<a target="_blank" href="https://fb.me/likelivecarta"><span class="icon-facebook1"></span></a>
<a target="_blank" href="https://www.linkedin.com/company/likelivecarta"><span class="icon-linkedin"></span></a>
@@ -41,11 +39,11 @@
<div class="title">Subscribe</div>
<div class="sub-input">
<div id="mc_embed_signup">
<form action="https://lawcarta.us12.list-manage.com/subscribe/post?u=f1055fdbaf5889ec432f2821f&amp;id=25a4c0d555" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate="">
<form action="https://lawcarta.us12.list-manage.com/subscribe/post?u=f1055fdbaf5889ec432f2821f&id=a0685621c3" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate="">
<div id="mc_embed_signup_scroll">
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Enter your Email" required>
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_f1055fdbaf5889ec432f2821f_25a4c0d555" tabindex="-1" value=""></div>
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_f1055fdbaf5889ec432f2821f_a0685621c3" tabindex="-1" value=""></div>
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
</div>
</form>
@@ -53,13 +51,19 @@
</div>
<div class="copyright">
<a href="#" class="logo">
<img src="<?= get_theme_file_uri('/assets/img/logo.png'); ?>" alt="LiveCarta livecarta">
<img src="<?= get_theme_file_uri('/assets/img/livercarta-footer.png'); ?>" alt="LiveCarta livecarta">
</a>
<p>&copy; 2018 <?= get_option('lawcarta_company'); ?>. All rights reserved</p>
<p>&copy; <?=date("Y"); ?> <?= get_option('lawcarta_company'); ?>. All rights reserved</p>
</div>
</div>
</div>
<?php if(1):?>
<div class="app-download">
<div class="title">Download our app</div>
<a target="_blank" href="https://apps.apple.com/us/app/livecarta/id1505717341" class="app-download"><img src="<?= get_theme_file_uri('/assets/img/app-store.png'); ?>" alt=""></a>
<a target="_blank" href="https://play.google.com/store/apps/details?id=com.teqspring.apps.livecarta" class="app-download"><img src="<?= get_theme_file_uri('/assets/img/google-store.png'); ?>" alt=""></a>
</div>
<?php endif;?>
</div>
</footer>
@@ -68,7 +72,8 @@
</div><!-- .wrapper -->
<?php wp_footer(); ?>
<script src="<?= get_theme_file_uri('/assets/js/featuresScroll.js'); ?>"></script>
<script src="<?= get_theme_file_uri('/assets/js/featuresScroll.js'); ?>"></script>
<script src="<?= get_theme_file_uri('/assets/js/faqSearch.js'); ?>"></script>
<script src="<?= get_theme_file_uri('/assets/js/promoImage.js'); ?>"></script>
</body>
</html>

View File

@@ -4,7 +4,13 @@
* Enqueue scripts and styles.
*/
function livecarta_scripts() {
wp_enqueue_style('livecarta-external-style', get_theme_file_uri('/assets/css/livecarta.css'), ['lawcarta-custom']);
wp_enqueue_style('lawcarta-style', get_stylesheet_uri(), ['livecarta-external-style']);
if(is_front_page()){
wp_enqueue_style('livecarta-style-index', get_theme_file_uri('/assets/css/live-main-page.min.css'),['lawcarta-style-index'],'5.2.3.1');
}else{
wp_enqueue_style('livecarta-style-index', get_theme_file_uri('/assets/css/live-main-page.min.css'),['lawcarta-style-index'],'5.2.3.1');
wp_enqueue_style('livecarta-external-style', get_theme_file_uri('/assets/css/livecarta.css'), ['lawcarta-custom']);
wp_enqueue_style('lawcarta-style', get_stylesheet_uri(), ['livecarta-external-style']);
}
}
add_action('wp_enqueue_scripts', 'livecarta_scripts');

View File