Git Product home page Git Product logo

fw's Introduction

README.md

fw

###TODO

  • specific input criteria fxns --
    • separate: CREATE / READ / UPDATE / DELETE
    • maximum character length
    • sections cannot somewhere down the line contain another section
  • add more helpful description / infos

ADMIN PAGES:

  • page table: READ, UPDATE, CREATE, DELETE

    • special key names:
      • __live
      • __error
    • drag & drop sections
      • choose from library of sections
    • preview webpage (new window?)
  • widget table: READ ONLY

    • want OBJECT-CREATOR/DEFINER in future
  • giau settings page (website table? == widget?)

    • color theming, font theming...
    • form emailing address
    • images?
  • backup strategy

  • no duplicate languagization entries

  • all editing behind admin wall

  • ?can create a widget to alter the HEAD (eg title)

giau theme


giau plugin


- navigation
	> presents list of pages
- page
	> presents a continuous list of sections
		- display name
		- 
- section
	> presents a widget
- widget
	> piece of user functionality: presentation, interaction, 
- 


- content
	- language
	- tagname
	- type (image / text)
	- value (file / string)
	- 


- widget
	- navigation (list of pages, logo, language switch, )
	- title/heading bar
	- image scroller
	- ?
	- content list (various fonts / sizes / paragraphs / images)
	- calendar (list of events)
	- social list (present facebook, twitter, instagram, email)
	- staff list (image, name, title, description)
	- dept list (image+title)
	- 
	- 

image gallery sizes:

  1. low - loading: 480x270
  2. med - old-phone: 960x540
  3. high - desktop : 1920x1080

box testing

rm -r /repos/ff
rm -r /repos/fw
cp -r /media/sf_zirbr001/dev/extRepos/ff /repos
cp -r /media/sf_zirbr001/dev/extRepos/fw /repos

chmod -R 777 /repos/ff
chmod -R 777 /repos/fw

rm /repos/fw/themes/giau/js/code 
ln -s /repos/ff/src/code /repos/fw/themes/giau/js/code

# theme
rm -r /var/www/html/wordpress/wp-content/themes/giau/index.php 
cp -r /media/sf_zirbr001/dev/extRepos/fw/themes/giau/index.php /var/www/html/wordpress/wp-content/themes/giau/index.php 
chmod -R 777 /repos/fw/

rm -r /var/www/html/wordpress/wp-content/themes/giau
cp -r /media/sf_zirbr001/dev/extRepos/fw/themes/giau /var/www/html/wordpress/wp-content/themes/giau
chmod -R 777 /var/www/html/wordpress/wp-content/themes/giau
rm /var/www/html/wordpress/wp-content/themes/giau/js/code
ln -s /repos/ff/src/code /var/www/html/wordpress/wp-content/themes/giau/js



# plugin
rm -r /var/www/html/wordpress/wp-content/plugins/giau
cp -r /media/sf_zirbr001/dev/extRepos/fw/plugins/giau/ /var/www/html/wordpress/wp-content/plugins/giau
chmod -R 777 /var/www/html/wordpress/wp-content/plugins/giau

# rm -r /var/www/html/wordpress/wp-content/plugins/giau && cp -r /media/sf_zirbr001/dev/extRepos/fw/plugins/giau/ /var/www/html/wordpress/wp-content/plugins/giau && chmod -R 777 /var/www/html/wordpress/wp-content/plugins/giau



#specific files

cp /media/sf_zirbr001/dev/extRepos/fw/themes/giau/index.php /repos/fw/themes/giau/index.php 
cp /media/sf_zirbr001/dev/extRepos/fw/themes/giau/data.php /repos/fw/themes/giau/data.php 
cp /media/sf_zirbr001/dev/extRepos/fw/themes/giau/php/functions.php /repos/fw/themes/giau/php/functions.php 
cp /media/sf_zirbr001/dev/extRepos/fw/themes/giau/js/theme.js /repos/fw/themes/giau/js/theme.js 
cp /media/sf_zirbr001/dev/extRepos/fw/themes/giau/css/theme.css /repos/fw/themes/giau/css/theme.css 
cp /media/sf_zirbr001/dev/extRepos/ff/src/code/Code.js /repos/ff/src/code/Code.js 



rm -r /var/www/html/wordpress/wp-content/themes/giau && cp -r /media/sf_zirbr001/dev/extRepos/fw/themes/giau/ /var/www/html/wordpress/wp-content/themes/giau &&  rm /var/www/html/wordpress/wp-content/themes/giau/js/code && ln -s /repos/ff/src/code /var/www/html/wordpress/wp-content/themes/giau/js/code && chmod -R 777 /var/www/html/wordpress/wp-content/themes/giau
rm -r /var/www/html/wordpress/wp-content/plugins/giau && cp -r /media/sf_zirbr001/dev/extRepos/fw/plugins/giau/ /var/www/html/wordpress/wp-content/plugins/giau && chmod -R 777 /var/www/html/wordpress/wp-content/plugins/giau



rm /var/www/html/wordpress/wp-content/themes/giau/js/code && ln -s /repos/ff/src/code /var/www/html/wordpress/wp-content/themes/giau/js/code && chmod -R 777 /var/www/html/wordpress/wp-content/themes/giau


mkdir -p /repos/ff/src
rm -r /repos/ff/src/code/
rm -r /var/www/html/wordpress/wp-content/plugins/giau 
cp -r /media/sf_zirbr001/dev/extRepos/ff/src/code /repos/ff/src/
chmod -R 777 /repos/
ln -s /repos/ff/src/code /var/www/html/wordpress/wp-content/themes/giau/js/code
chmod -R 777 /var/www/html/wordpress/wp-content/themes/giau





#DEBUGGING
tail -f /var/log/php_errors.log
tail -f /var/log/apache2/error.log

SQL

mysql -u wordpressuser -p
> qwerty
show databases;
use wordpress;
show tables;
show columns from wp_giau_languagization;


wp methods excape strings for you, no need for mysql_real_escape_string

lftp

lftp
open -u USERNAME,PASSWORD  ftp.lacpc.org
# ---- BOX THEME:
# GOTO
cd /www/ce/wp-content/themes
lcd /media/sf_zirbr001/dev/extRepos/fw/themes/
# COPY GIAU
rm -rf ./giau
mirror -R giau giau
# COPY FF
cd /www/ce/wp-content/themes/giau/js
lcd /media/sf_zirbr001/dev/extRepos/ff/src
# COPY CODE
mirror -R code code
# CHMOD READ ACCESS:
cd /www/ce/wp-content/themes/
chmod -R 755 giau/

# ---- BOX PLUGIN:
# GOTO
cd /www/ce/wp-content/plugins/
lcd /media/sf_zirbr001/dev/extRepos/fw/plugins
# COPY GIAU
rm -rf ./giau
mirror -R giau giau
# COPY FF
cd /www/ce/wp-content/plugins/giau/js
lcd /media/sf_zirbr001/dev/extRepos/ff/src
# COPY CODE
mirror -R code code
# copy other JS files
lcd /media/sf_zirbr001/dev/extRepos/fw/plugins/giau/js
put ./jquery-2.2.3.min.js
put ./theme.js
# CHMOD READ ACCESS:
cd /www/ce/wp-content/plugins/
chmod -R 755 giau/








# ---- 2: THEMES
# GOTO
cd /www/ce/wp-content/themes
lcd ~/universe/repo/fw/themes
# COPY GIAU
rm -rf ./giau
mirror -R giau giau
# COPY FF
cd /www/ce/wp-content/themes/giau/js
lcd ~/universe/repo/ff/src
# COPY CODE
mirror -R code code
# CHMOD READ ACCESS:
cd /www/ce/wp-content/themes/
chmod -R 755 giau/

# ---- 3: PLUGIN
# GOTO
cd /www/ce/wp-content/plugins/
lcd ~/universe/repo/fw/plugins
# COPY GIAU
rm -rf ./giau
mirror -R giau giau
# CODE ... ? HACKY:
cd /www/ce/wp-content/plugins/giau
mkdir js
cd /www/ce/wp-content/plugins/giau/js
lcd ~/universe/repo/fw/plugins/giau/js
mirror -R . .

lcd ~/universe/repo/fw/plugins/giau/js/code
lcd ~/universe/repo/ff/src
mirror -R code code

# CHMOD READ ACCESS:
cd /www/ce/wp-content/plugins/
chmod -R 755 giau/

service playing:------------------------------------------------------

cd /www/ce/wp-content/plugins/giau/php lcd ~/universe/repo/fw/plugins/giau/php put service.php

/* sudo chown -R www-data:www-data /media/giau/universe/universe/repo/fw/plugins/giau/uploads sudo chmod 755 /media/giau/universe/universe/repo/fw/plugins/giau/uploads

sudo vi /etc/php/7.0/apache2/php.ini sys_temp_dir = "/tmp/php"

sudo chown -R www-data:www-data /tmp/php sudo chmod 755 /tmp/php

*/

https://codex.wordpress.org/Administration_Menus

http://code.tutsplus.com/articles/data-sanitization-and-validation-with-wordpress--wp-25536

http://ottopress.com/2009/wordpress-settings-api-tutorial/ https://codex.wordpress.org/Creating_Options_Pages

VBOX

cp /media/sf_zirbr001/dev/extRepos/fw/themes/giau/js/theme.js /var/www/html/wordpress/wp-content/themes/giau/js/theme.js chmod -R 777 /var/www/html/wordpress/wp-content/themes/giau

SINGLE LINE

cp /media/sf_zirbr001/dev/extRepos/fw/themes/giau/js/theme.js /var/www/html/wordpress/wp-content/themes/giau/js/theme.js ; chmod -R 777 /var/www/html/wordpress/wp-content/themes/giau

rm -r /repos/ff cp -r /media/sf_zirbr001/dev/extRepos/ff /repos chmod -R 777 /repos/ff rm /var/www/html/wordpress/wp-content/themes/giau/js/code ln -s /repos/ff/src/code /var/www/html/wordpress/wp-content/themes/giau/js

XUBUNTU NATIVE SETUP

ln -s ~/universe/repo/fw/themes/giau/ /var/www/html/wordpress/wp-content/themes/giau ln -s ~/universe/repo/fw/plugins/giau/ /var/www/html/wordpress/wp-content/plugins/giau

WP NOTES:

list of all hooks:
http://adambrown.info/p/wp_hooks/hook







some code:

<div class="giauDataTable giauTableDisplayData" data-table="localization" data-columns="language,hash_index,phrase_value" data-url="<?php echo $dataServiceURL; ?>" data-settings-pages="true"  data-settings-arbitrary-page="true">
</div>

<input type="text" class="giauAutoComplete" placeholder="language" data-columns="hash_index,phrase_value" data-params='{"operation":"get_autocomplete","table":"localization"}' data-url="<?php echo $dataServiceURL; ?>" style="width:300px; height:32px;">

fw's People

Contributors

richtastic avatar disneyrz avatar

Watchers

 avatar Christine Kang avatar Christine avatar

Forkers

joeboxes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.