# Path: content/models.py
# class FooterInfo(models.Model):
# 	img = models.ImageField(upload_to='volunteer',blank=True, null=True, help_text="Upload image for footer")
# 	title = models.CharField(blank=True, null=True, max_length=100, help_text="Enter Footer Title")
# 	text = tinymce_models.HTMLField(blank=True, null=True, help_text="Enter a short description.")
# 	learnmorelink = models.CharField(default="#", max_length=200)
# 	facebooklink =  models.URLField(default="#")
# 	twitterlink = models.URLField(default="#")
# 	instagramlink = models.URLField(default="#")
# 	copyright = models.CharField(default=" ", max_length=300)
# 	email_signup = models.TextField(blank=True, null=True, help_text="you can enter code here for an email signup")
# 
# 	def __str__(self):
# 		return self.text
# 
# class Menu(models.Model):
# 	order = models.PositiveIntegerField(help_text="Enter a number. 1 will be on the left.")
# 	title = models.CharField(null=True, max_length=100)
# 	link = models.CharField(blank=True, null=True, max_length=100)
# 
# 	def __str__(self):
# 		return self.title


from .models import FooterInfo, Menu

def footer(request):
	footer = FooterInfo.objects.all()
	return {'footer': footer}

def navbar(request):

# Path: content/models.py
# class FooterInfo(models.Model):
# 	img = models.ImageField(upload_to='volunteer',blank=True, null=True, help_text="Upload image for footer")
# 	title = models.CharField(blank=True, null=True, max_length=100, help_text="Enter Footer Title")
# 	text = tinymce_models.HTMLField(blank=True, null=True, help_text="Enter a short description.")
# 	learnmorelink = models.CharField(default="#", max_length=200)
# 	facebooklink =  models.URLField(default="#")
# 	twitterlink = models.URLField(default="#")
# 	instagramlink = models.URLField(default="#")
# 	copyright = models.CharField(default=" ", max_length=300)
# 	email_signup = models.TextField(blank=True, null=True, help_text="you can enter code here for an email signup")
# 
# 	def __str__(self):
# 		return self.text
# 
# class Menu(models.Model):
# 	order = models.PositiveIntegerField(help_text="Enter a number. 1 will be on the left.")
# 	title = models.CharField(null=True, max_length=100)
# 	link = models.CharField(blank=True, null=True, max_length=100)
# 
# 	def __str__(self):
# 		return self.title


# Path: content/context_processors.py
from .models import FooterInfo, Menu


def footer(request):
	footer = FooterInfo.objects.all()
	return {'footer': footer}

def navbar(request):

	categories = Menu.objects.all().order_by('order')